/* Header CSS - Єдиний файл для header.php */

/* CRITICAL: Override all theme CSS - максимальна специфічність */
/* Обережні reset стилі для header - зберігаємо background та основні стилі */
body .site-header,
body header.site-header,
body #site-header,
body header {
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1000 !important;
}

body .site-header *,
body header.site-header *,
body #site-header *,
body header * {
    box-sizing: border-box !important;
}

/* Scoped, minimal styles for header and mega-menu */
:root {
    --bg-header: #285c80;
    --bg-hero: #597e98;
    --bg-left: #dbdbdb;
    --text: #ffffff;
    --text-dark: #285c80;
    --accent: #efba5c;
    --dropdown-bg: #ffffff;
    --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 96px;
    /* Desktop header height */
}

/* Base header styles with MAXIMUM specificity to override theme CSS */
body header.site-header,
body .site-header,
#page header.site-header,
.elementor-location-header header.site-header {
    background: var(--bg-header) !important;
    color: var(--text) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Додаємо відступ для контенту щоб він не ховався під sticky header */
body .site-main,
body #main,
body main {
    position: relative;
    z-index: 1;
}

body .container .site-header,
body .elementor .site-header,
body .elementor-container .site-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body .site-header .header-inner,
body header.site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    height: var(--header-height, 96px) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    flex-wrap: nowrap !important;
}

body .site-header .brand,
body header.site-header .brand {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

body .site-header .brand-logo,
body header.site-header .brand-logo {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform .2s var(--ease) !important;
}

body .site-header .brand:hover .brand-logo,
body header.site-header .brand:hover .brand-logo {
    transform: scale(1.03) !important;
}

/* Nav - override theme styles */
body .site-header .main-nav,
body header.site-header .main-nav {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

body .site-header .main-nav {
    display: flex !important;
}

/* Mobile overlay nav base (hidden on desktop by default) */
body .site-header .mobile-nav,
body header.site-header .mobile-nav {
    display: none !important;
}

body .site-header .nav-list,
body header.site-header .nav-list,
body .site-header ul.menu,
body header.site-header ul.menu {
    display: flex !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

body .site-header .nav-item,
body header.site-header .nav-item {
    position: relative !important;
}

body .site-header .nav-link,
body header.site-header .nav-link,
body .site-header ul.menu>li>a,
body header.site-header ul.menu>li>a {
    color: var(--text) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 16px 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    border-radius: 6px !important;
    transition: text-decoration .2s var(--ease), transform .2s var(--ease) !important;
    border-bottom: 2px solid transparent !important;
}

body .site-header .nav-link:hover,
body .site-header .nav-link:focus,
body header.site-header .nav-link:hover,
body header.site-header .nav-link:focus {
    text-decoration: underline !important;
}

/* Desktop dropdown opened state - only underline, no background change */
body .site-header .nav-item.dropdown-open>.nav-link,
body header.site-header .nav-item.dropdown-open>.nav-link {
    text-decoration: underline !important;
}

/* Education tab active background - завжди жовтий з білим текстом */
body .site-header .nav-item.education-tab>.nav-link,
body header.site-header .nav-item.education-tab>.nav-link,
body .site-header .nav-item.education-tab>.nav-link *,
body header.site-header .nav-item.education-tab>.nav-link *,
body .site-header .nav-item.education-tab>.nav-link:hover,
body header.site-header .nav-item.education-tab>.nav-link:hover,
body .site-header .nav-item.education-tab>.nav-link:focus,
body header.site-header .nav-item.education-tab>.nav-link:focus,
body .site-header .nav-item.education-tab>.nav-link:hover *,
body header.site-header .nav-item.education-tab>.nav-link:hover *,
body .site-header .nav-item.education-tab>.nav-link:focus *,
body header.site-header .nav-item.education-tab>.nav-link:focus *,
body .site-header .nav-item.education-tab>.nav-link span,
body header.site-header .nav-item.education-tab>.nav-link span {
    background-color: #F1BD54 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

body .site-header .dropdown-arrow,
body header.site-header .dropdown-arrow {
    font-size: 12px !important;
    transition: transform .2s var(--ease) !important;
}

/* Only rotate when aria-expanded="true" (click/tap only) */
body .site-header .nav-item.has-dropdown .nav-link[aria-expanded="true"] .dropdown-arrow,
body header.site-header .nav-item.has-dropdown .nav-link[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg) !important;
}

/* Simple dropdown - different behavior for different items */
.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--bg-hero);
    border-radius: 12px;
    box-shadow: var(--dropdown-shadow);
    padding: 12px 0;
    margin-top: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
    transition-delay: 0s;
    list-style: none;
    z-index: 999;
}

/* About dropdown - HOVER to open (desktop only) */
@media (min-width: 769px) {

    .nav-item.has-dropdown:not(.has-mega-menu):hover .dropdown-menu,
    .nav-item.has-dropdown:not(.has-mega-menu):focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition-delay: 0.1s;
    }

    /* Keep dropdown open while hovering over it */
    .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Education mega menu - hover on desktop, click on mobile */
.nav-item.has-mega-menu .nav-link[aria-expanded="true"]+.dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Desktop: hover to open mega menu */
@media (min-width: 769px) {

    .nav-item.has-mega-menu:hover .dropdown-menu,
    .nav-item.has-mega-menu:hover .mega-menu-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
        pointer-events: auto !important;
    }
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    margin: 0 8px;
}

