/* =========================================================
   FREYZA ACADEMY MEGA MENU
   ========================================================= */

.academy-nav {
    position: static;
    padding: 10px 0px;
    border-bottom: 1px solid rgba(212, 168, 75, 0.08);
}

/* ---------------------------------------------------------
   Mega Menu Container
   --------------------------------------------------------- */

/* .academy-mega-menu {
    position: absolute !important;

    top: 100% !important;
    left: 50%;

    transform: translateX(-50%);

    width: min(980px, calc(100vw - 40px));

    margin: 0 !important;
    padding: 0 !important;

    background: #100d09;

    border: 1px solid rgba(212, 168, 75, 0.28);

    border-top: 2px solid rgba(212, 168, 75, 0.65);

    border-radius: 0 0 4px 4px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55),
        0 8px 25px rgba(0, 0, 0, 0.35);

    overflow: hidden;

    min-width: 0;
} */

.academy-mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 40px));
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

.academy-mega-menu {
    background: linear-gradient(
        135deg,
        rgba(8, 7, 5, 0.94),
        rgba(12, 10, 8, 0.91)
    );

    backdrop-filter: blur(24px) saturate(115%);
    -webkit-backdrop-filter: blur(24px) saturate(115%);

    border: 1px solid rgba(212, 168, 75, 0.24);

    border-top: 2px solid rgba(212, 168, 75, 0.65);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 8px 25px rgba(0, 0, 0, 0.5);

    border-radius: 0 0 6px 6px;

    overflow: hidden;
}

/* ---------------------------------------------------------
   Main Content
   --------------------------------------------------------- */

.academy-mega-inner {
    display: grid;

    grid-template-columns:
        1.15fr
        1fr
        1fr;

    gap: 0;

    padding: 30px 30px 26px;
}

/* ---------------------------------------------------------
   Intro
   --------------------------------------------------------- */

.academy-mega-intro {
    padding-right: 35px;

    border-right: 1px solid rgba(212, 168, 75, 0.14);
}

.academy-mega-label {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.2px;

    color: #d4a84b;
}

.academy-mega-intro h3 {
    margin: 0 0 14px;

    font-family: var(--font-heading, serif);

    font-size: 30px;

    line-height: 1.15;

    font-weight: 500;

    color: #fff;
}

.academy-mega-intro h3 span {
    color: #d4a84b;
}

.academy-mega-intro p {
    margin: 0 0 22px;

    max-width: 300px;

    font-size: 13px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.62);
}

/* ---------------------------------------------------------
   Primary Button
   --------------------------------------------------------- */

.academy-mega-primary-btn {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 10px 16px;

    background: #d4a84b;

    color: #100d09;

    border: 1px solid #d4a84b;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-decoration: none;

    transition: all 0.3s ease;
}

.academy-mega-primary-btn:hover {
    background: transparent;

    color: #d4a84b;
}

/* ---------------------------------------------------------
   Columns
   --------------------------------------------------------- */

.academy-mega-column {
    padding-left: 28px;
}

.academy-mega-heading {
    display: block;

    margin-bottom: 15px;
    margin-top: 10px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.42);
}

/* ---------------------------------------------------------
   Menu Links
   --------------------------------------------------------- */

.academy-mega-link {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 9px 8px;

    margin-bottom: 3px;

    color: #fff;

    text-decoration: none;

    border: 1px solid transparent;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.academy-mega-link:hover {
    background: rgba(212, 168, 75, 0.07);

    border-color: rgba(212, 168, 75, 0.12);

    transform: translateX(3px);
}

.academy-mega-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(212, 168, 75, 0.08);

    border: 1px solid rgba(212, 168, 75, 0.16);

    color: #d4a84b;

    font-size: 14px;
}

.academy-mega-link strong {
    display: block;

    margin-bottom: 2px;

    font-size: 12px;

    font-weight: 600;

    color: #fff;
}

.academy-mega-link small {
    display: block;

    font-size: 10px;

    color: rgba(255, 255, 255, 0.42);
}

/* ---------------------------------------------------------
   Featured Course
   --------------------------------------------------------- */

.academy-mega-feature {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 16px 30px;

    background: linear-gradient(
        90deg,
        rgba(212, 168, 75, 0.09),
        rgba(212, 168, 75, 0.025)
    );

    border-top: 1px solid rgba(212, 168, 75, 0.13);

    border-bottom: 1px solid rgba(212, 168, 75, 0.13);
}

.academy-feature-content {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.academy-feature-label {
    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #d4a84b;
}

.academy-feature-content strong {
    font-size: 13px;

    color: #fff;
}

.academy-feature-description {
    font-size: 11px;

    color: rgba(255, 255, 255, 0.48);
}

.academy-feature-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #d4a84b;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;
}

.academy-feature-link:hover {
    color: #fff;
}

/* ---------------------------------------------------------
   Footer CTA
   --------------------------------------------------------- */

.academy-mega-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px 30px;
}

.academy-mega-footer strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;

    color: #fff;
}

.academy-mega-footer span {
    font-size: 10px;

    color: rgba(255, 255, 255, 0.42);
}

.academy-apply-btn {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 20px;

    background: transparent;

    border: 1px solid #d4a84b;

    color: #d4a84b;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    text-decoration: none;

    transition: all 0.3s ease;
}

.academy-apply-btn:hover {
    background: #d4a84b;

    color: #100d09;
}

/* =========================================================
   ACADEMY MEGA MENU — DESKTOP POSITIONING
   ========================================================= */

@media (min-width: 992px) {
    .academy-nav {
        position: static;
    }

    .academy-nav .academy-mega-menu {
        position: absolute !important;

        top: 100% !important;
        left: 50% !important;
        right: auto !important;

        width: min(980px, calc(100vw - 40px));

        margin: 0 !important;
        padding: 0 !important;

        transform: translateX(-50%) translateY(10px) !important;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .academy-nav .academy-mega-menu.show {
        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) translateY(0) !important;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* =========================================================
   ACADEMY MEGA MENU — TABLET & MOBILE
   ========================================================= */

/* =========================================================
   FREYZA MOBILE NAVBAR
   ========================================================= */

@media (max-width: 991.98px) {
    /* ---------------------------------------------
       Navbar scroll container
       --------------------------------------------- */

    .navbar-collapse {
        max-height: calc(100dvh - 80px);

        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;

        overscroll-behavior: contain;

        touch-action: pan-y;

        scrollbar-width: thin;
    }

    /* ---------------------------------------------
       Academy Mega Menu
       --------------------------------------------- */

    .academy-nav {
        position: relative !important;
        width: 100%;
    }

    .academy-nav .academy-mega-menu,
    .academy-nav .academy-mega-menu.show {
        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin: 10px 0px !important;
        padding: 0 !important;

        transform: none !important;

        max-height: none !important;

        overflow: visible !important;

        box-shadow: none;
    }

    /* ---------------------------------------------
       Mega Menu Content
       --------------------------------------------- */

    .academy-mega-inner {
        display: block !important;

        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        padding: 20px !important;
    }

    /* ---------------------------------------------
       Columns
       --------------------------------------------- */

    .academy-mega-column {
        width: 100% !important;

        padding: 0 !important;

        margin-bottom: 22px;
    }

    /* ---------------------------------------------
       Prevent page scroll
       --------------------------------------------- */

    body.navbar-open {
        overflow: hidden;
    }
}
