/* =========================================
   Staff Page Styles
   ========================================= */

.page-header {
    height: auto;
    min-height: 250px;
    background: linear-gradient(rgba(11, 22, 42, 0.7), rgba(11, 22, 42, 0.7)), url('../img/top_mv_recruit.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-bottom: 40px;
}

.page-title-area {
    padding-top: 100px;
    text-align: center;
    color: #fff;
}

.page-title {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.page-title .sub {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--accent-gold);
    margin-left: 15px;
}

.staff-page-main {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.staff-intro-text {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.staff-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0ece1;
    padding: 0;
    margin-bottom: 60px;
}

.staff-hero {
    display: flex;
    align-items: stretch;
    background-color: #faf8f5;
    border-bottom: 1px solid #e1dbce;
}

.staff-hero-img {
    width: 45%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.staff-hero-img img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-hero-img::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(to right, transparent, #faf8f5);
}

.staff-hero-content {
    width: 55%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-role-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.95rem;
    color: #fff;
    background-color: var(--accent-gold);
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.staff-hero-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.hero-q-text {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.hero-a-text {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.staff-header-full {
    display: none;
}

.staff-name {
    display: none;
}

.staff-role {
    font-size: 0.95rem;
    color: #fff;
    background-color: var(--accent-gold);
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px;
}

.qa-item {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.qa-item:nth-child(even) {
    flex-direction: row-reverse;
}

.qa-img {
    width: 45%;
    min-height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* slight shadow for the image only */
    display: flex;
    flex-direction: column;
}

.qa-img img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qa-content {
    width: 55%;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

.q-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.q-mark {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.q-text {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin: 0;
}

.a-text {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 992px) {

    .staff-card {
        padding: 0;
    }

    .staff-hero {
        flex-direction: column;
    }

    .staff-hero-img {
        width: 100%;
        min-height: 350px;
        /* Add minimum height for mobile */
    }

    .staff-hero-content {
        width: 100%;
    }

    .staff-hero-img::after {
        background: linear-gradient(to bottom, transparent, #faf8f5);
        width: 100%;
        height: 30%;
        top: auto;
    }

    .staff-hero-content {
        padding: 40px 20px;
    }

    .qa-list {
        padding: 30px 20px;
    }

    .qa-item,
    .qa-item:nth-child(even) {
        flex-direction: column;
    }

    .qa-img,
    .qa-content {
        width: 100%;
    }

    .qa-img {
        height: 250px;
    }

    .qa-content {
        padding: 30px 20px;
    }

    .staff-name {
        flex-direction: column;
        gap: 12px;
    }
}

/* -------------------------------------
 * Recruit Hub Page Styles
 * ------------------------------------- */

.recruit-hub-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.hub-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e1dbce;
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hub-img {
    width: 100%;
    height: 220px;
    background-color: #f7f3e8;
    /* Placeholder color before img loads */
}

.hub-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hub-text h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.hub-text p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.hub-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-gold);
    transition: margin-left 0.3s ease;
}

.hub-card:hover .hub-arrow {
    margin-left: 10px;
}

@media (max-width: 992px) {
    .recruit-hub-grid {
        flex-direction: column;
        gap: 40px;
    }
}

/* -------------------------------------
 * Recruit Company Page Styles
 * ------------------------------------- */

.company-owner-section {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.owner-photo {
    width: 40%;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.owner-photo img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    background-color: #f7f3e8;
    /* base color before load */
}

.owner-message {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-slogan {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-gold);
    line-height: 1.4;
    margin-bottom: 20px;
}

.owner-greeting-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-gold-light);
    padding-bottom: 2px;
    display: inline-block;
}

.owner-text {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.owner-name-sign {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-dark);
    text-align: right;
}

@media (max-width: 992px) {
    .company-owner-section {
        flex-direction: column;
        gap: 30px;
    }

    .owner-photo,
    .owner-message {
        width: 100%;
        min-width: unset;
    }
}

.office-gallery {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.office-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.office-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #f7f3e8;
}

.office-item h4 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e1dbce;
}

.office-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .office-gallery {
        flex-direction: column;
        gap: 40px;
    }
}

/* -------------------------------------
 * Recruit Requirements Page Styles
 * ------------------------------------- */

.req-tabs {
    margin-top: 30px;
}

.req-tabs input[type="radio"] {
    display: none;
}

.req-tab-labels {
    display: flex;
    gap: 10px;
    margin-bottom: -1px;
    /* Overlap border */
}

.req-tab-labels label {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border: 1px solid #e1dbce;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-gray);
    transition: all 0.3s;
    user-select: none;
}

.req-tab-labels label:hover {
    background-color: #faf8f5;
}

/* Base content styling */
.req-tab-content-container {
    background: #fff;
    padding: 40px;
    border-radius: 0 8px 8px 8px;
    border: 1px solid #e1dbce;
    margin-bottom: 40px;
}

.req-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* active states */
#tab-keiri:checked~.req-tab-labels label[for="tab-keiri"],
#tab-call:checked~.req-tab-labels label[for="tab-call"],
#tab-field:checked~.req-tab-labels label[for="tab-field"] {
    background-color: #fff;
    color: var(--primary-dark);
    position: relative;
    z-index: 2;
    border-top: 3px solid var(--accent-gold);
}

#tab-keiri:checked~.req-tab-content-container .content-keiri,
#tab-call:checked~.req-tab-content-container .content-call,
#tab-field:checked~.req-tab-content-container .content-field {
    display: block;
}

/* Table */
.req-table {
    width: 100%;
    border-collapse: collapse;
}

.req-table th,
.req-table td {
    padding: 20px;
    border-bottom: 1px solid #e1dbce;
}

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

.req-table th {
    width: 25%;
    text-align: left;
    background: #faf9f5;
    color: var(--primary-dark);
}

.req-table td {
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .req-tab-labels {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }

    .req-tab-labels label {
        border-radius: 8px;
        border-bottom: 1px solid #e1dbce;
        margin-bottom: 10px;
    }

    #tab-keiri:checked~.req-tab-labels label[for="tab-keiri"],
    #tab-call:checked~.req-tab-labels label[for="tab-call"],
    #tab-field:checked~.req-tab-labels label[for="tab-field"] {
        border-left: 4px solid var(--accent-gold);
        border-top: 1px solid #e1dbce;
    }

    .req-tab-content-container {
        border-radius: 8px;
        padding: 20px;
    }

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

    .req-table th {
        border-bottom: none;
        padding-bottom: 10px;
    }

    .req-table td {
        padding-top: 0;
    }
}