/* ═══════════════════════════════════════════════════════
   YOUTHS AT WORK — DESIGN SYSTEM
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── Core palette ──────────────────────────────────── */
  --ink: #080c07;
  --surface: #0f1410;
  --raised: #161c14;
  --elevated: #1c231a;
  --green: #1c7b38;
  --green-h: #23a048;
  --green-glow: rgba(28, 123, 56, 0.25);
  --gold: #f5c200;
  --gold-h: #ffd234;
  --gold-glow: rgba(245, 194, 0, 0.2);
  --sky: #1d72be;
  --sky-h: #2589e0;
  --sky-glow: rgba(29, 114, 190, 0.2);
  --coral: #e8604c;
  --coral-h: #f07a68;
  --peach: #f5a96b;
  --mint: #42d4a4;
  --paper: #eee9dc;
  --body: rgba(238, 233, 220, 0.78);
  --muted: rgba(238, 233, 220, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --line-g: rgba(245, 194, 0, 0.2);

  /* ── Layout ────────────────────────────────────────── */
  --r: 12px;
  --r-lg: 20px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(245, 194, 0, 0.08);
  --max: 1280px;
  --glass: rgba(15, 20, 16, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* ── Transitions ───────────────────────────────────── */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.35s;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }

body {
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(ellipse at 15% -5%, rgba(29, 114, 190, 0.18), transparent 50%),
    radial-gradient(ellipse at 85% 5%, rgba(245, 194, 0, 0.12), transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(232, 96, 76, 0.06), transparent 50%),
    var(--ink);
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Accessibility ───────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -50px;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-weight: 500;
  border-radius: var(--r);
  z-index: 999;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: 16px; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold-h);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ══════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 7, 0.85);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wrap {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.wrap-full { width: 100%; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1.6rem;
  white-space: nowrap;
}
.brand span { color: var(--gold); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--paper);
  padding: 10px 14px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-block;
  transition: all var(--speed) var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}
.nav-links a.cta {
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
}
.nav-links a.cta:hover {
  background: var(--gold-h);
  transform: scale(1.04);
}

/* ══════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════ */

main { padding: 0 0 100px; }
main.wrap { padding-top: 48px; }

.page-head {
  margin-bottom: 40px;
  padding-top: 48px;
}

.section { margin-bottom: 32px; }

/* ── Typography ──────────────────────────────────────── */
.kicker {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  line-height: 0.95;
}

h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
h2 { font-size: clamp(1.7rem, 5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

p {
  color: var(--body);
  margin: 0 0 18px;
  max-width: 70ch;
}

/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */

.hero-full {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--ink) 0%,
    rgba(8, 12, 7, 0.85) 30%,
    rgba(8, 12, 7, 0.4) 60%,
    rgba(8, 12, 7, 0.2) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245, 194, 0, 0.15), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(29, 114, 190, 0.18), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(232, 96, 76, 0.1), transparent 40%),
    linear-gradient(160deg, var(--surface) 0%, var(--ink) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 55ch;
}

/* ── Old hero (two-col) ──────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

/* ══════════════════════════════════════════════════════
   PANELS & CARDS
   ══════════════════════════════════════════════════════ */

