/* =====================================================================
   أبجاري - التوظيف المدرسي | نفس ألوان منصة المدرسة
   ===================================================================== */

:root {
    /* Core tokens — abqare school palette */
    --c-primary: #0c3d91;
    --c-primary-dark: #082a66;
    --c-primary-light: #eef3fb;
    --c-leaf: #0c3d91;
    --c-leaf-dark: #082a66;
    --c-leaf-light: #eef3fb;
    --c-ink: #10284f;
    --c-text: #5c6b84;
    --c-muted: #8b97a8;
    --c-border: #d5e0f0;
    --c-bg: #f3f6fb;
    --c-white: #FFFFFF;
    --c-yellow: #ffd000;

    --card-radius: 16px;
    --card-shadow: 0 6px 24px rgba(8,42,102,.06);
    --card-shadow-hover: 0 14px 36px rgba(8,42,102,.10);
    --badge-size: 48px;
    --badge-radius: 14px;
    --control-h: 48px;
    --section-space: 96px;
    --ease: cubic-bezier(.22,.61,.36,1);

    --primary: var(--c-primary);
    --primary-dark: var(--c-primary-dark);
    --primary-darker: #061f4d;
    --primary-light: var(--c-primary-light);
    --primary-lighter: #f7f9fd;
    --accent: #ffd000;
    --accent-light: #fff8d6;
    --leaf: var(--c-leaf);
    --leaf-dark: var(--c-leaf-dark);
    --leaf-light: var(--c-leaf-light);
    --ink: var(--c-ink);
    --gray-900: var(--c-ink);
    --gray-800: #2b3a55;
    --gray-700: var(--c-text);
    --gray-600: var(--c-text);
    --gray-500: var(--c-muted);
    --gray-400: #b0bac8;
    --gray-300: #d5e0f0;
    --gray-200: var(--c-border);
    --gray-100: #eef3fb;
    --bg: var(--c-bg);
    --white: var(--c-white);
    --success: #0c3d91;
    --warning: #D9860E;
    --danger: #c62828;

    --shadow-sm: var(--card-shadow);
    --shadow-md: var(--card-shadow);
    --shadow-lg: var(--card-shadow-hover);
    --shadow-xl: var(--card-shadow-hover);
    --shadow-glow: 0 8px 20px rgba(12,61,145,.18);
    --radius: 12px;
    --radius-lg: var(--card-radius);
    --radius-xl: 20px;
    --transition-fast: all .15s var(--ease);
    --transition: all .25s var(--ease);
    --transition-slow: all .4s var(--ease);

    --header-height: 72px;
    --bottom-nav-height: 68px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', system-ui, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 16px;
    line-height: 1.75;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.35; font-weight: 700; }
p { color: var(--c-text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: #c9dbf5; color: var(--c-ink); }
:focus-visible { outline: 3px solid rgba(12,61,145,.35); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; top: -100px; right: 16px; z-index: 9999;
    background: var(--c-primary); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Card system (single style) ---------- */
.job-card, .process-step, .feature-card, .hv-panel, .hero-stats, .sidebar-card,
.footer-grid, .footer-cta-inner, .filter-bar, .job-detail-main, .empty-state, .form-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.job-card:hover, .process-step:hover, .feature-card:hover, .sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: #c9dbf5;
}

/* ---------- Icon badge (single style) ---------- */
.feature-icon-svg, .process-number, .job-avatar, .contact-icon, .hv-logo {
    width: var(--badge-size); height: var(--badge-size); flex: 0 0 var(--badge-size);
    border-radius: var(--badge-radius);
    background: var(--c-primary-light); color: var(--c-primary);
    display: grid; place-items: center;
    font-weight: 800; font-size: 18px; line-height: 1;
}
.feature-icon-svg svg, .contact-icon svg { stroke: currentColor; }
.contact-icon--leaf { background: var(--c-leaf-light); color: var(--c-leaf-dark); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--control-h); padding: 0 26px;
    border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(12,61,145,.22); }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12,61,145,.28); }
.btn-secondary, .btn-outline { background: var(--c-white); color: var(--c-ink); border-color: var(--c-border); }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary-dark); background: var(--c-primary-light); }
.btn-lg { min-height: 54px; padding: 0 34px; font-size: 16px; }
.btn svg { flex-shrink: 0; }

.btn-save, .btn-share {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--c-white); border: 1px solid var(--c-border); color: var(--c-muted);
    cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s var(--ease);
}
.btn-save:hover, .btn-share:hover { color: var(--c-primary); border-color: #c9dbf5; background: var(--c-primary-light); }
.btn-save.saved { color: var(--c-primary); background: var(--c-primary-light); border-color: #c9dbf5; }
.btn-save.saved svg { fill: currentColor; }
.btn-share { width: auto; padding: 10px 16px; height: auto; border-radius: var(--radius); }

/* ---------- Header ---------- */
.top-shell, .header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.top-shell.scrolled, .header.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(47,54,64,.06); }
.header-inner, .top-shell-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-height); }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo img { height: 52px; width: auto; }
.logo-text { font-size: 15px; font-weight: 800; color: var(--c-ink); line-height: 1.25; max-width: 12em; }
.logo-text span { color: var(--c-primary); }

.nav { display: flex; align-items: center; }
.nav-pill.nav--desktop, .nav--desktop {
    margin: 0 auto; gap: 2px; padding: 5px;
    background: #eef3fb; border: 1px solid var(--c-border); border-radius: 999px;
}
.nav--desktop a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 999px; line-height: 1;
    font-size: 14.5px; font-weight: 600; color: var(--c-text);
    transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.nav--desktop a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav--desktop a:hover { color: var(--c-ink); background: rgba(255,255,255,.85); }
.nav--desktop a.active { background: var(--c-white); color: var(--c-primary-dark); box-shadow: 0 2px 8px rgba(12,61,145,.14), 0 0 0 1px rgba(12,61,145,.10); }
.header-actions { flex: 0 0 auto; display: flex; align-items: center; }
.header-cta, .btn-nav {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 22px; border-radius: 999px;
    background: var(--c-primary); color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(12,61,145,.22); transition: transform .25s var(--ease), background .25s var(--ease);
}
.header-cta:hover, .btn-nav:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }

.menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border-radius: 12px;
    background: var(--c-white); border: 1px solid var(--c-border); cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.nav--drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
    width: min(320px, 86vw); display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px; background: var(--c-white);
    border-radius: 24px 0 0 24px; box-shadow: -20px 0 50px rgba(47,54,64,.14);
    transform: translateX(105%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
}
.nav--drawer.open { transform: none; visibility: visible; }
.mobile-nav-header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--c-border); }
.mobile-nav-header img { height: 36px; width: auto; }
.mobile-nav-header strong { flex: 1; color: var(--c-ink); font-size: 16px; }
.mobile-nav-close {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--c-border);
    background: var(--c-white); color: var(--c-ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.nav--drawer a { padding: 13px 16px; border-radius: 14px; font-weight: 600; color: var(--c-text); transition: background .2s, color .2s; }
.nav--drawer a:hover { background: #F5F6F8; color: var(--c-ink); }
.nav--drawer a.active { background: var(--c-primary-light); color: var(--c-primary-dark); }
.nav--drawer .btn-nav { margin-top: 12px; color: #fff; }
.nav--drawer .btn-nav:hover { background: var(--c-primary-dark); color: #fff; }
.nav-overlay {
    position: fixed; inset: 0; z-index: 200; background: rgba(47,54,64,.28);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }

/* ---------- Sections & headings (single style) ---------- */
.section { padding: var(--section-space) 0 0; }
main > .section:last-child { padding-bottom: var(--section-space); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-title {
    position: relative; display: block;
    font-size: 32px; font-weight: 800; color: var(--c-ink); line-height: 1.3;
    padding-bottom: 16px; margin-bottom: 12px; text-align: right;
}
.section-title span { color: var(--c-primary); }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--c-primary); }
.section-subtitle { color: var(--c-text); font-size: 16px; text-align: right; }
.section-process .section-subtitle, .section-about .section-title { margin-bottom: 40px; }
.view-all {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    color: var(--c-primary-dark); font-weight: 700; font-size: 15px;
    padding: 10px 18px; border-radius: 999px; background: var(--c-primary-light);
    transition: background .2s var(--ease), gap .2s var(--ease);
}
.view-all:hover { background: #c9dbf5; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 72px 0 0;
    background: linear-gradient(180deg, #fff8d6 0%, rgba(251,250,248,0) 100%);
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-content { min-width: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
    background: var(--c-white); border: 1px solid var(--c-border); color: var(--c-primary-dark);
    font-size: 14px; font-weight: 600;
}
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.3; color: var(--c-ink); margin-bottom: 16px; }
.hero h1 span { color: var(--c-primary); }
.hero p { font-size: 17px; color: var(--c-text); max-width: 560px; }
.hero-search {
    display: flex; align-items: center; gap: 10px; margin-top: 28px; max-width: 580px;
    background: var(--c-white); border: 1px solid var(--c-border); border-radius: 999px;
    padding: 6px 6px 6px 6px; padding-right: 20px; box-shadow: var(--card-shadow);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-search:focus-within { border-color: #c9dbf5; box-shadow: 0 0 0 4px rgba(12,61,145,.10), var(--card-shadow); }
.hero-search svg { flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--c-ink); height: 44px; font-size: 15px; }
.hero-search input::placeholder { color: var(--c-muted); }
.hero-search button {
    min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--c-primary); color: #fff; font-weight: 700; transition: background .2s var(--ease);
}
.hero-search button:hover { background: var(--c-primary-dark); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips { margin-top: 18px; max-width: 580px; }
.filter-chip {
    display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
    background: var(--c-white); border: 1px solid var(--c-border); color: var(--c-text);
    font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .2s var(--ease);
}
.filter-chip:hover, .filter-chip.active { border-color: #c9dbf5; color: var(--c-primary-dark); background: var(--c-primary-light); }

/* Stats strip */
.hero-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 28px; max-width: 580px; overflow: hidden; }
.stat-card { padding: 18px 12px; text-align: center; }
.stat-card + .stat-card { border-right: 1px solid var(--c-border); }
.stat-number { display: block; font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--c-primary); }
.stat-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-text); }

/* Brand card */
.hero-image, .hero-visual { display: flex; justify-content: center; }
.hv-panel {
    width: 100%; max-width: 420px; padding: 44px 32px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hv-brand { display: flex; flex-direction: column; align-items: center; }
.hv-logo { width: 120px; height: 120px; flex-basis: 120px; border-radius: 28px; margin-bottom: 24px; }
.hv-logo img { width: 76%; height: 76%; object-fit: contain; }
.hero-badge-title { font-size: 22px; font-weight: 800; color: var(--c-ink); margin-bottom: 8px; }
.hero-badge-desc { font-size: 15px; color: var(--c-text); max-width: 300px; margin: 0 auto 18px; }
.hero .hero-badge-desc { font-size: 15px; }
.leaf-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
    background: var(--c-leaf-light); color: var(--c-leaf-dark); font-size: 13.5px; font-weight: 600;
}

/* ---------- Job cards ---------- */
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.job-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.job-card .btn-save { position: absolute; top: 20px; left: 20px; }
.badge-new {
    position: absolute; top: 26px; left: 70px;
    display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
    background: var(--c-leaf-light); color: var(--c-leaf-dark); font-size: 12.5px; font-weight: 700;
}
.job-card-top { display: flex; align-items: flex-start; gap: 14px; padding-left: 110px; }
.job-card-heading { min-width: 0; }
.job-title { font-size: 17px; font-weight: 700; color: var(--c-ink); margin-bottom: 4px; transition: color .2s; }
.job-card:hover .job-title { color: var(--c-primary-dark); }
.job-department { font-size: 14px; color: var(--c-primary-dark); font-weight: 600; }
.job-location { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--c-muted); margin-top: 2px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--c-border); margin-top: auto; }
.job-meta span { padding: 4px 12px; border-radius: 999px; background: #F5F6F8; color: var(--c-text); font-size: 13px; font-weight: 500; }
.job-card .btn { width: 100%; }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.process-step { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.process-step h3 { font-size: 17px; margin-bottom: 4px; }
.process-step p { font-size: 14.5px; line-height: 1.7; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { padding: 28px 24px; }
.feature-card .feature-icon-svg { margin-bottom: 18px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; line-height: 1.75; }

/* ---------- Closing CTA ---------- */
.section-cta { padding-bottom: var(--section-space); }
.section-cta .cta-center {
    text-align: center; padding: 56px 32px; border-radius: var(--card-radius);
    background: linear-gradient(180deg, #fff8d6 0%, rgba(238,243,251,0) 100%);
    border: 1px solid var(--c-border);
}
.cta-center .section-title { text-align: center; }
.cta-center .section-title::after { right: 50%; transform: translateX(50%); }
.cta-center p { max-width: 560px; margin: 0 auto 28px; font-size: 16px; }

/* ---------- Jobs page ---------- */
.page-header { padding: 48px 0 28px; }
.page-header h1 { position: relative; font-size: 32px; font-weight: 800; padding-bottom: 16px; margin-bottom: 10px; }
.page-header h1::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--c-primary); }
.page-header p { display: flex; align-items: center; gap: 8px; color: var(--c-text); }
.filter-bar { padding: 20px; margin-bottom: 28px; }
.jobs-filter-form, .filter-bar form { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 14px; align-items: end; }
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-group label, .form-group label { font-size: 13.5px; font-weight: 600; color: var(--c-ink); display: flex; align-items: center; gap: 6px; }
.filter-group input, .filter-group select,
.form-group input, .form-group select, .form-group textarea {
    width: 100%; min-height: var(--control-h); padding: 0 16px;
    background: #FAFBFC; border: 1.5px solid var(--c-border); border-radius: 14px;
    color: var(--c-ink); font-size: 15px; outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.form-group textarea { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.7; }
.filter-group input:focus, .filter-group select:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background: #fff; border-color: #4a7fd4; box-shadow: 0 0 0 4px rgba(12,61,145,.12);
}
.filter-group input::placeholder, .form-group input::placeholder, .form-group textarea::placeholder { color: var(--c-muted); }
.form-group input[type="file"] { padding: 10px 14px; border-style: dashed; background: var(--c-primary-light); cursor: pointer; }
.filter-actions { display: flex; gap: 8px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination a {
    min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: var(--c-white); border: 1px solid var(--c-border); color: var(--c-text); font-weight: 600;
    transition: all .2s var(--ease);
}
.pagination a:hover { border-color: #c9dbf5; color: var(--c-primary-dark); }
.pagination a.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state svg { margin: 0 auto 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { margin-bottom: 20px; }

/* ---------- Job details ---------- */
.job-detail { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }
.job-detail-main { padding: 36px; }
.job-header { display: flex; align-items: flex-start; gap: 16px; }
.job-header .job-avatar { width: 56px; height: 56px; flex-basis: 56px; font-size: 22px; }
.job-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.job-header .company { color: var(--c-primary-dark); font-weight: 600; }
.job-header .location { color: var(--c-muted); font-size: 14.5px; }
.job-info { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; padding: 16px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.job-info span { padding: 5px 14px; border-radius: 999px; background: #F5F6F8; font-size: 13.5px; font-weight: 500; color: var(--c-text); }
.job-actions-row { display: flex; gap: 10px; margin-bottom: 8px; }
.job-detail-main h2 {
    position: relative; display: flex; align-items: center; gap: 8px;
    font-size: 21px; font-weight: 800; margin: 32px 0 14px; padding-bottom: 12px;
}
.job-detail-main h2 svg { color: var(--c-primary); flex-shrink: 0; }
.job-detail-main h2::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--c-primary); }
.job-detail-main p { line-height: 1.9; }
.job-detail-main ul { padding-right: 22px; }
.job-detail-main ul li { margin-bottom: 10px; color: var(--c-text); }
.job-detail-main ul li::marker { color: var(--c-leaf); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group .required { color: var(--danger); }
.alert { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background: var(--c-leaf-light); color: var(--c-leaf-dark); border-color: #c9dbf5; }
.alert-error { background: #FFF1F0; color: #C2412F; border-color: #FFD9D4; }
.reference-box { text-align: center; padding: 24px; margin-bottom: 20px; border-radius: 16px; background: var(--c-primary-light); border: 1px dashed #c9dbf5; }
.reference-code { display: inline-block; margin: 10px 0; padding: 8px 20px; border-radius: 12px; background: #fff; color: var(--c-primary-dark); font-size: 24px; font-weight: 800; letter-spacing: 2px; direction: ltr; }

.job-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-height) + 20px); }
.sidebar-card { padding: 24px; }
.sidebar-card:hover { transform: none; }
.sidebar-card h3 { position: relative; font-size: 17px; font-weight: 800; padding-bottom: 12px; margin-bottom: 12px; }
.sidebar-card h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--c-primary); }
.info-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.info-item:last-child { border-bottom: 0; }
.info-item .label { display: flex; align-items: center; color: var(--c-muted); font-size: 14px; }
.info-item .value { color: var(--c-ink); font-weight: 600; font-size: 14.5px; text-align: left; }
.related-job-link { border-radius: 10px; }
.related-job-link:last-child { border-bottom: 0 !important; }

.sticky-apply {
    position: fixed; left: 50%; bottom: calc(16px + var(--safe-bottom)); z-index: 90;
    transform: translate(-50%, 150%); opacity: 0;
    padding: 8px; border-radius: 999px; background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--c-border); box-shadow: var(--card-shadow-hover);
    transition: transform .35s var(--ease), opacity .35s var(--ease);
    max-width: calc(100% - 32px);
}
.sticky-apply.visible { transform: translate(-50%, 0); opacity: 1; }
.sticky-apply .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer ---------- */
.footer { padding: 0 0 28px; background: transparent; }
.footer-cta { margin-bottom: 20px; }
.footer-cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 28px 32px; border-right: 4px solid var(--c-primary);
}
.footer-cta-text { min-width: 0; }
.footer-cta-text h3 { font-size: 22px; font-weight: 800; color: var(--c-ink); margin-bottom: 4px; }
.footer-cta-text p { font-size: 15px; }
.footer-cta-btn { flex-shrink: 0; background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(12,61,145,.22); }
.footer-cta-btn:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding: 40px 44px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-tile { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 18px; background: var(--c-primary-light); display: grid; place-items: center; }
.footer-logo-tile img { width: 74%; height: 74%; object-fit: contain; }
.footer-logo-text { font-size: 20px; font-weight: 800; color: var(--c-ink); }
.footer-logo-text span { color: var(--c-primary); }
.footer-brand p { font-size: 14.5px; line-height: 1.9; max-width: 380px; }
.footer h4 { position: relative; font-size: 16px; font-weight: 800; color: var(--c-ink); padding-bottom: 12px; margin-bottom: 16px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--c-primary); }
.footer-links a { display: flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--c-text); font-size: 15px; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-links a::after { content: '\2190'; opacity: 0; transform: translateX(6px); transition: all .2s var(--ease); color: var(--c-primary); }
.footer-links a:hover { color: var(--c-primary-dark); transform: translateX(-3px); }
.footer-links a:hover::after { opacity: 1; transform: none; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--c-text); font-size: 15px; transition: color .2s; }
.contact-item:hover { color: var(--c-primary-dark); }
.contact-item .contact-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: #F5F6F8; border: 1px solid var(--c-border); color: var(--c-text); transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateY(-2px); }
.footer-bottom { padding: 18px 4px 0; text-align: right; }
.footer-bottom p { font-size: 13.5px; color: var(--c-muted); }

/* Structural wrappers (no extra styling needed) */
.filter-bar--jobs, .footer--rich, .footer-col, .footer-contact, .hv-brand-text { min-width: 0; }
.footer-contact, .footer-links { display: flex; flex-direction: column; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    position: relative; color: var(--c-muted); font-size: 11.5px; font-weight: 600; transition: color .2s;
}
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--c-primary); }
.bottom-nav-fab {
    width: 48px; height: 48px; margin-top: -22px; border-radius: 16px; display: grid; place-items: center;
    background: var(--c-primary); color: #fff; box-shadow: 0 8px 18px rgba(12,61,145,.3); border: 3px solid #fff;
}
.bottom-nav-cta span:last-child { color: var(--c-primary-dark); }
.bottom-nav-badge {
    position: absolute; top: 4px; left: calc(50% - 20px); min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--c-primary); color: #fff; font-size: 11px; font-style: normal; font-weight: 700;
    display: grid; place-items: center;
}

