/* ============================================
    SCHOLARiQ Header - Design System Aligned
    Compact, professional density for desktop and mobile
    ============================================ */

:root {
    /* Brand Colors aligned to design tokens */
    --Brand-Green: #e6a300;
    --Brand-Green-Hover: #ffb81c;
    --Brand-Pink: #b8860b;
    --Brand-Pink-Hover: #9a7009;
    --Brand-Red: #b8860b;
    --Brand-Red-Light: #e6a300;

    /* Text Colors */
    --Text-Dark: #1d2330;
    --Text-Medium: #4b5563;
    --Text-Light: #6b7280;
    --Text-Muted: #9ca3af;
    --Header-Text: #2b3140;

    /* Background Colors */
    --Bg-White: #FFFFFF;
    --Bg-Light: #fffdf5;
    --Bg-Gray: #f5f5f2;

    /* Border Colors */
    --Border-Light: #e4e4e7;
    --Border-Medium: #d1d5db;

    /* Glassy Effects */
    --Glassy-White: rgba(255, 255, 255, 0.96);
    --Glassy-Shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --Mustard-Gold: #f5f0e8;
    --Mustard-Gold-Light: #fbf8f3;
}

/* ============================================
   Header Container
   ============================================ */
.header {
    /* Layered white with a warm undertone for a premium look */
    background: linear-gradient(180deg, rgba(255,255,255,0.995), rgba(251,248,243,0.995));
    border-bottom: 1px solid rgba(27,31,35,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* slightly stronger but soft shadow for depth without increasing perceived height */
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.header-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 16px;
    gap: 16px;
    /* subtle inner highlight to give header a gentle elevation */
    position: relative;
}

/* thin decorative accent under header center to make the header feel crafted */
.header::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 46%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(230,163,0,0.18), rgba(230,163,0,0.06));
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Left Section
   ============================================ */
.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

#site-logo {
    flex-shrink: 0;
}

#site-logo.flex-grow-1 {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

#logo-header {
    height: 66px;
    width: auto;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
    display: block;
    /* subtle inner border and soft shadow to make the logo pop without growing header */
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.06));
}

#logo-header:hover {
    transform: scale(1.02);
}

.mobile-nav-toggler {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--Text-Dark);
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-nav-toggler {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--Text-Dark);
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-toggler:hover {
    color: var(--Brand-Green);
}

/* ============================================
   Center Section
   ============================================ */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

/* ============================================
   Categories - GREEN Button (Always Visible)
   ============================================ */
.header-catalog {
    position: relative;
}

.header-catalog>.header-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--Bg-Light);
    color: var(--Header-Text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--Border-Light);
}

.header-catalog>.header-catalog-btn:hover {
    background: var(--Bg-White);
    border-color: var(--Brand-Green);
    color: var(--Brand-Green);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Categories Dropdown - Glassy White */
.header-catalog>ul {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 300px;
    background: var(--Glassy-White);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.header-catalog:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-catalog ul li.item.title {
    padding: 10px 20px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--Brand-Green);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--Mustard-Gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.header-catalog ul li.item.title i {
    color: var(--Brand-Green);
}

.header-catalog ul li a.item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--Header-Text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 6px;
    position: relative;
}

.header-catalog ul li a.item i {
    color: var(--Brand-Green);
    font-size: 14px;
    width: 20px;
    flex-shrink: 0;
}

.header-catalog ul li a.item:hover {
    background: rgba(245, 240, 232, 0.5);
    color: var(--Brand-Red);
    transform: translateX(4px);
}

.header-catalog ul li a.item:hover i {
    color: var(--Brand-Red);
    transform: scale(1.1);
}

/* Subcategory flyout – hidden for future use
.header-catalog ul li.has-children>a.item::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--Text-Medium);
    font-size: 12px;
}

.header-catalog ul li .sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 300px;
    background: var(--Glassy-White);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 0;
    margin: 0 0 0 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.header-catalog ul li.has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
*/

/* ============================================
   Search Bar - PINK Accent
   ============================================ */
.header-search {
    flex: 1;
    max-width: 310px;
    position: relative;
}

.form-search {
    position: relative;
    width: 100%;
}

.form-search input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    background: var(--Bg-White);
    color: var(--Text-Dark);
    transition: all 0.3s ease;
}

