/* ============================================
   Cambridge Group of Schools - Fixes & Enhancements
   Add this file AFTER style.css and gallery.css
   ============================================ */

/* ============================================
   1. NAVBAR FIX - Single Line on All Pages
   ============================================ */

/* Reset navbar for consistency */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--primary-dark);
    transition: all 0.3s ease;
}

.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header .navbar,
.header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 30px;
}

/* Logo styles - unified */
.header .logo,
.header .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.header .logo-icon {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .logo-icon span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.header .logo-text {
    display: flex;
    flex-direction: column;
}

.header .logo-main {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.header .logo-sub {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

/* Nav menu - single line */
.header .nav-menu,
.header .nav-menu ul,
.header .nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .nav-item {
    position: relative;
}

.header .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.header .nav-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Dropdown */
.header .nav-item.has-dropdown:hover .dropdown-menu,
.header .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.header .dropdown-menu li {
    list-style: none;
}

.header .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header .dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Nav actions / buttons */
.header .nav-actions,
.header .nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header .nav-actions .btn,
.header .nav-buttons .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Mobile toggle - hidden on desktop */
.header .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.header .nav-toggle span,
.header .nav-toggle i {
    color: var(--white);
}

/* ============================================
   2. CONTACT US BUTTON FIX - Always Visible
   ============================================ */

.btn-outline,
.btn-outline-white {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}

.btn-outline:hover,
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* CTA section buttons - on light background */
.cta-section .btn-outline,
.cta-content .btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
}

.cta-section .btn-outline:hover,
.cta-content .btn-outline:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* CTA section on dark background */
.cta-section {
    background: linear-gradient(135deg, #1a365d 0%, #0f2340 100%);
}

.cta-section .btn-white {
    background: #ffffff !important;
    color: #1a365d !important;
    border: none !important;
}

.cta-section .btn-white:hover {
    background: #f3f4f6 !important;
}

.cta-section .btn-outline-white {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}

.cta-section .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
}

/* ============================================
   3. TEACHING METHODOLOGY FIX - Visible Text
   ============================================ */

.methodology-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.methodology-section .section-tag {
    background: rgba(214, 158, 46, 0.2) !important;
    color: var(--secondary) !important;
}

.methodology-section .section-title {
    color: var(--white) !important;
}

.methodology-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

.method-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.method-number {
    color: var(--secondary) !important;
}

.method-content h4 {
    color: var(--white) !important;
}

.method-content p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   4. ABOUT SECTION - Fix Yellow Box (Experience Badge)
   For both index.html and about.html
   ============================================ */

/* Reset all image-stack related styles */
.about-images,
.about-intro-image {
    position: relative !important;
}

.image-stack {
    position: relative !important;
    display: block !important;
}

/* Main image container - IMPORTANT FIX */
.image-main {
    position: relative !important;
    border-radius: 20px !important;
    overflow: visible !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    background: transparent !important;
}

.image-main img {
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 20px !important;
    background: #e5e7eb !important;
}

/* Experience badge - small box positioned on the image */
.experience-badge {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    bottom: auto !important;
    background: #d69e2e !important;
    color: #1a365d !important;
    padding: 20px 25px !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.4) !important;
    z-index: 10 !important;
    width: auto !important;
    max-width: 130px !important;
    height: auto !important;
}

.image-main .experience-badge {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    bottom: auto !important;
}

.experience-badge .exp-number,
.exp-number {
    display: block !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #1a365d !important;
}

.experience-badge .exp-text,
.exp-text {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #1a365d !important;
    margin-top: 5px !important;
    display: block !important;
}

/* Secondary image */
.image-secondary {
    position: absolute !important;
    top: 50% !important;
    left: -40px !important;
    transform: translateY(-50%) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    border: 5px solid #fff !important;
    background: #e5e7eb !important;
}

.image-secondary img {
    width: 180px !important;
    height: 130px !important;
    object-fit: cover !important;
    display: block !important;
}

/* For about.html specific styles */
.about-intro-image .image-stack {
    position: relative !important;
}

.about-intro-image .main-image,
.image-stack .main-image {
    width: 100% !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: 550px !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    display: block !important;
    background: #e5e7eb !important;
}

.about-intro-image .secondary-image,
.image-stack .secondary-image {
    position: absolute !important;
    bottom: -30px !important;
    right: -30px !important;
    width: 200px !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    border: 5px solid #fff !important;
    display: block !important;
    background: #e5e7eb !important;
}

.about-intro-image .experience-badge {
    position: absolute !important;
    top: 30px !important;
    left: -20px !important;
    right: auto !important;
    bottom: auto !important;
    background: #d69e2e !important;
    color: #1a365d !important;
    padding: 20px 30px !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.4) !important;
    z-index: 10 !important;
    width: auto !important;
    max-width: 150px !important;
}

