/**
 * METTASOUL Recruitment Page Stylesheet
 * Custom styles for template-recruitment.php
 */

/* ==========================================================================
   00. General Layout & Common Elements
   ========================================================================== */
.recruitment-page-container {
    /* `hidden` makes the other axis compute to `auto`, which turns this
     * wrapper into a second vertical scroll container.  That inner scrollbar
     * captures wheel/touch scrolling and can make the page appear locked. */
    overflow: visible;
    overflow-x: clip;
}

/* Older content imports may contain a duplicated application modal. */
#recruitment-form-section ~ #recruitment-form-section {
    display: none !important;
}

.recruitment-section {
    padding: 35px 0;
    position: relative;
}

@media (max-width: 767px) {
    .recruitment-section {
        padding: 25px 0;
    }
}

/* Tighten top padding for the first section below the nav */
#page #recruitment-values {
    padding-top: 15px !important;
}

.recruitment-section.bg-white {
    background-color: #FFFFFF !important;
}

.recruitment-section.bg-kem {
    background-color: var(--ms-bg-kem) !important;
}

/* Section Headers */
.recruitment-section-header {
    max-width: 750px;
    margin: 0 auto 30px;
    text-align: center;
}

.recruitment-section-header.left-aligned {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.recruitment-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ms-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.recruitment-section-tag.text-white {
    color: var(--ms-accent);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
}

.recruitment-section-header h2 {
    color: var(--ms-primary-dark);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.recruitment-section-header.left-aligned h2 {
    font-size: 28px;
}

.recruitment-section-header .section-subtitle {
    font-size: 16px;
    color: var(--ms-text-muted);
    line-height: 1.6;
    margin: 0;
}

#recruitment-process .section-subtitle {
    color: var(--ms-accent);
}

#recruitment-jobs .section-subtitle {
    color: var(--ms-accent);
}

#recruitment-standards .section-subtitle {
    color: var(--ms-accent);
}

#recruitment-faq .section-subtitle {
    color: var(--ms-accent);
}

@media (max-width: 767px) {
    .recruitment-section-header {
        margin-bottom: 35px;
    }
    .recruitment-section-header h2 {
        font-size: 26px;
    }
    .recruitment-section-header.left-aligned h2 {
        font-size: 24px;
    }
}

/* ==========================================================================
   02. Vì sao chọn METTASOUL? (Values Grid)
   ========================================================================== */
.recruitment-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.recruitment-value-card {
    background: #FFFFFF;
    border: 1px solid rgba(11, 111, 120, 0.08);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recruitment-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 111, 120, 0.08);
    border-color: rgba(11, 111, 120, 0.2);
}

.recruitment-value-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(11, 111, 120, 0.05);
    color: var(--ms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.recruitment-value-icon svg {
    width: 28px;
    height: 28px;
}

.recruitment-value-card:hover .recruitment-value-icon {
    background: var(--ms-primary);
    color: #FFFFFF;
    transform: scale(1.05);
}

.recruitment-value-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-top: 0;
    margin-bottom: 12px;
}

.recruitment-value-desc {
    font-size: 14.5px;
    color: var(--ms-text);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1024px) {
    .recruitment-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 575px) {
    .recruitment-values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .recruitment-value-card {
        padding: 24px 20px;
    }
}

/* ==========================================================================
   03. Các nhóm gia nhập (Groups Cards)
   ========================================================================== */
.recruitment-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.recruitment-group-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.recruitment-group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--ms-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.recruitment-group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.recruitment-group-card:hover::before {
    transform: scaleX(1);
}

.group-card-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.group-card-num {
    font-size: 32px;
    font-weight: 700;
    color: rgba(11, 111, 120, 0.15);
    margin-right: 12px;
    line-height: 1;
}

.recruitment-group-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin: 0;
    line-height: 1.3;
}

.group-card-desc {
    font-size: 14.5px;
    color: var(--ms-text);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-group-apply {
    background: transparent;
    border: 1.5px solid var(--ms-primary);
    color: var(--ms-primary);
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-group-apply:hover {
    background: var(--ms-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(11, 111, 120, 0.2);
}

@media (max-width: 1024px) {
    .recruitment-groups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 575px) {
    .recruitment-groups-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .recruitment-group-card {
        padding: 30px 24px;
    }
}

/* ==========================================================================
   04. Vị trí đang tuyển (Jobs Listings)
   ========================================================================== */
.jobs-filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.filter-tab {
    background: #F3F7F7;
    border: 1px solid rgba(11, 111, 120, 0.08);
    color: var(--ms-primary-dark);
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--ms-primary);
    border-color: var(--ms-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(11, 111, 120, 0.15);
}

.jobs-listings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.job-item-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FDFD 100%);
    border: 1px solid rgba(11, 111, 120, 0.22);
    border-left: 5px solid var(--ms-primary);
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(11, 111, 120, 0.09);
}

.job-item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(11, 111, 120, 0.48);
    box-shadow: 0 14px 28px rgba(11, 111, 120, 0.16);
}

.job-card-main {
    flex-grow: 1;
    padding-right: 30px;
}

.job-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.job-badge.teacher {
    background: rgba(242, 140, 0, 0.1);
    color: var(--ms-accent);
}

.job-badge.counselor {
    background: rgba(11, 111, 120, 0.1);
    color: var(--ms-primary);
}

.job-badge.intern {
    background: rgba(124, 77, 255, 0.1);
    color: #7C4DFF;
}

.job-badge.volunteer {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.35;
}

.job-desc {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.55;
    margin-top: 0;
    margin-bottom: 14px;
}

.job-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.job-meta {
    font-size: 13.5px;
    color: var(--ms-text-muted);
    display: flex;
    align-items: center;
}

.job-meta i {
    margin-right: 6px;
    opacity: 0.7;
}

/* Custom icon classes as placeholder */
.icon-clock::before { content: "🕒"; }
.icon-map::before { content: "📍"; }
.icon-calendar::before { content: "📅"; }

.btn-job-apply {
    background: linear-gradient(135deg, rgba(255, 160, 18, 0.92) 0%, rgba(242, 140, 0, 0.96) 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    padding: 10px 24px;
    border-radius: 999px !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), inset 0 -1px 2px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(242, 140, 0, 0.28) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-job-apply:hover {
    background: linear-gradient(135deg, rgba(255, 174, 43, 0.98) 0%, rgba(245, 147, 13, 1) 100%) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    box-shadow: inset 0 1.5px 3px rgba(255, 255, 255, 0.85), inset 0 -1px 2px rgba(0, 0, 0, 0.1), 0 10px 28px rgba(242, 140, 0, 0.42) !important;
    transform: translateY(-2px) !important;
}

.jobs-empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--ms-text-muted);
    font-size: 16px;
}

@media (max-width: 767px) {
    .job-item-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .job-card-main {
        padding-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    .job-meta-row {
        gap: 12px;
        flex-direction: column;
    }
    .btn-job-apply {
        width: 100%;
        text-align: center;
    }
    .job-card-action {
        width: 100%;
    }
}

/* ==========================================================================
   05. Tiêu chuẩn KASPEA (Full Width Grid)
   ========================================================================== */
.kaspea-recruitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.kaspea-item {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    border: 1px solid rgba(11, 111, 120, 0.08);
    transition: all 0.3s ease;
}

.kaspea-item:hover {
    border-color: var(--ms-primary);
    box-shadow: 0 8px 20px rgba(11, 111, 120, 0.06);
    transform: translateY(-2px);
}

.kaspea-letter {
    font-size: 15px;
    font-weight: 700;
    color: var(--ms-primary);
    background: rgba(11, 111, 120, 0.06);
    min-width: 42px;
    height: 42px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}

.kaspea-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.35;
}

.kaspea-content p {
    font-size: 14px;
    color: var(--ms-text);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   06. Quyền lợi đãi ngộ (Full Width Grid)
   ========================================================================== */
.benefits-recruitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.benefit-card-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(11, 111, 120, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.benefit-card-item:hover {
    border-color: var(--ms-accent);
    box-shadow: 0 8px 22px rgba(242, 140, 0, 0.08);
    transform: translateY(-2px);
}

.benefit-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.benefit-card-header .benefit-check-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--ms-accent);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0;
}

.benefit-card-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin: 0;
    line-height: 1.35;
}

