/* 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;
}

.header-top {
    width: 100%;
    padding: 30px 0;
}

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

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

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

.header-bottom-large-text {
    font-size: 75px;
    font-weight: 700;
}

/* 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: 60px;
    font-weight: 700;
}

.header-bottom-normal-text {
    font-size: 22px;
    font-weight: 400;
}

.index-page .header-bottom-normal-text {
    margin-top: 20px;
}

.header-bottom-left {
    flex: 1;
    color: white;
    min-width: 0;
    /* Allow text to wrap/overflow properly */
}

.header-bottom-right {
    width: 50%;
    flex-shrink: 0;
    /* Prevent collapse */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.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 80px;
}

.index-page .header-bottom-left {
    padding: 40px 80px;
}

.index-page .header-bottom-right {
    width: 55%;
    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;
}

.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;
}

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

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

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

/* Join page specific text colors */

.join-page .header-bottom-left {
    padding: 0;
    flex-shrink: 0;
    align-self: end;
}

.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;
    flex-shrink: 0;
}

.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;
}

/* 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) {

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

    .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;
    }

    .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%;
        max-width: 100%;
    }

    .header-bottom-left {
        text-align: left;
        order: 1;
    }

    .header-bottom-right {
        order: 2;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .header-bottom-large-text {
        font-size: 36px;
    }

    .header-bottom-normal-text {
        font-size: 11px;
    }

    .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;
    }
}