/* ============================================
   5. FLOATING ADMISSION BUBBLE
   ============================================ */

.admission-bubble {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    animation: bubblePulse 2s ease-in-out infinite;
}

.admission-bubble a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--primary-dark);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.4);
    transition: all 0.3s ease;
}

.admission-bubble a:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(214, 158, 46, 0.5);
}

.admission-bubble i {
    font-size: 1.1rem;
}

@keyframes bubblePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hide on mobile to avoid overlap with WhatsApp */
@media (max-width: 768px) {
    .admission-bubble {
        bottom: 160px;
        right: 20px;
    }
    
    .admission-bubble a {
        padding: 12px 18px;
        font-size: 0.8rem;
    }
    
    .admission-bubble a span {
        display: none;
    }
    
    .admission-bubble a i {
        margin: 0;
    }
}

/* ============================================
   6. SCROLLING BANNER STYLES
   ============================================ */

.announcement-bar {
    background: var(--secondary);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.announcement-bar .scroll-content {
    display: flex;
    animation: scrollText 20s linear infinite;
    white-space: nowrap;
}

.announcement-bar .scroll-item {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.announcement-bar .scroll-item i {
    color: var(--primary);
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   7. PAGE HERO FIX - Proper spacing with fixed header
   ============================================ */

.page-hero {
    padding-top: 80px;
}

/* ============================================
   8. MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 1200px) {
    .header .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    /* Show mobile toggle */
    .header .nav-toggle,
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        background: none;
        border: none;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle i {
        color: #ffffff;
        font-size: 1.5rem;
    }
    
    /* Mobile menu - HIDDEN by default */
    .header .nav-menu,
    .header .nav-list,
    .nav-menu,
    .nav-list {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #0f2340 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 100px 30px 30px !important;
        transition: right 0.3s ease !important;
        z-index: 999 !important;
        gap: 5px !important;
        overflow-y: auto !important;
        display: flex !important;
    }
    
    /* When menu is active/open */
    .header .nav-menu.active,
    .header .nav-list.active,
    .nav-menu.active,
    .nav-list.active,
    .nav-menu.show,
    .nav-list.show {
        right: 0 !important;
    }
    
    .header .nav-link,
    .nav-link {
        width: 100% !important;
        padding: 15px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        border-radius: 8px !important;
    }
    
    .header .nav-link:hover,
    .header .nav-link.active,
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    /* Mobile dropdown - HIDDEN by default */
    .header .dropdown-menu,
    .dropdown-menu {
        position: static !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        margin-top: 5px !important;
        margin-left: 15px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Show dropdown when parent is active/hovered */
    .nav-item.dropdown.active .dropdown-menu,
    .nav-item.has-dropdown.active .dropdown-menu,
    .nav-item.dropdown:focus-within .dropdown-menu,
    .nav-item.has-dropdown:focus-within .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 300px !important;
        padding: 10px !important;
    }
    
    .header .dropdown-menu a,
    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.7) !important;
        padding: 12px 15px !important;
        display: block !important;
    }
    
    .header .dropdown-menu a:hover,
    .dropdown-menu a:hover {
        color: #d69e2e !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    /* Hide text on admission button on mobile */
    .header .nav-actions .btn span,
    .header .nav-buttons .btn span,
    .nav-buttons .btn span {
        display: none !important;
    }
    
    .header .nav-actions .btn i,
    .header .nav-buttons .btn i,
    .nav-buttons .btn i {
        margin: 0 !important;
    }
    
    /* Nav close button */
    .nav-close {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #ffffff !important;
        font-size: 1.3rem !important;
        z-index: 1000 !important;
        border: none !important;
        transition: all 0.3s ease !important;
        list-style: none !important;
    }
    
    .nav-close:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: rotate(90deg) !important;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   9. FORM SUBMISSION STYLES
   ============================================ */

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.submit-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

/* ============================================
   10. GENERAL IMPROVEMENTS
   ============================================ */

/* Ensure body has padding for fixed header */
body {
    padding-top: 0;
}

/* Section spacing */
.section {
    padding: 100px 0;
}

/* Better image loading */
img {
    background-color: var(--gray-100);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* ============================================
   Marquee Seamless Loop Fix
   ============================================ */
.marquee-content {
    display: flex;
    gap: 0;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
.marquee-half {
    display: flex;
    gap: 60px;
    padding-right: 60px;
    flex-shrink: 0;
}

/* ============================================
   Events Nav Link — Standout with Stars
   ============================================ */
.nav-item-events {
    position: relative;
}
.nav-events-link {
    position: relative;
    color: #f59e0b !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.nav-events-link::before {
    content: '';
    position: absolute;
    inset: -5px -10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.1));
    border-radius: 8px;
    z-index: -1;
    animation: eventsGlow 2s ease-in-out infinite;
}
@keyframes eventsGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* Twinkling stars around the Events link */
.events-star {
    position: absolute;
    font-size: 0.4rem;
    color: #f59e0b;
    pointer-events: none;
    animation: starTwinkle 1.5s ease-in-out infinite;
}
.es-1 { top: -5px; left: -4px; font-size: 0.35rem; animation-delay: 0s; }
.es-2 { top: -7px; right: 8px; font-size: 0.3rem; animation-delay: 0.4s; }
.es-3 { bottom: -4px; right: -4px; font-size: 0.4rem; animation-delay: 0.8s; }
.es-4 { bottom: -6px; left: 10px; font-size: 0.28rem; animation-delay: 1.2s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.4) rotate(25deg); }
}

