/* =======================
   CAREER SECTION
======================= */
.career-section {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    padding: clamp(120px, 12vw, 200px)
             clamp(20px, 8vw, 120px)
             clamp(60px, 8vw, 120px);
    background: #d9b300;
}

.career-left,
.career-right {
    flex: 1;
}

/* HEADLINE */
.career-left h1 {
    font-size: clamp(42px, 10vw, 120px);
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    -webkit-text-stroke: clamp(1px, 0.4vw, 3px) #b70404;
    transition: 0.3s ease;
    word-break: break-word;
}

.career-left h1:hover {
    color: #ffeec2;
    -webkit-text-stroke: clamp(1px, 0.4vw, 3px) #b70404;
}

/* CARD */
.career-card {
    width: 100%;
    background: #fff;
    padding: clamp(20px, 4vw, 40px);
    border-radius: 25px;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform .25s ease, opacity .25s ease;
}
.career-card.animate{
    transform: translateY(6px);
    opacity: 0.8;
}

/* =======================
   JOB LISTING
======================= */
.openings {
    padding: clamp(40px, 6vw, 70px) clamp(16px, 5vw, 32px);
    text-align: left;
}

.openings > h2 {
    font-size: clamp(28px, 5vw, 47px);
    margin-bottom: 30px;
    text-align: center;
}

.location-filter{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap: 10px 16px;
    margin-bottom: clamp(16px, 3vw, 32px);
}

.location-filter span {
    margin: 0;
    cursor: pointer;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.35);
    user-select: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.location-filter .active {
    color: #b70404;
    background: rgba(255,255,255,0.85);
    transform: translateY(-1px);
}

/* JOB CARD */
.job-card {
    width: min(92%, 1200px);
    margin: 0 auto 30px;
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 0 clamp(14px, 2.2vw, 28px);
    box-shadow: none;
    border-top: 1px solid rgba(0,0,0,0.28);
}

/* JOB ROW */
.job-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 18px;
    padding: 22px 2px;
}
.job-row__left{
    flex: 1;
    min-width: 0;
    text-align: left;
}
.job-row__left h3{
    margin: 0;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 800;
    color: #000;
    letter-spacing: -0.01em;
}
.job-meta{
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(0,0,0,0.75);
}
.job-divider{
    height: 1px;
    background: rgba(0,0,0,0.28);
    width: 100%;
}

/* BUTTON */
.details-btn {
    background: #f4cc00;
    border: none;
    padding: 12px 26px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
    min-width: 170px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    margin-left: auto;
    transition: transform .2s ease, filter .2s ease;
}
.details-btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* Modal + Apply form */
.modal-bg{
    display:none;
    position:fixed;
    inset:0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    align-items:center;
    justify-content:center;
    padding: 18px;
    z-index: 9999;
}
.modal-box{
    width: min(92vw, 620px);
    background: #fff;
    border-radius: 6px;
    padding: 28px 28px 26px;
    position: relative;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
    max-height: 88vh;
    overflow: auto;
}
.modal-box h2{
    margin: 0 0 6px;
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.modal-box .job-modal-meta{
    margin: 0 0 18px;
}
.close-btn{
    position:absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #111;
}
.job-modal-meta{
    margin: 6px 0 18px;
    color: #666;
    font-size: 13px;
}
.job-apply-form{
    display:grid;
    gap: 12px;
}
.job-form-label{
    font-weight: 800;
    font-size: 13px;
}
.job-form-hint{
    font-weight: 600;
    color:#666;
}
.job-apply-form input,
.job-apply-form select{
    width:100%;
    padding: 10px 0;
    border-radius: 0;
    border: none;
    border-bottom: 1.5px solid #111;
    outline: none;
    background: transparent;
    font-size: 14px;
}
.job-apply-form input:focus,
.job-apply-form select:focus{
    border-bottom-color: #b70404;
}
.job-apply-form input::placeholder{
    color: rgba(0,0,0,0.45);
}
.job-apply-form input[type="file"]{
    border-bottom: 1.5px solid #111;
    padding: 8px 0 10px;
}
.job-apply-form input[type="file"]::file-selector-button{
    background: #f4cc00;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    margin-right: 10px;
}
.job-apply-form input[type="file"]::-webkit-file-upload-button{
    background: #f4cc00;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    margin-right: 10px;
}
.job-form-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
}
.job-form-grid label{
    display:block;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 6px;
}
.job-form-grid label::after{
    content: "";
}
.apply-now-btn{
    background: #f4cc00;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    width: fit-content;
    cursor: pointer;
    margin-top: 6px;
}

/* =======================
   RESPONSIVE STACKING
======================= */
@media (max-width: 768px) {
    .career-section {
        flex-direction: column;
        text-align: center;
    }

    .career-left,
    .career-right {
        width: 100%;
    }

    .career-card{
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .details-btn {
        width: 100%;
        text-align: center;
        min-width: 0;
    }

    .job-row{
        flex-direction: column;
        align-items: flex-start;
    }
    .job-card{
        padding: 0 14px;
    }
    .job-form-grid{
        grid-template-columns: 1fr;
    }
}
