/* ==========================================================================
   Career Page Styles
   ========================================================================== */

:root {
    --primary-blue: rgba(26, 32, 44, 1);
    --secondary-blue: #0080CA;
    --text-color: #333;
    --light-grey: rgba(255, 252, 252, 1);
    --border-radius: 20px;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Hero Section --- */

.career-hero-section .hero-container {
    position: relative;
    max-width: 1312px;
    height: 326px;
    margin: 0 auto;
    padding: 30px;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    background: linear-gradient(90deg, #033793 -18.33%, #033793 10.11%, #0080CA 69.28%, #025CAF 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-career-en .career-hero-section .hero-container,
.page-career-ja .career-hero-section .hero-container {
    height: 375px;
}

.hero-text-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.career-hero-section .hero-title {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    color: rgba(255, 252, 252, 1);
    font-family: var(--font-family);
}

.career-hero-section .hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: var(--font-family);
    color: var(--light-grey);
    font-weight: 400;
    text-align: center;
    padding: 0 130px;
}

.career-vi .career-hero-section .hero-subtitle {
    padding: 0 124px;
}

.career-hero-section .hero-button {
    position: absolute;
    bottom: -10px;
    /* Dịch chuyển nút xuống 25px so với đáy container */
    left: 50%;
    /* Dịch chuyển sang giữa container */
    transform: translateX(-50%);
    /* Căn giữa hoàn hảo */
    display: inline-block;
    width: 353px;
    /* Chiều rộng cố định theo Figma */
    height: 49px;
    /* Chiều cao cố định theo Figma */
    line-height: 49px;
    /* Căn giữa văn bản theo chiều dọc */
    text-align: center;
    border-radius: 20px;
    /* Bo tròn góc */
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
    /* Màu chữ trắng */
    font-size: 24px;
    padding: 0;
    background: rgba(255, 255, 255, 25%);

    /* Sử dụng border-image cho viền gradient */
    border-image: linear-gradient(87.18deg, rgba(255, 255, 255, 0.05) 0%, #FFFFFF 50.03%, rgba(255, 255, 255, 0.05) 100.05%) 1;

    /* Hiệu ứng kính mờ */
    backdrop-filter: blur(100px);

    /* Đổ bóng kép */
    box-shadow:
        0px 2px 4px 0px rgba(255, 255, 255, 0.4) inset,
        0px -2px 4px 0px rgba(0, 0, 0, 0.2) inset;
    font-family: var(--font-family);
}

.career-hero-section .hero-button:hover {
    background-position: center;
    /* Nổi lên bằng cách tăng box-shadow và di chuyển nhẹ */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* --- Positions Section --- */
.career-positions-section {
    padding: 80px 20px;
    text-align: center;
}

.career-positions-section .section-heading {
    max-width: 1312px;
    margin-inline: auto;
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 50px;
    font-family: var(--font-family);
    color: transparent;
    background: linear-gradient(90deg, #033793 -18.33%, #033793 10.11%, #0080CA 69.28%, #025CAF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-mask-image: -webkit-linear-gradient(left, #fff, #fff);
    mask-image: linear-gradient(to right, #fff, #fff);
    isolation: isolate;
    display: flex;
    justify-content: flex-start;
}

.positions-grid-container {
    max-width: 1312px;
    margin: 0 auto;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.position-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.position-card .position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 1);
    padding: 15px 0;
}

.position-card .position-title-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.position-card .position-title {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 150%;
    letter-spacing: -2%;
    vertical-align: middle;
    color: var(--primary-blue);

}

.position-card .position-type {
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 175%;
    letter-spacing: -2%;
    vertical-align: middle;
    color: var(--font-family);
    font-family: var(--font-family);

}

.position-card .toggle-details-btn {
    width: 27px;
    height: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #033793 -18.33%, #033793 10.11%, #0080CA 69.28%, #025CAF 100%);
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Định dạng cho ảnh mũi tên */
.position-card .toggle-details-btn .icon-arrow {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    /* Chuyển ảnh sang màu trắng */
}

.position-card .position-description {
    font-family: var(--font-family);
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 160%;
    letter-spacing: -2%;
    vertical-align: middle;
    color: var(--primary-blue);

}

.position-card .details-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

/* Trong phần .position-card */
.position-card .detail-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-family);
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 150%;
    letter-spacing: -2%;
    vertical-align: middle;
    color: var(--primary-blue);

}

.position-card .detail-icon {
    /* Đảm bảo span .detail-icon có kích thước rõ ràng nếu cần */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    /* Kích thước vùng chứa icon */
    height: 20px;
    /* Kích thước vùng chứa icon */
}

.position-card .detail-icon .custom-icon {
    width: 100%;
    /* Đảm bảo ảnh chiếm hết chiều rộng của .detail-icon */
    height: auto;
    /* Giữ tỷ lệ khung hình */
    filter: brightness(0) invert(-1.3);
    /* Làm cho icon có màu xám đậm như mẫu */
    /* Giá trị 0.3 có thể cần điều chỉnh để đạt màu xám mong muốn */
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
}

.pagination a {
    text-decoration: none;
    color: var(--primary-blue);
    padding: 5px 10px;
    font-family: var(--font-family);
    font-weight: 700;
}

.pagination span.current {
    text-decoration: none;
    color: var(--primary-blue);
    padding: 5px 10px;
    font-family: var(--font-family);
    font-weight: 700;
    margin-top: 0;
    text-decoration: underline;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination span {
    margin-top: 5px;
    color: #999;
}

/* --- Join Team Section --- */
.join-team-section {
    padding: 80px 20px;
    background-color: #fff;
    /* Nền trắng */
}

.join-team-container {
    max-width: 1312px;
    margin: 0 auto;
    padding: 0 25px 80px;
}

.join-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.join-team-header .section-heading-dark {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    flex-basis: 50%;
    text-align: left;
    margin: 0;
    font-family: var(--font-family);
    color: transparent;

    background: linear-gradient(90deg, #033793 -18.33%, #033793 10.11%, #0080CA 69.28%, #025CAF 100%);

    /* Cắt background theo hình dạng văn bản */
    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    -webkit-mask-image: -webkit-linear-gradient(left, #fff, #fff);
    mask-image: linear-gradient(to right, #fff, #fff);
    isolation: isolate;
    padding-right: 140px;
}

.join-team-header .join-team-intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--primary-blue);
    flex-basis: 50%;
    text-align: left;
    margin: 0;
    font-family: var(--font-family);
    padding-left: 95px;
}

.join-team-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    margin-bottom: 50px;
    /* Khoảng cách giữa ảnh lớn và nội dung bên dưới */
}

.join-team-image {
    width: 100%;
    height: auto;
    border-radius: 50px;
    object-fit: cover;
}

.join-team-image.wide-image {
    height: 413px;
    /* Chiều cao cho ảnh lớn */
}

.join-team-image.narrow-image {
    height: 413px;
    /* Chiều cao cho ảnh nhỏ */
}

.join-team-checklist {
    flex: 1;
    text-align: left;
}

.join-team-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.join-team-checklist ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-family: var(--font-family);
}

.join-team-checklist .list-icon {
    width: 37px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.join-team-checklist .list-icon .custom-icon-tick {
    width: 37px;
    /* Kích thước ảnh */
    height: 35px;
}

.join-team-image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
}

/* ==========================================================================
   ABOUT US PAGE - FINAL CONTACT SECTION
   ========================================================================== */

.final-contact-section {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-contact-section .container {
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 1140px;
}

/* --- Cột Form bên trái --- */
.contact-form-wrapper {
    flex-basis: 50%;
    background-color: #E8E8E8;
    padding: 50px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #033793;
    text-align: center;
    margin: 0 0 35px 0;
}

.contact-form-wrapper .form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.contact-form-wrapper .form-group {
    width: 100%;
    margin-bottom: 20px;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
}

.contact-form-wrapper textarea {
    height: 120px;
    resize: vertical;
}

.contact-information {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-submit {
    position: relative;
    display: block;
    width: 50%;
    padding: 16px 0;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    text-align: center;
    background-color: #033793;
    background: linear-gradient(90deg, #033793 -18.33%, #033793 10.11%, #0080CA 69.28%, #025CAF 100%);
    background-size: 200% auto;
    color: #ffffff;
    transition: all 0.4s ease;
    cursor: pointer;
    line-height: 100%;
}

.btn-submit:hover {
    background-position: right center;
}

.btn-submit span {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.btn-submit i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}


/* --- Cột ảnh bên phải --- */
.contact-image-wrapper {
    flex-basis: 40%;
}

.contact-image-wrapper img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {

    .career-hero-section .hero-container {
        max-width: 95vw;
        height: 286px;
        padding: 0;
        justify-content: center;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
    }


    .career-positions-section .section-heading {
        margin: 0;
        text-align: left;
        font-size: 32px;
        padding: 0 20px;
    }

    .career-hero-section .hero-subtitle {
        padding: 0 15px 30px;
        margin: 0;
    }

    .career-hero-section .hero-button {
        bottom: -23px;
    }

    .career-hero-section .hero-title {
        font-size: 32px;
        margin: 20px 0;
    }

    .positions-grid {
        grid-template-columns: 1fr;
    }

    .positions-grid .position-card:nth-child(n+3) {
        display: none;
    }

    .join-team-content {
        gap: 20px;
    }

    .join-team-section .section-heading {
        font-size: 28px;
    }

    .final-contact-section {
        padding: 80px 20px 110px;
        /* Giảm padding cho section */
    }

    .final-contact-section .container {
        flex-direction: column;
        /* Xếp các cột theo chiều dọc */
        gap: 0;
        /* Bỏ khoảng cách ngang */
    }

    /* --- Ẩn cột ảnh bên phải trên mobile --- */
    .contact-image-wrapper {
        display: none;
    }

    /* --- Cho cột form chiếm toàn bộ chiều rộng --- */
    .contact-form-wrapper {
        flex-basis: 100%;
        /* Chiếm hết chiều rộng */
        width: 140%;
        padding: 40px 20px;
        /* Giảm padding trên mobile */
    }

    .contact-form-wrapper .form-row {
        flex-direction: column;
        /* Xếp 2 ô input dọc */
        gap: 0;
    }

    /* --- Di chuyển nút Gửi lời nhắn ra ngoài --- */
    .contact-form-wrapper .btn-submit {
        position: absolute;
        margin: 640px auto 0 auto;
        width: 60%;
    }

    .contact-information {
        width: 90%;
    }

    .join-team-container {
        display: flex;
        flex-direction: column;
    }

    .join-team-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .join-team-section {
        padding: 0 20px 80px;
    }

    .join-team-header .section-heading-dark {
        font-size: 32px;
        text-align: center;
        padding: 0 0 30px 0;
    }

    .join-team-header .join-team-intro-text {
        font-size: 16px;
        text-align: center;
        padding: 0;
    }

    .join-team-image.wide-image {
        height: auto;
        width: 100%;
        margin: 20px 0;
    }

    .image-placeholder {
        margin-bottom: 0;
    }


}

@media (max-width: 758px) {

    .career-hero-section {}

    .career-hero-section .hero-container {
        max-width: 409px;
        height: 360px;
        padding: 0;
        justify-content: space-between;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }


    .career-positions-section .section-heading {
        margin: 0;
        text-align: left;
        font-size: 32px;
        padding: 0 20px;
    }

    .career-hero-section .hero-subtitle {
        padding: 0 15px;
        margin: 0;
    }

    .career-hero-section .hero-button {
        bottom: -23px;
    }

    .career-hero-section .hero-title {
        font-size: 32px;
        margin: 20px 0;
    }

    .positions-grid {
        grid-template-columns: 1fr;
    }

    .positions-grid .position-card:nth-child(n+3) {
        display: none;
    }

    .join-team-content {
        flex-direction: column;
        gap: 20px;
    }

    .join-team-section .section-heading {
        font-size: 28px;
    }

    .final-contact-section {
        padding: 80px 20px 110px;
        /* Giảm padding cho section */
    }

    .final-contact-section .container {
        flex-direction: column;
        /* Xếp các cột theo chiều dọc */
        gap: 0;
        /* Bỏ khoảng cách ngang */
    }

    /* --- Ẩn cột ảnh bên phải trên mobile --- */
    .contact-image-wrapper {
        display: none;
    }

    /* --- Cho cột form chiếm toàn bộ chiều rộng --- */
    .contact-form-wrapper {
        flex-basis: 100%;
        /* Chiếm hết chiều rộng */
        width: 140%;
        padding: 40px 20px;
        /* Giảm padding trên mobile */
    }

    .contact-form-wrapper .form-row {
        flex-direction: column;
        /* Xếp 2 ô input dọc */
        gap: 0;
    }

    /* --- Di chuyển nút Gửi lời nhắn ra ngoài --- */
    .contact-form-wrapper .btn-submit {
        position: absolute;
        margin: 640px auto 0 auto;
        width: 60%;
    }

    .contact-information {
        width: 90%;
    }

    .join-team-container {
        display: flex;
        flex-direction: column;
        width: 100vw;
        align-items: center;
    }

    .join-team-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100vw;
        margin-bottom: 30px;
    }

    .join-team-section {
        padding: 0 20px 80px 20px;
        display: flex;
        justify-content: center;
    }

    .join-team-header .section-heading-dark {
        font-size: 30px;
        text-align: center;
        padding: 0;
    }

    .join-team-header .join-team-intro-text {
        font-size: 16px;
        text-align: center;
        padding: 10px 55px;
    }

    .join-team-image.wide-image {
        height: 201.85714721679688px;
        width: 336px;
        margin: 20px 0;
    }

    .image-placeholder {
        order: 2;
        margin-bottom: 0;
        width: fit-content;
    }
}

@media (min-width: 320px) and (max-width: 420px) {
    .career-hero-section .hero-container {
        max-width: 95vw;
        height: auto;
        padding: 0;
        justify-content: space-between;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }


    .career-positions-section .section-heading {
        margin: 0;
        text-align: left;
        font-size: 32px;
        padding: 0 20px;
    }

    .career-hero-section .hero-subtitle {
        padding: 0 15px;
        margin: 0;
    }

    .career-hero-section .hero-button {
        bottom: -23px;
        width: 80vw;
        height: auto;
    }

    .career-hero-section .hero-title {
        font-size: 32px;
        margin: 20px 0;
    }

    .positions-grid {
        grid-template-columns: 1fr;
    }

    .positions-grid .position-card:nth-child(n+3) {
        display: none;
    }

    .join-team-content {
        flex-direction: column;
        gap: 20px;
    }

    .join-team-section .section-heading {
        font-size: 28px;
    }

    .final-contact-section {
        padding: 80px 20px 110px;
        /* Giảm padding cho section */
    }

    .final-contact-section .container {
        flex-direction: column;
        /* Xếp các cột theo chiều dọc */
        gap: 0;
        /* Bỏ khoảng cách ngang */
    }

    /* --- Ẩn cột ảnh bên phải trên mobile --- */
    .contact-image-wrapper {
        display: none;
    }

    /* --- Cho cột form chiếm toàn bộ chiều rộng --- */
    .contact-form-wrapper {
        flex-basis: 100%;
        /* Chiếm hết chiều rộng */
        width: 140%;
        padding: 40px 20px;
        /* Giảm padding trên mobile */
    }

    .contact-form-wrapper .form-row {
        flex-direction: column;
        /* Xếp 2 ô input dọc */
        gap: 0;
    }

    /* --- Di chuyển nút Gửi lời nhắn ra ngoài --- */
    .contact-form-wrapper .btn-submit {
        position: absolute;
        margin: 640px auto 0 auto;
        width: 60%;
    }

    .contact-information {
        width: 90%;
    }

    .join-team-container {
        display: flex;
        flex-direction: column;
        width: 100vw;
        align-items: center;
    }

    .join-team-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100vw;
        margin-bottom: 30px;
    }

    .join-team-section {
        padding: 0 20px 80px 20px;
        display: flex;
        justify-content: center;
    }

    .join-team-header .section-heading-dark {
        font-size: 26px;
        text-align: center;
        padding: 0;
    }

    .join-team-header .join-team-intro-text {
        font-size: 16px;
        text-align: center;
        padding: 10px 25px;
    }

    .join-team-image.wide-image {
        height: 201.85714721679688px;
        width: 336px;
        margin: 20px 0;
    }

    .image-placeholder {
        order: 2;
        margin-bottom: 0;
        width: fit-content;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {

    .career-hero-section .hero-container {
        max-width: 95vw;
        height: 286px;
        padding: 0;
        justify-content: center;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
    }

    .hero-text-wrapper {
        padding: 0 40px 30px;
    }

    .career-positions-section .section-heading {
        margin: 0;
        text-align: left;
        font-size: 32px;
        padding: 0 20px;
    }

    .career-hero-section .hero-subtitle {
        padding: 0 15px;
        margin: 0;
    }

    .career-hero-section .hero-button {
        bottom: -23px;
        width: 80vw;
        height: auto;
    }

    .career-hero-section .hero-title {
        font-size: 32px;
        margin: 20px 0;
    }

    .positions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .positions-grid .position-card:nth-child(n+3) {
        display: none;
    }

    .join-team-content {
        gap: 20px;
    }

    .join-team-section .section-heading {
        font-size: 28px;
    }

    .final-contact-section {
        padding: 80px 20px 110px;
        /* Giảm padding cho section */
    }

    .final-contact-section .container {
        flex-direction: column;
        /* Xếp các cột theo chiều dọc */
        gap: 0;
        /* Bỏ khoảng cách ngang */
    }

    /* --- Ẩn cột ảnh bên phải trên mobile --- */
    .contact-image-wrapper {
        display: none;
    }

    /* --- Cho cột form chiếm toàn bộ chiều rộng --- */
    .contact-form-wrapper {
        flex-basis: 100%;
        /* Chiếm hết chiều rộng */
        width: 140%;
        padding: 40px 20px;
        /* Giảm padding trên mobile */
    }

    .contact-form-wrapper .form-row {
        flex-direction: column;
        /* Xếp 2 ô input dọc */
        gap: 0;
    }

    /* --- Di chuyển nút Gửi lời nhắn ra ngoài --- */
    .contact-form-wrapper .btn-submit {
        position: absolute;
        margin: 640px auto 0 auto;
        width: 60%;
    }

    .contact-information {
        width: 90%;
    }

    .join-team-container {
        display: flex;
        flex-direction: column;
    }

    .join-team-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .join-team-section {
        padding: 0 20px 80px;
    }

    .join-team-header .section-heading-dark {
        font-size: 32px;
        text-align: center;
        padding: 0 0 30px 0;
    }

    .join-team-header .join-team-intro-text {
        font-size: 16px;
        text-align: center;
        padding: 0;
    }

    .join-team-image.wide-image {
        height: auto;
        width: 100%;
        margin: 20px 0;
    }

    .image-placeholder {
        margin-bottom: 0;
    }
}