/* ==========================================
TOP BAR
========================================== */

.top-bar{

background:var(--secondary);

color:#fff;

font-size:.9rem;

}

.top-bar-wrapper{

display:flex;

justify-content:space-between;

align-items:center;

height:42px;

}

.top-left,
.top-right{

display:flex;

align-items:center;

gap:12px;

}

.top-right{

gap:24px;

}

.top-right a{

display:flex;

align-items:center;

gap:6px;

transition:var(--transition);

}

.top-right a:hover{

/* color:var(--accent); */
color:var(--primary-light);

}

.material-symbols-outlined{

font-size:18px;

}

/* ==========================================
HEADER
========================================== */

/* ==========================================
   HEADER
========================================== */

.header {

    position: absolute;

    /* allow an adjustable top offset when a top-bar exists */
    top: var(--topbar-height, 0);
    left: 0;

    width: 100%;

    z-index: 999;

    /* Transparent over hero */
    background: transparent;

    backdrop-filter: none;

    box-shadow: none;

    transition:
        background .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease;
}


/* ==========================================
   HEADER AFTER SCROLL
========================================== */

.header.scrolled {

    position: fixed;

    /* stick to the very top when scrolled */
    top: 0;
    left: 0;

    background: rgba(255,255,255,.97);

    backdrop-filter: blur(14px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);
}


/* ==========================================
   NAVBAR
========================================== */

.navbar {

    height: 84px;

    transition:
        height .35s ease;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.header.scrolled .navbar {

    height: 72px;

}


/* ==========================================
   LOGO
========================================== */

.logo img {

    height: 56px;

    width: auto;

}


/* ==========================================
   NAVIGATION
========================================== */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 38px;

}


.nav-menu li {

    position: relative;

}


.nav-menu a {

    position: relative;

    display: flex;

    align-items: center;

    gap: 4px;

    font-weight: 500;

    transition:
        color .35s ease,
        transform .35s ease;

}


/* ==========================================
   NAV LINK UNDERLINE
========================================== */

.nav-menu a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background: var(--primary);

    transition:
        width .35s ease;

}


.nav-menu a:hover::after,
.nav-menu .active::after {

    width: 100%;

}


/* ==========================================
   NAV LINK HOVER
========================================== */

.nav-menu a:hover {

    color: var(--primary);

    transform: translateY(-2px);

}


.nav-menu .active {

    color: var(--primary);

}

/* ======================

Dropdown

====================== */
/* =========================================================
   MODERN COURSES DROPDOWN
   ========================================================= */

.dropdown {

    position: relative;
}


/* Invisible bridge over the visual gap between the trigger
   and the floating panel. Without this, moving the mouse
   from "Courses" down into the menu crosses empty space,
   :hover breaks, and the panel closes before you can click
   anything inside it. */

.dropdown::after {

    content: "";

    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    width: 300px;
    height: 18px;

    z-index: 99;
}


/* =========================================================
   TRIGGER ARROW — rotates open on hover
   ========================================================= */

.dropdown-arrow {

    display: inline-flex !important;

    font-size: 20px !important;

    transition: transform .25s ease !important;
}

.dropdown:hover .dropdown-arrow {

    transform: rotate(180deg);
}


/* =========================================================
   PANEL

   Card-style, floats below the trigger, hidden until hover.
   ========================================================= */

.dropdown-menu {

    position: absolute;

    top: calc(100% + 18px);
    left: 50%;

    transform: translate(-50%, 8px);

    z-index: 100;

    width: 300px;

    margin: 0;
    padding: 10px;

    list-style: none;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 24px 48px rgba(16, 27, 52, .14),
        0 4px 12px rgba(16, 27, 52, .06);

    border: 1px solid rgba(16, 27, 52, .06);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}


/* Little arrow / caret pointing up at the trigger */

.dropdown-menu::before {

    content: "";

    position: absolute;

    top: -6px;
    left: 50%;

    transform: translateX(-50%) rotate(45deg);

    width: 12px;
    height: 12px;

    background: #ffffff;

    border-left: 1px solid rgba(16, 27, 52, .06);
    border-top: 1px solid rgba(16, 27, 52, .06);

    border-radius: 2px;
}