/* Scrolled nav — keep events visible */
.nav.scrolled .nav-events-link {
    color: #f59e0b !important;
}

/* Dark mode support */
[data-theme="dark"] .nav-events-link {
    color: #fbbf24 !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}
[data-theme="dark"] .nav-events-link::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(239, 68, 68, 0.12));
}
[data-theme="dark"] .events-star {
    color: #fbbf24;
}

/* Mobile nav — Events stands out */
@media (max-width: 768px) {
    .nav-events-link {
        font-size: 1.05rem !important;
    }
    .nav-events-link::before {
        inset: -6px -14px;
        border-radius: 10px;
    }
    .es-1 { top: -3px; left: -6px; }
    .es-2 { top: -5px; right: 14px; }
    .es-3 { bottom: -2px; right: -6px; }
    .es-4 { bottom: -5px; left: 16px; }
}


/* Hide old toggle injected by dark-mode.js */
.theme-toggle-btn { display: none !important; }

/* ============================================
   STUDENT WORKS NAV — Unique Cyan Code Style
   ============================================ */
.nav-item-works {
    position: relative;
}
.nav-works-link {
    position: relative;
    color: #67e8f9 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.nav-works-link::before {
    content: '';
    position: absolute;
    inset: -5px -10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.1));
    border-radius: 8px;
    z-index: -1;
    animation: worksGlow 2.5s ease-in-out infinite;
}
@keyframes worksGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Floating code bracket icons around link */
.works-icon {
    font-size: 0.45rem;
    color: #67e8f9;
    position: absolute;
    pointer-events: none;
    animation: worksFloat 2s ease-in-out infinite;
}
.wi-1 { top: -4px; left: 2px; animation-delay: 0s; }
.wi-2 { top: -5px; right: 10px; animation-delay: 0.5s; }
.wi-3 { bottom: -3px; right: 2px; animation-delay: 1s; }
.wi-4 { bottom: -5px; left: 12px; animation-delay: 1.5s; }
@keyframes worksFloat {
    0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.8); }
    50% { opacity: 1; transform: translateY(-2px) scale(1.1); }
}

