/* =========================================================
   BTAA TARJAMA — JOBS V1
   Page-scoped internal design system
========================================================= */

.jobs-page {
    --jobs-navy: #07111d;
    --jobs-navy-2: #0b1726;
    --jobs-ink: #101b2a;
    --jobs-muted: #687381;
    --jobs-gold: #e5a93c;
    --jobs-gold-deep: #9b691e;
    --jobs-cream: #f4efe4;
    --jobs-paper: #fbfaf7;
    --jobs-white: #fff;
    --jobs-line: rgba(16, 27, 42, .11);
    --jobs-radius-xl: 30px;
    --jobs-radius-lg: 22px;
    overflow-x: clip;
    background: var(--jobs-paper);
    color: var(--jobs-ink);
}

.jobs-page .container {
    width: min(1180px, calc(100% - 48px));
}

.jobs-page .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

/* ---------- Hero ---------- */

.jobs-hero {
    position: relative;
    overflow: hidden;
    padding: 108px 0 100px;
    background:
        radial-gradient(circle at 15% 16%, rgba(229, 169, 60, .13), transparent 30%),
        linear-gradient(135deg, #08121f 0%, #07111d 58%, #0b1726 100%);
    color: #fff;
}

.jobs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to left, #000, transparent 82%);
}

.jobs-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: 86px;
}

.jobs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.55);
    font-size: 13px;
}

.jobs-breadcrumbs a {
    color: inherit;
}

.jobs-breadcrumbs a:hover {
    color: var(--jobs-gold);
}

.jobs-kicker,
.jobs-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--jobs-gold);
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}

.jobs-kicker::before,
.jobs-section-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.jobs-hero h1 {
    max-width: 760px;
    margin: 20px 0 0;
    color: #fff;
    font-size: clamp(48px, 5.9vw, 78px);
    line-height: 1.06;
    letter-spacing: -.05em;
}

.jobs-hero h1 span {
    display: block;
    margin-top: 9px;
    color: var(--jobs-gold);
}

.jobs-hero-copy > p {
    max-width: 670px;
    margin: 26px 0 0;
    color: #b8c2ce;
    font-size: 17px;
    line-height: 2;
}

.jobs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.jobs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.jobs-btn:hover {
    transform: translateY(-2px);
}

.jobs-btn-gold {
    background: var(--jobs-gold);
    color: #111827;
    box-shadow: 0 12px 30px rgba(229,169,60,.18);
}

.jobs-btn-gold:hover {
    background: #efb64d;
    color: #111827;
}

.jobs-btn-ghost {
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.045);
    color: #fff;
}

.jobs-btn-ghost:hover {
    border-color: rgba(229,169,60,.55);
    color: var(--jobs-gold);
}

.jobs-btn-dark {
    background: var(--jobs-navy);
    color: #fff;
}

.jobs-btn-outline {
    border-color: var(--jobs-line);
    background: #fff;
    color: var(--jobs-ink);
}

.jobs-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.jobs-hero-stats > div {
    display: grid;
    gap: 4px;
}

.jobs-hero-stats strong {
    color: #fff;
    font-size: 19px;
}

.jobs-hero-stats span {
    color: rgba(255,255,255,.47);
    font-size: 12px;
}

.jobs-hero-visual {
    position: relative;
    min-height: 430px;
}

.jobs-signal-card {
    position: absolute;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.047);
    box-shadow: 0 30px 90px rgba(0,0,0,.23);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.jobs-signal-card-main {
    top: 36px;
    right: 20px;
    width: min(355px, 84%);
    min-height: 290px;
    padding: 34px;
    border-radius: 28px;
    transform: rotate(-2.8deg);
}

.jobs-signal-label {
    color: rgba(255,255,255,.45);
    font-size: 10px;
    letter-spacing: .18em;
}

.jobs-signal-line {
    width: 68px;
    height: 2px;
    margin: 26px 0 74px;
    background: var(--jobs-gold);
}

.jobs-signal-card-main strong {
    display: block;
    color: #fff;
    font-size: 31px;
    line-height: 1.2;
}

.jobs-signal-card-main small {
    display: block;
    margin-top: 15px;
    color: var(--jobs-gold);
    font-size: 12px;
}

.jobs-signal-card-mini {
    bottom: 26px;
    left: 0;
    display: grid;
    gap: 12px;
    width: 200px;
    padding: 23px;
    border-radius: 20px;
    transform: rotate(4deg);
}

.jobs-signal-card-mini span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,.7);
    font-size: 10px;
    letter-spacing: .15em;
}

.jobs-signal-card-mini span::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--jobs-gold);
}

.jobs-orbit {
    position: absolute;
    border: 1px solid rgba(229,169,60,.18);
    border-radius: 50%;
    pointer-events: none;
}

.jobs-orbit-one {
    top: 0;
    left: 44px;
    width: 118px;
    height: 118px;
}

.jobs-orbit-two {
    right: 0;
    bottom: 56px;
    width: 76px;
    height: 76px;
}

/* ---------- Headings ---------- */

