@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --header-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --primary-color: #1A365D;
    /* Deep Navy from style.css */
    --secondary-color: #D4AF37;
    /* Muted Gold from style.css */
    --accent-red: #DC143C;
    --text-dark: #333;
    --text-white: #fff;
    --top-bar-bg: var(--primary-color);
    --top-bar-text: #fff;
    --border-color: #ddd;
}

/* SEO Utility: Visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Reset & Utils
   ========================================= */
body {
    font-family: var(--body-font);
    padding-top: 0 !important;
    /* Override legacy style */
}

.d-flex {
    display: flex;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.container {
    width: 95%;
    /* Full width feel */
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   1. Top Bar (Utility)
   ========================================= */
.new-top-bar {
    background-color: var(--primary-color);
    /* Navy */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    /* Balanced padding */
    font-size: 0.8rem;
    /* Readable small font */
    font-family: var(--header-font);
    color: var(--secondary-color);
    /* Gold */
}

.new-top-bar .container {
    display: flex;
    justify-content: space-between;
    /* Split Left and Right */
    align-items: center;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-link {
    text-decoration: none;
    color: var(--top-bar-text);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.top-link:hover {
    color: var(--primary-color);
}

.top-link i {
    color: var(--secondary-color);
}

/* Specific styling for social icons in the right section */
.top-right .top-link i {
    font-size: 1.1rem !important;
    /* Larger social icons */
    margin: 0 5px;
    /* Extra spacing */
}



/* =========================================
   2. Main Header (Sticky)
   ========================================= */
.new-header {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: var(--header-font);
    padding: 0;
    /* Removing padding to let nav fill height */
    height: 100px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.new-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 85px;
    width: auto;
}

/* Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
    /* Comfortable spacing between items */
    margin-left: 60px;
    /* Distinct gap from Logo */
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    /* Semi-Bold */
    font-size: 1rem;
    text-transform: capitalize;
    padding: 0 5px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Badges */
.badge {
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
    position: absolute;
    top: 15px;
    /* Adjust based on ease */
    right: -20px;
    line-height: 1;
}

.badge-new {
    background-color: #28a745;
    color: white;
}

.badge-blink {
    background-color: var(--accent-red);
    color: white;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* =========================================
   3. Mega Menu (Courses)
   ========================================= */
.mega-menu-trigger:hover .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    top: 100%;
    /* Sticks to bottom of header */
}

.mega-menu {
    position: absolute;
    top: 120%;
    /* Hidden slightly below */
    left: 0;
    width: 100vw;
    /* Full width relative to viewport if needed, or container */
    /* To make it full viewport width regardless of parent relative: */
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    display: none;
    /* Toggle via hover */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns: Class 8-10, NEET, JEE */
    gap: 40px;
    padding: 0 15px;
}

.mega-column h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-weight: 700;
}

.mega-column ul {
    list-style: none;
    padding: 0;
}

.mega-column li {
    margin-bottom: 10px;
}

.mega-column a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: transform 0.2s, color 0.2s;
    display: block;
}

.mega-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Inner highlight for consistency with Aakash */
.mega-column a i {
    margin-right: 8px;
    color: #ccc;
    font-size: 0.8rem;
}

.mega-column a:hover i {
    color: var(--secondary-color);
}

/* =========================================
   4. CTA Button (Right)
   ========================================= */
.btn-pill-cta {
    background-color: var(--accent-red);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    transition: all 0.3s ease;
}

.btn-pill-cta:hover {
    background-color: #b01030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* =========================================
   5. Mobile Header & Menu
   ========================================= */
/* =========================================
   5. Mobile Header & Menu
   ========================================= */
.mobile-hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    /* Stack text below icon */
    display: flex;
    flex-direction: column-reverse;
    /* Text is first in HTML, so reverse puts it below */
    align-items: center;
    gap: 2px;
}

.menu-text {
    font-size: 0.65rem;
    /* Even smaller for compact look */
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    /* Toggled */
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px;
    /* Hidden */
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-panel.active {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-menu {
    cursor: pointer;
    font-size: 1.2rem;
}

.mobile-menu-items {
    padding: 20px 0;
}

.mobile-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    font-family: var(--header-font);
}

.mobile-link:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

/* Accordion */
.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
    /* Ensure bg to capture clicks */
    position: relative;
    z-index: 1;
    /* Ensure stack */
}

.accordion-content {
    display: none;
    background: #f9f9f9;
}

.accordion-content.active {
    display: block;
}

.accordion-content a {
    padding-left: 40px;
    /* Indent sub-items */
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .mobile-hamburger {
        display: flex;
        /* Changed from block to flex */
    }

    /* Resize logo for mobile */
    .header-logo img {
        height: 55px;
    }

    .new-top-bar {
        display: none;
    }

    /* Fixed Header for Mobile */
    .new-header {
        height: 70px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Prevent content overlap */
    body {
        padding-top: 70px !important;
    }
}

@media (min-width: 992px) {
    .mobile-hamburger {
        display: none !important;
    }
}

/* Fix for small mobile screens - hide menu text to prevent clutter */
@media (max-width: 768px) {
    .menu-text {
        display: none;
    }

    .mobile-hamburger {
        flex-direction: row;
        gap: 0;
    }
}