@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ══════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════ */
:root {
  /* Base ink */
  --ink-950: #0f1320;
  --ink-800: #232a3f;
  --ink-600: #4b5678;
  --ink-400: #7a86a8;

  /* Learner — sky blue */
  --learner-700: #1b8fd6;
  --learner-500: #4fb4f7;
  --learner-300: #b9e5ff;
  --learner-100: #e8f6ff;

  /* Jobseeker — indigo/violet */
  --jobseeker-700: #2c56c9;
  --jobseeker-500: #6f8eff;
  --jobseeker-300: #d6e0ff;
  --jobseeker-100: #f0f4ff;

  /* Company — emerald green */
  --company-700: #2f7d5b;
  --company-500: #69c49a;
  --company-300: #d9f3e6;
  --company-100: #f0fdf4;

  /* Academic — amber/orange */
  --academic-900: #7c3a00;
  --academic-700: #c05e00;
  --academic-500: #f08030;
  --academic-300: #fdd5a8;
  --academic-100: #fff7ed;

  --white: #ffffff;
  --shadow-soft: 0 8px 32px rgba(15, 19, 32, 0.08);
  --shadow-md: 0 14px 40px rgba(15, 19, 32, 0.12);
  --shadow-strong: 0 24px 60px rgba(15, 19, 32, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar { display: none; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-950);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(79, 180, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(105, 196, 154, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(111, 142, 255, 0.07) 0%, transparent 70%),
    linear-gradient(160deg, #f4f9ff 0%, #f1f5ff 40%, #eef3ff 70%, #edfaf4 100%);
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════
   IRAQ MAP BACKGROUND
══════════════════════════════════════════════════════ */
.iraq-map-bg {
  position: fixed;
  top: 0;
  right: -5vw;
  left: auto;
  width: 55vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  overflow: hidden;
}

.iraq-map-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Animate the dots */
@keyframes pulseDot {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.4); }
}

.map-dots circle:nth-child(1) { animation: pulseDot 3.2s ease-in-out infinite; }
.map-dots circle:nth-child(2) { animation: pulseDot 2.8s ease-in-out 0.5s infinite; }
.map-dots circle:nth-child(3) { animation: pulseDot 3.6s ease-in-out 1s infinite; }
.map-dots circle:nth-child(4) { animation: pulseDot 3s ease-in-out 0.3s infinite; }
.map-dots circle:nth-child(5) { animation: pulseDot 2.5s ease-in-out 1.5s infinite; }
.map-dots circle:nth-child(6) { animation: pulseDot 3.4s ease-in-out 0.8s infinite; }
.map-dots circle:nth-child(7) { animation: pulseDot 2.9s ease-in-out 0.2s infinite; }
.map-dots circle:nth-child(8) { animation: pulseDot 3.1s ease-in-out 1.2s infinite; }
.map-dots circle:nth-child(9) { animation: pulseDot 2.7s ease-in-out 0.6s infinite; }
.map-dots circle:nth-child(10) { animation: pulseDot 3.3s ease-in-out 0.9s infinite; }

/* ══════════════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
header {
  padding: 22px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(245, 249, 255, 0.82);
  border-bottom: 1px solid rgba(111, 142, 255, 0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-950);
  letter-spacing: 0.2px;
}

/* Language switch */
.lang-switch {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  position: relative;
  background: rgba(17, 19, 26, 0.07);
  border-radius: 10px;
  padding: 3px;
}

.lang-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(17, 19, 26, 0.08);
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lang-switch-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  width: 76px;
  text-align: center;
}

.lang-switch-btn.active {
  color: var(--ink-800);
  font-weight: 600;
}

.lang-switch-btn:not(.active):hover {
  color: var(--ink-600);
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  padding: 80px 64px 60px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(79, 180, 247, 0.15), rgba(111, 142, 255, 0.12));
  border: 1px solid rgba(79, 180, 247, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--jobseeker-700);
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-950);
  letter-spacing: -0.5px;
}

.hero p {
  margin: 0 0 32px;
  color: var(--ink-600);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.hero-btn.primary {
  background: linear-gradient(135deg, #4fb4f7, #2c56c9);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(44, 86, 201, 0.28);
}

.hero-btn.primary:hover {
  box-shadow: 0 14px 32px rgba(44, 86, 201, 0.38);
}

.hero-btn.ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-800);
  border: 1px solid rgba(17, 19, 26, 0.12);
  box-shadow: var(--shadow-soft);
}