/* Scrolled header */
.header.scrolled .nav-works-link,
.header.header-scrolled .nav-works-link {
    color: #0891b2 !important;
}
.header.scrolled .nav-works-link::before,
.header.header-scrolled .nav-works-link::before {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(59, 130, 246, 0.08));
}
.header.scrolled .works-icon,
.header.header-scrolled .works-icon {
    color: #0891b2;
}

/* Dark mode */
[data-theme="dark"] .nav-works-link {
    color: #67e8f9 !important;
    text-shadow: 0 0 14px rgba(103, 232, 249, 0.4);
}
[data-theme="dark"] .nav-works-link::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.12));
}
[data-theme="dark"] .works-icon {
    color: #67e8f9;
}

/* Mobile nav — Student Works stands out */
@media (max-width: 768px) {
    .nav-works-link {
        font-size: 1.05rem !important;
    }
    .nav-works-link::before {
        inset: -6px -14px;
        border-radius: 10px;
    }
    .wi-1 { top: -2px; left: -2px; }
    .wi-2 { top: -3px; right: 14px; }
    .wi-3 { bottom: -1px; right: -2px; }
    .wi-4 { bottom: -3px; left: 16px; }
}


/* =============================================
   ANIMATED DAY / NIGHT TOGGLE
   ============================================= */
.dn-toggle {
    width: 48px;
    height: 24px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: box-shadow 0.5s ease, transform 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 180, 50, 0.3);
}
.dn-toggle:hover {
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(255, 180, 50, 0.5);
}

/* Scene container */
.dn-scene {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(180deg, #4a90d9 0%, #87CEEB 40%, #fdcb6e 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.6s ease;
}

/* === STARS === */
.dn-stars {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease 0.2s;
    opacity: 0;
}
.dn-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: dnStarTwinkle 1.5s ease-in-out infinite alternate;
}
.dn-stars span:nth-child(1) { top: 4px; left: 26px; animation-delay: 0s; }
.dn-stars span:nth-child(2) { top: 8px; left: 34px; animation-delay: 0.3s; width: 1.5px; height: 1.5px; }
.dn-stars span:nth-child(3) { top: 3px; left: 40px; animation-delay: 0.6s; }
.dn-stars span:nth-child(4) { top: 12px; left: 30px; animation-delay: 0.2s; width: 1px; height: 1px; }
.dn-stars span:nth-child(5) { top: 6px; left: 22px; animation-delay: 0.8s; width: 1.5px; height: 1.5px; }
.dn-stars span:nth-child(6) { top: 16px; left: 36px; animation-delay: 0.4s; width: 1px; height: 1px; }
.dn-stars span:nth-child(7) { top: 5px; left: 43px; animation-delay: 1s; }
.dn-stars span:nth-child(8) { top: 14px; left: 42px; animation-delay: 0.1s; width: 1.5px; height: 1.5px; }
.dn-stars span:nth-child(9) { top: 10px; left: 28px; animation-delay: 0.7s; width: 1px; height: 1px; }
.dn-stars span:nth-child(10) { top: 18px; left: 33px; animation-delay: 0.5s; }

@keyframes dnStarTwinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.3); }
}

/* === CLOUDS === */
.dn-clouds {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.dn-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
}
.dn-cloud.c1 {
    width: 14px;
    height: 4px;
    top: 6px;
    left: 22px;
    animation: dnCloudDrift 4s ease-in-out infinite alternate;
}
.dn-cloud.c1::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: -4px;
    left: 3px;
}
.dn-cloud.c2 {
    width: 10px;
    height: 3px;
    top: 14px;
    left: 28px;
    animation: dnCloudDrift 5s ease-in-out infinite alternate-reverse;
}
.dn-cloud.c2::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: -3px;
    left: 2px;
}

@keyframes dnCloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(6px); }
}

/* === KNOB (Sun/Moon) === */
.dn-knob {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    position: absolute;
    top: 3.5px;
    left: 4px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    box-shadow:
        0 0 8px rgba(255, 200, 0, 0.6),
        0 0 20px rgba(255, 165, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.68, -0.3, 0.32, 1.3);
    z-index: 5;
}

/* Sun rays effect */
.dn-knob::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.3) 0%, transparent 70%);
    animation: dnSunPulse 2s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

