/* ==========================================================
   HEADER (NATIVE FULL STRUCTURE)
   ========================================================== */
.ls-site-header {
    background-color: transparent;
    padding: 10px 0;
    width: 100%;
    z-index: 999;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: background-color 0.4s ease, padding 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ls-header-sticky {
    position: fixed !important;
    z-index: 9999;
}

.ls-header-sticky.is-scrolled {
    padding: 5px 0;
}

/* Smart Sticky Hide */
.ls-header-smart-sticky.is-hidden {
    transform: translateY(-100%);
}

.ls-site-header .ls-container {
    max-width: 98%;
    background-color: var(--ls-bg-secondary);
    border-radius: 16px;
    padding: 12px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ls-site-header .ls-container.ls-header-glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.ls-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.ls-header-inner.ls-layout-right {
    flex-direction: row-reverse;
}

.ls-header-inner.ls-layout-split {
    justify-content: space-between;
}

.ls-header-inner.ls-layout-split .ls-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.ls-header-inner.ls-layout-split .ls-nav {
    flex: 2;
    display: flex;
    justify-content: center;
}

.ls-nav-drawer {
    display: flex;
    flex: 3;
    justify-content: flex-end;
    align-items: center;
}

.ls-header-inner.ls-layout-split .ls-nav-drawer {
    justify-content: space-between;
}

.ls-mobile-page-title,
.ls-hamburger,
.ls-drawer-close,
.ls-drawer-overlay,
.ls-drawer-logo {
    display: none;
}

.ls-header-socials {
    display: none !important;
}

/* Show socials on desktop for split layout (Trải 3 Điểm) */
@media (min-width: 1025px) {
    .ls-header-inner.ls-layout-split .ls-header-socials {
        display: flex !important;
        flex: 1;
        justify-content: flex-end;
        gap: 15px;
        align-items: center;
    }
}

.ls-header-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-text-primary);
    transition: all 0.3s ease;
}

.ls-header-social-icon:hover {
    background-color: var(--ls-accent);
    border-color: var(--ls-accent);
    color: var(--ls-bg-primary);
}

.ls-header-inner.ls-layout-center {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.ls-header-inner.ls-layout-center .ls-logo {
    align-items: center;
}

.ls-logo-image-wrapper {
    display: flex;
    align-items: center;
}

.ls-custom-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.ls-logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    color: var(--ls-text-primary);
    text-align: left;
}

.ls-logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ls-header-inner.ls-layout-center .ls-logo-text-wrapper {
    align-items: center;
    text-align: center;
}

.ls-header-inner.ls-layout-right .ls-logo-text-wrapper {
    align-items: flex-end;
    text-align: right;
}

.ls-logo-title {
    font-size: 1.4rem;
    margin: 0 0 4px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
}

.ls-logo-sub {
    font-size: 0.7rem;
    color: var(--ls-text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 2;
    text-align: center;
    align-items: center
}

.ls-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center !important;
}

.ls-menu-fallback {
    margin: 0;
    display: flex;
    align-items: center;
}

.ls-nav-menu li a {
    color: var(--ls-text-primary);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
    display: flex;
    align-items: center;
}

.ls-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--ls-accent);
    transition: width 0.3s ease;
    border-radius: 2px;
    opacity: 0.8;
}

.ls-nav-menu li a:hover {
    color: var(--ls-accent);
}

.ls-nav-menu li.isSelect>a:hover::after,
.ls-nav-menu li.is-selected>a:hover::after,
.ls-nav-menu li a:hover::after,
.ls-nav-menu li.isSelect>a::after,
.ls-nav-menu li.is-selected>a::after,
.ls-nav-menu li.current-menu-item>a::after,
.ls-nav-menu li.current_page_item>a::after,
.ls-nav-menu li.current-page-item>a::after,
.ls-nav-menu li.current-menu-ancestor>a::after,
body.home .ls-nav-menu li.menu-item-home>a::after,
body.front-page .ls-nav-menu li.menu-item-home>a::after {
    width: 100%;
}