.dropdown-link:hover,
.dropdown-link:focus {
    background: rgba(40, 92, 128, .1);
}

/* Mega menu dropdown */
.mega-menu-dropdown {
    display: block;
    position: fixed;
    left: 50%;
    top: var(--header-height, 96px);
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-hero);
    box-shadow: var(--dropdown-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
    transition-delay: 0s;
    z-index: 999;
    overflow: visible;
    border-radius: 0 0 16px 16px;
    width: calc(100vw - 80px);
    max-width: 1200px;
}

/* Обмеження ширини на великих екранах */
@media (min-width: 1920px) {
    .mega-menu-dropdown {
        max-width: 1400px;
    }
}

/* Адаптація для середніх екранів */
@media (min-width: 769px) and (max-width: 1440px) {
    .mega-menu-dropdown {
        width: calc(100vw - 60px);
        max-width: min(1200px, calc(100vw - 60px));
    }
}

/* Mega Menu Tabs Wrapper */
.mega-menu-tabs-wrapper {
    display: flex;
    gap: 0;
    min-height: 400px;
    max-height: calc(100vh - 200px);
}

/* Tabs Navigation (ліва частина) */
.mega-menu-tabs-nav {
    display: flex;
    flex-direction: column;
    background: #F5F7FA;
    border-radius: 0 0 0 16px;
    padding: 16px 8px;
    gap: 8px;
    min-width: 220px;
    max-width: 250px;
    overflow-y: auto;
}

.mega-menu-tabs-nav::-webkit-scrollbar {
    width: 4px;
}

.mega-menu-tabs-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.mega-menu-tabs-nav::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.mega-menu-tab {
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    color: #4B5563;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.mega-menu-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1F2937;
}

.mega-menu-tab.active {
    background: white;
    color: #3F5A7B;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tabs Content (права частина) */
.mega-menu-tabs-content {
    flex: 1;
    background: white;
    border-radius: 0 0 16px 0;
    padding: 24px;
    padding-bottom: 0;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mega-menu-tabs-content::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-tabs-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.mega-menu-tabs-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.mega-menu-tab-panel {
    display: none;
}

.mega-menu-tab-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Courses Grid (3 колонки) */
.mega-menu-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 8px;
}

.mega-menu-course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #F9FAFB;
    border-radius: 8px;
    text-decoration: none;
    color: #1F2937;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
    min-height: 44px;
}

.mega-menu-course-item:hover {
    background: #F1F5F9;
    color: #3F5A7B;
    transform: translateX(4px);
}

.course-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.course-item-arrow {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 16px;
}

/* Buttons */
.mega-menu-buttons {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    margin: 0 -24px;
    border-top: 1px solid #E5E7EB;
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-radius: 0 0 16px 0;
}

.mega-menu-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mega-menu-btn-primary {
    background: var(--accent);
    color: white;
}

.mega-menu-btn-primary:hover {
    background: #D4A03D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 189, 84, 0.3);
}