.panel {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.hero-copy,
.hero-side,
.section.panel,
.panel.section {
  padding: 32px;
}

.card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px;
  transition: all var(--speed) var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 194, 0, 0.15), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--r) - 4px);
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  padding: 0 24px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--raised);
  color: var(--paper);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--line-g);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn.green {
  background: linear-gradient(135deg, var(--green), #1e8f3e);
  border-color: var(--green-h);
}
.btn.green:hover { box-shadow: 0 4px 20px var(--green-glow); }

.btn.sky {
  background: linear-gradient(135deg, var(--sky), #2794ed);
  border-color: var(--sky-h);
}
.btn.sky:hover { box-shadow: 0 4px 20px var(--sky-glow); }

.btn.gold {
  background: linear-gradient(135deg, var(--gold), var(--peach));
  border-color: var(--gold-h);
  color: var(--ink);
  font-weight: 500;
}
.btn.gold:hover { box-shadow: 0 4px 20px var(--gold-glow); }

.btn.coral {
  background: linear-gradient(135deg, var(--coral), #d94535);
  border-color: var(--coral-h);
}

.btn.sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.65rem;
}

/* ══════════════════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════════════════ */

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

/* ══════════════════════════════════════════════════════
   IMPACT COUNTERS
   ══════════════════════════════════════════════════════ */

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 60px 0;
}

.impact-card {
  text-align: center;
  padding: 32px 16px;
}

.impact-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-label {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   SECTION DIVIDERS
   ══════════════════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  opacity: 0.3;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 20px;
}

/* ══════════════════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════════════════ */

.cta-band {
  background:
    linear-gradient(135deg, rgba(245, 194, 0, 0.08) 0%, rgba(232, 96, 76, 0.06) 100%),
    var(--surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 16px;
}

.cta-band p {
  margin: 0 auto 24px;
  max-width: 50ch;
}

/* ══════════════════════════════════════════════════════
   MEDIA GALLERY
   ══════════════════════════════════════════════════════ */

.media-section {
  padding: 60px 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.media-tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: var(--surface);
  transition: transform var(--speed) var(--ease);
}
.media-tile:hover { transform: scale(1.02); }

.media-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--surface);
}

.media-item .media-tile {
  border: none;
  border-radius: 0;
}

.media-caption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--raised);
}

/* ══════════════════════════════════════════════════════
   LISTS & MISC
   ══════════════════════════════════════════════════════ */

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--body);
}
.list li { margin-bottom: 10px; }

.note {
  border-left: 3px solid var(--gold);
  background: rgba(245, 194, 0, 0.06);
  padding: 16px 20px;
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--body);
}

.badge {
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--line-g);
  border-radius: 999px;
  padding: 4px 12px;
}

.empty-slot {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--r);
  padding: 24px;
  background: rgba(255, 255, 255, 0.015);
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════ */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }

label {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--elevated);
  color: var(--paper);
  padding: 12px 16px;
  font: inherit;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

/* ══════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════ */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th, .table td {
  border-bottom: 1px solid var(--glass-border);
  padding: 14px;
  text-align: left;
}
.table th {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.status {
  display: inline-block;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-family: "DM Mono", monospace;
}
.status.new { border-color: var(--mint); color: var(--mint); }
.status.contacted { border-color: var(--sky); color: var(--sky); }
.status.converted { border-color: var(--green); color: var(--green); }
.status.closed { border-color: var(--muted); color: var(--muted); }

/* ══════════════════════════════════════════════════════
   JOB CARDS
   ══════════════════════════════════════════════════════ */

.job-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--glass);
  padding: 24px;
  transition: all var(--speed) var(--ease);
}
.job-card:hover {
  border-color: var(--gold-glow);
  transform: translateY(-2px);
}
.job-card h3 { margin-bottom: 6px; }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════ */

.accordion-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--glass);
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}
.accordion-trigger:hover { background: rgba(255, 255, 255, 0.03); }