.form-search input:focus {
    outline: none;
    border-color: var(--Brand-Green);
    box-shadow: 0 0 0 3px rgba(230, 163, 0, 0.15);
}

.form-search input::placeholder {
    color: var(--Text-Muted);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--Brand-Green);
    font-size: 14px;
    pointer-events: none;
}

.form-search button {
    display: none;
}

.form-search button.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
}

.form-search button.search-icon i {
    color: var(--Brand-Green);
    font-size: 14px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 520px;
    background: var(--Bg-Light);
    border: 1px solid var(--Border-Light);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: all 0.2s ease;
    z-index: 998;
}

.header-search:focus-within .search-suggestions {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.suggestions-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--Text-Medium);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--Bg-White);
    border: 1px solid var(--Border-Light);
    color: var(--Text-Dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    border-color: var(--Brand-Green);
    color: var(--Brand-Green);
    box-shadow: 0 8px 16px rgba(230, 163, 0, 0.12);
}

@media (max-width: 1200px) {
    .search-suggestions {
        width: 460px;
    }
}

@media (max-width: 991px) {
    .search-suggestions {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }
}



/* ============================================
   Right Section
   ============================================ */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================
   Main Navigation - RED Active States
   ============================================ */
.main-menu ul.menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu .menu-item {
    position: relative;
}

.main-menu .menu-item>a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--Header-Text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 4px;
    position: relative;
    transition: all 0.3s ease;
}

.main-menu .menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--Brand-Red);
    transition: width 0.3s ease;
}

.main-menu .menu-item>a:hover {
    color: var(--Brand-Red);
}

.main-menu .menu-item>a:hover::after,
.main-menu .menu-item.current-menu-item>a::after {
    width: 100%;
}

.main-menu .menu-item-has-children>a::before {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 4px;
    font-size: 11px;
    color: var(--Text-Medium);
}

/* Sub Menu - CENTERED UNDER PARENT */
.main-menu .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    /* CENTER */
    transform: translateX(-50%) translateY(-10px);
    /* CENTER */
    min-width: 210px;
    background: var(--Glassy-White);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.main-menu .menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* CENTER on show */
}

.main-menu .sub-menu .menu-item a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--Header-Text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 6px;
}

.main-menu .sub-menu .menu-item a i {
    color: var(--Brand-Green);
    width: 18px;
}

.main-menu .sub-menu .menu-item a:hover {
    background: rgba(245, 240, 232, 0.5);
    color: var(--Brand-Red);
}

/* ============================================
   Action Buttons - Compact
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-height: 36px;
}

/* Account Button - Gray with RED hover */
.btn-account {
    background: var(--Bg-Light);
    color: var(--Text-Dark);
    border: 1px solid var(--Border-Light);
}

.btn-account:hover {
    background: var(--Bg-White);
    border-color: var(--Brand-Green);
    color: var(--Brand-Green);
    transform: translateY(-1px);
}

/* AI Career Path - PINK with Pulse */
.btn-ai-career {
    background: linear-gradient(135deg, var(--Brand-Green), var(--Brand-Green-Hover));
    color: var(--Bg-White);
    border: none;
    box-shadow: 0 4px 14px rgba(230, 163, 0, 0.35);
}

.btn-ai-career:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 163, 0, 0.4);
}

/* Pulse Animation - Gold */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(230, 163, 0, 0.35);
    }

    50% {
        box-shadow: 0 4px 20px rgba(230, 163, 0, 0.5), 0 0 0 6px rgba(230, 163, 0, 0.15);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ============================================
   Mobile Navigation Panel
   ============================================ */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--Bg-White);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    border-right: 1px solid var(--Border-Light);
}

.mobile-nav-panel.active {
    left: 0;
}

.mobile-nav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px
    border-bottom: 1px solid var(--Border-Light);
}

.mobile-nav-header-left {
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mobile-nav-back {
    background: none;
    border: 1px solid var(--Border-Light);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--Text-Dark);
}

.mobile-nav-title {
    font-weight: 700;
    color: var(--Brand-Green);
    font-size: 14px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--Text-Dark);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    color: var(--Brand-Green);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mobile-panel-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.mobile-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--Bg-White);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-bottom: 16px;
}

.mobile-panel.active {
    transform: translateX(0);
}