.ls-nav-menu li.isSelect>a,
.ls-nav-menu li.is-selected>a,
.ls-nav-menu li.current-menu-item>a,
.ls-nav-menu li.current_page_item>a,
.ls-nav-menu li.current-page-item>a,
.ls-nav-menu li.current-menu-ancestor>a,
body.home .ls-nav-menu li.menu-item-home>a,
body.front-page .ls-nav-menu li.menu-item-home>a {
    color: var(--ls-accent);
}

@media (max-width: 1280px) {
    .ls-site-header .ls-container {
        padding: 15px 25px;
        width: 95%;
    }

    .ls-nav-menu {
        gap: 20px;
    }

    .ls-nav-menu li a {
        font-size: 0.85rem;
    }

    .ls-logo-title {
        font-size: 1.25rem;
    }

    .ls-logo-sub {
        font-size: 0.7rem;
    }

    .ls-header-social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .ls-site-header {
        padding: 5px 0;
        position: absolute;
    }

    .ls-site-header .ls-container {
        padding: 18px 20px;
        width: 95%;
        border-radius: 12px;
    }

    .ls-header-inner,
    .ls-header-inner.ls-layout-split,
    .ls-header-inner.ls-layout-right,
    .ls-header-inner.ls-layout-center {
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .ls-logo {
        flex-shrink: 0;
    }

    .ls-header-inner.ls-layout-split .ls-logo,
    .ls-logo-link {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
    }

    .ls-logo .ls-logo-text-wrapper {
        display: none;
    }

    .ls-logo-title {
        font-size: 1.1rem;
        margin: 0;
    }

    .ls-logo-sub {
        display: none;
    }

    .ls-custom-logo {
        max-height: 45px;
    }

    .ls-drawer-logo {
        display: block;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: left;
    }

    .ls-drawer-logo .ls-custom-logo {
        max-height: 50px;
    }

    .ls-mobile-page-title {
        display: block;
        font-size: 1.15rem;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--ls-text-primary);
        text-align: center;
        letter-spacing: 1px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: 40vw;
        /* Prevent overlapping with logo */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
    }

    .ls-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 14px;
        cursor: pointer;
        z-index: 99;
        flex-shrink: 0;
    }

    .ls-hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--ls-text-primary);
        border-radius: 2px;
    }

    .ls-nav-drawer {
        position: fixed;
        top: 0;
        right: -320px;
        width: 280px;
        height: 100vh;
        background: var(--ls-bg-secondary);
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: flex-start;
        padding: 60px 30px 30px 30px;
        transition: right 0.4s ease;
        z-index: 1001;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .ls-nav-drawer.active {
        right: 0;
    }

    .ls-drawer-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 36px;
        font-weight: 300;
        cursor: pointer;
        color: var(--ls-text-secondary);
        line-height: 1;
    }

    .ls-drawer-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 999;
    }

    .ls-drawer-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .ls-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
        text-align: left;
    }

    .ls-nav-menu li a {
        font-size: 0.85rem;
    }

    .ls-header-socials {
        display: flex !important;
        justify-content: flex-start;
        gap: 15px;
        margin-bottom: 0px;
        width: 100%;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ls-header-social-icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* ==========================================================
   HEADER FULL-WIDTH & PUSH DOWN OPTION
   ========================================================== */
.ls-site-header.ls-header-full-top {
    position: fixed !important;
    /* Push content down instead of overlapping */
}

.ls-site-header.ls-header-full-top.ls-header-sticky {
    position: fixed !important;
    top: 0;
}

/* When at the very top (not scrolled) */
.ls-site-header.ls-header-full-top:not(.is-scrolled) {
    padding: 0 !important;
}

.ls-site-header.ls-header-full-top:not(.is-scrolled) .ls-container {
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.ls-site-header.ls-header-full-top:not(.is-scrolled) .ls-container.ls-header-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