.jobs-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.jobs-section-heading h2,
.jobs-list-toolbar h2 {
    margin: 10px 0 0;
    color: var(--jobs-ink);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.jobs-section-heading > p,
.jobs-list-toolbar > p {
    max-width: 560px;
    margin: 0;
    color: var(--jobs-muted);
    font-size: 15px;
    line-height: 1.9;
}

.jobs-section-heading-compact h2 {
    font-size: clamp(32px, 3.5vw, 46px);
}

/* ---------- Search / filters ---------- */

.jobs-search-section {
    padding: 88px 0 72px;
    background: var(--jobs-paper);
}

.jobs-filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1.55fr) minmax(170px, .75fr) minmax(180px, .8fr) auto;
    align-items: end;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--jobs-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(19,30,45,.06);
}

.jobs-search-field,
.jobs-filter-field {
    display: grid;
    gap: 9px;
}

.jobs-search-field > span,
.jobs-filter-field > span {
    color: #697582;
    font-size: 11px;
    font-weight: 700;
}

.jobs-search-field > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--jobs-line);
    border-radius: 12px;
    background: #fbfaf7;
}

.jobs-search-field input,
.jobs-filter-field select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--jobs-line);
    border-radius: 12px;
    background: #fbfaf7;
    color: var(--jobs-ink);
    font: inherit;
    outline: none;
}

.jobs-search-field input {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.jobs-filter-field select {
    padding: 0 13px;
}

.jobs-search-field > div:focus-within,
.jobs-filter-field select:focus {
    border-color: rgba(229,169,60,.75);
    box-shadow: 0 0 0 3px rgba(229,169,60,.11);
}

.jobs-filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--jobs-navy);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.jobs-filter-reset {
    grid-column: 1 / -1;
    width: max-content;
    margin-top: 2px;
    color: var(--jobs-gold-deep);
    font-size: 12px;
    font-weight: 700;
}

/* ---------- Featured ---------- */

.jobs-featured-section {
    padding: 38px 0 88px;
    background: var(--jobs-paper);
}

.jobs-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.jobs-featured-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(229,169,60,.25);
    border-radius: var(--jobs-radius-lg);
    background:
        radial-gradient(circle at 12% 10%, rgba(229,169,60,.08), transparent 25%),
        #fff;
    box-shadow: 0 22px 65px rgba(19,30,45,.065);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.jobs-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229,169,60,.48);
    box-shadow: 0 26px 72px rgba(19,30,45,.09);
}

.jobs-company-mark {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--jobs-line);
    border-radius: 22px;
    background: var(--jobs-cream);
    color: var(--jobs-navy);
    font-size: 25px;
    font-weight: 700;
}

.jobs-company-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 13px;
    background: #fff;
}

.jobs-company-mark-small {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    font-size: 17px;
}

.jobs-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8a939d;
    font-size: 11px;
}

.jobs-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.jobs-badge-gold {
    background: rgba(229,169,60,.14);
    color: #8c5f18;
}

.jobs-company-name {
    margin: 15px 0 4px;
    color: #7a8590;
    font-size: 12px;
    font-weight: 650;
}

.jobs-featured-content h3,
.jobs-card h3 {
    margin: 0;
    color: var(--jobs-ink);
    line-height: 1.35;
}

.jobs-featured-content h3 {
    font-size: 27px;
}

.jobs-card h3 {
    margin-top: 20px;
    font-size: 22px;
}

.jobs-card h3 a {
    color: inherit;
}

.jobs-card-description {
    margin: 14px 0 0;
    color: var(--jobs-muted);
    font-size: 14px;
    line-height: 1.9;
}

.jobs-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.jobs-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid var(--jobs-line);
    border-radius: 999px;
    background: #fbfaf7;
    color: #65717e;
    font-size: 10px;
    font-weight: 650;
}

.jobs-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    color: var(--jobs-ink);
    font-size: 13px;
    font-weight: 750;
}

.jobs-card-link:hover {
    color: var(--jobs-gold-deep);
}

.jobs-card-link .icon {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.jobs-card-link:hover .icon {
    transform: translateX(-3px);
}

/* ---------- Latest jobs ---------- */

.jobs-list-section {
    padding: 96px 0 108px;
    background: var(--jobs-cream);
}

.jobs-list-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 38px;
    margin-bottom: 34px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jobs-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 24px;
    border: 1px solid var(--jobs-line);
    border-radius: var(--jobs-radius-lg);
    background: #fff;
    box-shadow: 0 18px 46px rgba(18,29,43,.045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.jobs-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229,169,60,.38);
    box-shadow: 0 24px 58px rgba(18,29,43,.075);
}

.jobs-card-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.jobs-card-head-copy {
    min-width: 0;
}

.jobs-card-head-copy .jobs-company-name {
    margin: 0 0 4px;
    color: var(--jobs-ink);
}

.jobs-date {
    color: #98a0a9;
    font-size: 10px;
}

.jobs-meta-row-wrap {
    margin-top: 18px;
}

.jobs-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.jobs-skills span {
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(16,27,42,.05);
    color: #6a7480;
    font-size: 10px;
}

.jobs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--jobs-line);
}

.jobs-card-footer .jobs-card-link {
    margin-top: 0;
}