.accordion-icon {
  width: 20px; height: 20px;
  transition: transform var(--speed) var(--ease);
  flex-shrink: 0;
  color: var(--gold);
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion-item.open .accordion-body { max-height: 400px; }

.accordion-inner {
  padding: 0 24px 18px;
  color: var(--body);
}

.accordion-audience {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════════════════
   STORY CARDS
   ══════════════════════════════════════════════════════ */

.story-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--glass);
  overflow: hidden;
  transition: all var(--speed) var(--ease);
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.story-card .card-img {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.story-body {
  padding: 24px;
}
.story-body h3 { margin-bottom: 8px; }

/* ══════════════════════════════════════════════════════
   NEWS CARDS
   ══════════════════════════════════════════════════════ */

.news-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--glass);
  overflow: hidden;
  transition: all var(--speed) var(--ease);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card .card-img {
  margin: 0;
  border-radius: 0;
}

.news-body {
  padding: 24px;
}
.news-date {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

footer {
  border-top: 1px solid var(--glass-border);
  background: var(--surface);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--gold); }

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer-heading {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li { margin-bottom: 8px; }

.footer-link-list a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color var(--speed) var(--ease);
}
.footer-link-list a:hover { color: var(--paper); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════ */

.animate-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.animate-in:nth-child(2) { transition-delay: 0.08s; }
.animate-in:nth-child(3) { transition-delay: 0.16s; }
.animate-in:nth-child(4) { transition-delay: 0.24s; }

/* ══════════════════════════════════════════════════════
   TOAST / NOTIFICATION
   ══════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: var(--r);
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: toast-in 0.4s var(--ease);
}
.toast.error { background: var(--coral); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════════════
   ADMIN DASHBOARD STYLES
   ══════════════════════════════════════════════════════ */

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--glass-border);
  padding: 24px 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.admin-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all var(--speed) var(--ease);
  border-left: 3px solid transparent;
}
.admin-sidebar-nav li a:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.03);
}
.admin-sidebar-nav li a.active {
  color: var(--gold);
  background: rgba(245, 194, 0, 0.06);
  border-left-color: var(--gold);
}

.admin-main {
  padding: 32px 40px;
  max-width: 960px;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* ── Stat cards ──────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--glass);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-label {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Admin item cards ────────────────────────────────── */
.admin-item-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-item-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--raised);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-item-card .item-info { flex: 1; }
.admin-item-card .item-info h4 {
  font-size: 1rem;
  margin: 0 0 4px;
  text-transform: none;
  font-family: "DM Sans", sans-serif;
}
.admin-item-card .item-info p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--muted);
}

.admin-item-card .item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Admin media grid ────────────────────────────────── */
.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-media-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--raised);
  overflow: hidden;
}

.admin-media-card img,
.admin-media-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-media-info {
  padding: 10px 14px;
}

.admin-media-info p {
  font-size: 0.8rem;
  margin: 0 0 6px;
  color: var(--muted);
}

/* ── Lead cards ──────────────────────────────────────── */
.lead-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--raised);
  padding: 20px;
  margin-bottom: 10px;
  transition: border-color var(--speed) var(--ease);
  cursor: pointer;
}
.lead-card:hover { border-color: rgba(245, 194, 0, 0.15); }
.lead-card.expanded { border-color: var(--gold); }

.lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-name {
  font-weight: 500;
  font-size: 1rem;
}

.lead-detail {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}
.lead-card.expanded .lead-detail { display: block; }

.lead-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.lead-detail-item label {
  font-size: 0.6rem;
  display: block;
  margin-bottom: 2px;
}

.lead-detail-item span {
  font-size: 0.9rem;
  color: var(--body);
}

/* ── Upload area ─────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--r);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  margin-bottom: 24px;
}
.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--gold);
  background: rgba(245, 194, 0, 0.04);
}

.upload-area p {
  margin: 0 auto;
  color: var(--muted);
}

/* ── Admin textareas (JSON) ──────────────────────────── */
body[data-page="admin"] textarea {
  min-height: 200px;
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .admin-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0 16px;
  }
  .admin-sidebar-nav li a {
    padding: 10px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 0.65rem;
  }
  .admin-sidebar-nav li a.active {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
  }
  .admin-main { padding: 24px 20px; }
}

@media (max-width: 900px) {
  .hero, .hero-full { min-height: 70vh; }
  .hero, .grid-3, .grid-2, .media-grid, .impact-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: var(--r); }

  .hero-content h1 { font-size: clamp(2.4rem, 10vw, 4rem); }

  .lead-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn-row { flex-direction: column; }
  .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════
   JOBS MARKETPLACE — SEARCH BAR
   ══════════════════════════════════════════════════════ */

