/* Header Styles */
.header {
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-with-bg {
    background: url('../images/HOME/1-10.png') center center / cover no-repeat;
    min-height: 100vh;
}

/* ===== Sticky Header on Scroll ===== */
.header-top {
    width: 100%;
    padding: 30px 0;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.header-top.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
}

/* When sticky, force nav links & lang buttons to dark */
.header-top.sticky .nav-list li a {
    color: #000;
}

.header-top.sticky .nav-list li a:hover,
.header-top.sticky .nav-list li a.active {
    color: #F05A22;
}

.header-top.sticky .lang-btn {
    color: #000;
}

.header-top.sticky .lang-btn:hover,
.header-top.sticky .lang-btn.active {
    color: #F05A22;
}

/* Spacer to prevent content jump when header becomes fixed */
.header-top-spacer {
    display: none;
}

.header-top-spacer.active {
    display: block;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    
}

/* Group for navbar and controls */
.nav-controls-group {
    display: flex;
    align-items: center;
    /* gap: 60px; */
    font-weight: 600;
    flex: 1;
}

.header-bottom {
    width: 100%;
    display: flex;
    gap: 40px;
}

.header-bottom-large-text {
        font-size: 64px;
    font-weight: 700;
}
#header-title-part1{
    font-size: 80px;
}
.text-hightlight {
    color: #F05A22;
}

/* Vietnamese header title spans styling - Desktop only */
@media screen and (min-width: 481px) {

    .header-title-part1,
    .header-title-part2 {
        display: block;
        white-space: nowrap;
    }

    .header-title-part2 {
        margin-top: -10px;
    }
}

.header-bottom-medium-text {
    font-size: 20px;
    font-weight: 700;
}

.header-bottom-normal-text {
    font-size: 20px;
    font-weight: 400;
}
.home-description{
    font-size: 24px;
}
.index-page .header-bottom-normal-text {
    margin-top: 20px;
}

.header-bottom-left {
    color: white;
        max-width: 80%;
    flex-basis: 80%;
}

.header-bottom-right {
    /* Prevent collapse */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 20%;
    flex-basis: 20%;
}

.header-bottom-right-left {
    padding: 10px 20px;
    flex: 0 0 auto;
}

.header-bottom-right-right {
    padding: 10px 20px;
    flex: 0 0 auto;
}

.header-bottom-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.header-bottom-row {
    display: flex;
    min-height: 200px;
    align-items: flex-start;
    padding: 40px 15px;
    gap: 30px
}

.index-page .header-bottom-left {
    padding-top: 40px;
    padding-bottom: 120px;
}
.index-page .header-bottom-left-inner {
    
}
.index-page .header-bottom-right {
    height: fit-content;
    align-self: end;
}

.index-page .header-bottom-right {
    position: relative;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.6) 80%,
            rgba(0, 0, 0, 0.8) 100%);
}

.index-page .header-bottom-right-left,
.index-page .header-bottom-right-right {
    position: relative;
    z-index: 2;
}

.index-page .header-bottom-right-left {
    font-weight: 700;
}

/* Business page specific text colors */
.business-page .header-bottom-row {
    font-size: 60px;
}

.business-page .header-bottom-left {
    color: #000;
    max-width: 65%;
    flex-basis: 65%;

}

.business-page .header-bottom-left .header-bottom-text {
    padding: 0;
}

.business-page .header-bottom-left .header-bottom-text div {
    margin-bottom: 0;
}

.business-page .header-bottom-right {
    color: #000;
    max-width: 35%;
    flex-basis: 35%;
}

.business-page .nav-list li {
    border-right-color: #000;
}

.business-page .nav-list li a {
    color: #000;
}

.business-page .lang-btn {
    color: #000;
}
.projects-page .header-bottom-left {
    max-width: 60%;
    flex-basis: 60%;
}
.projects-page .header-bottom-right{
    max-width: 40%;
    flex-basis: 40%;
}
/* Join page specific text colors */

.join-page .header-bottom-left {
    padding: 0;
    align-self: end;
    max-width: 30%;
    flex-basis: 30%;
}
.join-page .header-bottom-right {
    max-width: 70%;
    flex-basis: 70%;
}
.join-page .header-bottom-text {
    color: #000;
}

.join-page .nav-list li {
    border-right-color: #000;
}

.join-page .nav-list li a {
    color: #000;
}

.join-page .lang-btn {
    color: #000;
}

/* We page specific text colors */
.we-page .header-bottom-left {
    color: #000;
}

