/* =============================================
   COMPONENT-SPECIFIC STYLES
   ============================================= */
css
/* =============================================
   HEADER & NAVIGATION FIXES
   ============================================= */
/* Fixed Header with Proper Stacking */
/* ======================
   HEADER POSITIONING FIX
   ====================== */

/* =============================================
   HEADER STYLES (Merged)
   ============================================= */
.site-header {
    position: relative;
    width: 100%;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* Debug border */
    border: 2px solid blue !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.site-branding .site-title,
.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

/* ======================
   NAVIGATION STYLES (Merged)
   ====================== */
.main-navigation {
    display: block !important;
}

.navbar {
    padding: 0;
    width: 100%;
}

.navbar-nav {
    align-items: center;
}

.primary-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin-left: 20px;
    position: relative;
}

.primary-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    display: block;
}

/* Active/Hover States */
.primary-menu .current-menu-item > a,
.primary-menu a:hover {
    color: #0066cc;
}

/* Dropdown Menus */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 999;
}

.primary-menu li:hover .sub-menu {
    display: block;
}

/* ======================
   HEADER BUTTONS & SOCIAL
   ====================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.header-button {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.enroll-button {
    background-color: #4CAF50;
    color: white;
    border: 2px solid #4CAF50;
}

.enroll-button:hover {
    background-color: #3e8e41;
    border-color: #3e8e41;
}

.contact-button {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.contact-button:hover {
    background-color: #333;
    color: white;
}

/* Social Menu Fixes */
.header-social {
    margin-left: 20px;
}

.social-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.social-menu a {
    display: block;
    width: 36px;
    height: 36px;
    color: #333;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.social-menu a:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-3px);
}

/* Font Awesome Icons */
.social-icon::before {
    font-family: 'Font Awesome 5 Brands';
    font-weight: 400;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Specific social icons */
.facebook .social-icon::before {
    content: "\f39e";
}
.twitter .social-icon::before {
    content: "\f099";
}
.instagram .social-icon::before {
    content: "\f16d";
}
.youtube .social-icon::before {
    content: "\f167";
}

/* =============================================
   HERO SECTION (Existing)
   ============================================= */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 120px 0;
    position: relative;
    margin-top: 0;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-banner .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
}

/* =============================================
   RESPONSIVE STYLES (Merged)
   ============================================= */
@media (max-width: 1199px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 15px 0 0;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
}

@media (max-width: 991px) {
    /* Mobile Menu Toggle */
    .menu-toggle,
    .navbar-toggler {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        order: 2;
    }
    
    /* Mobile Menu Styles */
    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        order: 4;
    }
    
    .primary-menu.active,
    .navbar-collapse.show .primary-menu {
        max-height: 500px;
        padding: 20px 0;
    }
    
    .primary-menu > li {
        margin: 0;
        width: 100%;
    }
    
    .primary-menu a {
        padding: 12px 20px;
    }
    
    /* Header Actions */
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-button {
        width: 100%;
        text-align: center;
    }
    --
	
/* Hero Section - Consistent Opacity & Alignment - Using background */
.hero-banner {
    position: relative;
    height: 80vh; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content by default */
}

.hero-banner > .position-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-banner > .position-absolute > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner > .container > .hero-text-wrapper {
    background: rgba(0, 0, 0, 0.6) !important; /* Using background with rgba */
    color: white; /* Keep text white for dark overlay */
    padding: 30px; /* Consistent padding */
    border-radius: 5px; /* Optional */
    text-align: center; /* Default text alignment */
    width: 85%; /* Consistent width */
    max-width: 600px; /* Maximum width */
}

.hero-banner > .container > .hero-text-wrapper h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-banner > .container > .hero-text-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero-banner > .container > .hero-text-wrapper h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #ccc;
}

