/* public/css/site/media-careers.css */

/* ===== Hero ===== */
.careers-hero {
    padding-block: clamp(40px, 14vh, 110px);
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    color: #f9fafb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.careers-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin-inline: auto;
}

.careers-hero__title {
    margin: 0;
    font-size: clamp(26px, 5.6vw, 40px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.careers-hero__line {
    display: block;
}

.careers-hero__line--accent {
    background: linear-gradient(
        90deg,
        var(--accent, #c9a552),
        var(--accent-2, #e2c777)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.careers-hero__lead {
    margin: 14px 0 0;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.9;
}

.careers-hero__lead--soft {
    opacity: 0.9;
}

/* ===== Sections ===== */
.careers-section {
    padding-block: clamp(28px, 9vh, 80px);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.careers-section__head {
    text-align: center;
    margin-bottom: clamp(16px, 3.5vw, 24px);
}

.careers-section__title {
    margin: 0;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.careers-section__title--light {
    color: #f9fafb;
}

.careers-section__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
}

/* ===== Intro ===== */
.careers-intro {
    background: #ffffff;
}

.careers-intro__layout {
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.careers-intro__content {
    text-align: start;
}

.careers-intro__kicker {
    margin: 10px 0 6px;
    font-weight: 700;
    color: var(--accent, #c9a552);
    font-size: 15px;
}

.careers-intro__text {
    margin: 8px 0 0;
    font-weight: 600;
    color: var(--muted, #6b6f76);
    line-height: 1.9;
}

.careers-intro__media {
    margin: 0;
}

.careers-intro__image-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line, #e5e7eb);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    background: #020617;
}

.careers-intro__image {
    display: block;
    width: 100%;
    height: min(360px, 60vh);
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .careers-intro__image-wrap:hover .careers-intro__image {
        transform: scale(1.06);
    }
}

/* استجابة للجوال */
@media (max-width: 880px) {
    .careers-intro__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .careers-intro__media {
        order: -1;
    }
}

/* ===== Main grid (منهجية التوظيف) ===== */
.careers-main {
    background: #f9fafb;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 22px);
}

.careers-card {
    border-radius: 18px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    padding: 14px 14px 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.careers-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.careers-card__body {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.9;
}

/* ===== العمل معنا ===== */
.careers-work {
    background: radial-gradient(
            900px 360px at 50% 0,
            rgba(201, 165, 82, 0.18),
            transparent 65%
        ),
        #020617;
    color: #f9fafb;
}

.careers-work__layout {
    max-width: 1000px;
    margin-inline: auto;
}

.careers-work__content {
    text-align: start;
}

.careers-work__text {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 2;
}

/* ===== CTA + Form ===== */
.careers-cta {
    background: #ffffff;
}

.careers-cta__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: flex-start;
}

.careers-cta__content {
    text-align: start;
}

.careers-cta__text {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.9;
}

/* ===== Form Card ===== */
.careers-form__wrap {
    display: flex;
    justify-content: stretch;
}

.careers-form__card {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line, #e5e7eb);
    background: #f9fafb;
    padding: 16px 16px 18px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.careers-form__title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.careers-form__hint {
    margin: 6px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
}

.careers-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.careers-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.careers-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.careers-field--full {
    grid-column: 1 / -1;
}

.careers-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--black, #0b0f19);
}

.careers-input {
    border-radius: 10px;
    border: 1px solid var(--line, #d1d5db);
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    background: #ffffff;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.careers-input:focus {
    border-color: var(--accent, #c9a552);
    box-shadow: 0 0 0 1px rgba(201, 165, 82, 0.2);
}

.careers-input--file {
    padding-inline-start: 0;
    padding-inline-end: 0;
    background: #f3f4f6;
}

.careers-field__note {
    margin: 0;
    font-size: 12px;
    color: var(--muted, #6b7280);
}

.careers-submit {
    margin-top: 6px;
    width: 100%;
}

/* ===== Simple File Upload ===== */
.careers-file {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line, #d1d5db);
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 12px;
}

.careers-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.careers-file__btn {
    border: 1px solid var(--line, #d1d5db);
    background: #f9fafb;
    color: var(--black, #0b0f19);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.careers-file__btn:hover {
    background: #f3f4f6;
}

.careers-file__btn:active {
    background: #e5e7eb;
}

.careers-file__meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #6b7280);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.careers-file__list {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.careers-file__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black, #0b0f19);
}

.careers-file__badge {
    font-size: 12px;
    font-weight: 800;
    color: #0f766e;
    background: #d1fae5;
    border: 1px solid #bfe6d3;
    padding: 3px 8px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.careers-file__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .careers-grid {
        grid-template-columns: 1fr;
    }

    .careers-cta__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .careers-hero {
        padding-block: clamp(28px, 11vh, 70px);
    }

    .careers-card__title {
        font-size: 14px;
    }

    .careers-card__body {
        font-size: 13px;
    }

    .careers-form__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Alerts (Success / Error) - Formal / No Gradient ===== */
.careers-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    box-shadow: none;
    margin: 10px 0 12px;
}

.careers-alert__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    border: 1px solid var(--line, #e5e7eb);
    background: #f9fafb;
    color: #0b0f19;
}

.careers-alert__content {
    min-width: 0;
}

.careers-alert__title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--black, #0b0f19);
    line-height: 1.55;
}

.careers-alert__text {
    margin: 3px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.85;
}

/* Success style: خلفية أخضر فاتح (بدون تدرج) */
.careers-alert--success {
    border-color: #bfe6d3;
    background: #ecfdf5;
}

.careers-alert--success .careers-alert__icon {
    border-color: #bfe6d3;
    background: #d1fae5;
    color: #0f766e;
}