/* ---------- Toast & reveal ---------- */
.app-toast {
    position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); z-index: 300;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    padding: 12px 20px; border-radius: 14px; background: var(--c-ink); color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: var(--card-shadow-hover); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-on-scroll.revealed { opacity: 1; transform: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: #D9DEE3; border-radius: 999px; border: 2px solid var(--c-bg); }
::-webkit-scrollbar-thumb:hover { background: #C4CBD2; }

/* =====================================================================
   ATMOSPHERE & COMPOSITION SYSTEM
   One page atmosphere + two section variants (plain / tinted).
   Tinted: .hero, .section-process, .section-cta + .footer (closing zone)
   Plain:  latest jobs section, .section-about, page content
   ===================================================================== */
:root {
    --dots: radial-gradient(rgba(12,61,145,.07) 1px, transparent 1.4px);
    --dots-size: 22px 22px;
    --tint-peach: #eef3fb;
    --tint-mint: #fff8d6;
    --grad-orange: linear-gradient(135deg, #4a7fd4 0%, #0c3d91 100%);
    --grad-leaf: linear-gradient(135deg, #4a7fd4 0%, #082a66 100%);
    --band-fade: 96px;
}

/* Page atmosphere (fixed, identical everywhere) */
body { position: relative; }
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        var(--dots) 0 0 / var(--dots-size),
        radial-gradient(700px 520px at 100% 0%, rgba(12,61,145,.14), transparent 70%),
        radial-gradient(640px 480px at 0% 100%, rgba(255,208,0,.14), transparent 70%);
}

/* Section rhythm: every band has equal top/bottom space */
.section, .section-cta { padding: var(--section-space) 0; }
main > .section:last-child { padding-bottom: var(--section-space); }
.section + .section:not(.section-process):not(.section-cta) { padding-top: calc(var(--section-space) * .5); }

/* Tinted variant */
.hero, .section-process, .section-cta, .footer { position: relative; overflow: hidden; isolation: isolate; }
.hero > .container, .section-process > .container, .section-cta > .container, .footer > .container { position: relative; z-index: 1; }
.section-process {
    background:
        var(--dots) 0 0 / var(--dots-size),
        linear-gradient(180deg, rgba(238,243,251,0) 0, var(--tint-peach) var(--band-fade), var(--tint-mint) calc(100% - var(--band-fade)), rgba(255,248,214,0) 100%);
}
.hero {
    padding-bottom: var(--section-space);
    background:
        var(--dots) 0 0 / var(--dots-size),
        linear-gradient(180deg, var(--tint-peach) 0, #f7f9fd 55%, rgba(255,248,214,.6) calc(100% - var(--band-fade)), rgba(255,248,214,0) 100%);
}
.section-cta {
    padding-bottom: calc(var(--section-space) * .6);
    background:
        var(--dots) 0 0 / var(--dots-size),
        linear-gradient(180deg, rgba(238,243,251,0) 0, var(--tint-peach) var(--band-fade), var(--tint-peach) 100%);
}
.footer {
    padding-top: 40px;
    background:
        var(--dots) 0 0 / var(--dots-size),
        linear-gradient(180deg, rgba(238,243,251,0) 0, var(--tint-peach) 72px, var(--tint-mint) 100%);
}
main:has(> .section-cta:last-child) ~ .footer {
    padding-top: 0;
    background:
        var(--dots) 0 0 / var(--dots-size),
        linear-gradient(180deg, var(--tint-peach) 0, var(--tint-mint) 100%);
}
/* One decorative ring + one soft glow per tinted band */
.hero::before, .section-process::before, .section-cta::before, .footer::before {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    width: 320px; height: 320px; border-radius: 50%;
    border: 36px solid rgba(12,61,145,.06);
    top: 12%; left: -120px;
}
.hero::after, .section-process::after, .section-cta::after, .footer::after {
    content: ''; position: absolute; z-index: 0; pointer-events: none;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(12,61,145,.18), transparent 70%);
    filter: blur(20px); top: -120px; right: -100px;
}
.section-process::before, .footer::before { left: auto; right: -120px; top: auto; bottom: 8%; border-color: rgba(12,61,145,.07); }
.section-process::after, .footer::after { right: auto; left: -100px; top: auto; bottom: -120px; background: radial-gradient(circle, rgba(255,208,0,.22), transparent 70%); }

/* Cards sit on tinted bands with a touch of glass */
.section-process .process-step, .hero .hv-panel, .hero .hero-stats, .footer .footer-grid, .section-cta .cta-center {
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,.95);
}
.section-cta .cta-center { box-shadow: var(--card-shadow); }

/* Gradient icon badges (navy / yellow) */
.feature-icon-svg, .process-number, .job-avatar { background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-glow); }
.feature-card:nth-child(even) .feature-icon-svg, .process-step:nth-child(even) .process-number { background: var(--grad-leaf); box-shadow: 0 8px 20px rgba(12,61,145,.22); }
.process-number { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--c-border), var(--shadow-glow); font-size: 19px; }
.process-step:nth-child(even) .process-number { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--c-border), 0 8px 20px rgba(12,61,145,.22); }