.benefit-card-item p {
    font-size: 13.5px;
    color: var(--ms-text);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1024px) {
    .kaspea-recruitment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .benefits-recruitment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .kaspea-recruitment-grid,
    .benefits-recruitment-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================================================
   06. Quy trình ứng tuyển (Roadmap timeline)
   ========================================================================== */
.process-flow-roadmap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 20px;
}

.process-flow-roadmap::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(11, 111, 120, 0.12);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid rgba(11, 111, 120, 0.15);
    color: var(--ms-primary-dark);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 111, 120, 0.05);
}

.process-step:hover .step-badge {
    background: var(--ms-primary);
    border-color: var(--ms-primary);
    color: #FFFFFF;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(11, 111, 120, 0.2);
}

.step-content-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.35;
}

.step-desc {
    font-size: 13px;
    color: var(--ms-text-muted);
    line-height: 1.5;
    margin: 0;
    padding: 0 5px;
}

/* Base hidden states on Desktop */
.recruitment-steps-mobile-viewport,
.recruitment-steps-mobile-toggle-wrapper {
    display: none !important;
}

/* Mobile & Tablet Redesign: Connected Vertical Timeline Slider */
@media (max-width: 768px) {
    .process-flow-roadmap {
        display: none !important;
    }
    
    .recruitment-steps-mobile-viewport {
        display: block !important;
        overflow: hidden;
        position: relative;
        padding-left: 24px;
        margin-top: 15px;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .recruitment-steps-mobile-viewport::after {
        content: '';
        position: absolute;
        left: 23px;
        top: 25px;
        bottom: 25px;
        width: 2px;
        background: linear-gradient(180deg, var(--ms-primary) 0%, rgba(11, 111, 120, 0.15) 100%);
        z-index: 1 !important;
    }
    
    .recruitment-steps-mobile-viewport.is-expanded::after {
        display: none !important;
    }
    
    .recruitment-steps-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        will-change: transform;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .recruitment-steps-mobile-viewport.is-expanded .recruitment-steps-mobile {
        transform: none !important;
        transition: none !important;
    }
    
    .recruitment-steps-mobile-viewport.is-expanded .process-step.is-clone {
        display: none !important;
    }

    .recruitment-steps-mobile .process-step {
        display: flex !important;
        align-items: flex-start !important;
        text-align: left !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .recruitment-steps-mobile .step-badge {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        font-size: 16px !important;
        margin: 0 16px 0 -24px !important;
        flex-shrink: 0 !important;
        background: #FFFFFF !important;
        border: 2px solid var(--ms-primary) !important;
        color: var(--ms-primary-dark) !important;
        box-shadow: 0 4px 14px rgba(11, 111, 120, 0.12) !important;
        z-index: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    
    .recruitment-steps-mobile .process-step:last-child .step-badge {
        background: var(--ms-primary) !important;
        color: #FFFFFF !important;
        border-color: var(--ms-primary) !important;
    }
    
    .recruitment-steps-mobile .step-content-body {
        background: #FFFFFF !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        border: 1px solid rgba(11, 111, 120, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .recruitment-steps-mobile .step-title {
        font-size: 15px !important;
        margin-bottom: 4px !important;
        color: var(--ms-primary-dark) !important;
        display: block !important;
        width: 100% !important;
        font-weight: 700 !important;
    }
    
    .recruitment-steps-mobile .step-desc {
        padding: 0 !important;
        font-size: 13.5px !important;
        color: var(--ms-text) !important;
        line-height: 1.5 !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

    .recruitment-steps-mobile-toggle-wrapper {
        display: flex !important;
        justify-content: center !important;
        margin-top: 14px !important;
    }
    
    .recruitment-btn-toggle {
        padding: 8px 18px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: var(--ms-primary) !important;
        border: 1.5px solid rgba(11, 111, 120, 0.25) !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(11, 111, 120, 0.05)) !important;
        box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(11, 111, 120, 0.05) !important;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .recruitment-btn-toggle:hover {
        background: var(--ms-primary) !important;
        color: #fff !important;
        border-color: var(--ms-primary) !important;
        box-shadow: 0 6px 16px rgba(11, 111, 120, 0.15) !important;
    }
}

/* ==========================================================================
   07. Biểu mẫu ứng tuyển (Form Split)
   ========================================================================== */
.recruitment-form-wrapper {
    background: linear-gradient(135deg, #0B6F78 0%, #064046 100%);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(6, 64, 70, 0.15);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    overflow: hidden;
}

.recruitment-form-info {
    padding: 55px;
    display: flex;
    flex-direction: column;
}

.text-white {
    color: #FFFFFF !important;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 35px;
}

.recruitment-contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    color: #FFFFFF;
}

.detail-icon {
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-detail-item div {
    display: flex;
    flex-direction: column;
}

.contact-detail-item strong {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-detail-item span {
    font-size: 15px;
    font-weight: 500;
}

/* Form Box */
.recruitment-form-box {
    background: #FFFFFF;
    padding: 35px 45px 35px;
}

.form-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin-bottom: 20px;
}

.form-group-item {
    display: flex;
    flex-direction: column;
}

.form-group-item.full-width {
    grid-column: span 2;
}

.form-group-item label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ms-primary-dark);
    margin-bottom: 8px;
}

.form-group-item .form-group-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-primary-dark, #005e73);
    margin-bottom: 8px;
}

.form-group-item .form-group-label .required {
    color: #FF3B30;
}

.form-group-item label .required {
    color: #FF3B30;
}

.form-group-item input[type="text"],
.form-group-item input[type="tel"],
.form-group-item input[type="email"],
.form-group-item input[type="url"],
.form-group-item input[type="date"],
.form-group-item select {
    background: #F8FAFA;
    border: 1px solid rgba(11, 111, 120, 0.12);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ms-text);
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Chrome applies a larger intrinsic height to date controls. Reset it so the
 * calendar field aligns exactly with the adjacent text/select controls. */
.form-group-item input[type="date"] {
    height: 38px;
    min-height: 0;
}

.form-group-item textarea {
    background: #F8FAFA;
    border: 1px solid rgba(11, 111, 120, 0.12);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ms-text);
    transition: all 0.3s ease;
    font-family: inherit;
    height: 75px;
    resize: vertical;
}

.form-group-item input:focus,
.form-group-item select:focus,
.form-group-item textarea:focus {
    background: #FFFFFF;
    border-color: var(--ms-primary);
    box-shadow: 0 0 0 3px rgba(11, 111, 120, 0.08);
    outline: none;
}

.recruitment-form-submit-btn {
    background: var(--ms-accent);
    border: none;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 15px 35px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(242, 140, 0, 0.2);
}

.recruitment-form-submit-btn:hover {
    background: #D97D00;
    box-shadow: 0 6px 20px rgba(242, 140, 0, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .recruitment-form-wrapper {
        grid-template-columns: 1fr;
    }
    .recruitment-form-info {
        padding: 40px;
    }
    .recruitment-form-box {
        padding: 40px;
    }
}

@media (max-width: 575px) {
    .recruitment-form-info,
    .recruitment-form-box {
        padding: 30px 20px;
    }
    .form-grid-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .form-group-item.full-width {
        grid-column: span 1;
    }
}

/* ==========================================================================
   08. FAQ & Accordion
   ========================================================================== */
.faq-accordion-list {
    max-width: 800px;
    margin: 0 auto 35px;
}

.faq-accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-accordion-trigger {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}

.faq-question {
    font-size: 17px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    line-height: 1.4;
    padding-right: 20px;
    transition: color 0.3s ease;
}

.faq-accordion-trigger:hover .faq-question {
    color: var(--ms-accent);
}

.faq-icon-toggle {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon-toggle::before,
.faq-icon-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--ms-primary);
    transition: transform 0.3s ease;
}

/* Horizontal line */
.faq-icon-toggle::before {
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
}

/* Vertical line */
.faq-icon-toggle::after {
    top: 4px;
    left: 11px;
    width: 2px;
    height: 16px;
}

.faq-accordion-trigger[aria-expanded="true"] .faq-icon-toggle::after {
    transform: rotate(90deg) scaleY(0);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-content p {
    font-size: 14.5px;
    color: var(--ms-text);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 24px;
}

/* Bottom CTA block */
.recruitment-bottom-cta {
    background: linear-gradient(135deg, rgba(255, 253, 249, 0.9) 0%, rgba(255, 248, 235, 0.9) 100%);
    border: 1px solid rgba(242, 140, 0, 0.15);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(242, 140, 0, 0.03);
}

.recruitment-bottom-cta h2 {
    color: var(--ms-primary-dark);
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.recruitment-bottom-cta p {
    font-size: 15.5px;
    color: var(--ms-text);
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.btn-cta-scroll-form {
    background: linear-gradient(135deg, rgba(255, 160, 18, 0.92) 0%, rgba(242, 140, 0, 0.96) 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    padding: 12px 32px;
    border-radius: 999px !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), inset 0 -1px 2px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(242, 140, 0, 0.28) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-cta-scroll-form:hover {
    background: linear-gradient(135deg, rgba(255, 174, 43, 0.98) 0%, rgba(245, 147, 13, 1) 100%) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    box-shadow: inset 0 1.5px 3px rgba(255, 255, 255, 0.85), inset 0 -1px 2px rgba(0, 0, 0, 0.1), 0 10px 28px rgba(242, 140, 0, 0.42) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 767px) {
    .recruitment-bottom-cta {
        padding: 40px 24px;
    }
    .recruitment-bottom-cta h2 {
        font-size: 20px;
    }
    .btn-cta-scroll-form {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   09. Page Banner Custom Rules
   ========================================================================== */
@media (min-width: 768px) {
    .ms-page-banner--recruitment .ms-page-banner__content {
        width: 40% !important;
        max-width: none !important;
        margin: 0 !important;
        padding-left: clamp(40px, 4.5vw, 64px) !important;
        padding-right: 0 !important;
    }

    .ms-page-banner--recruitment .ms-page-banner__copy,
    .ms-page-banner--recruitment .ms-page-banner__desc,
    .ms-page-banner--recruitment .ms-page-banner__actions {
        width: 100% !important;
        max-width: 100% !important;
    }

    #page #content .ms-page-banner--recruitment .ms-page-banner__title {
        font-family: var(--ms-font-heading, Arial, Helvetica, sans-serif) !important;
        font-size: clamp(36px, 3vw, 44px) !important;
        font-weight: var(--ms-font-heading-weight, 700) !important;
        font-synthesis: none;
        line-height: 1.18 !important;
        letter-spacing: -0.035em !important;
        white-space: normal !important;
    }

    #page #content .ms-page-banner--recruitment .ms-page-banner__desc {
        font-size: clamp(12px, .9vw, 14px) !important;
        line-height: 1.5 !important;
        white-space: normal !important;
    }

    .ms-page-banner--recruitment .ms-page-banner__actions {
        flex-wrap: wrap !important;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    #page #content .ms-page-banner--recruitment .ms-page-banner__title {
        font-size: 32px !important;
    }
}

/* ==========================================================================
   10. Sticky Quick Navigation overrides
   ========================================================================== */
html body #page .recruitment-anchor-nav {
    margin-bottom: 20px !important;
}

html body .recruitment-anchor-nav__link {
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ms-primary-dark) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--ms-transition, all 0.3s ease) !important;
}

html body .recruitment-anchor-nav__link:hover,
html body .recruitment-anchor-nav__link.active {
    background: linear-gradient(135deg, rgba(20, 137, 146, 0.84), rgba(5, 79, 87, 0.92)) !important;
    border-color: rgba(179, 246, 242, 0.64) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 8px 18px rgba(3, 62, 68, 0.20) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   11. Recruitment Form Modal Popup Overlay
   ========================================================================== */
#page #recruitment-form-section.recruitment-section {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(11, 111, 120, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

#page #recruitment-form-section.recruitment-section.open {
    opacity: 1 !important;
    visibility: visible !important;
}

#page #recruitment-form-section.recruitment-section .default-container {
    width: 90% !important;
    max-width: 980px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
    padding: 20px 10px !important;
    transform: translateY(30px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#page #recruitment-form-section.recruitment-section.open .default-container {
    transform: translateY(0) !important;
}

#page #recruitment-form-section.recruitment-section .recruitment-form-wrapper {
    box-shadow: 0 15px 45px rgba(6, 64, 70, 0.25) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* Keep every application control inside the modal at narrow widths.  Native
 * inputs and grid items otherwise retain their desktop minimum width. */
#page #recruitment-form-section .recruitment-form-wrapper,
#page #recruitment-form-section .recruitment-form-info,
#page #recruitment-form-section .recruitment-form-box,
#page #recruitment-form-section form,
#page #recruitment-form-section .form-grid-layout,
#page #recruitment-form-section .form-group-item {
    min-width: 0;
}

#page #recruitment-form-section .recruitment-form-box,
#page #recruitment-form-section form {
    width: 100%;
    box-sizing: border-box;
}