.hero-btn.ghost:hover {
  box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════════════════
   COUNTERS
══════════════════════════════════════════════════════ */
.counters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 64px 60px;
}

.counter-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 19, 26, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.counter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.counter-icon {
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.counter-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.counter-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.counter-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Accent colours per counter */
.learner-accent .counter-icon { background: var(--learner-100); }
.learner-accent .counter-num { color: var(--learner-700); }
.learner-accent { border-left: 3px solid var(--learner-500); }

.jobseeker-accent .counter-icon { background: var(--jobseeker-100); }
.jobseeker-accent .counter-num { color: var(--jobseeker-700); }
.jobseeker-accent { border-left: 3px solid var(--jobseeker-500); }

.company-accent .counter-icon { background: var(--company-100); }
.company-accent .counter-num { color: var(--company-700); }
.company-accent { border-left: 3px solid var(--company-500); }

.jobs-accent .counter-icon { background: #fff8f0; }
.jobs-accent .counter-num { color: #c47a2f; }
.jobs-accent { border-left: 3px solid #e6a455; }

.courses-accent .counter-icon { background: #f5f0ff; }
.courses-accent .counter-num { color: #6b3fb5; }
.courses-accent { border-left: 3px solid #9b6fd6; }

.paths-accent .counter-icon { background: #f0faf4; }
.paths-accent .counter-num { color: #2e7d52; }
.paths-accent { border-left: 3px solid #4caf80; }

.events-accent .counter-icon { background: #fff0f6; }
.events-accent .counter-num { color: #b5346b; }
.events-accent { border-left: 3px solid #e06090; }

/* ══════════════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink-950);
}

.section-header p {
  margin: 0;
  color: var(--ink-600);
  font-size: 15px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(111, 142, 255, 0.12);
  color: var(--jobseeker-700);
  margin-bottom: 14px;
}

.danger-tag {
  background: rgba(220, 53, 69, 0.10);
  color: #c23d3d;
}

.success-tag {
  background: rgba(47, 125, 91, 0.12);
  color: var(--company-700);
}

/* ══════════════════════════════════════════════════════
   ACCOUNT CARDS
══════════════════════════════════════════════════════ */
.accounts {
  padding: 0 64px 80px;
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Make cards a flex row that wraps like a grid but is set in the HTML */
.accounts > .account-card ~ .account-card {
  margin-top: 0;
}

/* Direct card layout */
.accounts {
  display: flow-root;
}

.accounts > .section-header + .account-card,
.accounts > .account-card {
  display: inline-block;
}

/* Override: use CSS Grid for the cards */
.accounts {
  padding: 0 64px 80px;
  display: block;
}

.accounts > .section-header {
  display: block;
}

.accounts-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Since we write cards directly in <section class="accounts">, target them: */
.account-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 19, 26, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Apply grid layout to cards inside accounts section */
.accounts > article.account-card {
  /* Will be grid children when we wrap them */
}

/* Card header */
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 19, 26, 0.06);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon {
  font-size: 24px;
  line-height: 1;
}

.card-title-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-400);
}

.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-950);
  line-height: 1.2;
}

.card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.6;
}

/* Learner card theme */
.learner-card {
  border-top: 3px solid var(--learner-500);
}

.learner-header { border-color: var(--learner-100); }
.learner-icon-wrap { background: var(--learner-100); }
.learner-card .card-eyebrow { color: var(--learner-700); }

/* Jobseeker card theme */
.jobseeker-card {
  border-top: 3px solid var(--jobseeker-500);
}

.jobseeker-header { border-color: var(--jobseeker-100); }
.jobseeker-icon-wrap { background: var(--jobseeker-100); }
.jobseeker-card .card-eyebrow { color: var(--jobseeker-700); }

/* Company card theme */
.company-card {
  border-top: 3px solid var(--company-500);
}

.company-header { border-color: var(--company-100); }
.company-icon-wrap { background: var(--company-100); }
.company-card .card-eyebrow { color: var(--company-700); }

/* Academic card theme */
.academic-card {
  border-top: 3px solid var(--academic-500);
}

.academic-header { border-color: var(--academic-100); }
.academic-icon-wrap { background: var(--academic-100); }
.academic-card .card-eyebrow { color: var(--academic-700); }

/* ── Features Slider ── */
.features-slider {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  min-height: 180px;
}

.features-page {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlide 0.3s ease;
}

.features-page.active {
  display: flex;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feat-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(17, 19, 26, 0.04);
}

.learner-card .feat-icon { background: var(--learner-100); }
.jobseeker-card .feat-icon { background: var(--jobseeker-100); }
.company-card .feat-icon { background: var(--company-100); }
.academic-card .feat-icon { background: var(--academic-100); }

.feature-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
}

.feature-item p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.5;
}

/* Slider dots */
.slider-dots {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 19, 26, 0.15);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.dot.active {
  width: 22px;
  border-radius: 4px;
}

.learner-card .dot.active { background: var(--learner-700); }
.jobseeker-card .dot.active { background: var(--jobseeker-700); }
.company-card .dot.active { background: var(--company-700); }
.academic-card .dot.active { background: var(--academic-700); }

/* ── Features Single (replaces slider) ── */
.features-single {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card actions */
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.card-btn {
  flex: 1;
  min-width: 100px;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 19, 26, 0.14);
}

.card-btn:active { transform: scale(0.97); }

/* Learner buttons */
.card-btn.learner-primary {
  background: linear-gradient(135deg, var(--learner-500), var(--learner-700));
  color: var(--white);
}

.card-btn.learner-ghost {
  background: var(--learner-100);
  color: var(--learner-700);
}

/* Jobseeker buttons */
.card-btn.jobseeker-primary {
  background: linear-gradient(135deg, var(--jobseeker-500), var(--jobseeker-700));
  color: var(--white);
}

.card-btn.jobseeker-ghost {
  background: var(--jobseeker-100);
  color: var(--jobseeker-700);
}

/* Company buttons */
.card-btn.company-primary {
  background: linear-gradient(135deg, var(--company-500), var(--company-700));
  color: var(--white);
}

.card-btn.company-ghost {
  background: var(--company-100);
  color: var(--company-700);
}

/* Academic buttons */
.card-btn.academic-primary {
  background: linear-gradient(135deg, var(--academic-500), var(--academic-700));
  color: var(--white);
}

.card-btn.academic-ghost {
  background: var(--academic-100);
  color: var(--academic-700);
}

/* ── Grid layout for the three cards ── */
.accounts > article {
  display: flex;
  flex-direction: column;
}

/* Wrap the three cards in a CSS grid via auto-placement */
/* We achieve the 3-column layout using a wrapper approach on the cards */
.accounts {
  display: flex;
  flex-direction: column;
}

.accounts > .section-header { align-self: stretch; }

/* The three article cards will be laid out in a row */
.accounts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* When academic card is present (beta), switch to 4-column layout */
.accounts-row:has(.academic-card) {
  grid-template-columns: repeat(4, 1fr);
}

/* ══════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════ */
.about {
  padding: 80px 64px;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(17, 19, 26, 0.06);
  border-bottom: 1px solid rgba(17, 19, 26, 0.06);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ink-950);
  line-height: 1.3;
}

.about-text p {
  margin: 0 0 14px;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.7;
}

.about-mission {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.mission-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 19, 26, 0.06);
  box-shadow: var(--shadow-soft);
}

.mission-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(79, 180, 247, 0.12), rgba(111, 142, 255, 0.10));
}

.mission-block strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 4px;
}

.mission-block p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.55;
}