.jobs-search-bar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg, 16px);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.jobs-search-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.jobs-search-input-wrap {
  flex: 1;
  position: relative;
}

.jobs-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.jobs-search-input-wrap input {
  padding-left: 42px;
}

.jobs-search-row select {
  width: auto;
  min-width: 160px;
}

.jobs-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.jobs-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jobs-sort-wrap select {
  width: auto;
  min-width: 140px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════════
   JOBS MARKETPLACE — JOB CARDS V2
   ══════════════════════════════════════════════════════ */

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

.job-card-v2 {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--glass);
  padding: 24px;
  transition: all var(--speed) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card-v2:hover {
  border-color: rgba(245, 194, 0, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.job-card-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.job-card-employer {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.job-type-badge {
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky);
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-type-badge.lg {
  font-size: 0.72rem;
  padding: 6px 16px;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.job-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-deadline.urgent { color: var(--coral); font-weight: 500; }
.job-deadline.soon { color: var(--gold); }

.job-card-desc {
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
}

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

.jobs-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.jobs-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   JOB DETAIL PAGE
   ══════════════════════════════════════════════════════ */

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 24px 0 16px;
  transition: color var(--speed) var(--ease);
}
.back-link:hover { color: var(--gold); }

.job-detail-hero {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 32px;
  margin-bottom: 32px;
}

.job-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.job-detail-header h1 {
  margin: 0 0 6px;
}

.job-detail-employer {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

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

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-meta-item strong {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.detail-meta-item span {
  font-size: 0.92rem;
  color: var(--body);
}

.job-detail-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-bottom: 32px;
}

.job-detail-main h2 {
  margin-top: 24px;
}

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

.job-desc-text p {
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}

.job-detail-sidebar .employer-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.employer-card h3 {
  margin-bottom: 12px;
}

.employer-name {
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════
   APPLICANT CARDS
   ══════════════════════════════════════════════════════ */

.applicant-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  background: var(--raised);
  margin-bottom: 10px;
  transition: border-color var(--speed) var(--ease);
  overflow: hidden;
}

.applicant-card:hover { border-color: rgba(245, 194, 0, 0.15); }
.applicant-card.expanded { border-color: var(--gold); }

.applicant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
}

.applicant-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.applicant-detail {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--glass-border);
}

.applicant-card.expanded .applicant-detail { display: block; padding-top: 16px; }

.status.submitted { border-color: var(--gold); color: var(--gold); }
.status.reviewed { border-color: var(--sky); color: var(--sky); }
.status.shortlisted { border-color: var(--mint); color: var(--mint); }
.status.accepted { border-color: var(--green); color: var(--green); }
.status.rejected { border-color: var(--coral); color: var(--coral); }
.status.in-progress { border-color: var(--sky); color: var(--sky); }

/* ══════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════ */

.legal-content h2 {
  margin-top: 32px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--glass-border);
  padding: 10px 14px;
  text-align: left;
}

.legal-table th {
  background: var(--surface);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.legal-table code {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  color: var(--mint);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE MARKETPLACE OVERRIDES
   ══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .jobs-search-row {
    flex-direction: column;
  }
  .jobs-search-row select {
    width: 100%;
    min-width: 0;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .job-detail-body {
    grid-template-columns: 1fr;
  }
  .job-detail-header {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .job-card-header {
    flex-direction: column;
    gap: 8px;
  }
  .jobs-meta-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ══════════════════════════════════════════════════════
   TOGGLE GROUP (job type selector)
   ══════════════════════════════════════════════════════ */

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--elevated);
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  min-height: auto;
  text-transform: none;
  letter-spacing: 0;
}

.toggle-btn:hover {
  border-color: var(--gold);
  color: var(--paper);
  background: rgba(245, 194, 0, 0.06);
}

.toggle-btn.active {
  border-color: var(--gold);
  background: rgba(245, 194, 0, 0.12);
  color: var(--gold);
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--gold), 0 2px 12px var(--gold-glow);
}