#page #recruitment-form-section .form-grid-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#page #recruitment-form-section .form-group-item input,
#page #recruitment-form-section .form-group-item select,
#page #recruitment-form-section .form-group-item textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#page #recruitment-form-section.recruitment-section .recruitment-modal-close {
    position: absolute !important;
    top: 30px !important;
    right: 25px !important;
    background: #FFFFFF !important;
    border: none !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 100000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    transition: all 0.2s ease !important;
}

#page #recruitment-form-section.recruitment-section .recruitment-modal-close:hover {
    color: var(--ms-accent) !important;
    transform: scale(1.05) !important;
}

/* The internship form uses the same accessible modal layout as recruitment. */
#page #internship-form-section.recruitment-section {
    position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
    background: rgba(11, 111, 120, 0.4) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important; display: flex !important; align-items: center !important; justify-content: center !important;
    opacity: 0 !important; visibility: hidden !important; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; padding: 0 !important; margin: 0 !important;
}
#page #internship-form-section.recruitment-section.open { opacity: 1 !important; visibility: visible !important; }
#page #internship-form-section.recruitment-section .default-container { width: 90% !important; max-width: 980px !important; max-height: 90vh !important; overflow-y: auto !important; background: transparent !important; box-shadow: none !important; position: relative !important; padding: 20px 10px !important; transform: translateY(30px) !important; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; }
#page #internship-form-section.recruitment-section.open .default-container { transform: translateY(0) !important; }
#page #internship-form-section.recruitment-section .recruitment-form-wrapper { box-shadow: 0 15px 45px rgba(6, 64, 70, 0.25) !important; border-radius: 20px !important; overflow: hidden !important; }
#page #internship-form-section.recruitment-section .recruitment-modal-close { position: absolute !important; top: 30px !important; right: 25px !important; background: #FFFFFF !important; border: none !important; font-size: 22px !important; font-weight: 700 !important; color: #333333 !important; width: 36px !important; height: 36px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; line-height: 1 !important; z-index: 100000 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important; }
#page #internship-form-section.recruitment-section .recruitment-modal-close:hover { color: var(--ms-accent) !important; transform: scale(1.05) !important; }
#page #internship-form-section .recruitment-form-wrapper { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
#page #internship-form-section .recruitment-form-info,
#page #internship-form-section .recruitment-form-box,
#page #internship-form-section .form-grid-layout,
#page #internship-form-section .form-group-item { min-width: 0; }
#page #internship-form-section .form-group-item input,
#page #internship-form-section .form-group-item select,
#page #internship-form-section .form-group-item textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

/* The volunteer form is also opened from a vacancy card, so it needs the same
 * fixed overlay as the recruitment and internship forms. Without these rules
 * it renders in the document flow and leaves the close button at page-left. */