@keyframes dnSunPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Moon craters (hidden in day) */
.dn-crater {
    position: absolute;
    border-radius: 50%;
    background: rgba(180, 180, 200, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}
.dn-crater.cr1 { width: 4px; height: 4px; top: 3px; left: 9px; }
.dn-crater.cr2 { width: 2.5px; height: 2.5px; top: 9px; left: 4px; }
.dn-crater.cr3 { width: 3px; height: 3px; top: 8px; left: 10px; }


/* =============================================
   NIGHT MODE — when .dn-night is added
   ============================================= */
.dn-toggle.dn-night .dn-scene {
    background: linear-gradient(180deg, #0c1445 0%, #1a237e 50%, #283593 100%);
}

.dn-toggle.dn-night .dn-stars {
    opacity: 1;
}

.dn-toggle.dn-night .dn-clouds {
    opacity: 0;
    transform: translateX(-20px);
}

.dn-toggle.dn-night .dn-knob {
    left: 27px;
    background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #d4d4d4 100%);
    box-shadow:
        0 0 8px rgba(200, 200, 255, 0.4),
        0 0 20px rgba(150, 150, 200, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.dn-toggle.dn-night .dn-knob::after {
    opacity: 0;
}

.dn-toggle.dn-night .dn-crater {
    opacity: 1;
}

.dn-toggle.dn-night {
    box-shadow: 0 0 8px rgba(100, 100, 200, 0.3);
}
.dn-toggle.dn-night:hover {
    box-shadow: 0 0 15px rgba(100, 100, 200, 0.5);
}


/* =============================================
   GRAND HERO — Cambridge Group of Schools
   ============================================= */
.grand-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #060d1a;
}

/* ---------- Background ---------- */
.gh-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.gh-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(214, 158, 46, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(15, 35, 64, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(26, 54, 93, 0.4) 0%, transparent 60%),
        linear-gradient(180deg, #060d1a 0%, #0f2340 40%, #1a365d 70%, #0f2340 100%);
}

/* Floating gold particles */
.gh-particles {
    position: absolute;
    inset: 0;
}
.gh-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #d69e2e, transparent);
    border-radius: 50%;
    animation: ghFloat 6s ease-in-out infinite;
}
.p1 { top: 15%; left: 10%; animation-duration: 7s; animation-delay: 0s; width: 3px; height: 3px; }
.p2 { top: 25%; right: 15%; animation-duration: 8s; animation-delay: 1s; width: 5px; height: 5px; }
.p3 { top: 60%; left: 20%; animation-duration: 6s; animation-delay: 2s; }
.p4 { top: 70%; right: 25%; animation-duration: 9s; animation-delay: 0.5s; width: 3px; height: 3px; }
.p5 { top: 40%; left: 5%; animation-duration: 7s; animation-delay: 3s; width: 6px; height: 6px; }
.p6 { top: 80%; left: 60%; animation-duration: 8s; animation-delay: 1.5s; }
.p7 { top: 10%; right: 30%; animation-duration: 6s; animation-delay: 4s; width: 3px; height: 3px; }
.p8 { top: 50%; right: 8%; animation-duration: 10s; animation-delay: 2s; width: 5px; height: 5px; }

@keyframes ghFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
    50% { transform: translateY(-15px) scale(1.2); opacity: 1; }
    75% { transform: translateY(-40px) scale(0.8); opacity: 0.5; }
}

/* Subtle light rays */
.gh-light-rays {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.gh-ray {
    position: absolute;
    top: -20%;
    width: 2px;
    height: 140%;
    background: linear-gradient(180deg, transparent, rgba(214, 158, 46, 0.06), transparent);
    transform: rotate(15deg);
    animation: ghRayShift 12s ease-in-out infinite;
}
.r1 { left: 25%; animation-delay: 0s; width: 3px; }
.r2 { left: 50%; animation-delay: 4s; }
.r3 { left: 75%; animation-delay: 8s; width: 3px; }

@keyframes ghRayShift {
    0%, 100% { opacity: 0; transform: rotate(15deg) translateX(0); }
    50% { opacity: 1; transform: rotate(15deg) translateX(40px); }
}

/* ---------- Content ---------- */
.gh-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 100px 20px 40px;
}

/* Emblem / Crest — Real Logo */
.gh-emblem {
    position: relative;
    margin-bottom: 10px;
}
.gh-emblem-ring {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: ghEmblemPulse 4s ease-in-out infinite;
}
.gh-logo-img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    background: transparent !important;
}
.gh-emblem-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 158, 46, 0.15) 0%, transparent 70%);
    animation: ghGlow 3s ease-in-out infinite;
}