.mega-menu-btn-secondary {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.mega-menu-btn-secondary:hover {
    background: #E5E7EB;
    color: #1F2937;
}

/* Responsive для mega-menu tabs */
@media (min-width: 1400px) {
    .mega-menu-dropdown {
        max-width: 1400px;
    }
}

@media (max-width: 1200px) {
    .mega-menu-dropdown {
        max-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .mega-menu-dropdown {
        max-width: 900px;
    }

    .mega-menu-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu-tabs-nav {
        min-width: 180px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .mega-menu-dropdown {
        width: calc(100vw - 20px);
        max-width: none;
    }

    .mega-menu-tabs-wrapper {
        flex-direction: column;
        max-height: calc(100vh - 100px);
    }

    .mega-menu-tabs-nav {
        flex-direction: row;
        min-width: auto;
        max-width: none;
        overflow-x: auto;
        border-radius: 0;
        padding: 8px;
    }

    .mega-menu-tab {
        white-space: nowrap;
    }

    .mega-menu-tabs-content {
        border-radius: 0 0 16px 16px;
        padding: 16px;
    }

    .mega-menu-courses-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-buttons {
        flex-direction: column;
    }
}

/* Show mega menu on aria-expanded (for mobile click) */
.nav-item.has-mega-menu .nav-link[aria-expanded="true"]+.mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) translateX(-50%);
    transition-delay: 0.1s;
}

/* Desktop: hover and focus-within to open mega menu */
@media (min-width: 769px) {

    .nav-item.has-mega-menu:hover .mega-menu-dropdown,
    .nav-item.has-mega-menu:focus-within .mega-menu-dropdown,
    .has-mega-menu:hover .mega-menu-dropdown,
    .has-mega-menu:focus-within .mega-menu-dropdown,
    .education-tab:hover .mega-menu-dropdown,
    .education-tab:focus-within .mega-menu-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) translateX(-50%);
        transition-delay: 0.1s;
    }

    /* Keep mega menu open while hovering over it */
    .mega-menu-dropdown:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Старі стилі для мобільного меню (pills) - тільки для #mobile-nav */
#mobile-nav .hero-grid {
    display: block;
    min-height: 100%;
}

#mobile-nav .hero-left-section {
    background: var(--bg-left);
    color: var(--bg-hero);
    padding: 24px;
    width: 100%;
    height: 100%;
    border-radius: 0 16px 16px 16px;
}

#mobile-nav .hero-right-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#mobile-nav .hero-right-section .section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
}

#mobile-nav .section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
}

#mobile-nav .section-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

#mobile-nav .hero-left-section .section-title {
    color: var(--bg-header);
    font-size: 20px;
    margin: 0 0 12px;
}

#mobile-nav .hero-center,
#mobile-nav .hero-right,
#mobile-nav .hero-tanker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pills and nested dropdowns - click-only, no hover - тільки для mobile-nav */
#mobile-nav .pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    margin: 10px 0;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

#mobile-nav .pill .arrow {
    color: var(--accent);
    margin-left: auto;
    transition: transform .2s var(--ease);
}

/* Pill dropdown з auto-positioning - тільки для mobile-nav */
#mobile-nav .pill-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease), top .25s var(--ease), bottom .25s var(--ease), left .25s var(--ease), right .25s var(--ease), margin .25s var(--ease);
    z-index: 1003;
    border: 1px solid rgba(40, 92, 128, .1);
    min-width: 320px;
    max-width: 450px;
    white-space: normal;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar для pill-dropdown */
#mobile-nav .pill-dropdown::-webkit-scrollbar {
    width: 6px;
}

#mobile-nav .pill-dropdown::-webkit-scrollbar-track {
    background: rgba(89, 126, 152, .1);
    border-radius: 3px;
}

#mobile-nav .pill-dropdown::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

#mobile-nav .pill-dropdown::-webkit-scrollbar-thumb:hover {
    background: #d4a13d;
}

/* FORCE: Show pill dropdown only when pill is clicked/opened - NO HOVER! */
#mobile-nav .pill.pill-open .pill-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

