/* Modern, sticky, mobile-first header overrides */

.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 300;
    background: #fff;
    overflow: visible;
}

.user-header-container {
    position: relative;
    z-index: 40;
    background: #0b254b;
    overflow: visible;
}

.user-header-container .ic-kisim {
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
}

.user-header-container .btn-group {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto;
    margin-left: auto;
    width: auto !important;
}

.user-header-container .hesabim-ust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.user-header-container .hesabim-dropdown,
.user-header-container .dropdown-menu.hesabim-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    float: none !important;
    margin: 0 !important;
    z-index: 500 !important;
    width: 248px;
    min-width: 248px;
    padding: 8px !important;
    border-radius: 16px !important;
    border: 1px solid #e7edf5 !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(11, 37, 75, 0.18) !important;
}

.user-header-container .btn-group.show > .dropdown-menu,
.user-header-container .btn-group.open > .dropdown-menu,
.user-header-container .dropdown-menu.show {
    display: block !important;
}

.hesabim-drop-head {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 8px 12px 10px;
}

.hesabim-drop-sep {
    height: 1px;
    background: #eef2f7;
    margin: 6px 8px;
}

.user-header-container .hesabim-dropdown .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    white-space: nowrap;
}

.user-header-container .hesabim-dropdown .dropdown-item:hover,
.user-header-container .hesabim-dropdown .dropdown-item:focus {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.user-header-container .hesabim-dropdown .dropdown-i {
    width: 18px;
    text-align: center;
    color: #64748b;
}

.user-header-container .hesabim-dropdown .hesabim-logout {
    color: #dc2626 !important;
}

.user-header-container .hesabim-dropdown .hesabim-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.header-area {
    width: 100%;
    z-index: 2;
    overflow: visible;
}

.header-area .header-links {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(11, 37, 75, 0.08);
    transition: box-shadow 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

.header-area .header-links.is-scrolled {
    box-shadow: 0 8px 30px rgba(11, 37, 75, 0.08);
    background: rgba(255, 255, 255, 0.98) !important;
}

.header-area .header-links .header-links-inside {
    width: min(1260px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    padding: 0;
}

.header-area .header-links .header-links-inside .logo {
    width: auto;
    max-width: 168px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-area .header-links .header-links-inside .logo img {
    max-width: 100%;
    max-height: 46px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.header-area .header-links .header-links-inside .header-link-right,
.header-area .header-links .header-links-inside .header-link-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-link-right .linkler {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.top-header-links {
    background: #0b254b;
}

.top-header-links .top-header-inside {
    width: min(1260px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 !important;
    gap: 8px;
}

.top-header-links .top-header-inside .inside-left,
.top-header-links .top-header-inside .inside-right {
    flex-wrap: wrap;
    gap: 2px 0;
}

.top-header-links .top-header-inside .inside-left .links,
.top-header-links .top-header-inside .inside-right .links {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.top-level-menu {
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 2px;
}

.top-level-menu > li > a > span {
    color: #12233f !important;
    padding: 9px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    background: transparent !important;
    line-height: 1.2;
    white-space: nowrap;
}

.top-level-menu > li:hover > a > span,
.top-level-menu > li:focus-within > a > span {
    color: #0d6efd !important;
    background: #eef4ff !important;
}

.top-level-menu > li span .hed-ico-do {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.7;
}

.second-level-menu {
    padding-top: 10px !important;
    margin-top: 0 !important;
}

.second-level-menu > div {
    min-width: 280px;
    border: 1px solid #edf1f7 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 50px rgba(11, 37, 75, 0.12) !important;
    padding: 10px !important;
}

.second-level-menu > div > li {
    border-radius: 10px !important;
}

.mega-level-menu > div {
    border-radius: 14px !important;
    border: 1px solid #edf1f7 !important;
    box-shadow: 0 18px 50px rgba(11, 37, 75, 0.12) !important;
}

.header-area .header-links .header-links-inside .header-link-right .header-buton,
.header-area .header-links .header-links-inside .header-link-right .header-buton,
.hed-link-btn .header-buton,
.mobile-drawer-cta .header-buton {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    padding: 10px 20px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #3b82f6 0%, #0d6efd 100%) !important;
    border-radius: 999px !important;
    border: 0 !important;
    margin-left: 8px !important;
    margin-top: 0 !important;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.28) !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

.header-area .header-links .header-links-inside .header-link-right .header-buton:hover,
.hed-link-btn .header-buton:hover,
.mobile-drawer-cta .header-buton:hover {
    margin-top: 0 !important;
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.34) !important;
}

.header-link-right .lang-row,
.header-actions .lang-row {
    border: 1px solid #d7deea !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    margin-left: 0 !important;
    min-height: 42px;
    color: #12233f;
}

.header-mobile-bar-show {
    display: none;
}

.header-burger {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e3e8f2;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.header-burger span,
.header-burger span:before,
.header-burger span:after {
    display: block;
    width: 18px;
    height: 2px;
    background: #0b254b;
    border-radius: 4px;
    position: relative;
    content: "";
}

.header-burger span:before {
    position: absolute;
    top: -6px;
}

.header-burger span:after {
    position: absolute;
    top: 6px;
}

.mobile-drawer-head {
    display: none;
}

.mobile-drawer-cta,
.mobile-drawer-toplinks,
.hed-link-btn-mobile {
    display: none;
}

body.mobile-nav-open {
    overflow: hidden;
}

@media screen and (max-width: 1279px) {
    .header-html,
    .header-link-right .linkler,
    .header-link-right .hed-link-btn,
    .header-actions .hed-link-btn-desktop,
    .top-header-links {
        display: none !important;
    }

    .header-area .header-links {
        padding: 8px 0 !important;
    }

    .header-area .header-links .header-links-inside {
        width: calc(100% - 24px);
        padding: 0;
    }

    .header-area .header-links .header-links-inside .logo {
        max-width: 132px;
    }

    .header-area .header-links .header-links-inside .logo img {
        max-height: 38px;
    }

    .header-mobile-bar-show {
        display: inline-flex !important;
        margin-left: 0 !important;
    }

    .hed-link-btn-mobile {
        display: inline-flex !important;
    }

    .hed-link-btn-mobile .header-buton {
        margin-left: 0 !important;
        padding: 8px 14px !important;
        min-height: 40px;
        font-size: 12px !important;
    }

    .header-actions .lang-row {
        display: none;
    }

    .mobile_account_side,
    .mobileheader-menu-html {
        display: block;
    }

    .slide-menu .mobile_account_side {
        width: min(400px, 88vw);
        right: calc(-1 * min(400px, 88vw));
        background: #fff;
        box-shadow: -16px 0 40px rgba(11, 37, 75, 0.16);
        padding: 16px 0 32px;
        transition: right 0.28s ease;
    }

    .mobile_account_side_toggle:checked + .mobile_account_side {
        right: 0;
    }

    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 16px 12px;
        border-bottom: 1px solid #eef2f7;
        margin-bottom: 8px;
    }

    .mobile-drawer-head .drawer-logo img {
        max-height: 34px;
        max-width: 140px;
        display: block;
    }

    .mobile_account_side .mobile_close_buton {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #f3f6fb !important;
        color: #0b254b !important;
        margin: 0 !important;
        cursor: pointer;
    }

    .ladder a {
        padding: 14px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        min-height: 48px;
        border-bottom: 1px solid #f3f5f9 !important;
        color: #12233f !important;
    }

    .ladder li.open > a {
        color: #0d6efd !important;
        background: #f5f8ff;
    }

    .ladder li.open > a .fa-angle-down {
        transform: rotate(180deg);
    }

    .ladder a .fa-angle-down {
        transition: transform 0.2s ease;
    }

    .mobile-drawer-cta {
        display: block;
        padding: 16px 20px 8px;
    }

    .mobile-drawer-cta .header-buton {
        width: 100%;
        margin-left: 0 !important;
        min-height: 46px;
    }

    .mobile-drawer-toplinks {
        display: flex;
        flex-direction: column;
        padding: 8px 20px 20px;
        gap: 8px;
    }

    .mobile-drawer-toplinks a {
        color: #4b5b76;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        padding: 8px 0;
    }

    .mobile_account_side .mobile-menu-html {
        padding: 8px 20px 24px !important;
    }
}

@media screen and (max-width: 480px) {
    .header-area .header-links .header-links-inside {
        width: calc(100% - 16px);
        gap: 10px;
    }

    .header-area .header-links .header-links-inside .logo {
        max-width: 112px;
    }

    .hed-link-btn-mobile .header-buton {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
}

@media (hover: none) {
    .top-level-menu li:hover > ul {
        opacity: 0;
        visibility: hidden;
    }
}

.header-area .site-width {
    max-width: 1260px;
    width: calc(100% - 32px);
}

.hed-link-btn-mobile a,
.mobile-drawer-cta a {
    text-decoration: none !important;
}

.header-burger span {
    position: relative;
}

.header-actions,
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}