.we-page .header-bottom-left p {
    max-width: 750px;
}

.we-page .header-bottom-right {
    color: #000;
    align-self: end;
    justify-content: right;
}

.we-page .header-bottom-text {
    font-size: 60px;
}

.we-page .nav-list li {
    border-right-color: #000;
}

.we-page .nav-list li a {
    color: #000;
}

.we-page .lang-btn {
    color: #000;
}

/* Contact page specific text colors */
.contact-page .nav-list li a {
    color: #000;
}

.contact-page .lang-btn {
    color: #000;
}

.header-bottom-image {
    width: 100%;
    background: url('../images/HOME/1-29.png') center center / cover no-repeat;
    position: relative;
}

.we-page .header-bottom-image {
    background: none;
}

.header-bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

.we-page .header-bottom-image img {
    width: 100%;
    display: block;
}

.logo a {
    display: block;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.navbar {
    margin-left: 0;
    flex: 1;
    padding: 0px 60px;
}

.nav-list {
    display: flex;
    gap: 0;
    justify-content: space-evenly;
    width: 100%;
}

.nav-list li {
    flex: 1;
    text-align: center;
}

.nav-list li a {
    /* font-size: 36px; */
    color: #fff;
    transition: color 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #F05A22;
}

/* ===== Desktop PRODUCT Dropdown ===== */
.nav-list li {
    position: relative;
}
.nav-list>li {
   line-height: 80px;
}
.nav-list li .sub-menu {
    position: absolute;
    top: 100%;
    left: 80%;
    transform: translateX(-80%);
    min-width: 250px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-left: 5px solid #F05A22;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
}
.sub-menu li{
    line-height: 32px;
}
.nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-list li .sub-menu li {
    text-align: left;
    border: none;
    flex: none;
}

.nav-list li .sub-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    font-size: 14px;
    gap: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li .sub-menu li a:hover {
    background: #fef5f1;
    color: #F05A22;
}

.nav-list li .sub-menu li a.coming-soon {
    color: #999;
    cursor: default;
}

.nav-list li .sub-menu li a.coming-soon:hover {
    background: transparent;
    color: #999;
}

.nav-list li .sub-menu li a.coming-soon span {
    font-size: 12px;
    font-weight: 700;
    color: #F05A22;
}

.nav-list li .sub-menu li a .coming-soon-label {
    font-size: 12px;
    font-weight: 700;
    color: #F05A22;
}

/* Language Selector */
.language-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 2px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    color: #F05A22;
}

.lang-btn:hover::before,
.lang-btn.active::before {
    background-color: #F05A22;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 480px) {

    /* Hide desktop dropdown and sticky header on mobile */
    .nav-list li .sub-menu {
        display: none !important;
    }

    .header-top.sticky {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 30px 0;
    }

    .header-top-spacer {
        display: none !important;
    }

    .header-top .container {
        padding: 0 15px;
    }

    .logo img {
        max-width: 180px;
        width: auto;
    }

    .logo h1 {
        font-size: 22px;
    }

    .navbar {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 0;
    }

    .navbar.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list li a {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* .language-selector {
        display: none;
    } */

    .nav-controls-group {
        position: static;
        flex: 0;
        gap: 0;
    }

    .header-bottom-row.desktop-layout {
        display: none;
    }

    .header-bottom-row.mobile-layout {
        display: block;
        padding: 20px;
    }

    .header-bottom-medium-text {
        font-size: 20px;
    }

    .we-page .header-bottom-text {
        padding: 10px 0;
    }

    .business-page .header-bottom-row {
        font-size: 60px;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
            min-height: auto;
    }

    .business-page .header-bottom-right {
        width: 100%;
    }

    .header-bottom {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    .header-bottom-left,
    .header-bottom-right {
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-bottom-left {
        text-align: left;
        order: 1;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }

    .header-bottom-right {
        order: 2;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .header-bottom-large-text {
        font-size: 36px;
    }
    #header-title-part1 {
    font-size: 24px;
}
    .header-bottom-normal-text {
        font-size: 14px;
    }
    .home-description{
    font-size: 14px;
}
    .header-bottom-right-left {
        font-size: 14px;
    }

    .join-page .header-bottom-row {
        flex-direction: column;
        gap: 20px;
        padding: 20px
    }

    .join-page .header-bottom-right {
        order: 1;
    }

    .join-page .header-bottom-left {
        order: 2;
    }
    .process-sub-block p {
    max-width: 100%;
}
}