/* Disable hover effects on pills - pill dropdown should only open on click */
#mobile-nav .pill:not(.pill-open):hover .pill-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Auto-positioning: якщо dropdown виходить за низ екрану, відкриваємо його вгору */
#mobile-nav .pill-dropdown.position-top {
    top: auto !important;
    bottom: 0 !important;
}

/* Auto-positioning: якщо dropdown виходить за праву межу екрану (на десктопі), відкриваємо вліво */
#mobile-nav .pill-dropdown.position-left {
    left: auto !important;
    right: 100% !important;
    margin-left: 0 !important;
    margin-right: 12px !important;
    transform: translateX(8px);
}

#mobile-nav .pill.pill-open .pill-dropdown.position-left {
    transform: translateX(0) !important;
}

/* Open to the left for right columns - ONLY ON DESKTOP */
@media (min-width: 769px) {

    #mobile-nav .hero-catering .pill-dropdown,
    #mobile-nav .hero-tanker .pill-dropdown {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 12px;
        transform: translateX(8px);
    }

    #mobile-nav .hero-catering .pill.pill-open .pill-dropdown,
    #mobile-nav .hero-tanker .pill.pill-open .pill-dropdown {
        transform: translateX(0) !important;
    }

    #mobile-nav .hero-right .pill-dropdown,
    #mobile-nav .hero-tanker .pill-dropdown {
        min-width: 320px;
        max-width: min(450px, calc(100vw - 40px));
    }
}

@media (min-width: 1200px) {
    #mobile-nav .pill-dropdown {
        min-width: 380px;
        max-width: 500px;
    }
}

#mobile-nav .pillar-large {
    padding: 16px;
}

#mobile-nav .pill-dropdown-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-header);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

/* Course list з обмеженням висоти та scroll - для mobile-nav */
#mobile-nav .course-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* Custom scrollbar */
#mobile-nav .course-list::-webkit-scrollbar {
    width: 6px;
}

#mobile-nav .course-list::-webkit-scrollbar-track {
    background: rgba(89, 126, 152, .1);
    border-radius: 3px;
}

#mobile-nav .course-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

#mobile-nav .course-list::-webkit-scrollbar-thumb:hover {
    background: #d4a13d;
}

#mobile-nav .course-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--bg-hero);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    background: rgba(89, 126, 152, .1);
    gap: 8px;
    line-height: 1.4;
}

#mobile-nav .course-link:hover {
    background: rgba(89, 126, 152, .2);
}

#mobile-nav .course-link .mini-arrow {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Обмеження довгих назв курсів */
#mobile-nav .course-link span:first-child {
    flex: 1;
    word-wrap: break-word;
    hyphens: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

/* Show All Button Styles - для mobile-nav */
#mobile-nav .show-all-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(89, 126, 152, .2);
}

#mobile-nav .show-all-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
    border: none;
    cursor: pointer;
}

#mobile-nav .show-all-btn:hover,
#mobile-nav .show-all-btn:focus {
    background: #1e40af;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Link lists (right columns) - для mobile-nav */
#mobile-nav .link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

#mobile-nav .link-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mobile-nav .link-list a:hover {
    color: var(--accent);
}

#mobile-nav .link-list .arrow {
    color: var(--accent);
    margin-left: 8px;
    flex-shrink: 0;
}

#mobile-nav .all-courses-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

#mobile-nav .all-courses-btn:hover {
    filter: brightness(0.95);
}

/* Language */
.lang-switch {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-current {
    color: var(--accent);
    font-weight: 700;
}

.lang-link {
    color: #fff;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
}

.lang-link:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--accent);
}

/* Mobile Education Dropdown */
.mobile-education-dropdown {
    display: none;
    position: relative;
}

.mobile-education-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s var(--ease);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-education-btn:hover {
    background: #1e40af;
    color: #fff;
    transform: translateY(-1px);
}

.mobile-dropdown-arrow {
    font-size: 10px;
    transition: transform .2s var(--ease);
}

.mobile-education-btn[aria-expanded="true"] .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Mega Menu Dropdown - Fullscreen on mobile */
.mobile-mega-menu-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height, 80px);
    bottom: 0;
    background: transparent;
    box-shadow: var(--dropdown-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
    z-index: 999;
    height: calc(100vh - var(--header-height, 80px));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-education-btn[aria-expanded="true"]+.mobile-mega-menu-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mobile-mega-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-hero-left-section {
    background: #ffffff;
    color: var(--text-dark);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 0;
    flex: none;
    display: flex;
    flex-direction: column;
}

.mobile-hero-right-section {
    color: var(--text);
}

.mobile-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--bg-header);
}

