/* ============================================
   TỔNG THỂ BACKGROUND + WRAPPER
   ============================================ */
.recruitment-tabs {
    background: #F4F8F1; /* nền tổng đẹp, tươi, sạch */
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    transform-origin: center top;
}

/* Class này được JS thêm mỗi lần đổi tab
   -> Animate toàn bộ khung */
.recruitment-tabs.rec-animating {
    animation: recWrapperRise .4s ease;
}

/* Animation cho cả khung */
@keyframes recWrapperRise {
    0% {
        transform: translateY(10px);
        opacity: 0.9;
        box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    }
    60% {
        transform: translateY(-3px);
        opacity: 1;
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.rec-tab-nav {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex-wrap: wrap;
}

.rec-tab-nav li { margin: 0; }

.rec-tab-nav a {
    display: block;
    padding: 12px 26px;
    background: #E9F5DF;
    border-radius: 10px;
    font-weight: 600;
    color: #2c2c2c;
    border: 2px solid transparent;
    transition: 0.3s ease;
}

.rec-tab-nav a:hover {
    background: #75C240;
    color: #fff;
}

.rec-tab-nav li.active a {
    background: #75C240;
    border-color: #75C240;
    color: #fff;
    box-shadow: 0 6px 15px rgba(117,194,64,0.25);
}

/* ============================================
   TAB CONTENT + ANIMATION (rise-up)
   ============================================ */
.rec-tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .35s ease, transform .35s ease;
}

.rec-tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LEFT COLUMN: JOB INFO BOX
   ============================================ */
.recruitment-box {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.recruitment-box .title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.recruitment-box p {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 10px;
}

.recruitment-box strong {
    color: #1a1a1a;
}

.recruitment-benefits {
    padding-left: 18px;
    margin-top: 8px;
}

.recruitment-benefits li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ============================================
   BUTTON: XEM CHI TIẾT
   ============================================ */
.recruitment-more-btn {
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 28px;
    background: #75C240;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.25s ease;
    font-size: 16px;
}

.recruitment-more-btn:hover {
    background: #64a836;
    box-shadow: 0 6px 18px rgba(117,194,64,0.35);
}

/* ============================================
   FORM APPLY BOX
   ============================================ */
.recruitment-apply-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.recruitment-apply-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #333;
}

/* Contact Form 7 fields beautify */
.recruitment-apply-box input,
.recruitment-apply-box textarea,
.recruitment-apply-box select {
    border-radius: 10px !important;
    padding: 14px !important;
    background: #F2F4F1 !important;
    border: 1px solid #dcdcdc !important;
}

.recruitment-apply-box input:focus,
.recruitment-apply-box textarea:focus {
    border-color: #75C240 !important;
    box-shadow: 0 0 0 3px rgba(117,194,64,0.25) !important;
}

.recruitment-apply-box .wpcf7 .wpcf7-form-control.wpcf7-submit {
    color: black;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .recruitment-tabs {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .rec-tab-nav {
        flex-direction: column;
    }

    .rec-tab-nav a {
        width: 100%;
        text-align: center;
    }

    .recruitment-apply-box {
        margin-top: 25px;
    }
}