.dropdown:hover .dropdown-menu {

    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translate(-50%, 0);
}


/* =========================================================
   ITEMS
   ========================================================= */

.dropdown-menu li {

    list-style: none;
}

.dropdown-menu li + li {

    margin-top: 2px;
}

.dropdown-menu a {

    position: relative;

    display: flex !important;

    align-items: center;

    gap: 14px;

    padding: 11px 12px;

    border-radius: 12px;

    text-decoration: none;

    color: #16213c;

    transition:
        background .2s ease,
        transform .2s ease;
}

.dropdown-menu a:hover {

    background: #eef4ff;

    transform: translateX(3px);
}


/* =========================================================
   ICON CHIP
   ========================================================= */

.dropdown-icon {

    flex-shrink: 0;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eef4ff;

    color: #155bd7;

    font-size: 21px;

    line-height: 1;

    text-align: center;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

/* The glyph itself — without this, the icon font's own
   default line-height pushes the ink toward the top/left
   of the chip instead of dead-center. */

.dropdown-icon.material-symbols-outlined {

    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;

    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu a:hover .dropdown-icon {

    background: #155bd7;

    color: #ffffff;

    transform: scale(1.06);
}


/* =========================================================
   TEXT — title on top, small description below
   ========================================================= */

.dropdown-text {

    display: flex;
    flex-direction: column;

    gap: 2px;

    min-width: 0;
}

.dropdown-text {

    font-size: 15px;

    font-weight: 700;

    line-height: 1.2;

    color: #16213c;
}

.dropdown-text small {

    font-size: 12.5px;

    font-weight: 400;

    line-height: 1.3;

    color: #6b7280;

    white-space: normal;
}


/* =========================================================
   MOBILE — dropdown becomes a plain expandable list,
   so keep icons but drop the floating-card chrome
   ========================================================= */

@media (max-width: 992px) {

    .dropdown-menu {

        position: static;

        top: auto;
        left: auto;

        transform: none;

        width: 100%;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        box-shadow: none;

        border: none;

        border-radius: 0;

        padding: 6px 0 6px 12px;
    }

    .dropdown-menu::before {

        display: none;
    }

    .dropdown-menu a {

        padding: 10px 8px;
    }

    .dropdown-icon {

        width: 34px;
        height: 34px;

        font-size: 18px;
    }

    .dropdown-text {

        font-size: 14px;
    }

    .dropdown-text small {

        font-size: 12px;
    }
}

/* ===========================
NAV ACTIONS
=========================== */

.nav-actions{

display:flex;

align-items:center;

gap:18px;

}

/* ===========================
HAMBURGER
=========================== */

.hamburger{

display:none;

flex-direction:column;

justify-content:center;

gap:6px;

cursor:pointer;

}

.hamburger span{

width:28px;

height:3px;

background:var(--secondary);

border-radius:100px;

transition:var(--transition);

}

/* ===========================
MOBILE MENU
=========================== */

.mobile-menu{

position:fixed;

top:0;

right:-100%;

width:320px;

height:100vh;

background:#fff;

z-index:1001;

padding:30px;

display:flex;

flex-direction:column;

justify-content:flex-start;

transition:.4s;

box-shadow:-15px 0 40px rgba(0,0,0,.08);

}

.mobile-menu.active{

right:0;

}

.mobile-header{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:40px;

}

.mobile-header img{

height:52px;

}

.close-menu{

font-size:28px;

cursor:pointer;

}

.mobile-menu ul{

display:flex;

flex-direction:column;

gap:12px;

margin-bottom:40px;

}

.mobile-menu a{

font-size:18px;

font-weight:600;

}

.mobile-overlay{

position:fixed;

inset:0;

background:rgba(0,0,0,.5);

opacity:0;

visibility:hidden;

transition:.35s;

z-index:1000;

}

.mobile-overlay.active{

opacity:1;

visibility:visible;
}

/* =========================================================
   INCOMPLETE COURSE STYLING
   ========================================================= */

/* .course-incomplete {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.course-incomplete:hover {
    background-color: transparent !important;
    transform: none !important;
}

.course-incomplete .dropdown-icon {
    background: #d3d3d3 !important;
    color: #999 !important;
} */