.jobs-deadline {
    color: #8a939d;
    font-size: 10px;
}

/* ---------- Pagination ---------- */

.jobs-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
}

.jobs-pagination a {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--jobs-line);
    border-radius: 10px;
    background: #fff;
    color: var(--jobs-ink);
    font-size: 12px;
    font-weight: 700;
}

.jobs-pagination a:hover,
.jobs-pagination a.is-current {
    border-color: var(--jobs-navy);
    background: var(--jobs-navy);
    color: #fff;
}

/* ---------- Empty state ---------- */

.jobs-empty-state {
    position: relative;
    overflow: hidden;
    padding: 58px;
    border: 1px solid var(--jobs-line);
    border-radius: var(--jobs-radius-xl);
    background: #fff;
    text-align: center;
}

.jobs-empty-index {
    position: absolute;
    top: -15px;
    left: 30px;
    color: rgba(16,27,42,.035);
    font-size: 128px;
    font-weight: 800;
    line-height: 1;
}

.jobs-empty-state h2 {
    position: relative;
    margin: 0;
    color: var(--jobs-ink);
    font-size: 32px;
}

.jobs-empty-state p {
    position: relative;
    max-width: 590px;
    margin: 14px auto 0;
    color: var(--jobs-muted);
    line-height: 1.9;
}

.jobs-empty-actions {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

/* ---------- Employers CTA ---------- */

.jobs-employer-section {
    padding: 100px 0;
    background: var(--jobs-paper);
}

.jobs-employer-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, .72fr) auto;
    align-items: center;
    gap: 52px;
    padding: 48px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(229,169,60,.13), transparent 30%),
        var(--jobs-navy);
    color: #fff;
}

.jobs-employer-copy h2 {
    max-width: 620px;
    margin: 13px 0 0;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.18;
    letter-spacing: -.04em;
}

.jobs-employer-copy p {
    max-width: 620px;
    margin: 18px 0 0;
    color: #b6c0cb;
    font-size: 14px;
    line-height: 1.9;
}

.jobs-employer-steps {
    display: grid;
    gap: 10px;
}

.jobs-employer-steps span {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 45px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    color: #d7dde4;
    font-size: 11px;
}

.jobs-employer-steps b {
    color: var(--jobs-gold);
    font-size: 10px;
}

/* ---------- Sponsored area ---------- */

.jobs-page .sponsored-section {
    background: var(--jobs-cream);
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
    .jobs-hero-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 48px;
    }

    .jobs-filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .jobs-search-field {
        grid-column: 1 / -1;
    }

    .jobs-filter-submit {
        min-width: 160px;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jobs-employer-card {
        grid-template-columns: 1fr 280px;
    }

    .jobs-employer-card > .jobs-btn {
        grid-column: 1 / -1;
        width: max-content;
    }
}

@media (max-width: 820px) {
    .jobs-page .container {
        width: min(100% - 36px, 1180px);
    }

    .jobs-hero {
        padding: 82px 0 76px;
    }

    .jobs-hero-grid {
        grid-template-columns: 1fr;
    }

    .jobs-hero-visual {
        min-height: 340px;
        max-width: 500px;
        width: 100%;
        margin-inline: auto;
    }

    .jobs-section-heading,
    .jobs-list-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .jobs-featured-grid {
        grid-template-columns: 1fr;
    }

    .jobs-employer-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 38px;
    }

    .jobs-employer-card > .jobs-btn {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .jobs-page .container {
        width: min(100% - 28px, 1180px);
    }

    .jobs-hero {
        padding: 68px 0 62px;
    }

    .jobs-hero h1 {
        font-size: clamp(39px, 12vw, 55px);
    }

    .jobs-hero-copy > p {
        font-size: 15px;
        line-height: 1.9;
    }

    .jobs-hero-actions,
    .jobs-empty-actions {
        flex-direction: column;
    }

    .jobs-hero-actions .jobs-btn,
    .jobs-empty-actions .jobs-btn {
        width: 100%;
    }

    .jobs-hero-stats {
        gap: 24px;
    }

    .jobs-hero-visual {
        min-height: 310px;
    }

    .jobs-signal-card-main {
        width: min(320px, 88%);
        min-height: 245px;
        padding: 27px;
    }

    .jobs-signal-line {
        margin-bottom: 50px;
    }

    .jobs-signal-card-main strong {
        font-size: 26px;
    }

    .jobs-signal-card-mini {
        width: 176px;
        padding: 18px;
    }

    .jobs-search-section,
    .jobs-featured-section,
    .jobs-list-section,
    .jobs-employer-section {
        padding-top: 66px;
        padding-bottom: 66px;
    }

    .jobs-filter-panel {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .jobs-search-field {
        grid-column: auto;
    }

    .jobs-featured-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .jobs-company-mark {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .jobs-company-mark-small {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .jobs-card {
        min-height: 0;
    }

    .jobs-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .jobs-empty-state {
        padding: 42px 22px;
    }

    .jobs-empty-index {
        font-size: 94px;
    }

    .jobs-employer-card {
        padding: 28px 22px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jobs-page *,
    .jobs-page *::before,
    .jobs-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