#page #volunteer-form-section.recruitment-section {
    position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
    background: rgba(11, 111, 120, 0.4) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important; display: flex !important; align-items: center !important; justify-content: center !important;
    opacity: 0 !important; visibility: hidden !important; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; padding: 0 !important; margin: 0 !important;
}
#page #volunteer-form-section.recruitment-section.open { opacity: 1 !important; visibility: visible !important; }
#page #volunteer-form-section.recruitment-section .default-container { width: 90% !important; max-width: 980px !important; max-height: 90vh !important; overflow-y: auto !important; background: transparent !important; box-shadow: none !important; position: relative !important; padding: 20px 10px !important; transform: translateY(30px) !important; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; }
#page #volunteer-form-section.recruitment-section.open .default-container { transform: translateY(0) !important; }
#page #volunteer-form-section.recruitment-section .recruitment-form-wrapper { box-shadow: 0 15px 45px rgba(6, 64, 70, 0.25) !important; border-radius: 20px !important; overflow: hidden !important; }
#page #volunteer-form-section.recruitment-section .recruitment-modal-close { position: absolute !important; top: 30px !important; right: 25px !important; background: #FFFFFF !important; border: none !important; font-size: 22px !important; font-weight: 700 !important; color: #333333 !important; width: 36px !important; height: 36px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; line-height: 1 !important; z-index: 100000 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important; transition: all 0.2s ease !important; }
#page #volunteer-form-section .recruitment-form-wrapper { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
#page #volunteer-form-section .recruitment-form-info,
#page #volunteer-form-section .recruitment-form-box,
#page #volunteer-form-section .form-grid-layout,
#page #volunteer-form-section .form-group-item { min-width: 0; }
#page #volunteer-form-section .form-group-item input,
#page #volunteer-form-section .form-group-item select,
#page #volunteer-form-section .form-group-item textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
#page #volunteer-form-section .recruitment-modal-close:hover { color: var(--ms-accent) !important; transform: scale(1.05) !important; }
.internship-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 12px; border: 1px dashed #cbd5e1; border-radius: 8px; }
.internship-choice-list label, .internship-consent { font-size: 14px; line-height: 1.4; color: #475569; }

/* The generic modal rule gives every input a width of 100%. Reset checkbox
 * controls so the consent option stays on one row beside its text. */
#page #internship-form-section .form-group-item > label.internship-consent,
#page #volunteer-form-section .form-group-item > label.internship-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
}

#page #internship-form-section .form-group-item > label.internship-consent input[type="checkbox"],
#page #volunteer-form-section .form-group-item > label.internship-consent input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    padding: 0;
}
@media (max-width: 1024px) {
    #page #internship-form-section .recruitment-form-wrapper { grid-template-columns: minmax(0, 1fr); }
    #page #volunteer-form-section .recruitment-form-wrapper { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
    #page #internship-form-section.recruitment-section .default-container { width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; padding: 12px 0 !important; }
    #page #internship-form-section .recruitment-form-info,
    #page #internship-form-section .recruitment-form-box { padding: 24px 16px; }
    #page #internship-form-section .recruitment-modal-close { top: 20px !important; right: 14px !important; }
    #page #internship-form-section .form-grid-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    #page #internship-form-section .form-group-item.full-width { grid-column: span 1; }
    #page #volunteer-form-section.recruitment-section .default-container { width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; padding: 12px 0 !important; }
    #page #volunteer-form-section .recruitment-form-info,
    #page #volunteer-form-section .recruitment-form-box { padding: 24px 16px; }
    #page #volunteer-form-section .recruitment-modal-close { top: 20px !important; right: 14px !important; }
    #page #volunteer-form-section .form-grid-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    #page #volunteer-form-section .form-group-item.full-width { grid-column: span 1; }
    .internship-choice-list { grid-template-columns: 1fr; }
}

/* Prevent scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
}

/* ==========================================================================
   12. Job Details Modal Overlay & Content
   ========================================================================== */
#page #job-details-modal.recruitment-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(11, 111, 120, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

#page #job-details-modal.recruitment-modal-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
}

#page #job-details-modal .default-container {
    width: 90% !important;
    max-width: 800px !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(6, 64, 70, 0.25) !important;
    position: relative !important;
    padding: 35px 40px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateY(30px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#page #job-details-modal.open .default-container {
    transform: translateY(0) !important;
}

#page #job-details-modal .job-detail-modal-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

/* On desktop, match the vacancy-detail popup to the page's shared content
 * container instead of constraining the reading area to the old 800px card. */
@media (min-width: 1025px) {
    #page #job-details-modal .default-container {
        width: calc(100vw - 64px) !important;
        max-width: var(--ms-container, 1400px) !important;
        box-sizing: border-box !important;
    }
}

/* Keep closed-position controls visibly inactive even where the shared CTA
   hover rule is loaded later in this stylesheet. */
html body #page .job-detail-modal-footer .js-apply-from-detail.is-recruitment-closed,
html body #page .job-detail-modal-footer .js-apply-from-detail:disabled,
html body #page .job-detail-modal-footer .js-apply-from-detail.is-recruitment-closed:hover,
html body #page .job-detail-modal-footer .js-apply-from-detail:disabled:hover {
    background: #71828a !important;
    border-color: #71828a !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.82;
    transform: none !important;
}

/* Preserve accessible labels for the CV-link fields without duplicating the
 * visible form layout. */
.recruitment-form-box .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#page #job-details-modal .recruitment-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: #F8FAFA !important;
    border: none !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 100000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.2s ease !important;
}

#page #job-details-modal .recruitment-modal-close:hover {
    color: var(--ms-accent) !important;
    background: #FFFFFF !important;
    transform: scale(1.05) !important;
}

.job-detail-modal-header {
    border-bottom: 1px solid rgba(11, 111, 120, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.job-detail-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ms-primary-dark);
    margin: 10px 0 12px;
}

.job-detail-modal-body {
    font-size: 14.5px;
    color: var(--ms-text);
    line-height: 1.65;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 10px;
}

.job-detail-modal-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ms-primary);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-detail-modal-body h4:first-child {
    margin-top: 0;
}

.job-detail-modal-body ul {
    margin: 0 0 15px;
    padding-left: 20px;
}

.job-detail-modal-body ul li {
    margin-bottom: 6px;
}

.job-detail-modal-footer {
    flex: 0 0 auto;
    border-top: 1px solid rgba(11, 111, 120, 0.1);
    padding-top: 20px;
    margin-top: 25px;
    text-align: center;
}

.job-detail-modal-footer .js-apply-from-detail {
    background: linear-gradient(135deg, rgba(255, 160, 18, 0.92) 0%, rgba(242, 140, 0, 0.96) 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    padding: 14px 40px;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), inset 0 -1px 2px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(242, 140, 0, 0.28) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.job-detail-modal-footer .js-apply-from-detail:hover {
    background: linear-gradient(135deg, rgba(255, 174, 43, 0.98) 0%, rgba(245, 147, 13, 1) 100%) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    box-shadow: inset 0 1.5px 3px rgba(255, 255, 255, 0.85), inset 0 -1px 2px rgba(0, 0, 0, 0.1), 0 10px 28px rgba(242, 140, 0, 0.42) !important;
    transform: translateY(-2px) !important;
}

.job-meta--closed {
    color: #c87412;
    font-weight: 700;
}

.job-detail-modal-footer .js-apply-from-detail.is-recruitment-closed,
.job-detail-modal-footer .js-apply-from-detail:disabled {
    background: #71828a !important;
    border-color: #71828a !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.82;
    transform: none !important;
}

@media (max-width: 575px) {
    #page #recruitment-form-section.recruitment-section .default-container,
    #page #job-details-modal .default-container {
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
    }

    #page #recruitment-form-section.recruitment-section .default-container {
        padding: 12px 0 !important;
    }

    #page #recruitment-form-section .form-grid-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #page #recruitment-form-section .form-group-item.full-width {
        grid-column: span 1;
    }

    #page #job-details-modal .default-container {
        padding: 24px 20px 20px !important;
        border-radius: 16px !important;
    }

    #page #job-details-modal .recruitment-modal-close {
        top: 10px !important;
        right: 10px !important;
    }

    .job-detail-modal-header {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .job-detail-modal-header h2 {
        font-size: 20px;
        line-height: 1.3;
        padding-right: 28px;
    }

    .job-detail-modal-body {
        padding-right: 4px;
    }

    .job-detail-modal-footer {
        margin-top: 16px;
        padding-top: 16px;
    }

    .job-detail-modal-footer .js-apply-from-detail {
        width: 100%;
        padding: 13px 16px;
    }
}

/* ==========================================================================
   13. Orbit Carousel Section (Redesigned "Vì Sao Chọn METTASOUL")
   ========================================================================== */
.orbit-carousel-section {
    padding: 60px 0 45px !important;
    background: #F6FBFB !important;
    position: relative;
    overflow: hidden;
}

#page #recruitment-values.orbit-carousel-section {
    background: #F6FBFB !important;
}

.orbit-header {
    margin-bottom: 28px !important;
    text-align: center;
}

.orbit-header .section-subtitle {
    margin: 10px auto 0 !important;
    max-width: 680px;
    font-size: 15px;
    color: #64748B;
}

/* Khu vực B — Active Content Block (No card background, no border) */
.orbit-active-content-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 18px;
    position: relative;
    z-index: 15;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.orbit-active-content-block.transitioning {
    opacity: 0;
    transform: translateY(-10px);
}

