/* recruit.css */

.page-main-recruit {
    background-color: #fff;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 100px;
}

.recruit-container {
    max-width: 1300px;
    margin: 0 auto;
}

.recruit-intro {
    margin-top: 3rem;
}



.recruit-intro h2 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #0f172a;
    font-family: var(--font-serif);
    text-align: left;
}

.recruit-intro > p {
    font-size: 18px;
    line-height: 2.2;
    color: #333;
    max-width: 100%;
    font-family: var(--font-serif);
    text-align: left;
}

/* Anchor Cards */
.recruit-anchors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.anchor-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #777;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: left;
    color: #000;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.3s ease;
    position: relative;
    min-height: 110px;
}

.anchor-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-brand);
    color: #000;
}

.anchor-card-title {
    flex: 1;
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 700;
    font-family: var(--font-serif);
    line-height: 1.4;
    text-align: center;
}

.anchor-card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.anchor-card-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.anchor-card-arrow {
    position: absolute;
    bottom: -15px;
    /* sit exactly on the border */
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #d1121d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.anchor-card-arrow::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -3px;
}

@media (max-width: 900px) {
    .recruit-anchors {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .anchor-card {
        display: grid;
        grid-template-columns: 80px 1fr;
        padding: 1.5rem 1.5rem 1.5rem 1rem;
        gap: 0;
    }

    .anchor-card-icon {
        margin: 0 auto;
    }

    .anchor-card-title {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
}

/* Global Section */
.recruit-global {
    display: flex;
    gap: 4rem;
    align-items: stretch;
    margin-bottom: 6rem;
}

.global-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.global-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-family: var(--font-serif);
}

.global-text p {
    font-size: 16px;
    font-family: var(--font-serif);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.global-flags {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    height: 128px;
    justify-content: center;
}

.global-flags img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.global-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1121d;
    color: #d1121d;
    font-weight: 600;
    font-family: var(--font-serif);
    border-radius: 999px;
    padding: 0.8rem 2rem;
    width: fit-content;
    margin: 0 auto;
    text-decoration: none;
    transition: all 0.3s;
    background-color: #fff;
}

.global-btn:hover {
    background-color: #d1121d;
    color: #fff;
}

.global-image {
    flex: 0 0 45%;
    max-width: 450px;
    position: relative;
    min-height: 400px;
    margin-left: 2rem;
}

.global-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
}

@media (max-width: 900px) {
    .recruit-global {
        flex-direction: column;
    }

    .global-image {
        max-width: 100%;
        margin-left: 0;
        margin-top: 2rem;
        min-height: 300px;
    }
}

/* Job Section */
.job-section {
    margin-bottom: 5rem;
    scroll-margin-top: 150px;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-header-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-header-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.job-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 0;
    color: #000;
}

.job-desc {
    font-size: 1rem;
    font-family: var(--font-serif);
    color: #000;
    margin-bottom: 1.5rem;
}

/* Table */
.job-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.job-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
}

.job-table th,
.job-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
    font-family: var(--font-serif);
    font-size: 1rem;
}

.job-table tr:last-child th,
.job-table tr:last-child td {
    border-bottom: none;
}

.job-table th {
    width: 220px;
    background-color: #f8fafc;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.job-table td {
    color: #0f172a;
    line-height: 1.6;
    background-color: #fff;
}

.apply-btn {
    display: inline-block;
    border: 2px solid #d1121d;
    color: #d1121d;
    font-weight: 600;
    font-family: var(--font-serif);
    border-radius: 999px;
    padding: 0.3rem 1.5rem;
    text-decoration: none;
    font-size: 1rem;
    margin: 0 auto;
    transition: all 0.3s;
    background-color: #fff;
    white-space: nowrap;
}

.apply-btn:hover {
    background-color: #d1121d;
    color: #fff;
}

/* Flex layout for apply field if needed */
.apply-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 900px) {

    .job-table th,
    .job-table td {
        display: block;
        width: 100%;
    }

    .job-table th {
        background-color: #f8fafc;
        border-bottom: none;
        padding-bottom: 0.8rem;
        text-align: center;
    }

    .job-table td {
        border-top: none;
        padding-top: 0.8rem;
    }
}


@media (max-width: 767px) {
    .recruit-intro {
        margin-top: 2.5rem;
    }

    .recruit-intro h2 {
        font-size: 18px;
    }

    .recruit-intro p {
        font-size: 14px;
        margin-bottom: 3rem;
    }
}