/* Hero composition */
.hero-content > * { animation: fgFadeUp .7s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .06s; }
.hero-content > *:nth-child(3) { animation-delay: .12s; }
.hero-content > *:nth-child(4) { animation-delay: .18s; }
.hero-content > *:nth-child(5) { animation-delay: .24s; }
.hero-content > *:nth-child(6) { animation-delay: .30s; }
.hero-visual { animation: fgFadeUp .8s .2s var(--ease) both; }
.hv-panel { position: relative; overflow: hidden; }
.hv-panel::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 46%; pointer-events: none;
    background: linear-gradient(180deg, rgba(238,243,251,.9), rgba(238,243,251,0));
}
.hv-brand { position: relative; }
.hv-brand::before {
    content: ''; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    width: 180px; height: 180px; border-radius: 50%;
    border: 1.5px dashed rgba(12,61,145,.28); pointer-events: none;
}
.hv-logo { position: relative; background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.7), 0 16px 36px rgba(12,61,145,.22); }
.stat-number { color: var(--c-primary-dark); }
.stat-card:nth-child(2) .stat-number { color: var(--c-leaf-dark); }

/* Job cards: gradient top line on hover */
.job-card { overflow: hidden; }
.job-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--c-primary), #4a7fd4, var(--c-leaf));
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.job-card:hover::before { transform: scaleX(1); }

