/* Custom CSS for a Modern Educational Website */

/* ------------------------------------------------------------------ */
/* 1. Base & Typography */
/* ------------------------------------------------------------------ */

body {
    font-family: 'cairo', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* Add this line to push content down and avoid navbar overlap */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* 2. Global Layout & Sections */
/* ------------------------------------------------------------------ */

.container {
    padding-left: 15px;
    padding-right: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a237e;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #4a148c;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    animation: scaleIn 1.2s forwards cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.5s;
}

/* ------------------------------------------------------------------ */
/* 3. Navigation & Header */
/* ------------------------------------------------------------------ */

.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.2rem; /* تم تصغير حجم الخط هنا */
    font-weight: 800;
    color: #1a237e !important;
    transition: color 0.3s ease;
    animation: slideInFromTop 0.8s forwards;
}

.navbar-brand:hover {
    color: #4a148c !important;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    transition: all 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: #4a148c !important;
}

/* Hero Section */
.hero-section {
    background-image: url('Img/123.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 35, 126, 0.7);
    z-index: -1;
}

.hero-section h1 {
    font-weight: 900;
    font-size: 3.5rem; /* Default size for large screens */
    opacity: 0;
    animation: fadeInUp 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.5s;
}

.hero-section p {
    font-weight: 300;
    font-size: 1.25rem; /* Default size for large screens */
    opacity: 0;
    animation: fadeInUp 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.8s;
}

/* ------------------------------------------------------------------ */
/* 4. Buttons & Forms */
/* ------------------------------------------------------------------ */

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    opacity: 0;
    animation: scaleIn 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 1.2s;
}

.btn-primary {
    background: linear-gradient(45deg, #1a237e, #3f51b5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #3f51b5, #1a237e);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.6);
    transform: translateY(-2px);
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #4a148c;
    box-shadow: 0 0 0 0.2rem rgba(74, 20, 140, 0.25);
}

/* ------------------------------------------------------------------ */
/* 5. Cards & Sections */
/* ------------------------------------------------------------------ */

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}
.card:nth-child(3) {
    animation-delay: 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #4a148c, #8e24aa);
    color: #fff;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.card-header h5 {
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* 6. Notification System */
/* ------------------------------------------------------------------ */

/* Desktop Notification Styles */
.notification-container {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1050;
    width: 300px;
}

.notification-card {
    border-radius: 0.5rem;
}

.notification-card .card-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.notification-card .card-body {
    padding: 0.75rem;
}

.notification-card .card-text {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.notification-card .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* ------------------------------------------------------------------ */
/* 7. Responsive Adjustments (Font Size) */
/* ------------------------------------------------------------------ */

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 5vw; /* Font size is 5% of viewport width on medium screens */
    }

    .hero-section p {
        font-size: 2vw; /* Font size is 2% of viewport width on medium screens */
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.8rem; /* A fixed, smaller font size for mobile */
    }

    .hero-section p {
        font-size: 1rem; /* A fixed, smaller font size for mobile */
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem; /* Even smaller font size for extra small devices */
    }

    .hero-section p {
        font-size: 0.9rem; /* Even smaller font size for extra small devices */
    }
}

/* ------------------------------------------------------------------ */
/* 8. Animations */
/* ------------------------------------------------------------------ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* 9. Footer */
/* ------------------------------------------------------------------ */

footer {
    background-color: #1a237e;
    color: #ffffff;
    padding: 2.5rem 0;
    text-align: center;
}

footer a {
    color: #f0f2f5;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}