.orbit-active-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.orbit-active-icon-inner {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(11, 111, 120, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 12px 30px rgba(11, 111, 120, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-active-icon-inner svg {
    width: 36px;
    height: 36px;
}

.orbit-active-title {
    font-size: 23px;
    font-weight: 700;
    color: #0B6F78;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.orbit-active-line {
    width: 36px;
    height: 3.5px;
    background: #F28C00;
    border-radius: 99px;
    margin: 8px auto 14px;
}

.orbit-active-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 auto;
    max-width: 580px;
}

/* Khu vực C — Orbit Track & Arc */
.orbit-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    height: 320px;
    margin: -181px auto 0;
    z-index: 1;
}

.orbit-arc-svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.orbit-arc-svg {
    width: 100%;
    height: 100%;
}

.orbit-line-path {
    filter: drop-shadow(0 1px 2px rgba(11, 111, 120, 0.1));
}

.orbit-loop-fill {
    pointer-events: none;
}

.orbit-line-path--main {
    filter: drop-shadow(0 1px 2px rgba(11, 111, 120, 0.12));
}

.orbit-line-path--tail {
    stroke-dasharray: 3 6;
    opacity: 0.72;
}

/* Nav Buttons */
.orbit-nav-btn {
    position: absolute;
    top: 63%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(11, 111, 120, 0.22);
    color: #0B6F78;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20 !important;
    pointer-events: auto !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), 0 8px 22px rgba(11, 111, 120, 0.13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.orbit-nav-btn svg {
    width: 20px;
    height: 20px;
}

.orbit-nav-btn:hover {
    background: #0B6F78;
    color: #FFFFFF;
    border-color: #0B6F78;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(11, 111, 120, 0.25);
}

.orbit-prev-btn {
    left: 1.5%;
}

.orbit-next-btn {
    right: 1.5%;
}

/* Nodes Container & Items */
.orbit-nodes-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none !important;
}

.orbit-node-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.orbit-node-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #F9FEFE;
    border: 1px solid rgba(11, 111, 120, 0.66);
    color: #0B6F78;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 9px #F9FEFE, inset 0 1px 1px rgba(255, 255, 255, 0.98), 0 9px 24px rgba(11, 111, 120, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.orbit-node-icon svg {
    width: 24px;
    height: 24px;
}

.orbit-node-item:hover .orbit-node-icon {
    background: #EEF9F9;
    transform: translateY(-3px);
    box-shadow: 0 0 0 9px #F9FEFE, 0 8px 20px rgba(11, 111, 120, 0.2);
}

.orbit-node-label {
    font-size: 13px;
    font-weight: 700;
    color: #0B6F78;
    text-align: center;
    margin-top: 8px;
    max-width: 130px;
    min-height: 35px;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 3;
}

/* Slots Desktop Positioning & Scaling */
.orbit-node-item.position-left {
    left: 17%;
    top: 62%;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.95;
}

.orbit-node-item.position-bottom {
    left: 50%;
    top: 79%;
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0.76;
}

.orbit-node-item.position-right {
    left: 83%;
    top: 62%;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.95;
}

/* Khu vực D — Pagination Dots & Mobile Hint */
.orbit-pagination-container {
    margin-top: 4px;
    text-align: center;
}

.orbit-pagination-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.orbit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.orbit-dot.active {
    width: 26px;
    height: 8px;
    border-radius: 99px;
    background: #0B6F78;
}

.orbit-mobile-swipe-hint {
    display: none;
}

/* Mobile Responsive Specs */
@media (max-width: 767px) {
    .orbit-carousel-section {
        padding: 40px 12px 35px !important;
    }

    .orbit-header .section-subtitle {
        font-size: 13.5px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .orbit-active-content-block {
        margin-bottom: 24px;
    }

    .orbit-active-icon-inner {
        width: 60px;
        height: 60px;
    }

    .orbit-active-icon-inner svg {
        width: 30px;
        height: 30px;
    }

    .orbit-active-title {
        font-size: 20px;
    }

    .orbit-active-desc {
        font-size: 13.5px;
        line-height: 1.5;
        padding: 0 10px;
    }

    .orbit-carousel-wrapper {
        height: 330px;
        max-width: 100%;
        margin-top: -146px;
    }

    .orbit-nav-btn {
        width: 38px;
        height: 38px;
        top: 89%;
    }

    .orbit-prev-btn {
        left: 0;
    }

    .orbit-next-btn {
        right: 0;
    }

    .orbit-node-icon {
        width: 46px;
        height: 46px;
    }

    .orbit-node-icon svg {
        width: 20px;
        height: 20px;
    }

    .orbit-node-label {
        font-size: 10.5px;
        max-width: 88px;
        margin-top: 6px;
        min-height: 0;
        line-height: 1.35;
        display: block;
        overflow: visible;
        overflow-wrap: anywhere;
    }

    .orbit-node-item.position-left {
        left: 20%;
        top: 61%;
        transform: translate(-50%, -50%) scale(0.88);
    }

    .orbit-node-item.position-bottom {
        left: 50%;
        top: 78%;
        transform: translate(-50%, -50%) scale(0.75);
    }

    .orbit-node-item.position-right {
        left: 80%;
        top: 61%;
        transform: translate(-50%, -50%) scale(0.88);
    }

    .orbit-mobile-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
        font-size: 12px;
        color: #64748B;
        font-weight: 500;
    }

    .swipe-hand-icon {
        width: 16px;
        height: 16px;
        color: #0B6F78;
    }
}

/* ==========================================================================
   14. UNIFIED FROSTED GLASSMORPHISM BUTTON OVERRIDES (No Black Border)
   ========================================================================== */
html body #page .recruitment-form-submit-btn,
html body #page .js-apply-from-detail,
html body #page #jdm-apply-btn,
html body #page .btn-job-apply,
html body #page .btn-group-apply,
html body #page .btn-cta-scroll-form {
    background: linear-gradient(135deg, rgba(255, 160, 18, 0.92) 0%, rgba(242, 140, 0, 0.96) 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    outline: none !important;
    padding: 13px 36px !important;
    border-radius: 9999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.7), inset 0 -1.5px 2px rgba(0, 0, 0, 0.1), 0 6px 22px rgba(242, 140, 0, 0.32) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer !important;
}

html body #page .recruitment-form-submit-btn:hover,
html body #page .js-apply-from-detail:hover,
html body #page #jdm-apply-btn:hover,
html body #page .btn-job-apply:hover,
html body #page .btn-group-apply:hover,
html body #page .btn-cta-scroll-form:hover {
    background: linear-gradient(135deg, rgba(255, 174, 43, 0.98) 0%, rgba(245, 147, 13, 1) 100%) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.9), inset 0 -1.5px 2px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(242, 140, 0, 0.45) !important;
    transform: translateY(-2px) !important;
}
/* External recruitment form/page embed. The pasted iframe keeps its own size. */
.recruitment-embed-page {
    margin: 0 !important;
    padding: 10px 0 0 !important;
}

.recruitment-embed {
    width: 100%;
    max-width: var(--ms-container, 1400px);
    margin: 0 auto;
    padding: 0 24px !important;
    box-sizing: border-box;
    overflow: hidden;
}

.recruitment-embed iframe {
    display: block;
    max-width: 100%;
    border: 0;
}

.recruitment-embed__frame {
    width: 100%;
    min-height: 900px;
}

/* ========================================================================== 
   15. Why choose METTASOUL
   ========================================================================== */
.recruitment-why-section {
    background: transparent;
    padding: 74px 0 24px !important;
}

/* Keep the following KASPEA heading close to the six benefit cards. */
#recruitment-standards {
    padding-top: 24px !important;
}

.recruitment-why-section__header {
    width: 100%;
    max-width: none;
    margin-bottom: 48px !important;
    text-align: center;
}

.recruitment-why-section__header h2 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    color: #0b6f78;
    font-size: clamp(27px, 3vw, 43px);
    line-height: 1.2;
    white-space: nowrap;
}

.recruitment-why-section__title-line {
    display: inline;
}