/* About pillars grid */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(17, 19, 26, 0.06);
  transition: transform 0.2s ease;
}

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

.pillar-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.learner-pillar .pillar-icon { background: var(--learner-100); }
.jobseeker-pillar .pillar-icon { background: var(--jobseeker-100); }
.company-pillar .pillar-icon { background: var(--company-100); }

.pillar strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
}

.pillars-logo-space {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 4px;
}

.pillars-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
}

/* ══════════════════════════════════════════════════════
   PROBLEM & OPPORTUNITY SECTION
══════════════════════════════════════════════════════ */
.problem-section {
  padding: 80px 64px;
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.problem-block,
.opportunity-block {
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.problem-block {
  background: rgba(255, 245, 245, 0.85);
  border: 1px solid rgba(220, 53, 69, 0.12);
}

.opportunity-block {
  background: rgba(240, 253, 244, 0.85);
  border: 1px solid rgba(47, 125, 91, 0.14);
}

.problem-block h2,
.opportunity-block h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-950);
}

.problem-list,
.opportunity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-list li,
.opportunity-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.5;
}

.problem-list li::before {
  content: "✗";
  font-size: 13px;
  font-weight: 700;
  color: #c23d3d;
  flex-shrink: 0;
  margin-top: 1px;
}

.opportunity-list li::before {
  content: "✓";
  font-size: 13px;
  font-weight: 700;
  color: var(--company-700);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  margin-top: auto;
  padding: 28px 64px 36px;
  border-top: 1px solid rgba(17, 19, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-600);
  position: relative;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    position: static;
    transform: none;
    order: -1;
    justify-content: center;
    width: 100%;
  }
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-600);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--jobseeker-700); }