/* Navbar logo image */
.nav-logo-img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    background: transparent !important;
}

/* Footer logo image */
.footer-logo-img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    background: transparent !important;
}

@keyframes ghEmblemPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@keyframes ghGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Gold line accents */
.gh-line-accent {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 300px;
    max-width: 80vw;
}
.gh-line-accent span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 158, 46, 0.5), transparent);
}
.gh-line-accent.left span {
    animation: ghLineExpand 2s ease-out 0.5s both;
}
.gh-line-accent.right span {
    animation: ghLineExpand 2s ease-out 1.5s both;
}

@keyframes ghLineExpand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* The big title */
.gh-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1;
}

.gh-word-cambridge {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 6px;
    color: #f6e27a;
    animation: ghTitleReveal 1.2s ease-out 0.3s both;
    text-transform: uppercase;
}
/* Crisp metallic gradient — NO filter, NO drop-shadow */
@supports (-webkit-background-clip: text) {
    .gh-word-cambridge {
        background: linear-gradient(
            180deg,
            #fff8db 0%,
            #f6e27a 15%,
            #d69e2e 35%,
            #b7791f 50%,
            #d69e2e 65%,
            #f6e27a 85%,
            #fff8db 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.gh-word-group {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    animation: ghSubReveal 1.2s ease-out 0.8s both;
}

@keyframes ghTitleReveal {
    from { transform: translateY(20px) scale(0.97); letter-spacing: 20px; }
    to { transform: translateY(0) scale(1); letter-spacing: 6px; }
}
@keyframes ghSubReveal {
    from { transform: translateY(15px); letter-spacing: 25px; }
    to { transform: translateY(0); letter-spacing: 12px; }
}

/* Tagline */
.gh-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(214, 158, 46, 0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
}


/* =============================================
   GOLDEN SPOTLIGHTS around Cambridge text
   ============================================= */
.gh-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gh-spotlights {
    position: absolute;
    inset: -80px -120px;
    pointer-events: none;
    z-index: 0;
}
.gh-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: ghSpotPulse 4s ease-in-out infinite;
}
.gh-spot.s1 {
    width: 200px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(246, 226, 122, 0.12) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.gh-spot.s2 {
    width: 250px;
    height: 140px;
    background: radial-gradient(ellipse, rgba(214, 158, 46, 0.1) 0%, transparent 70%);
    top: 20%;
    right: 5%;
    animation-delay: 1.3s;
}
.gh-spot.s3 {
    width: 180px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(246, 226, 122, 0.08) 0%, transparent 70%);
    bottom: 5%;
    left: 30%;
    animation-delay: 2.5s;
}

@keyframes ghSpotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}


/* =============================================
   GOLDEN FLOATING PARTICLES near title
   ============================================= */
.gh-title-particles {
    position: absolute;
    inset: -40px -80px;
    pointer-events: none;
    z-index: 1;
}
.tp {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #d69e2e;
    border-radius: 50%;
    opacity: 0;
    animation: tpRise 3s ease-in-out infinite;
}
.tp.t1  { left: 5%;   bottom: 10%;  animation-delay: 0s;    width: 2px; height: 2px; }
.tp.t2  { left: 15%;  bottom: 20%;  animation-delay: 0.4s;  width: 3px; height: 3px; }
.tp.t3  { left: 25%;  bottom: 5%;   animation-delay: 1.1s;  width: 2px; height: 2px; }
.tp.t4  { left: 40%;  bottom: 15%;  animation-delay: 0.7s;  width: 4px; height: 4px; background: #f6e27a; }
.tp.t5  { left: 55%;  bottom: 8%;   animation-delay: 1.5s;  width: 2px; height: 2px; }
.tp.t6  { left: 65%;  bottom: 18%;  animation-delay: 0.2s;  width: 3px; height: 3px; }
.tp.t7  { left: 78%;  bottom: 12%;  animation-delay: 1.8s;  width: 2px; height: 2px; }
.tp.t8  { left: 88%;  bottom: 6%;   animation-delay: 0.9s;  width: 3px; height: 3px; background: #f6e27a; }
.tp.t9  { left: 10%;  bottom: 30%;  animation-delay: 2.2s;  width: 2px; height: 2px; }
.tp.t10 { left: 48%;  bottom: 25%;  animation-delay: 1.3s;  width: 2px; height: 2px; }
.tp.t11 { left: 70%;  bottom: 28%;  animation-delay: 0.6s;  width: 3px; height: 3px; background: #f6e27a; }
.tp.t12 { left: 92%;  bottom: 22%;  animation-delay: 2.0s;  width: 2px; height: 2px; }

@keyframes tpRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.2);
    }
}