.hero-banner > .container > .hero-text-wrapper p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-banner > .container > .hero-text-wrapper .btn-success {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.hero-banner > .container > .hero-text-wrapper .btn-success:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (min-width: 992px) { /* Larger screens */
    .hero-banner > .container > .hero-text-wrapper {
        text-align: left; /* Align text to the left */
        width: 50%; /* Occupy half the width */
        max-width: none;
    }
}

@media (max-width: 767px) {
    .hero-banner > .container > .hero-text-wrapper {
        padding: 20px;
        width: 90%;
    }

    .hero-banner > .container > .hero-text-wrapper h1 {
        font-size: 2rem;
    }

    .hero-banner > .container > .hero-text-wrapper h2 {
        font-size: 1.5rem;
    }

    .hero-banner > .container > .hero-text-wrapper p {
        font-size: 1rem;
    }

    .hero-banner > .container > .hero-text-wrapper .btn-success {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .hero-banner > .container > .hero-text-wrapper {
        padding: 15px;
        width: 95%;
    }

    .hero-banner > .container > .hero-text-wrapper h1 {
        font-size: 1.8rem;
    }

    .hero-banner > .container > .hero-text-wrapper h2 {
        font-size: 1.3rem;
    }

    .hero-banner > .container > .hero-text-wrapper p {
        font-size: 0.95rem;
    }

    .hero-banner > .container > .hero-text-wrapper .btn-success {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
  /* Exact background color from your image */
    /* New CSS with higher specificity */
    .features-section-custom {
            background-color: #f5f7fa !important;
            padding: 80px 0;
        }
        
        .feature-card-custom {
            background: white !important;
            border-radius: 8px !important;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
            padding: 30px 25px !important;
            height: 100%;
            border: none !important;
            transition: all 0.3s ease !important;
        }
        
        .feature-card-custom:hover {
            transform: translateY(-5px) !important;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
        }
        
        .feature-title-custom {
            color: #2d3748 !important;
            font-size: 1.25rem !important;
            font-weight: 600 !important;
            margin-bottom: 15px !important;
        }
        
        .feature-text-custom {
            color: #718096 !important;
            margin: 0 !important;
            line-height: 1.5 !important;
            font-size: 1rem !important;
        }
        
        .welcome-card-custom {
            background: white !important;
            border-radius: 8px !important;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
            padding: 30px 25px !important;
            height: 100%;
            border: none !important;
        }
        
        .welcome-title-custom {
            color: #2d3748 !important;
            font-size: 1.5rem !important;
            font-weight: 700 !important;
            margin-bottom: 15px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
        }
        
        .welcome-text-custom {
            color: #718096 !important;
            margin: 0 !important;
            line-height: 1.5 !important;
            font-size: 1.1rem !important;
        }
        
        /* Responsive adjustments */
        @media (max-width: 1199.98px) {
            .feature-card-custom,
            .welcome-card-custom {
                padding: 25px 20px !important;
            }
        }
        
        @media (max-width: 991.98px) {
            .features-section-custom {
                padding: 60px 0 !important;
            }
            
            .welcome-title-custom {
                font-size: 1.3rem !important;
            }
        }
        
        @media (max-width: 767.98px) {
            .feature-card-custom,
            .welcome-card-custom {
                margin-bottom: 20px !important;
            }
            
            .welcome-title-custom {
                font-size: 1.25rem !important;
            }
            
            .welcome-text-custom {
                font-size: 1rem !important;
            }
        }
    @media (max-width: 768px) {
        .feature-card-new {
            margin-bottom: 1rem !important;
        }
        .welcome-heading-new {
            font-size: 1.5rem !important;
        }
    }

/* 2. Testimonials */
.testimonial-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    height: 100%;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 3rem;
    color: rgba(13, 110, 253, 0.1);
    position: absolute;
    top: -15px;
    left: -10px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

/* 3. Memory Graph Table */
.memory-graph .table {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #dee2e6;
}

.memory-graph th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    border-bottom-width: 2px;
}

.memory-graph td {
    font-weight: 500;
    vertical-align: middle;
}

/* 4. Fun Facts */
.fact-item {
    padding: 20px;
    text-align: center;
}

.fact-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.fact-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 5. Registration Form */
.registration-form {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.registration-form .form-control {
    padding: 10px 15px;
    border-radius: 4px;
}

.registration-form .btn {
    padding: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6. Course Cards */
.course-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.course-img {
    height: 200px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.course-body {
    padding: 20px;
    background: #fff;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.course-meta {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

/* 7. Events List */
.event-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.event-date {
    width: 70px;
    flex-shrink: 0;
    text-align: center;
    background: #0d6efd;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-right: 20px;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.event-details .event-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 8. Academics Grid */
.subject-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.subject-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 20px;
}

.subject-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* 9. Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.contact-info i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #0d6efd;
    font-size: 1.2rem;
}