.footer-meta {
  font-size: 12px;
  color: var(--ink-400);
}

.version-text {
  font-size: 11px;
  color: var(--ink-400);
  opacity: 0.6;
  text-align: center;
  padding: 8px 0 4px;
}

/* ══════════════════════════════════════════════════════
   AUTH MODAL
══════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 19, 32, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

#authModal .modal-panel {
  width: min(520px, 92vw);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 28px;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

#authModal.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal[data-role="learner"]  { --modal-accent: var(--learner-700);    --modal-soft: rgba(27,143,214,0.08); }
.modal[data-role="jobseeker"]{ --modal-accent: var(--jobseeker-700);   --modal-soft: rgba(44,86,201,0.08); }
.modal[data-role="company"]  { --modal-accent: var(--company-700);     --modal-soft: rgba(47,125,91,0.08); }

#authModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#authModal .modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-950);
}

#authModal .modal-close {
  border: none;
  background: rgba(17, 19, 26, 0.07);
  color: var(--ink-800);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#authModal .modal-close:hover {
  box-shadow: 0 4px 12px rgba(17, 19, 26, 0.12);
  transform: translateY(-1px);
}

#authModal .modal-body {
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 6px;
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.auth-field label {
  font-size: 11px;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 19, 26, 0.14);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-950);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: var(--modal-accent, var(--ink-950));
  box-shadow: 0 0 0 3px var(--modal-soft, rgba(17, 19, 26, 0.08));
}

.auth-field input[readonly] {
  background: rgba(17, 19, 26, 0.04);
  color: var(--ink-600);
}

.auth-field.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-error {
  min-height: 16px;
  font-size: 11px;
  color: #c23d3d;
}

.auth-notice {
  min-height: 16px;
  font-size: 11px;
  color: var(--ink-600);
}

.auth-error:empty,
.auth-notice:empty { display: none; }

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.auth-submit {
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--modal-accent, var(--ink-950));
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  box-shadow: 0 6px 18px rgba(17, 19, 26, 0.16);
  transform: translateY(-1px);
}

.auth-submit.ghost {
  background: var(--modal-soft, rgba(17, 19, 26, 0.07));
  color: var(--modal-accent, var(--ink-800));
}

.auth-actions .is-hidden,
.is-hidden:not(.auth-field) { display: none !important; }

/* ── Google sign-in section ── */
.auth-google-section {
  padding: 0 24px;
  margin-bottom: 4px;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--ink-200, #e2e4ea);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--ink-800, #1a1d2e);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-google-btn:hover {
  box-shadow: 0 4px 14px rgba(17, 19, 26, 0.1);
  border-color: var(--ink-300, #c8cad4);
}

.auth-google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
  color: var(--ink-400, #8b8fa8);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-150, #eceef4);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Accounts cards row wrapper
══════════════════════════════════════════════════════ */

/* We wrap the 3 cards in a `.accounts-row` div for grid layout */
/* Cards wrapper override */
.accounts .section-header ~ article,
.accounts > article {
  /* Individual cards — flex direction set above */
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════ */
/* RTL: move Iraq map to the left side */
[dir="rtl"] .iraq-map-bg {
  right: auto;
  left: -5vw;
}

@media (max-width: 1100px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .problem-inner {
    grid-template-columns: 1fr;
  }

  .iraq-map-bg {
    width: 70vw;
    opacity: 0.25;
  }
}

@media (max-width: 980px) {
  header,
  .hero,
  .counters,
  .accounts,
  .about,
  .problem-section,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero { padding-top: 56px; padding-bottom: 40px; }
  .counters { padding-bottom: 40px; }

  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .iraq-map-bg { display: none; }
}

@media (max-width: 768px) {
  .accounts-row {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }

  .counters {
    gap: 10px;
  }

  .counter-card {
    flex: 1 1 120px;
    min-width: 110px;
    padding: 14px 14px;
  }

  .about { padding-top: 50px; padding-bottom: 50px; }
  .problem-section { padding-top: 50px; padding-bottom: 50px; }

  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-dots circle { animation: none; }
  .account-card,
  .counter-card,
  .pillar,
  .card-btn,
  .hero-btn { transition: none; }
}