.mobile-hero-right-section .mobile-section-title {
    color: var(--text);
}

.mobile-section-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

.mobile-specialized-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-link-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-link-list a:hover {
    color: var(--accent);
}

.mobile-link-list .arrow {
    color: var(--accent);
    margin-left: 8px;
    flex-shrink: 0;
}

.mobile-all-courses-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.mobile-all-courses-btn:hover {
    filter: brightness(0.95);
    color: #fff;
    text-decoration: none;
}

/* Mobile Directions Dropdown */
.mobile-directions-dropdown {
    position: relative;
    margin-top: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mobile-directions-btn {
    width: 100%;
    background: #fff;
    color: var(--text-dark);
    border: 2px solid rgba(40, 92, 128, .2);
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .2s var(--ease);
}

.mobile-directions-btn:hover {
    border-color: var(--accent);
}

.mobile-directions-btn[aria-expanded="true"] {
    border-color: var(--bg-header);
    background: var(--bg-header);
    color: #ffffff;
}

.mobile-directions-arrow {
    font-size: 10px;
    transition: transform .2s var(--ease);
    color: var(--accent);
}

.mobile-directions-btn[aria-expanded="true"] .mobile-directions-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

.mobile-directions-list {
    position: static;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity .2s var(--ease), max-height .3s var(--ease), visibility .2s var(--ease);
    margin-top: 8px;
    border: 1px solid rgba(40, 92, 128, .1);
}

.mobile-directions-btn[aria-expanded="true"]+.mobile-directions-list {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: calc(100vh - var(--header-height, 80px) - 200px) !important;
    overflow-y: auto !important;
}

.mobile-direction-item {
    border-bottom: 1px solid rgba(40, 92, 128, .1);
}

.mobile-direction-item:last-child {
    border-bottom: none;
}

.mobile-direction-header {
    padding: 12px 16px;
    background: rgba(40, 92, 128, .05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-direction-header:hover {
    background: rgba(40, 92, 128, .1);
}

.mobile-direction-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.mobile-direction-count {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
}

.mobile-direction-courses {
    padding: 0 16px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s var(--ease), opacity .2s var(--ease), padding .3s var(--ease);
}

.mobile-direction-item.active .mobile-direction-courses {
    max-height: 500px;
    opacity: 1;
    padding: 8px 16px 12px;
}

/* Arrow rotation for accordion */
.mobile-direction-meta .mobile-direction-arrow {
    font-size: 10px;
    transition: transform .2s var(--ease);
    color: var(--accent);
}

.mobile-direction-item.active .mobile-direction-arrow {
    transform: rotate(180deg);
}

.mobile-courses-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-course-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background .2s var(--ease);
}

.mobile-course-link:hover {
    background: rgba(40, 92, 128, .05);
    color: var(--accent);
    text-decoration: none;
}

.mobile-show-all-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 8px;
    text-align: center;
    display: block;
    margin-top: 4px;
    border-radius: 4px;
    transition: background .2s var(--ease);
}

.mobile-show-all-link:hover {
    background: rgba(241, 189, 84, .1);
    text-decoration: none;
}

/* Mobile Language Switcher in Menu */
.mobile-lang-switcher {
    display: none;
}

.mobile-lang-switch {
    padding: 16px;
    background: rgba(255, 255, 255, .05);
    border-radius: 8px;
    margin-top: 16px;
}

.mobile-lang-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.mobile-lang-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-lang-current {
    color: var(--accent);
    font-weight: 700;
    padding: 4px 8px;
    background: rgba(241, 189, 84, .2);
    border-radius: 4px;
}

.mobile-lang-link {
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .2s var(--ease);
}

.mobile-lang-link:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--accent);
    text-decoration: none;
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, .1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #fff;
    display: block;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        display: block;
    }
}

@media (min-width: 769px) {
    .site-header .main-nav {
        display: flex !important;
    }

    #main-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
    }

    #mobile-nav {
        display: none !important;
    }
}

