* {
    box-sizing: border-box;
}

:root {
    --jobs-bg: #eef3f8;
    --jobs-surface: #ffffff;
    --jobs-text: #0f1b2d;
    --jobs-muted: #5b6b7c;
    --jobs-line: rgba(15, 27, 45, 0.08);
    --jobs-link: #0b6bcb;
    --jobs-accent: #0f766e;
    --jobs-accent-soft: #d8f3ef;
    --jobs-warn-soft: #fff4e5;
    --jobs-warn: #b45309;
    --jobs-shadow: 0 14px 40px rgba(15, 27, 45, 0.08);
    --jobs-radius: 18px;
}

html {
    min-height: 100%;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background:
        radial-gradient(1200px 420px at 100% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
        radial-gradient(900px 360px at -10% 0%, rgba(11, 107, 203, 0.10), transparent 50%),
        var(--jobs-bg);
    color: var(--jobs-text);
    margin: 0;
    font-family: Vazirmatn, Tahoma, sans-serif;
    line-height: 1.7;
}

a {
    color: var(--jobs-link);
}

img {
    max-width: 100%;
}

.jobs-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--jobs-line);
}

.jobs-site-header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jobs-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.jobs-brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(15, 27, 45, 0.12);
    background: #fff;
}

.jobs-brand__copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.jobs-brand__name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.jobs-brand__tag {
    color: var(--jobs-accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.jobs-site-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.jobs-site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--jobs-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.jobs-site-nav__link:hover,
.jobs-site-nav__link.is-active {
    background: rgba(15, 118, 110, 0.1);
    color: var(--jobs-accent);
}

.jobs-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3.5rem;
}

.jobs-hero {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jobs-hero__title {
    margin: 0;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.jobs-hero__lead {
    margin: 0;
    max-width: 46rem;
    color: var(--jobs-muted);
    font-size: 1.02rem;
}

.jobs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.jobs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 12px;
    padding: 0.7rem 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.jobs-btn--primary {
    background: linear-gradient(135deg, #0f766e, #0b6bcb);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 107, 203, 0.22);
}

.jobs-btn--ghost {
    background: rgba(255, 255, 255, 0.85);
    color: var(--jobs-text);
    border: 1px solid var(--jobs-line);
}

.jobs-btn--danger {
    background: #ef4444;
    color: #fff;
}

.jobs-grid {
    display: grid;
    gap: 1rem;
}

.jobs-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 0;
    background: var(--jobs-surface);
    border-radius: var(--jobs-radius);
    overflow: hidden;
    box-shadow: var(--jobs-shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

a.jobs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(15, 27, 45, 0.12);
}

.jobs-card__media {
    position: relative;
    min-height: 148px;
    background: #dbe4ee;
}

.jobs-card__media--cover {
    min-height: 210px;
}

.jobs-card__media--cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.jobs-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jobs-card__media--cover img {
    min-height: 210px;
    max-height: 280px;
}

.jobs-card__remote {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.jobs-card__cover-title {
    position: absolute;
    right: 0.9rem;
    bottom: 0.85rem;
    left: 0.9rem;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.35;
    text-align: right;
}

.jobs-card__type {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.92);
    color: var(--jobs-accent);
}

.jobs-card__type.is-seeking {
    color: var(--jobs-warn);
}

.jobs-card__body {
    padding: 1rem 1.1rem 1.1rem;
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.jobs-card__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.45;
}

.jobs-card__excerpt {
    margin: 0;
    color: var(--jobs-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.jobs-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
}

.jobs-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.jobs-card__meta i {
    color: var(--jobs-accent);
    width: 1em;
    text-align: center;
}

.jobs-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.jobs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.jobs-chip--phone {
    background: var(--jobs-accent-soft);
    color: #115e59;
}

.jobs-empty {
    background: var(--jobs-surface);
    border-radius: var(--jobs-radius);
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--jobs-muted);
    box-shadow: var(--jobs-shadow);
}

.jobs-alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.jobs-alert--error {
    background: #fee2e2;
    color: #991b1b;
}

.jobs-alert--success {
    background: #dcfce7;
    color: #166534;
}

.jobs-detail {
    background: var(--jobs-surface);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--jobs-shadow);
}

.jobs-detail__cover {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    background: #dbe4ee;
}

.jobs-detail__body {
    padding: 1.35rem 1.25rem 1.6rem;
}

.jobs-detail__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 850;
}

.jobs-detail__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 1.25rem;
}

.jobs-fact {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--jobs-line);
}

.jobs-fact i {
    margin-top: 0.15rem;
    color: var(--jobs-accent);
}

.jobs-fact strong {
    display: block;
    font-size: 0.78rem;
    color: var(--jobs-muted);
    font-weight: 700;
}

.jobs-detail__content {
    color: #334155;
    line-height: 1.9;
}

.jobs-detail__content p {
    margin: 0 0 0.9rem;
}

.jobs-form-card,
.jobs-panel {
    background: var(--jobs-surface);
    border-radius: var(--jobs-radius);
    padding: 1.25rem;
    box-shadow: var(--jobs-shadow);
    margin-bottom: 1rem;
}

.jobs-form-grid {
    display: grid;
    gap: 0.85rem;
}

.jobs-form-grid label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.jobs-form-grid input,
.jobs-form-grid select,
.jobs-form-grid textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    background: #fff;
}

.jobs-form-grid textarea {
    min-height: 130px;
}

.jobs-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.jobs-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--jobs-line);
}

.jobs-list-item:last-child {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .jobs-site-header__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .jobs-site-nav {
        justify-content: flex-start;
    }

    .jobs-site-nav__link span {
        display: none;
    }

    .jobs-site-nav__link {
        padding: 0.55rem 0.7rem;
    }

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

    .jobs-card__media {
        min-height: 180px;
    }

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