/* Shimmer sweep on Cambridge text */
.gh-word-cambridge {
    position: relative;
    z-index: 2;
}
.gh-word-cambridge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 100%
    );
    animation: ghShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes ghShimmer {
    0% { left: -100%; }
    40%, 100% { left: 200%; }
}

/* CTA Buttons */
.gh-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.gh-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}
.gh-btn-gold {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    color: #0f2340;
    box-shadow: 0 4px 20px rgba(214, 158, 46, 0.3);
}
.gh-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(214, 158, 46, 0.5);
}
.gh-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}
.gh-btn-outline:hover {
    border-color: rgba(214, 158, 46, 0.5);
    color: #d69e2e;
    transform: translateY(-3px);
}

@keyframes ghFadeUp {
    from { transform: translateY(15px); }
    to { transform: translateY(0); }
}

/* ---------- Marquee inside grand hero ---------- */
.gh-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(214, 158, 46, 0.95);
    padding: 14px 0;
    overflow: hidden;
    z-index: 3;
}
.gh-marquee .marquee-item {
    color: #0f2340;
}

/* ---------- Scroll indicator ---------- */
.gh-scroll-hint {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: ghFadeUp 1s ease-out 2s both;
}
.gh-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.gh-wheel {
    width: 3px;
    height: 8px;
    background: rgba(214, 158, 46, 0.7);
    border-radius: 3px;
    animation: ghMouseScroll 2s ease-in-out infinite;
}
@keyframes ghMouseScroll {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
}

/* ---------- Remove min-height from old hero since it's now section 2 ---------- */
.hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ==============================================
   CRITICAL FIX: Force hero section always visible
   AOS / main.js hides elements on scroll — override
   ============================================== */
.hero .hero-content,
.hero .hero-text,
.hero .hero-badge,
.hero .hero-title,
.hero .hero-description,
.hero .hero-stats,
.hero .hero-buttons,
.hero .hero-visual,
.hero .hero-image-container,
.hero .hero-image-frame,
.hero .floating-card {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
}
/* Also override [data-aos] if AOS re-adds it */
.hero [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Grand hero title — remove animation dependency for visibility */
.gh-word-cambridge,
.gh-word-group,
.gh-tagline,
.gh-cta,
.gh-line-accent span {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .gh-emblem-ring { width: 160px; height: 160px; }
    .gh-logo-img { width: 145px; height: 145px; }
    .gh-word-group { letter-spacing: 6px; }
    .gh-tagline { letter-spacing: 2px; font-size: 0.75rem; }
    .gh-btn { padding: 12px 28px; font-size: 0.85rem; }
    .gh-content { padding: 90px 16px 30px; gap: 24px; }
}

@media (max-width: 480px) {
    .gh-emblem-ring { width: 130px; height: 130px; }
    .gh-logo-img { width: 120px; height: 120px; }
    .gh-word-group { letter-spacing: 4px; }
    .gh-cta { flex-direction: column; align-items: center; }
    .gh-line-accent { width: 200px; }
}

/* Preloader logo image */
.preloader-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: ghEmblemPulse 1.5s ease-in-out infinite;
}
/* Kill ALL gold/colored backgrounds from style.css on logo containers */
.school-logo-loader,
.school-logo-loader * {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.nav-logo .logo-icon,
.footer-logo .logo-icon,
.nav-logo img,
.footer-logo img {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
}
/* Grand hero emblem — fully transparent */
.gh-emblem,
.gh-emblem-ring,
.gh-emblem-ring * {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}
/* Re-apply glow ONLY on the glow element */
.gh-emblem-glow {
    background: radial-gradient(circle, rgba(214, 158, 46, 0.15) 0%, transparent 70%) !important;
    border-radius: 50% !important;
}

/* Dark mode — grand hero is already dark, just tweak old hero */
[data-theme="dark"] .grand-hero {
    background: #030810;
}
[data-theme="dark"] .gh-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(214, 158, 46, 0.06) 0%, transparent 70%),
        linear-gradient(180deg, #030810 0%, #0a1628 40%, #0f2340 70%, #0a1628 100%);
}