.mobile-panel-header {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    padding: 8px 4px 12px;
    border-bottom: 1px solid var(--Border-Light);
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--Text-Dark);
}

.mobile-panel-title {
    font-size: 14px;
    text-align: center;
    color: var(--Brand-Green);
}

.mobile-panel-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--Text-Dark);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 8px;
}

.menu-forward {
    display: flex;
    align-items: center;
}

/* Mobile Search Popup */
.mobile-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}

.mobile-search-modal {
    width: min(94vw, 420px);
    background: var(--Bg-White);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    padding: 16px;
    margin-top: 40px;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mobile-search-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--Text-Dark);
}

.mobile-search-close {
    background: none;
    border: 1px solid var(--Border-Light);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--Text-Dark);
}

.mobile-search-form {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--Border-Light);
    border-radius: 12px;
    padding: 6px 6px 6px 36px;
    background: var(--Bg-White);
    margin-bottom: 12px;
}

.mobile-search-form i.fa-search {
    position: absolute;
    left: 12px;
    color: var(--Text-Muted);
}

/* Mobile: center logo between left & right buttons and enhance visual style */
@media (max-width: 991px) {
    .header-inner-wrap {
        position: relative;
        min-height: 72px; /* keep header height unchanged */
        padding: 0 12px;
    }

    /* Center the logo visually and add a subtle decorative halo */
    #site-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        width: auto;
        z-index: 1;
        pointer-events: auto; /* keep logo clickable */
    }

    #site-logo a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        z-index: 2;
    }

    /* Slightly reduce logo image on small screens so header doesn't grow */
    #logo-header {
        height: 48px;
        width: auto;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
        z-index: 2;
        transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
        border-radius: 6px;
    }

    /* Decorative halo behind logo for a premium look */
    #site-logo::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 35%, rgba(230,163,0,0.14), rgba(230,163,0,0.045) 40%, transparent 60%);
        z-index: 0;
        pointer-events: none;
    }

    /* Style mobile action buttons as compact, elevated pills */
    .mobile-nav-toggler,
    .mobile-button.show-search {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,248,243,0.98));
        border: 1px solid rgba(16,24,40,0.04);
        box-shadow: 0 6px 14px rgba(16,24,40,0.04);
        color: var(--Text-Dark);
        transition: all 0.18s ease;
        position: relative;
        z-index: 3; /* keep buttons above logo */
    }

    .mobile-nav-toggler i,
    .mobile-button.show-search i {
        font-size: 18px;
        color: var(--Brand-Green);
    }

    .mobile-nav-toggler:hover,
    .mobile-button.show-search:hover {
        background: linear-gradient(180deg, rgba(255,250,238,0.98), rgba(255,247,230,0.98));
        border-color: rgba(230,163,0,0.12);
        color: var(--Brand-Green);
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 8px 18px rgba(16,24,40,0.06);
    }

    /* ensure mobile header icons use brand color by default */
    .mobile-nav-toggler,
    .mobile-button.show-search {
        color: var(--Brand-Green);
    }

    /* also color the mobile close icon inside the drawer to match brand */
    .mobile-nav-close {
        color: var(--Brand-Green);
    }

    /* small micro-interaction for logo to feel premium */
    #site-logo a:hover #logo-header {
        transform: translateY(-1px) scale(1.02) rotate(-0.5deg);
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
    }

    /* Reduce spacing so header feels tighter on mobile */
    .header-left { gap: 12px; }
    .header-right { gap: 12px; }

    /* Prevent the logo from stretching the left container */
    .header-left #site-logo.flex-grow-1 {
        flex-grow: 0;
    }
}

.mobile-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--Text-Dark);
    background: transparent;
}

.mobile-search-form button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--Brand-Green);
    color: var(--Bg-White);
    cursor: pointer;
}

.mobile-search-suggestions {
    background: var(--Bg-Light);
    border-radius: 12px;
    padding: 12px;
}

.mobile-search-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--Text-Muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mobile-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-search-chips a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--Bg-White);
    border: 1px solid var(--Border-Light);
    font-size: 12px;
    color: var(--Text-Dark);
    text-decoration: none;
}

/* Mobile Search */
.mobile-search-box {
    margin-bottom: 24px;
}

/* Hide the inline search box that appears inside the mobile sidebar drawer.
   The separate full-screen mobile search overlay/modal remains available. */
