/* ── ST Nav Menu ─────────────────────────────────────────────────────── */

.st-nav-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* ── Desktop nav ─────────────────────────────────────────────────────── */
.st-nav-desktop { width: 100%; }

.st-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}
.st-nav-menu.st-horizontal { flex-direction: row; }
.st-nav-menu.st-vertical   { flex-direction: column; align-items: flex-start; }

.st-nav-menu > li {
    position: relative;
    list-style: none;
    margin: 0; padding: 0;
}
.st-nav-menu.st-horizontal > li { display: inline-flex; align-items: center; }
.st-nav-menu.st-vertical   > li { display: flex; width: 100%; }

.st-nav-menu > li > a,
.st-menu-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    transition: color .2s, background-color .2s;
    line-height: 1.4;
}
.st-nav-menu.st-vertical > li > a { width: 100%; }

.st-dropdown-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    font-size: 10px;
    transition: transform .2s;
}
.st-has-dropdown.st-open > a .st-dropdown-arrow { transform: rotate(180deg); }

/* ── Desktop dropdown ────────────────────────────────────────────────── */
.st-sub-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    z-index: 9999;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    list-style: none;
    margin: 4px 0 0;
    padding: 6px 0;
}
.st-sub-menu li { list-style: none; }
.st-sub-menu li a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.st-sub-menu li a:hover { background: #f5f3ff; color: #6366f1; }

/* ── Active indicators ───────────────────────────────────────────────── */
.st-indicator-underline .st-nav-menu > li.current-menu-item > a { position: relative; }
.st-indicator-underline .st-nav-menu > li.current-menu-item > a::after {
    content: ''; position: absolute; bottom: 0;
    left: 16px; right: 16px; height: 2px;
    background-color: #6366f1; border-radius: 2px;
}
.st-indicator-dot .st-nav-menu > li.current-menu-item > a::after {
    content: ''; position: absolute; bottom: 4px;
    left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%;
    background-color: #6366f1;
}
.st-indicator-left_border .st-nav-menu > li.current-menu-item > a {
    border-left: 3px solid #6366f1; padding-left: 13px;
}

/* ── Hamburger button ────────────────────────────────────────────────── */
.st-hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}
.st-hb-right .st-hamburger-btn { margin-left: auto; }
.st-hb-left  .st-hamburger-btn { margin-right: auto; }

/* ════════════════════════════════════════════════════════════════════════
   MOBILE FULL-SCREEN PANEL
   ════════════════════════════════════════════════════════════════════════ */

/* Dark overlay behind panel */
.st-mob-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99998;
}

/* Full-height panel — slides in from right */
.st-mob-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    overflow: hidden;

    /* Start off-screen to the right */
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
}

/* Open state */
.st-mob-panel.st-panel-open {
    transform: translateX(0);
}

/* ── Panel header: logo + close ──────────────────────────────────────── */
.st-mob-panel-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    min-height: 60px;
    box-sizing: border-box;
}

.st-mob-panel-logo {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.st-mob-panel-logo img {
    max-height: 36px;
    width: auto;
}

.st-mob-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    color: #374151;
    line-height: 1;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.st-mob-close-btn:hover { background: #e5e7eb; color: #111827; }

/* ── Panel nav: menu list ────────────────────────────────────────────── */
.st-mob-panel-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.st-mob-panel-nav .st-nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    flex-wrap: nowrap;
}

.st-mob-panel-nav .st-nav-menu > li {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f3f4f6;
}
.st-mob-panel-nav .st-nav-menu > li:last-child { border-bottom: none; }

.st-mob-panel-nav .st-nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    box-sizing: border-box;
    white-space: normal;
    transition: background .15s, color .15s;
}
.st-mob-panel-nav .st-nav-menu > li > a:hover {
    background: #f5f3ff;
    color: #6366f1;
}
.st-mob-panel-nav .st-nav-menu > li.current-menu-item > a {
    color: #6366f1;
    font-weight: 600;
}

/* Mobile submenu accordion */
.st-mob-panel-nav .st-sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0; padding: 0;
    min-width: unset;
    width: 100%;
    background: #f9fafb;
    border-top: 1px solid #f0f0f0;
}
.st-mob-panel-nav .st-sub-menu li {
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}
.st-mob-panel-nav .st-sub-menu li:last-child { border-bottom: none; }
.st-mob-panel-nav .st-sub-menu li a {
    display: block;
    padding: 13px 32px;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    white-space: normal;
    transition: background .15s, color .15s;
}
.st-mob-panel-nav .st-sub-menu li a:hover { background: #ede9fe; color: #6366f1; }

/* ── Sticky ──────────────────────────────────────────────────────────── */

/* Base sticky wrapper — always has smooth transition */
.st-sticky-wrap {
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

/* When scrolled — header becomes fixed at top */
.st-nav-wrap.st-sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0,0,0,.10);
    animation: st-sticky-drop .3s ease forwards;
}

/* Slide down animation when sticky kicks in */
@keyframes st-sticky-drop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Spacer — prevents content jump when header becomes fixed */
.st-sticky-spacer {
    display: none;
}
.st-sticky-active ~ .st-sticky-spacer,
body.st-has-sticky-header .st-sticky-spacer {
    display: block;
}

/* Widget container relative for dropdowns */
.elementor-widget-st_nav_menu,
.elementor-widget-st_nav_menu .elementor-widget-container,
.st-custom-header { position: relative; }

/* ── Responsive ──────────────────────────────────────────────────────── */
.st-nav-desktop   { display: block; }
.st-hamburger-btn { display: none !important; }

.st-nav-wrap.st-mobile-active .st-nav-desktop   { display: none !important; }
.st-nav-wrap.st-mobile-active .st-hamburger-btn { display: flex !important; }

@media (max-width: 768px) {
    .st-nav-desktop   { display: none !important; }
    .st-hamburger-btn { display: flex !important; }
}