/* Staggered reveal (JS adds .reveal-on-scroll / .revealed) */
.reveal-on-scroll { transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.reveal-on-scroll.revealed:nth-child(2) { transition-delay: .07s; }
.reveal-on-scroll.revealed:nth-child(3) { transition-delay: .14s; }
.reveal-on-scroll.revealed:nth-child(4) { transition-delay: .21s; }
.reveal-on-scroll.revealed:nth-child(5) { transition-delay: .28s; }
.reveal-on-scroll.revealed:nth-child(6) { transition-delay: .35s; }
.reveal-on-scroll.revealed:hover { transition-delay: 0s; }
@keyframes fgFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Footer CTA on jobs pages: same card, school accent */
.footer .footer-cta-inner { background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* ---------- Responsive: 1024 ---------- */
@media (max-width: 1024px) {
    :root { --section-space: 80px; }
    .nav-desktop-only { display: none !important; }
    .nav--desktop a { padding: 9px 13px; }
    .nav--desktop a svg { display: none; }
    .hero .container { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual, .hero-image { justify-content: flex-start; }
    .hv-panel { max-width: none; flex-direction: row; text-align: right; padding: 28px; }
    .hv-brand { flex-direction: row; gap: 20px; text-align: right; }
    .hv-logo { width: 96px; height: 96px; flex-basis: 96px; margin-bottom: 0; }
    .hero-badge-desc { margin: 0 0 12px; max-width: none; }
    .jobs-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .jobs-filter-form, .filter-bar form { grid-template-columns: 1fr 1fr; }
    .filter-group--search { grid-column: 1 / -1; }
    .job-detail { grid-template-columns: 1fr; }
    .job-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Responsive: 768 ---------- */
@media (max-width: 768px) {
    :root { --section-space: 64px; --header-height: 64px; }
    body { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom)); }
    .container { padding: 0 16px; }
    .nav--desktop, .header-actions { display: none; }
    .menu-toggle { display: flex; }
    .logo img { height: 44px; }
    .logo-text { font-size: 17px; }

    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        height: calc(var(--bottom-nav-height) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
        background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
        border-top: 1px solid var(--c-border); box-shadow: 0 -6px 20px rgba(47,54,64,.05);
    }
    .sticky-apply { bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 12px); }
    .app-toast { bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px); }

    .section-title, .page-header h1 { font-size: 26px; }
    .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
    .hero { padding-top: 40px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-left: -16px; padding-left: 16px; }
    .hero-chips::-webkit-scrollbar { display: none; }
    .hero-chips .filter-chip { flex: 0 0 auto; }
    .stat-number { font-size: 24px; }
    .hv-panel { flex-direction: column; text-align: center; padding: 32px 22px; }
    .hv-brand { flex-direction: column; gap: 0; text-align: center; }
    .hv-logo { margin-bottom: 18px; }
    .hero-badge-desc { margin: 0 auto 14px; }

    .jobs-grid, .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .process-grid { grid-template-columns: 1fr; gap: 14px; }
    .process-step { flex-direction: row; align-items: flex-start; padding: 20px; }
    .jobs-filter-form, .filter-bar form { grid-template-columns: 1fr; }
    .filter-actions .btn { flex: 1; }
    .job-detail-main { padding: 22px; }
    .job-header h1 { font-size: 22px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .section-cta .cta-center { padding: 40px 20px; }

    .footer-cta-inner { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px; border-right: 0; border-top: 4px solid var(--c-primary); }
    .footer-cta-btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
    .footer-bottom { text-align: center; }
}

/* ---------- Responsive: 480 ---------- */
@media (max-width: 480px) {
    .logo-text { display: none; }
    .hero h1 { font-size: 28px; }
    .hero-search { padding-right: 14px; }
    .hero-search button { padding: 0 18px; }
    .hero-stats { margin-top: 22px; }
    .stat-card { padding: 14px 6px; }
    .stat-label { font-size: 12px; }
    .job-card { padding: 20px; }
    .job-card-top { padding-left: 0; padding-top: 34px; }
    .badge-new { top: 24px; right: 20px; left: auto; }
}

/* Atmosphere: mobile tuning */
@media (max-width: 768px) {
    :root { --band-fade: 56px; }
    .hero::before, .section-process::before, .section-cta::before, .footer::before { width: 200px; height: 200px; border-width: 24px; }
    .hero::after, .section-process::after, .section-cta::after, .footer::after { width: 240px; height: 240px; }
    .hv-brand::before { width: 150px; height: 150px; top: -24px; }
}

/* ---------- Hero stats: separate glassy icon cards ---------- */
.hero .hero-stats.stats-cards {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px;
    margin-top: 28px; max-width: 600px; overflow: visible;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.stats-cards .stat-card {
    display: flex; align-items: center; gap: 12px; text-align: right;
    padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(238,240,243,.9);
    background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow), 0 10px 26px -14px rgba(12,61,145,.35);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .6s var(--ease);
}
.stats-cards .stat-card + .stat-card { border-right: 1px solid rgba(238,240,243,.9); }
.stats-cards .stat-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover), 0 14px 30px -12px rgba(12,61,145,.40); }
.stats-cards .stat-card--branches { box-shadow: var(--card-shadow), 0 10px 26px -14px rgba(12,61,145,.40); }
.stats-cards .stat-card--branches:hover { box-shadow: var(--card-shadow-hover), 0 14px 30px -12px rgba(12,61,145,.45); }
.stat-icon {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grad-orange); color: #fff; box-shadow: 0 8px 18px rgba(12,61,145,.25);
}
.stat-card--branches .stat-icon { background: var(--grad-leaf); box-shadow: 0 8px 18px rgba(12,61,145,.25); }
.stat-text { display: flex; flex-direction: column; min-width: 0; }
.stats-cards .stat-number, .stats-cards .stat-card:nth-child(2) .stat-number { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--c-ink); }
.stats-cards .stat-label { font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; }
@media (max-width: 768px) {
    .hero .hero-stats.stats-cards { max-width: none; gap: 10px; }
    .stats-cards .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .stat-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
    .stat-icon svg { width: 20px; height: 20px; }
    .stats-cards .stat-number, .stats-cards .stat-card:nth-child(2) .stat-number { font-size: 24px; }
}
@media (max-width: 380px) {
    .hero .hero-stats.stats-cards { grid-auto-columns: minmax(132px, 1fr); overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .hero .hero-stats.stats-cards::-webkit-scrollbar { display: none; }
}

/* ---------- Steps: connected timeline (homepage) ---------- */
.section-process .process-grid {
    position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
    padding: 44px 40px 40px; border-radius: var(--card-radius);
    background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.95); box-shadow: var(--card-shadow);
}
.section-process .process-grid::before {
    content: ''; position: absolute; z-index: 0; height: 4px; border-radius: 4px;
    top: calc(44px + 26px);
    right: calc(40px + (100% - 80px) / 10); left: calc(40px + (100% - 80px) / 10);
    background: linear-gradient(to left, var(--c-primary), #00AEEF 45%, #8CC63F 70%, var(--c-leaf));
    opacity: .85;
}
.section-process .process-step {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 0 6px; text-align: center;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.section-process .process-step:hover { transform: none; box-shadow: none; }
.section-process .process-number {
    width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; font-size: 20px;
    box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(12,61,145,.28);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section-process .process-step:nth-child(even) .process-number { box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(12,61,145,.28); }
.section-process .process-step:hover .process-number { transform: scale(1.1); }
.section-process .process-step h3 { font-size: 17px; font-weight: 800; color: var(--c-ink); margin-bottom: 4px; }
.section-process .process-step p { font-size: 14px; line-height: 1.7; color: var(--c-text); }
@media (max-width: 1024px) {
    .section-process .process-grid { padding: 40px 24px 32px; gap: 10px; }
    .section-process .process-grid::before { top: calc(40px + 26px); right: calc(24px + (100% - 48px) / 10); left: calc(24px + (100% - 48px) / 10); }
    .section-process .process-step p { font-size: 13px; }
}
@media (max-width: 768px) {
    .section-process .process-grid { grid-template-columns: 1fr; gap: 26px; padding: 28px 20px; }
    .section-process .process-grid::before {
        width: 4px; height: auto; left: auto; right: calc(20px + 26px);
        top: calc(28px + 28px); bottom: calc(28px + 28px);
        background: linear-gradient(to bottom, var(--c-primary), #00AEEF 45%, #8CC63F 70%, var(--c-leaf));
    }
    .section-process .process-step { flex-direction: row; align-items: flex-start; text-align: right; gap: 16px; padding: 0; }
    .section-process .process-number { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; }
    .section-process .process-step p { font-size: 14px; }
}
/* ---------- Why-us cards: soul layer ---------- */
.features-grid { counter-reset: feat; }
.feature-card {
    --tone: 12,61,145;
    counter-increment: feat; position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(220px 180px at 0% 0%, rgba(var(--tone),.10), transparent 70%),
        var(--c-white);
}
.feature-card:nth-child(even) { --tone: 255,208,0; }
.feature-card:first-child {
    background:
        radial-gradient(220px 180px at 0% 0%, rgba(var(--tone),.14), transparent 70%),
        linear-gradient(160deg, #fff8d6 0%, #FFFFFF 70%);
    border-color: #c9dbf5;
}
.feature-card::after {
    content: counter(feat, decimal-leading-zero);
    position: absolute; z-index: -1; bottom: -18px; left: 12px;
    font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -2px;
    color: rgba(var(--tone),.07); pointer-events: none;
    transition: transform .4s var(--ease), color .4s var(--ease);
}
.feature-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(to left, rgb(var(--tone)), rgba(var(--tone),.25));
    transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.feature-card .feature-icon-svg {
    position: relative;
    box-shadow: 0 0 0 6px rgba(var(--tone),.10), 0 8px 20px rgba(var(--tone),.25);
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s var(--ease);
}
.feature-card:hover { border-color: rgba(var(--tone),.25); box-shadow: 0 16px 36px rgba(var(--tone),.14); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { transform: translateY(-6px) scale(1.04); color: rgba(var(--tone),.11); }
.feature-card:hover .feature-icon-svg { transform: translateY(-3px) rotate(-8deg); box-shadow: 0 0 0 8px rgba(var(--tone),.14), 0 12px 24px rgba(var(--tone),.30); }
.feature-card h3 { transition: color .25s var(--ease); }
.feature-card:hover h3 { color: rgb(var(--tone)); }
.feature-card:nth-child(even):hover h3 { color: var(--c-leaf-dark); }
.feature-card:nth-child(odd):hover h3 { color: var(--c-primary-dark); }
@media (max-width: 768px) { .feature-card::after { font-size: 72px; } }
/* ---------- Closing CTA card: soul layer ---------- */
@keyframes ctaDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-18px) scale(1.08); } }
.section-cta .cta-center {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 64px 32px 60px;
    border: 1px solid transparent;
    background:
        radial-gradient(rgba(12,61,145,.08) 1px, transparent 1.4px) 0 0 / 20px 20px padding-box,
        linear-gradient(135deg, #eef3fb 0%, #FFFFFF 50%, #eef3fb 100%) padding-box,
        linear-gradient(135deg, rgba(12,61,145,.35), rgba(255,255,255,.9) 50%, rgba(12,61,145,.35)) border-box;
    box-shadow: var(--card-shadow-hover);
}
.section-cta .cta-center::before, .section-cta .cta-center::after {
    content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
    filter: blur(30px); animation: ctaDrift 14s ease-in-out infinite;
}
.section-cta .cta-center::before { width: 300px; height: 300px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(233,30,99,.45), transparent 70%); }
.section-cta .cta-center::after { width: 280px; height: 280px; bottom: -120px; left: -80px; background: radial-gradient(circle, rgba(140,198,63,.38), transparent 70%); animation-delay: -7s; }
.cta-logo {
    position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px;
    border-radius: 22px; background: #fff;
    box-shadow: 0 0 0 8px rgba(255,255,255,.6), 0 14px 32px rgba(12,61,145,.22);
}
.cta-logo::before, .cta-logo::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-logo::before { inset: -26px; border: 1.5px dashed rgba(12,61,145,.25); }
.cta-logo::after { inset: -52px; border: 1px solid rgba(12,61,145,.14); }
.cta-logo img { width: 74%; height: 74%; object-fit: contain; }
.section-cta .cta-center .section-title { font-size: 36px; }
.section-cta .cta-center p { font-size: 17px; }
.section-cta .btn-primary {
    background: linear-gradient(135deg, #4a7fd4 0%, #0c3d91 60%, #082a66 100%);
    box-shadow: 0 10px 26px rgba(12,61,145,.32), 0 0 0 6px rgba(12,61,145,.08);
}
.section-cta .btn-primary:hover { background: linear-gradient(135deg, #4a7fd4 0%, #0c3d91 50%, #002766 100%); box-shadow: 0 14px 32px rgba(12,61,145,.38), 0 0 0 8px rgba(12,61,145,.10); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(-5px); }
@media (max-width: 768px) {
    .section-cta .cta-center { padding: 48px 20px 44px; }
    .section-cta .cta-center .section-title { font-size: 28px; }
    .cta-logo { width: 64px; height: 64px; border-radius: 18px; }
    .section-cta .btn-lg { width: 100%; }
}
/* ---------- Footer card + footer CTA: soul layer (matches closing CTA) ---------- */
.footer .footer-grid, .footer .footer-cta-inner {
    position: relative; overflow: hidden; isolation: isolate;
    border: 1px solid transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background:
        radial-gradient(rgba(12,61,145,.07) 1px, transparent 1.4px) 0 0 / 20px 20px padding-box,
        radial-gradient(420px 260px at 100% 0%, rgba(255,241,233,.95), transparent 70%) padding-box,
        radial-gradient(420px 260px at 0% 100%, rgba(237,249,238,.95), transparent 70%) padding-box,
        linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        linear-gradient(135deg, rgba(12,61,145,.35), rgba(255,255,255,.9) 50%, rgba(12,61,145,.35)) border-box;
    box-shadow: var(--card-shadow-hover);
}
.footer .footer-grid::before, .footer .footer-grid::after,
.footer .footer-cta-inner::before, .footer .footer-cta-inner::after {
    content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
    filter: blur(30px); animation: ctaDrift 16s ease-in-out infinite;
}
.footer .footer-grid::before, .footer .footer-cta-inner::before { width: 260px; height: 260px; top: -110px; right: -70px; background: radial-gradient(circle, rgba(233,30,99,.35), transparent 70%); }
.footer .footer-grid::after, .footer .footer-cta-inner::after { width: 240px; height: 240px; bottom: -110px; left: -70px; background: radial-gradient(circle, rgba(140,198,63,.30), transparent 70%); animation-delay: -8s; }

/* Logo tile */
.footer-logo-tile { position: relative; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.7), 0 12px 26px rgba(12,61,145,.22); }
.footer-logo-tile::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed rgba(12,61,145,.25); pointer-events: none; }

/* Headings */
.footer h4::after { width: 36px; background: linear-gradient(to left, var(--c-primary), var(--c-leaf)); }

/* Links */
.footer-links a:hover { color: var(--c-primary-dark); }

/* Contact badges */
.contact-item .contact-icon { background: var(--grad-orange); color: #fff; box-shadow: 0 8px 18px rgba(12,61,145,.25); transition: transform .3s var(--ease); }
.contact-item .contact-icon--leaf { background: var(--grad-leaf); box-shadow: 0 8px 18px rgba(12,61,145,.25); }
.contact-item:hover .contact-icon { transform: translateY(-2px); }

/* Social */
.footer-social a {
    border: 1.5px solid transparent; color: var(--c-text);
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(12,61,145,.5), rgba(12,61,145,.5)) border-box;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .2s;
}
.footer-social a:hover {
    color: #fff; transform: translateY(-3px);
    background: linear-gradient(135deg, #4a7fd4, #0c3d91) padding-box, linear-gradient(135deg, #4a7fd4, #0c3d91) border-box;
    box-shadow: 0 10px 20px rgba(12,61,145,.28);
}

/* Bottom divider + centered copyright */
.footer-bottom { position: relative; text-align: center; padding-top: 22px; }
.footer-bottom::before { content: ''; position: absolute; top: 10px; left: 15%; right: 15%; height: 1px; background: linear-gradient(to left, transparent, rgba(12,61,145,.45), rgba(12,61,145,.45), transparent); }

/* Footer CTA (jobs pages) = closing CTA language */
.footer .footer-cta-inner { border-right: 1px solid transparent; padding: 32px 36px; }
.footer-cta-text h3 { font-size: 24px; }
.footer .footer-cta-btn {
    background: linear-gradient(135deg, #4a7fd4 0%, #0c3d91 60%, #082a66 100%); color: #fff;
    box-shadow: 0 10px 26px rgba(12,61,145,.32), 0 0 0 6px rgba(12,61,145,.08);
}
.footer .footer-cta-btn:hover { color: #fff; box-shadow: 0 14px 32px rgba(12,61,145,.38), 0 0 0 8px rgba(12,61,145,.10); }
.footer-cta-btn svg { transition: transform .3s var(--ease); }
.footer-cta-btn:hover svg { transform: translateX(-5px); }
@media (max-width: 768px) {
    .footer .footer-cta-inner { border-top: 1px solid transparent; padding: 26px 20px; }
    .footer-bottom::before { left: 8%; right: 8%; }
}
/* ---------- Steps: icon chips on nodes ---------- */
.nowrap { white-space: nowrap; }
.section-process .process-number { position: relative; overflow: visible; }
.step-icon {
    position: absolute; bottom: -8px; left: -10px;
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
    background: var(--c-primary-light); color: var(--c-primary);
    border: 2px solid #fff; box-shadow: 0 4px 10px rgba(47,54,64,.10);
    transition: transform .3s var(--ease);
}
.section-process .process-step:nth-child(even) .step-icon { background: var(--c-leaf-light); color: var(--c-leaf-dark); }
.section-process .process-step:hover .step-icon { transform: rotate(-8deg) scale(1.05); }
.section-process .process-step h3 { margin-top: 6px; }
@media (max-width: 768px) {
    .step-icon { width: 28px; height: 28px; border-radius: 9px; bottom: -6px; left: -8px; }
    .step-icon svg { width: 14px; height: 14px; }
    .section-process .process-step h3 { margin-top: 2px; }
}
/* ---------- Job cards: soul layer (matches why-us) ---------- */
.job-card {
    --tone: 12,61,145;
    isolation: isolate;
    background: radial-gradient(240px 180px at 0% 0%, rgba(var(--tone),.09), transparent 70%), var(--c-white);
}
.jobs-grid > .job-card:nth-child(even) { --tone: 255,208,0; }
.job-card::before { background: linear-gradient(to left, rgb(var(--tone)), rgba(var(--tone),.25)); }
.job-card:hover { border-color: rgba(var(--tone),.28); box-shadow: 0 16px 36px rgba(var(--tone),.14); }
.job-card .job-avatar {
    background: var(--grad-orange); color: #fff;
    box-shadow: 0 0 0 5px rgba(var(--tone),.10), 0 8px 18px rgba(var(--tone),.25);
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s var(--ease);
}
.jobs-grid > .job-card:nth-child(even) .job-avatar { background: var(--grad-leaf); }
.job-card:hover .job-avatar { transform: translateY(-3px) rotate(-8deg); box-shadow: 0 0 0 7px rgba(var(--tone),.14), 0 12px 22px rgba(var(--tone),.30); }
.job-card .job-department {
    display: inline-flex; width: fit-content; margin: 2px 0 4px; padding: 3px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; background: rgba(var(--tone),.10); color: var(--c-primary-dark);
}
.jobs-grid > .job-card:nth-child(even) .job-department { color: var(--c-leaf-dark); }
.job-card:hover .job-title { color: var(--c-ink); }
.job-meta .job-date { display: inline-flex; align-items: center; gap: 6px; }
.job-meta .job-date svg { color: var(--c-muted); }
.job-card .badge-new { box-shadow: 0 0 0 3px #fff; }
.job-card .btn-save:hover { background: var(--c-primary-light); border-color: #c9dbf5; color: var(--c-primary); }
.job-details-btn .btn-arrow { transition: transform .3s var(--ease); }
.job-card:hover .job-details-btn, .job-details-btn:hover {
    background: linear-gradient(135deg, #4a7fd4 0%, #0c3d91 60%, #082a66 100%);
    border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(12,61,145,.28);
}
.job-card:hover .job-details-btn .btn-arrow { transform: translateX(-5px); }
/* ---------- Hero polish: brand card, chips, search button ---------- */
.hero .hv-panel {
    position: relative; overflow: hidden; isolation: isolate;
    border: 1px solid transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background:
        radial-gradient(rgba(12,61,145,.08) 1px, transparent 1.4px) 0 0 / 20px 20px padding-box,
        radial-gradient(360px 240px at 100% 0%, rgba(238,243,251,1), transparent 70%) padding-box,
        radial-gradient(360px 240px at 0% 100%, rgba(255,248,214,1), transparent 70%) padding-box,
        linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        linear-gradient(135deg, rgba(12,61,145,.40), rgba(255,255,255,.9) 50%, rgba(12,61,145,.40)) border-box;
    box-shadow: var(--card-shadow-hover), 0 24px 50px -20px rgba(12,61,145,.25);
}
.hero .hv-panel::before, .hero .hv-panel::after {
    content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
    inset: auto; height: auto; filter: blur(30px); animation: ctaDrift 14s ease-in-out infinite;
}
.hero .hv-panel::before { width: 260px; height: 260px; top: -100px; right: -70px; background: radial-gradient(circle, rgba(12,61,145,.28), transparent 70%); }
.hero .hv-panel::after { width: 240px; height: 240px; bottom: -100px; left: -70px; background: radial-gradient(circle, rgba(255,208,0,.28), transparent 70%); animation-delay: -7s; }
.hero .hv-logo { background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.75), 0 16px 36px rgba(12,61,145,.28); }

/* Chips: balanced equal-width rows on desktop */
@media (min-width: 769px) {
    .hero .hero-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-width: 580px; }
    .hero .hero-chips .filter-chip { justify-content: center; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* Search button */
.hero-search button {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #4a7fd4 0%, #0c3d91 60%, #082a66 100%);
    box-shadow: 0 8px 20px rgba(12,61,145,.30);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.hero-search button:hover { background: linear-gradient(135deg, #4a7fd4 0%, #0c3d91 50%, #002766 100%); box-shadow: 0 12px 26px rgba(12,61,145,.38); }
.search-btn-icon { transition: transform .3s var(--ease); }
.hero-search button:hover .search-btn-icon { transform: translateX(-3px) rotate(-10deg); }
@media (max-width: 480px) { .search-btn-icon { display: none; } }
/* ---------- Urgent openings (مطلوب الآن) ---------- */
@keyframes urgentPulse { 0% { box-shadow: 0 0 0 0 rgba(255,208,0,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,208,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,208,0,0); } }
.urgent-pill {
    display: inline-flex; align-items: center; gap: 7px; width: fit-content;
    padding: 5px 12px; border-radius: 999px;
    background: linear-gradient(135deg, #fff8d6, #ffe566); color: #082a66;
    border: 1px solid #ffd000; font-size: 12.5px; font-weight: 800; line-height: 1.2;
}
.urgent-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #0c3d91; animation: urgentPulse 1.8s ease-out infinite; }
.job-card--urgent {
    border: 1px solid transparent;
    background:
        radial-gradient(260px 180px at 0% 0%, rgba(255,208,0,.18), transparent 70%) padding-box,
        linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        linear-gradient(135deg, rgba(255,208,0,.55), rgba(255,208,0,.45) 50%, rgba(255,255,255,.9)) border-box;
    box-shadow: var(--card-shadow), 0 12px 28px -14px rgba(255,208,0,.35);
}
.job-card--urgent .job-avatar, .jobs-grid > .job-card--urgent:nth-child(even) .job-avatar { background: linear-gradient(135deg, #ffd000, #e6bb00); color: #082a66; }
.job-card--urgent:hover { box-shadow: 0 18px 38px rgba(255,208,0,.22); }
.job-card .urgent-pill { margin-bottom: -4px; }
.job-header .urgent-pill { margin-bottom: 8px; }
.section-urgent .section-title span { color: #082a66; }
.urgent-toggle { position: relative; cursor: pointer; gap: 8px; align-self: end; min-height: var(--control-h); }
.urgent-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.urgent-toggle.active { background: linear-gradient(135deg, #fff8d6, #ffe566); border-color: #ffd000; color: #082a66; }
.urgent-toggle:focus-within { outline: 3px solid rgba(12,61,145,.35); outline-offset: 2px; }
.jobs-filter-form { grid-template-columns: 2fr repeat(3, 1fr) auto auto; }
@media (max-width: 1024px) { .jobs-filter-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .jobs-filter-form { grid-template-columns: 1fr; } .urgent-toggle { justify-content: center; } }
/* ---------- Branch pills (multi-branch) ---------- */
.branch-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.branch-pill { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5;
    background: #F5F6F8; color: var(--c-text, #5B6470); border: 1px solid #EEF0F3; white-space: nowrap; }
.branch-pill--all { background: #eef3fb; color: #082a66; border-color: #c9dbf5; }
.branch-pill--more { background: #eef3fb; color: #082a66; border-color: #c9dbf5; cursor: default; }
.job-header .location .branch-pills { margin-top: 2px; }
/* ---------- Reduced motion ---------- */
.feature-card::after { content: none !important; display: none !important; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}