.mobile-nav-panel .mobile-search-box {
    display: none !important;
}

.mobile-search-box form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--Bg-White);
    border: 1px solid var(--Border-Light);
    border-radius: 10px;
    padding: 4px;
}

.mobile-search-box i.fa-search {
    position: absolute;
    left: 14px;
    color: var(--Brand-Green);
}

.mobile-search-box input {
    flex: 1;
    padding: 8px 12px 8px 36px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--Text-Dark);
}

.mobile-search-box button {
    width: 32px;
    height: 32px;
    background: var(--Brand-Green);
    border: none;
    border-radius: 8px;
    color: var(--Bg-White);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item>a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: var(--Text-Dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    background: var(--Bg-White);
    border: 1px solid var(--Border-Light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.mobile-menu-item>a:hover {
    background: var(--Bg-Light);
    color: var(--Brand-Green);
}

.mobile-menu-item>a i:first-child {
    color: var(--Brand-Green);
}

/* Mobile Submenu */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item.has-submenu.active .mobile-submenu {
    max-height: 500px;
    margin-top: 8px;
}

.mobile-submenu .mobile-menu-item>a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--Text-Dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.mobile-submenu .mobile-menu-item>a:hover {
    background: var(--Bg-Light);
    color: var(--Brand-Green);
}

.mobile-submenu li {
    margin-left: 32px;
}

.mobile-submenu li a {
    display: block;
    padding: 8px 12px;
    color: var(--Text-Medium);
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-submenu li a:hover {
    background: var(--Bg-Light);
    color: var(--Brand-Green);
}

.mobile-submenu.secondary {
    margin-top: 6px;
}

.mobile-submenu.secondary li {
    margin-left: 20px;
}

.mobile-submenu.secondary li a {
    font-size: 12.5px;
}

/* Mobile CTA */
.mobile-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--Border-Light);
}

/* Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Search Button */
.mobile-button {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--Text-Dark);
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.mobile-button:hover {
    color: var(--Brand-Green);
}

.show-search {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--Text-Dark);
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
}

.show-search:hover {
    color: var(--Brand-Green);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1280px) {
    .header-left {
        gap: 12px;
    }

    .header-center {
        gap: 12px;
        max-width: 550px;
    }

    .main-menu ul.menu {
        gap: 10px;
    }

    .header-right {
        gap: 6px;
    }

    .header-search {
        max-width: 180px;
    }

    .main-menu .menu-item>a {
        font-size: 13.5px;
        white-space: nowrap;
    }

    .tf-btn {
        padding: 6px 10px;
        font-size: 13.5px;
        white-space: nowrap;
    }

    .header-catalog>a {
        padding: 6px 10px;
        font-size: 13.5px;
    }
}

@media (max-width: 1150px) {
    .header-center {
        max-width: 480px;
        gap: 8px;
    }

    .main-menu ul.menu {
        gap: 8px;
    }

    .header-search {
        max-width: 120px;
    }

    .header-search input::placeholder {
        font-size: 11px;
    }

    .main-menu .menu-item>a {
        font-size: 12px;
        padding: 4px;
    }

    .tf-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .header-inner-wrap {
        gap: 4px;
        padding: 0 8px;
    }

    #logo-header {
        height: 48px;
    }

    #site-logo.flex-grow-1 {
        flex-grow: 0;
    }
}

/* Fix for Offline Training Wrapping */
.main-menu .menu-item a {
    white-space: nowrap !important;
}

@media (max-width: 991px) {
    .header-inner-wrap {
        min-height: 64px;
    }

    #logo-header {
        height: 56px;
    }
}

@media (max-width: 767px) {
    .header-inner-wrap {
        min-height: 60px;
    }

    #logo-header {
        height: 52px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }
}

@media (max-width: 991.98px) {
    .d-lg-none {
        display: block !important;
    }

    .d-lg-block {
        display: none !important;
    }

    .d-lg-flex {
        display: none !important;
    }
}

.w-100 {
    width: 100%;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.ms-auto {
    margin-left: auto;
}

/* ============================================
   Focus States
   ============================================ */
.header-catalog>a:focus,
.main-menu a:focus,
.tf-btn:focus,
.mobile-nav-toggler:focus,
.form-search button:focus {
    outline: 2px solid var(--Brand-Green);
    outline-offset: 2px;
}