.recruitment-why-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.recruitment-why-card {
    min-width: 0;
    min-height: 236px;
    padding: 26px 16px 24px;
    background: #ffffff;
    border: 1px solid rgba(11, 111, 120, 0.14);
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 10px 26px rgba(11, 111, 120, 0.08);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.recruitment-why-card:hover {
    background: #ffffff;
    border-color: rgba(11, 111, 120, 0.4);
    box-shadow: 0 14px 30px rgba(0, 55, 61, 0.22);
    transform: translateY(-5px);
}

.recruitment-why-card__icon {
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruitment-why-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.recruitment-why-card__text {
    color: #172b36;
    font-size: 17px;
    font-weight: 400 !important;
    line-height: 1.45;
    margin: 0 auto;
    max-width: 210px;
}

.recruitment-why-card__title-line {
    display: block;
    font-weight: 400 !important;
    white-space: nowrap;
}

#page .recruitment-why-section .recruitment-why-card .recruitment-why-card__text,
#page .recruitment-why-section .recruitment-why-card .recruitment-why-card__text span {
    font-weight: 400 !important;
}

.recruitment-why-card:nth-child(-n + 2) .recruitment-why-card__text {
    font-size: 16px;
}

@media (max-width: 1199px) {
    .recruitment-why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 28px;
    }

    .recruitment-why-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 767px) {
    .recruitment-embed {
        width: 100%;
        padding: 0 10px !important;
    }

    .recruitment-embed__frame {
        min-height: 760px;
    }

    .recruitment-why-section {
        padding: 50px 0 24px !important;
    }

    #recruitment-standards {
        padding-top: 20px !important;
    }

    .recruitment-why-section__header {
        margin-bottom: 26px !important;
    }

    .recruitment-why-section__header h2 {
        font-size: 25px;
        white-space: normal;
    }

    .recruitment-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .recruitment-why-card {
        min-height: 190px;
        padding: 18px 8px;
        border-color: rgba(11, 111, 120, 0.1);
        background: #ffffff;
    }

    .recruitment-why-card__icon {
        width: 92px;
        height: 92px;
        margin-bottom: 13px;
    }

    .recruitment-why-card__text {
        font-size: 14px;
        line-height: 1.4;
    }

.recruitment-why-card:nth-child(-n + 2) .recruitment-why-card__text {
        font-size: 13px;
    }
}

/* ========================================================================== 
   16. Application process timeline
   ========================================================================== */
#recruitment-process .application-process-timeline {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 42px 0 0;
    padding: 0;
    position: relative;
}

#recruitment-process .application-process-timeline::before {
    background: rgba(11, 111, 120, 0.2);
    content: '';
    height: 2px;
    left: calc(100% / 14);
    position: absolute;
    right: calc(100% / 14);
    top: 31px;
}

#recruitment-process .application-process-timeline li {
    align-self: stretch;
    align-items: center;
    color: #0b6f78;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    text-align: center;
    z-index: 1;
}

#recruitment-process .application-process-timeline__number {
    align-items: center;
    background: #ffffff;
    border: 2px solid rgba(11, 111, 120, 0.3);
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(11, 111, 120, 0.08);
    display: flex;
    font-size: 17px;
    font-weight: 700;
    height: 62px;
    justify-content: center;
    margin-bottom: 16px;
    width: 62px;
}

#recruitment-process .application-process-timeline li:last-child .application-process-timeline__number {
    background: #0b6f78;
    border-color: #0b6f78;
    color: #ffffff;
}

#recruitment-process .application-process-timeline__label {
    color: #172b36;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.42;
    max-width: 150px;
}

@media (max-width: 1199px) {
    #recruitment-process .application-process-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    #recruitment-process .application-process-timeline::before {
        display: none;
    }

    #recruitment-process .application-process-timeline li {
        background: #ffffff;
        border: 1px solid rgba(11, 111, 120, 0.12);
        border-radius: 14px;
        min-height: 134px;
        padding: 16px 10px;
    }

    #recruitment-process .application-process-timeline__number {
        height: 52px;
        margin-bottom: 10px;
        width: 52px;
    }
}

@media (max-width: 767px) {
    #recruitment-process .application-process-timeline {
        gap: 12px;
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    #recruitment-process .application-process-timeline li {
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        min-height: 0;
        padding: 12px 16px;
        text-align: left;
    }

    #recruitment-process .application-process-timeline__number {
        flex: 0 0 44px;
        font-size: 15px;
        height: 44px;
        margin: 0 14px 0 0;
        width: 44px;
    }

    #recruitment-process .application-process-timeline__label {
        font-size: 15px;
        max-width: none;
    }
}

/* ========================================================================== 
   16. KASPEA competency framework
   Keep the recruitment grid independent from the similarly named About-page
   component.  The shared selectors in theme.css previously made a hovered
   card jump out of the row and caused the card bottoms to appear uneven.
   ========================================================================== */
#recruitment-standards {
    overflow: visible;
}

#recruitment-standards .standards-kaspea-slider-wrapper {
    width: 100%;
}

#recruitment-standards .standards-kaspea-grid {
    align-items: stretch;
}

#recruitment-standards .standards-kaspea-item {
    background: linear-gradient(135deg, #ffffff 0%, #f5fcfc 100%) !important;
    border: 1px solid rgba(11, 111, 120, 0.28) !important;
    box-shadow: 0 10px 24px rgba(11, 111, 120, 0.11) !important;
    min-width: 0;
    min-height: 232px;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

/* Branded top edge keeps each KASPEA card distinct from the page background. */
#recruitment-standards .standards-kaspea-item::before {
    background: var(--card-accent-grad, linear-gradient(90deg, #0b6f78, #0d8f97));
    content: '';
    height: 5px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Accent colors are editable in the Recruitment page editor and are shared
   by the top edge and KASPEA letter mark on every screen size. */
#recruitment-standards .standards-kaspea-item .standards-letter-box {
    background: linear-gradient(135deg, var(--kaspea-accent-start, #0b6f78), var(--kaspea-accent-end, #074c58)) !important;
    color: #fff !important;
}

/* Preserve a clear interaction state without changing a card's position. */
#recruitment-standards .standards-kaspea-item:hover,
#recruitment-standards .standards-kaspea-item:focus-within {
    transform: none !important;
    border-color: rgba(11, 111, 120, 0.32) !important;
    box-shadow: 0 12px 28px rgba(11, 111, 120, 0.10) !important;
}

#recruitment-standards .standards-kaspea-item:focus-within {
    outline: 3px solid rgba(13, 143, 151, 0.30);
    outline-offset: 3px;
}

@media (min-width: 769px) {
    #recruitment-standards .standards-kaspea-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: 232px !important;
        gap: 24px !important;
        margin: 40px 0 0 !important;
    }

    #recruitment-standards .standards-kaspea-item {
        height: 232px;
        padding: 28px 24px !important;
    }
}