/* =============================================
   DARK MODE — Section Visibility Fixes
   ============================================= */

/* Background fix for sections missing from mobile-dark.css */
[data-theme="dark"] .why-us-section,
[data-theme="dark"] .testimonials-section {
    background: #0b0f19 !important;
}

[data-theme="dark"] .testimonials-bg {
    background: #0b0f19 !important;
    opacity: 1 !important;
}

/* All section titles — force white in dark mode */
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .why-us-content h2,
[data-theme="dark"] .why-us-content .section-title {
    color: #f0f0f5 !important;
}

/* Highlight text (gold words like "Different", "Say") */
[data-theme="dark"] .section-title .highlight,
[data-theme="dark"] h2 .highlight {
    color: #d69e2e !important;
}

/* Section subtitles and descriptions */
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .section-header p,
[data-theme="dark"] .why-us-text,
[data-theme="dark"] .why-us-content p {
    color: #8b949e !important;
}

/* Section tags ("WHY CHOOSE US", "TESTIMONIALS") */
[data-theme="dark"] .section-tag,
[data-theme="dark"] .section-tag .tag-text,
[data-theme="dark"] .tag-text {
    color: #d69e2e !important;
}
[data-theme="dark"] .tag-line {
    background: rgba(214, 158, 46, 0.4) !important;
}

/* Why Us feature items */
[data-theme="dark"] .why-us-features h4,
[data-theme="dark"] .feature-title {
    color: #e6e6ea !important;
}
[data-theme="dark"] .why-us-features p,
[data-theme="dark"] .feature-desc {
    color: #8b949e !important;
}
[data-theme="dark"] .feature-icon,
[data-theme="dark"] .why-us-features .feature-icon {
    background: rgba(214, 158, 46, 0.1) !important;
    color: #d69e2e !important;
}

/* Testimonial cards */
[data-theme="dark"] .testimonial-card {
    background: #161b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .testimonial-card p {
    color: #c9d1d9 !important;
}
[data-theme="dark"] .testimonial-name,
[data-theme="dark"] .testimonial-card h4 {
    color: #f0f0f5 !important;
}
[data-theme="dark"] .testimonial-role,
[data-theme="dark"] .testimonial-card .parent-role {
    color: #8b949e !important;
}

/* Video container in why-us */
[data-theme="dark"] .video-caption {
    color: #c9d1d9 !important;
}

/* CTA section */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%) !important;
}


/* =============================================
   FOOTER — Center copyright
   ============================================= */
.footer-bottom .container {
    justify-content: center !important;
    text-align: center;
}


/* =============================================
   MARQUEE — Unique icon colors
   ============================================= */
.mq-icon { margin-right: 4px; }
.mq-gold  { color: #d69e2e !important; }
.mq-green { color: #38a169 !important; }
.mq-amber { color: #ed8936 !important; }
.mq-red   { color: #e53e3e !important; }


/* =============================================
   DARK MODE — Marquee text readable
   ============================================= */
[data-theme="dark"] .gh-marquee {
    background: linear-gradient(90deg, #1a365d, #0f2340, #1a365d) !important;
}
[data-theme="dark"] .gh-marquee .marquee-item {
    color: #e2e8f0 !important;
}
[data-theme="dark"] .gh-marquee .mq-gold  { color: #f6e27a !important; }
[data-theme="dark"] .gh-marquee .mq-green { color: #68d391 !important; }
[data-theme="dark"] .gh-marquee .mq-amber { color: #fbd38d !important; }
[data-theme="dark"] .gh-marquee .mq-red   { color: #fc8181 !important; }
