/* Shared partials compatibility; homepage styles remain authoritative. */
.site-header { position: sticky; top: 0; z-index: 1000; }
.site-header .nav-menu a[aria-current="page"] { color: #21d4ee; }
.has-dropdown { position: relative; }
.has-dropdown .dropdown-menu { display: none; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu { display: block; }
.mobile-menu { display: none; }
.mobile-menu.active, .mobile-menu.is-open { display: block; }
.mobile-overlay.active { display: block; }
html { scroll-padding-top: 90px; }
@media (max-width: 768px) { html { scroll-padding-top: 74px; } }

/* =========================================
   NOVA EDUSPACE — MOBILE NAVIGATION FIX
   ========================================= */

/* Desktop: hide mobile-only elements */
.mobile-toggle,
.mobile-menu,
.mobile-overlay {
    display: none;
}

@media (max-width: 991px) {

    /* Mobile menu button */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        background: rgba(15, 25, 55, 0.75);
        cursor: pointer;
        position: relative;
        z-index: 10002;
    }

    .mobile-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #ffffff;
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Animate hamburger into X */
    .mobile-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide desktop navigation */
    .site-header .nav-menu {
        display: none !important;
    }

    /* Mobile navigation panel */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(82%, 360px);
        height: 100vh;
        height: 100dvh;
        padding: 100px 28px 35px;
        background: #071329;
        border-left: 1px solid rgba(65, 190, 255, 0.25);
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.4);
        z-index: 10001;
        overflow-y: auto;

        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.35s ease,
            visibility 0.35s ease;
    }

    .mobile-menu.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu li {
        width: 100%;
    }

    .mobile-menu a {
        display: block;
        width: 100%;
        padding: 15px 16px;
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        border: 1px solid transparent;
        border-radius: 10px;
        transition: background 0.25s ease, color 0.25s ease;
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus-visible {
        color: #35d9ff;
        background: rgba(35, 160, 255, 0.12);
        border-color: rgba(53, 217, 255, 0.2);
        outline: none;
    }

    /* Dark overlay behind menu */
    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 5, 18, 0.72);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Prevent background scrolling while menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }

    /* Keep header above page content */
    .site-header {
        z-index: 10002;
    }

    .site-header .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-header .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: min(88%, 340px);
        padding-left: 22px;
        padding-right: 22px;
    }

    .site-header .header-actions .btn {
        font-size: 12px;
        padding: 10px 13px;
    }
}


/* =========================================
   NOVA EDUSPACE — HERO ONLY HEADER
   ========================================= */

.site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10002;
    background: transparent !important;
    box-shadow: none !important;
}

/* Keep hero content behind the transparent header */
.hero-section {
    position: relative;
}

/* Mobile header remains over the hero */
@media (max-width: 991px) {
    .site-header {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
    }
}