@media (max-width: 768px) {
	#recruitment-standards .standards-kaspea-item,
    #recruitment-standards .standards-kaspea-item:hover,
    #recruitment-standards .standards-kaspea-item:focus-within {
        min-height: 0;
        box-shadow: 0 8px 20px rgba(11, 111, 120, 0.10) !important;
		outline: none;
	}

    /* The About-page carousel rules make these cards only 80px tall on
       small screens.  Recruitment instead uses a clear 3-card vertical
       viewport, which can be expanded to show all six cards. */
    #recruitment-standards .standards-kaspea-slider-wrapper {
        display: block !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    #recruitment-standards .kaspea-mobile-viewport {
        height: 276px;
        overflow: hidden;
        transition: height 0.35s ease;
    }

    #recruitment-standards .standards-kaspea-grid,
    #recruitment-standards .standards-kaspea-slider-wrapper.is-expanded .standards-kaspea-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        gap: 12px !important;
        margin: 0 !important;
        transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
        will-change: transform;
    }

    #recruitment-standards .standards-kaspea-grid .standards-kaspea-item,
    #recruitment-standards .standards-kaspea-slider-wrapper.is-expanded .standards-kaspea-grid .standards-kaspea-item {
        box-sizing: border-box !important;
        display: flex !important;
        flex: none !important;
        flex-direction: row !important;
        align-items: center !important;
        height: 84px !important;
        min-height: 84px !important;
        padding: 16px 18px !important;
        text-align: left !important;
    }

    #recruitment-standards .standards-letter-box {
        width: 42px !important;
        height: 42px !important;
        margin: 0 14px 0 0 !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }

    /* Match the six branded KASPEA accents used by the desktop cards. */
    #recruitment-standards .standards-kaspea-item:nth-child(1) { --card-accent-grad: linear-gradient(90deg, #0a5c73, #054a51); }
    #recruitment-standards .standards-kaspea-item:nth-child(1) .standards-letter-box { background: linear-gradient(135deg, #0a5c73, #054a51) !important; color: #fff !important; }
    #recruitment-standards .standards-kaspea-item:nth-child(2) { --card-accent-grad: linear-gradient(90deg, #0b6f78, #074c58); }
    #recruitment-standards .standards-kaspea-item:nth-child(2) .standards-letter-box { background: linear-gradient(135deg, #0b6f78, #074c58) !important; color: #fff !important; }
    #recruitment-standards .standards-kaspea-item:nth-child(3) { --card-accent-grad: linear-gradient(90deg, #0d8f97, #0b6f78); }
    #recruitment-standards .standards-kaspea-item:nth-child(3) .standards-letter-box { background: linear-gradient(135deg, #0d8f97, #0b6f78) !important; color: #fff !important; }
    #recruitment-standards .standards-kaspea-item:nth-child(4) { --card-accent-grad: linear-gradient(90deg, #1c89ac, #0d8f97); }
    #recruitment-standards .standards-kaspea-item:nth-child(4) .standards-letter-box { background: linear-gradient(135deg, #1c89ac, #0d8f97) !important; color: #fff !important; }
    #recruitment-standards .standards-kaspea-item:nth-child(5) { --card-accent-grad: linear-gradient(90deg, #d68927, #b2711d); }
    #recruitment-standards .standards-kaspea-item:nth-child(5) .standards-letter-box { background: linear-gradient(135deg, #d68927, #b2711d) !important; color: #fff !important; }
    #recruitment-standards .standards-kaspea-item:nth-child(6) { --card-accent-grad: linear-gradient(90deg, #f28c00, #d97d00); }
    #recruitment-standards .standards-kaspea-item:nth-child(6) .standards-letter-box { background: linear-gradient(135deg, #f28c00, #d97d00) !important; color: #fff !important; }

    #recruitment-standards .standards-item-body {
        min-width: 0;
        width: auto !important;
    }

    #recruitment-standards .standards-item-title {
        margin: 0 0 3px !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    #recruitment-standards .standards-item-desc {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        text-align: left !important;
    }

    #recruitment-standards .kaspea-mobile-progress {
        display: block;
        width: min(148px, 42vw);
        height: 4px;
        margin: 14px auto 0;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(11, 111, 120, 0.16);
    }

    #recruitment-standards .kaspea-mobile-progress__indicator {
        display: block;
        width: 50%;
        height: 100%;
        border-radius: inherit;
        background: var(--ms-primary, #0b6f78);
        transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
        will-change: transform;
    }

    #recruitment-standards .kaspea-toggle-wrapper {
        display: flex !important;
        justify-content: center !important;
        margin: 14px 0 0 !important;
    }

    #recruitment-standards .standards-kaspea-slider-wrapper.is-expanded .kaspea-mobile-viewport {
        height: 564px;
    }

    #recruitment-standards .standards-kaspea-slider-wrapper.is-expanded .kaspea-mobile-progress {
        display: none;
    }
}

@media (min-width: 769px) {
    #recruitment-standards .kaspea-mobile-progress {
        display: none;
    }
}

/* ========================================================================== 
   17. METTASOUL work culture
   ========================================================================== */
#recruitment-benefits.recruitment-culture-section {
    background: #ffffff !important;
    padding: 20px 0 24px !important;
}

/* Keep the application-process heading close to the culture gallery. */
#recruitment-process {
    padding-top: 24px !important;
    padding-bottom: 16px !important;
}

/* Keep the vacancies heading close to the end of the application process. */
#recruitment-jobs {
    padding-top: 20px !important;
    padding-bottom: 16px !important;
}

/* Keep the FAQ heading close to the final vacancy card. */
#recruitment-faq {
    padding-top: 20px !important;
}

/* Keep the transition from KASPEA to the culture section compact. */
#recruitment-standards {
    padding-bottom: 24px !important;
}

#recruitment-benefits .recruitment-culture-section__header {
    margin: 0 auto 28px !important;
    max-width: 1240px;
    text-align: center !important;
}

#recruitment-benefits .recruitment-culture-section__header .recruitment-section-tag {
    color: var(--ms-primary);
    letter-spacing: 0.18em;
}

#recruitment-benefits .recruitment-culture-section__header h2 {
    color: var(--ms-primary-dark);
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.18;
    margin: 0 auto 20px;
    text-align: center !important;
}

#recruitment-benefits .recruitment-culture-section__header .recruitment-culture-section__intro {
    color: #303030;
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 1180px;
    text-align: center !important;
}

.recruitment-culture-gallery {
    background: linear-gradient(135deg, #effafb 0%, #e2f3f4 100%);
    border: 1px solid rgba(11, 111, 120, 0.16);
    border-radius: 26px;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 22px 20px 20px;
}

.recruitment-culture-card {
    margin: 0;
    min-width: 0;
    text-align: center;
}

.recruitment-culture-card img {
    aspect-ratio: 0.82;
    background: #ffffff;
    border: 7px solid #ffffff;
    border-radius: 30px;
    box-shadow: 8px 10px 0 rgba(13, 143, 151, 0.20), 0 10px 20px rgba(7, 87, 105, 0.10);
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
}

/* Preserve a crisp Circle Time image after the source asset is refreshed. */
.recruitment-culture-card:nth-child(2) img {
    image-rendering: auto;
    object-position: 58% center;
}

/* The presenter and screen sit on the right side of this photograph. */
.recruitment-culture-card:nth-child(1) img {
    object-position: 80% center;
}

.recruitment-culture-card:hover img {
    box-shadow: 6px 8px 0 rgba(13, 143, 151, 0.28), 0 14px 24px rgba(7, 87, 105, 0.14);
    transform: translate(-3px, -4px);
}

.recruitment-culture-card figcaption {
    background: linear-gradient(135deg, #0d8f97, #0b6f78);
    border-radius: 10px;
    color: #ffffff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    font-size: clamp(13px, 1.1vw, 17px);
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1.2;
    margin-top: 18px;
    padding: 9px 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .recruitment-culture-gallery {
        gap: 22px 26px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 20px 22px;
    }

    .recruitment-culture-card img {
        aspect-ratio: 1.15;
    }
}

@media (max-width: 767px) {
    #recruitment-benefits.recruitment-culture-section {
        padding: 22px 0 24px !important;
    }

    #recruitment-process {
        padding-top: 20px !important;
        padding-bottom: 16px !important;
    }

    #recruitment-jobs {
        padding-top: 18px !important;
        padding-bottom: 16px !important;
    }

    #recruitment-faq {
        padding-top: 18px !important;
    }

    #recruitment-standards {
        padding-bottom: 20px !important;
    }

    #recruitment-benefits .recruitment-culture-section__header {
        margin-bottom: 28px !important;
    }

    #recruitment-benefits .recruitment-culture-section__header h2 {
        font-size: 27px;
    }

    #recruitment-benefits .recruitment-culture-section__header .recruitment-culture-section__intro {
        font-size: 16px;
    }

    .recruitment-culture-gallery {
        border-radius: 18px;
        gap: 18px 14px;
        padding: 16px 12px 18px;
    }

    .recruitment-culture-card img {
        border-radius: 18px;
        border-width: 4px;
        box-shadow: 4px 5px 0 rgba(13, 143, 151, 0.20), 0 8px 16px rgba(7, 87, 105, 0.10);
    }

    .recruitment-culture-card figcaption {
        align-items: center;
        box-sizing: border-box;
        display: flex;
        font-size: clamp(7.5px, 2.4vw, 10px);
        justify-content: center;
        letter-spacing: 0;
        margin-top: 12px;
        min-height: 40px;
        padding: 8px 10px;
        white-space: nowrap;
        width: 100%;
    }
}

/* Final override: the culture introduction must remain regular body copy. */
html body #page #recruitment-benefits .recruitment-culture-section__header p.recruitment-culture-section__intro {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    text-align: center !important;
}

/* ========================================================================== 
   17. Application process cards
   ========================================================================== */
#recruitment-process .application-process-slider {
    overflow: visible;
    padding: 32px 0 8px;
}

#recruitment-process .application-process-progress {
    display: none;
}

#recruitment-process .application-process-timeline {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