/* ============================================================
 * Промо-банер (базові стилі)
 * ============================================================ */
.promo-banner {
    background: #F1BD54;
    color: #fff;
    padding: 14px 40px;
    font-size: 15px;
    position: relative;
    z-index: 1000;
}

.promo-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
}

.promo-text {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
}

.promo-timer {
    display: none;
}

.promo-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.promo-btn {
    background: #fff;
    color: #FF8C00;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.promo-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    /* Promo Banner - мобільна версія */
    .promo-banner {
        padding: 8px 30px 8px 8px !important;
    }

    .promo-content {
        flex-direction: row !important;
        gap: 8px !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .promo-text {
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    .promo-text span {
        display: none !important;
    }

    .promo-text::before {
        content: 'ЗАМОВИТИ МОРСЬКІ ДОКУМЕНТИ';
        display: block;
    }

    .promo-timer {
        display: none !important;
    }

    .promo-btn {
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .promo-close {
        right: 5px !important;
        width: 20px !important;
        height: 20px !important;
        font-size: 14px !important;
    }

    .header-inner {
        height: var(--header-height, 80px);
        padding: 0 16px;
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        gap: 12px;
        align-items: center;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .mobile-education-dropdown {
        display: block;
    }

    .lang-switch {
        display: none !important;
    }

    .mobile-lang-switcher {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        align-items: center;
        z-index: 10004;
        position: relative;
    }

    #main-nav {
        display: none !important;
    }

    #mobile-nav {
        position: fixed !important;
        inset: 0 !important;
        background: var(--bg-header) !important;
        padding: calc(var(--header-height, 80px) + 16px) 20px 24px !important;
        overflow-y: auto !important;
        z-index: 10003 !important;
        display: block !important;
        transform: translateX(100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform .25s var(--ease), opacity .2s var(--ease), visibility .2s var(--ease) !important;
    }

    #mobile-nav.active,
    body.nav-open #mobile-nav {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #mobile-nav:not(.active) {
        pointer-events: none !important;
    }

    #mobile-nav.active {
        pointer-events: auto !important;
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
        align-items: stretch !important;
    }

    .nav-item {
        width: 100% !important;
    }

    .nav-link {
        padding: 14px 16px;
        background: rgba(255, 255, 255, .05);
        border-radius: 8px;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .nav-item.dropdown-open .nav-link {
        background: rgba(255, 255, 255, .15);
    }

    #mobile-nav .nav-item.education-tab>.nav-link {
        background-color: #F1BD54 !important;
        color: #ffffff !important;
    }

    .nav-item.dropdown-open .dropdown-arrow {
        transform: rotate(180deg);
    }

    #mobile-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, .08) !important;
        border: none !important;
        border-radius: 8px !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }

    #mobile-nav .nav-item.dropdown-open>.dropdown-menu {
        max-height: 500px !important;
        padding: 12px 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #mobile-nav .dropdown-menu li {
        list-style: none !important;
    }

    #mobile-nav .dropdown-menu li a {
        display: block !important;
        color: white !important;
        padding: 12px 16px !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    #mobile-nav .dropdown-menu li:last-child a {
        border-bottom: none !important;
    }

    #mobile-nav .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, .08);
        margin-top: 8px;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: all .25s var(--ease);
    }

    .nav-item.dropdown-open>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 420px;
        padding: 12px 0;
    }

    .mega-menu-dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background: rgba(89, 126, 152, .1);
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-top: 8px;
        transition: all .25s var(--ease);
    }

    .nav-item.dropdown-open>.mega-menu-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 1600px;
        padding: 16px;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-right-section {
        margin-top: 0;
        display: block;
        height: auto;
    }

    .hero-right-section .section-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        flex: none;
    }

    #mobile-nav .mega-menu-dropdown .hero-grid,
    #mobile-nav .mega-menu-dropdown .section-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    #mobile-nav .mega-menu-dropdown .hero-section {
        width: 100% !important;
        margin: 0 !important;
    }

    .pill {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .pill .arrow {
        display: none !important;
    }

    .pill-dropdown {
        position: static !important;
        opacity: 0;
        visibility: hidden;
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-top: 8px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 8px;
        transition: all .3s var(--ease);
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .pill.pill-open .pill-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: 16px;
    }

    .hero-catering .pill-dropdown,
    .hero-tanker .pill-dropdown,
    .hero-left-section .pill-dropdown {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    #mobile-nav .hero-left-section .pill-dropdown,
    #mobile-nav .pill-dropdown {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
    }

    #mobile-nav .pill-dropdown.hero-catering,
    #mobile-nav .pill-dropdown.hero-tanker,
    #mobile-nav .hero-catering .pill-dropdown,
    #mobile-nav .hero-tanker .pill-dropdown {
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    .dropdown-link {
        padding: 12px 16px;
        margin: 0 8px;
        border-radius: 6px;
        color: rgba(255, 255, 255, .9);
        font-size: 15px;
    }

    .dropdown-link:hover,
    .dropdown-link:focus {
        background: rgba(255, 255, 255, .15);
        color: #fff;
    }

    /* Contact Dropdown на мобілці */
    .contact-dropdown {
        position: relative;
        z-index: 10002 !important;
    }

    .contact-toggle {
        padding: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 36px;
        height: 36px;
    }

    .contact-toggle svg {
        width: 20px;
        height: 20px;
    }

    .contact-dropdown-menu {
        position: fixed !important;
        top: calc(var(--header-height, 80px) + 8px) !important;
        bottom: auto !important;
        right: 16px !important;
        left: 16px !important;
        margin: 0 !important;
        z-index: 998 !important;
        min-width: auto !important;
        max-width: none !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    }

    .contact-dropdown:hover .contact-dropdown-menu,
    .contact-dropdown-menu[aria-hidden="false"] {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .contact-item {
        padding: 12px;
    }

    .contact-item a {
        font-size: 15px;
    }

    .contact-form-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* A11y */
.nav-link:focus,
.dropdown-link:focus,
.lang-link:focus,
.pill:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
 * Cart Icon в Header
 * ============================================================ */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cart-icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.cart-icon-wrapper.has-items {
    animation: cartPulse 0.3s ease;
}

@keyframes cartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.cart-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #FFB400;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 180, 0, 0.4);
    animation: counterBounce 0.3s ease;
}

@keyframes counterBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.cart-counter.show {
    display: flex;
}

/* ============================================================
 * Contact Dropdown в хедері
 * ============================================================ */
.contact-dropdown {
    position: relative;
    margin: 0 10px;
}

.contact-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s;
}

