/* ===== Careers / Jobs ===== */

.careers-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 160px 24px 40px;
    text-align: center;
}

.careers-hero .section-kicker {
    justify-content: center;
    margin-bottom: 18px;
}

.careers-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--text-white);
    margin: 0 0 18px;
}

.careers-hero h1 .accent {
    color: var(--primary-blue);
    display: block;
}

.careers-hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.careers-list-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px 100px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 22px;
}

.job-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--service-border);
    border-radius: 18px;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 107, 255, 0.5);
    box-shadow: 0 18px 40px rgba(3, 10, 30, 0.55);
}

.job-card-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-card-top h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin: 0;
}

.job-dept {
    color: var(--primary-blue);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.job-summary {
    color: var(--text-muted);
    font-size: .96rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

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

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--service-highlight);
    border: 1px solid var(--service-border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: .82rem;
}

.job-card-cta {
    margin-top: 6px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: .95rem;
}

.job-card-cta .arrow {
    transition: transform .2s ease;
    display: inline-block;
}

.job-card:hover .job-card-cta .arrow {
    transform: translateX(4px);
}

/* Empty state */
.careers-empty {
    text-align: center;
    padding: 70px 24px;
    background: var(--card-bg);
    border: 1px solid var(--service-border);
    border-radius: 18px;
    max-width: 620px;
    margin: 0 auto;
}

.careers-empty i {
    font-size: 2.6rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.careers-empty h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.careers-empty p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto 22px;
    max-width: 440px;
}

/* ===== Job detail ===== */
.job-detail {
    max-width: 1120px;
    margin: 0 auto;
    padding: 140px 24px 100px;
}

.job-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .95rem;
    margin-bottom: 26px;
    transition: color .2s ease;
}

.job-back:hover {
    color: var(--text-white);
}

.job-detail-head h1 {
    color: var(--text-white);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0 0 18px;
}

.job-closes {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 16px 0 0;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.job-body h2 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin: 34px 0 14px;
}

.job-body h2:first-child {
    margin-top: 0;
}

.rich-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.rich-text p {
    margin: 0 0 14px;
}

.rich-text ul,
.rich-text ol {
    padding-inline-start: 22px;
    margin: 0 0 14px;
}

.rich-text li {
    margin-bottom: 8px;
}

.rich-text a {
    color: var(--primary-blue);
}

/* Apply panel */
.apply-panel {
    position: sticky;
    top: 100px;
    background: var(--card-bg);
    border: 1px solid var(--service-border);
    border-radius: 18px;
    padding: 30px;
}

.apply-panel h2 {
    color: var(--text-white);
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.apply-sub {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    color: var(--text-white);
    font-size: .88rem;
    font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
    background: var(--dark-blue);
    border: 1px solid var(--service-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-white);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s ease;
}

.form-field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8c4d9' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 38px;
}

html[dir="rtl"] .form-field select {
    background-position: left 14px center;
    padding-right: 14px;
    padding-left: 38px;
}

.form-field select option { color: #000; }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-field .req-mark { color: var(--primary-blue); }

.form-field input[type="file"] {
    padding: 10px;
    color: var(--text-muted);
    font-size: .85rem;
}

.form-field textarea {
    resize: vertical;
}

.apply-submit {
    justify-content: center;
    margin-top: 6px;
    cursor: pointer;
    border: none;
    width: 100%;
}

.apply-errors {
    background: rgba(255, 70, 70, 0.1);
    border: 1px solid rgba(255, 70, 70, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.apply-errors ul {
    margin: 0;
    padding-inline-start: 18px;
    color: #ff9b9b;
    font-size: .9rem;
}

.apply-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}

.apply-success i {
    font-size: 2.4rem;
    color: #2ecc71;
}

.apply-success h3 {
    color: var(--text-white);
    margin: 0;
    font-size: 1.3rem;
}

.apply-success p {
    color: var(--text-muted);
    margin: 0;
    max-width: 460px;
    line-height: 1.6;
}

@media (max-width: 880px) {
    .job-detail-grid {
        grid-template-columns: 1fr;
    }

    .apply-panel {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* RTL tweaks */
[dir="rtl"] .job-card-cta .arrow,
[dir="rtl"] .apply-submit .arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .job-back .arrow {
    transform: scaleX(-1);
}