#recruitment-process .application-process-timeline::before {
    background: linear-gradient(90deg, #0b6f78 0%, #f28c00 50%, #0b6f78 100%);
    content: '';
    height: 4px;
    left: calc(100% / 14);
    position: absolute;
    right: calc(100% / 14);
    top: 0;
}

#recruitment-process .application-process-timeline li {
    align-self: stretch;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(11, 111, 120, 0.14);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(11, 111, 120, 0.08);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 30px;
    min-height: 202px;
    min-width: 0;
    padding: 46px 13px 14px;
    position: relative;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    z-index: 1;
}

#recruitment-process .application-process-timeline li:hover {
    border-color: rgba(11, 111, 120, 0.42);
    box-shadow: 0 16px 30px rgba(11, 111, 120, 0.16);
    transform: translateY(-5px);
}

#recruitment-process .application-process-timeline__number {
    align-items: center;
    background: #0b6f78;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(11, 111, 120, 0.5), 0 5px 13px rgba(11, 111, 120, 0.2);
    color: #ffffff;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    height: 58px;
    justify-content: center;
    left: 50%;
    letter-spacing: 0.02em;
    margin: 0;
    position: absolute;
    top: -31px;
    transform: translateX(-50%);
    width: 58px;
}

#recruitment-process .application-process-timeline li:nth-child(even) .application-process-timeline__number {
    background: #f28c00;
    box-shadow: 0 0 0 2px rgba(242, 140, 0, 0.54), 0 5px 13px rgba(242, 140, 0, 0.2);
}

#recruitment-process .application-process-timeline__body h3 {
    color: #0b6f78;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

#recruitment-process .application-process-timeline li:nth-child(even) .application-process-timeline__body h3 {
    color: #d37c00;
}

#recruitment-process .application-process-timeline__body p {
    color: #475569;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

#recruitment-process .application-process-timeline__body {
    display: grid;
    grid-template-rows: 52px auto;
    height: 100%;
    width: 100%;
}

@media (max-width: 1199px) and (min-width: 768px) {
    #recruitment-process .application-process-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 44px;
    }

    #recruitment-process .application-process-timeline::before {
        display: none;
    }
}

@media (max-width: 767px) {
    #recruitment-process .application-process-slider {
        margin: 0 -12px;
        overflow: hidden;
        padding: 38px 0 10px;
    }

    #recruitment-process .application-process-timeline {
        display: flex;
        gap: 12px;
        padding: 0 20px;
        transform: translateX(0);
        transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
        width: max-content;
    }

    #recruitment-process .application-process-timeline::before {
        display: none;
    }

    #recruitment-process .application-process-timeline li {
        flex: 0 0 calc((100vw - 52px) / 2);
        margin-top: 0;
        min-height: 164px;
        padding: 34px 8px 10px;
    }

    #recruitment-process .application-process-timeline__number {
        font-size: 14px;
        height: 48px;
        top: -26px;
        width: 48px;
    }

    #recruitment-process .application-process-timeline__body h3 {
        font-size: 15px;
        line-height: 1.25;
    }

    #recruitment-process .application-process-timeline__body p {
        font-size: 12px;
        line-height: 1.4;
    }

    #recruitment-process .application-process-timeline__body {
        grid-template-rows: 40px auto;
    }

    #recruitment-process .application-process-progress {
        display: block;
        width: min(148px, 42vw);
        height: 4px;
        margin: 10px auto 0;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(11, 111, 120, 0.16);
    }

    #recruitment-process .application-process-progress__indicator {
        display: block;
        width: 25%;
        height: 100%;
        border-radius: inherit;
        background: #0b6f78;
        transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.2s ease;
        will-change: transform;
    }
}
.volunteer-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin-top: 8px;
}

.volunteer-checkboxes label {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px !important;
    justify-content: start !important;
    align-content: start;
    width: 100%;
    margin: 0 !important;
    color: #203746;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.45;
}

.volunteer-checkboxes input {
    width: auto;
    min-width: 16px;
    height: 16px;
    margin: 3px 0 0 !important;
    justify-self: start;
}

/* Keep all eight volunteer activity choices balanced in two rows on wide
 * screens. The volunteer modal is widened at this breakpoint so each of the
 * four equal columns remains readable instead of collapsing the labels. */
@media (min-width: 1025px) {
    #page #volunteer-form-section.recruitment-section .default-container {
        width: calc(100vw - 64px) !important;
        max-width: 1360px !important;
    }

    #page #volunteer-form-section .recruitment-form-wrapper {
        grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.75fr);
    }

    #page #volunteer-form-section .volunteer-checkboxes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 16px;
    }
}

@media (max-width: 640px) {
    .volunteer-checkboxes { grid-template-columns: 1fr; }
}

/* Guard against broad theme image/heading rules at unusual screen widths. */
#page #recruitment-values .recruitment-why-section__header h2 {
    font-size: clamp(26px, 2.25vw, 43px) !important;
    max-width: none !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

#page #recruitment-values .recruitment-why-card {
    overflow: hidden !important;
}

#page #recruitment-values .recruitment-why-card__icon {
    flex: 0 0 132px !important;
    height: 132px !important;
    margin: 0 auto 18px !important;
    max-height: 132px !important;
    max-width: 132px !important;
    overflow: hidden !important;
    width: 132px !important;
}

#page #recruitment-values .recruitment-why-card__icon img {
    display: block !important;
    height: 132px !important;
    max-height: 132px !important;
    max-width: 132px !important;
    object-fit: contain !important;
    width: 132px !important;
}

@media (max-width: 1199px) {
    #page #recruitment-values .recruitment-why-section__header h2 {
        white-space: normal !important;
    }
}

@media (max-width: 767px) {
    #page #recruitment-values .recruitment-why-section__header h2 {
        font-size: clamp(16px, 4.6vw, 18px) !important;
        line-height: 1.25 !important;
        letter-spacing: -0.035em !important;
        text-wrap: balance;
    }

    #page #recruitment-values .recruitment-why-section__title-line {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #page #recruitment-values .recruitment-why-card__icon,
    #page #recruitment-values .recruitment-why-card__icon img {
        flex-basis: 92px !important;
        height: 92px !important;
        max-height: 92px !important;
        max-width: 92px !important;
        width: 92px !important;
    }
}

/* Mobile: show two benefit cards at a time in one looping horizontal row. */
.recruitment-why-progress {
    display: none;
}

@media (max-width: 767px) {
    #page #recruitment-values .recruitment-why-slider {
        margin: 0 -12px;
        overflow: hidden;
        padding: 0 0 10px;
		touch-action: pan-y;
    }

    #page #recruitment-values .recruitment-why-grid {
        align-items: stretch !important;
        display: flex !important;
        gap: 12px !important;
        grid-template-columns: none !important;
        padding: 0 20px !important;
        transform: translateX(0);
        transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
        width: max-content !important;
    }

    #page #recruitment-values .recruitment-why-card {
        flex: 0 0 calc((100vw - 52px) / 2) !important;
        min-height: 190px !important;
        padding: 18px 8px !important;
    }

    #page #recruitment-values .recruitment-why-card__icon,
    #page #recruitment-values .recruitment-why-card__icon img {
        flex-basis: 84px !important;
        height: 84px !important;
        max-height: 84px !important;
        max-width: 84px !important;
        width: 84px !important;
    }

	#page #recruitment-values .recruitment-why-progress {
		display: block;
		width: min(148px, 42vw);
		height: 4px;
		margin: 14px auto 0;
		overflow: hidden;
		border-radius: 999px;
		background: rgba(11, 111, 120, 0.16);
	}

	#page #recruitment-values .recruitment-why-progress__indicator {
		display: block;
		height: 100%;
		border-radius: inherit;
		background: var(--ms-primary, #0b6f78);
		transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.2s ease;
		will-change: transform;
	}
}

/* All vacancy popups share one desktop frame. Keeping the outer dimensions
 * identical prevents a jump in width when visitors move between positions. */
@media (min-width: 1025px) {
    #page #job-details-modal .default-container,
    #page #recruitment-form-section.recruitment-section .default-container,
    #page #internship-form-section.recruitment-section .default-container,
    #page #volunteer-form-section.recruitment-section .default-container {
        width: calc(100vw - 64px) !important;
        max-width: 1360px !important;
        max-height: 85vh !important;
        box-sizing: border-box !important;
    }
}