.contact-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-toggle svg {
    width: 24px;
    height: 24px;
}

.contact-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.contact-dropdown:hover .contact-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-dropdown-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
}

.contact-item svg {
    color: #F1BD54;
    flex-shrink: 0;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #F1BD54;
}

.contact-form-btn {
    width: 100%;
    background: #F1BD54;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.contact-form-btn:hover {
    background: #FF8C00;
    transform: translateY(-2px);
}

/* ============================================================
 * Contact Form Modal
 * ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-container {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header .modal-title {
    display: block;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group .required {
    color: #ff4444;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFB400;
}

.privacy-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.privacy-checkbox label {
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
}

.privacy-checkbox label a {
    color: #FFB400;
    text-decoration: none;
}

.privacy-checkbox label a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: #FFB400;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #FF8C00;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================
 * THEME OVERRIDES (moved from inline header-overrides)
 * ============================================ */

/* Disable theme header styles that conflict */
body .site-header.header-stacked,
body .site-header.header-inverted,
body .site-header .site-navigation,
body .site-header .site-navigation-toggle-holder,
body .site-header .site-navigation-dropdown {
    all: unset !important;
}

/* Fix for mobile mega menu containing block issue */
.mobile-education-btn[aria-expanded="true"]+.mobile-mega-menu-dropdown,
.mobile-education-btn[aria-expanded="true"]+.mobile-mega-menu-dropdown .mobile-mega-content {
    transform: none !important;
}

/* Collapsible directions styles */
.mobile-direction-courses {
    display: none;
}

.mobile-direction-item.active .mobile-direction-courses {
    display: block;
}

.mobile-direction-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-direction-header .mobile-direction-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: var(--accent);
}

.mobile-direction-item.active .mobile-direction-arrow {
    transform: rotate(180deg);
}