/* ===== موقع العروض التقديمية — منصة «لغتي» — #1f5a7a + Cairo ===== */

:root {
  --brand: #1f5a7a;
  --brand-dark: #16425a;
  --brand-light: #2e86ad;
  --gold: #d6a85c;
  --ink: #12222e;
  --muted: #5b7386;
  --bg: #f4f8fb;
  --card: #ffffff;
  --line: #e2ecf3;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(18, 34, 46, 0.12);
  --max: 1100px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 16px;
  background: #fff;
  color: var(--brand);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

/* ===== مسرح الشرائح ===== */
.deck {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-items: center;
  padding: 72px 0;
  background: var(--bg);
  overflow: hidden;
}

.slide-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), 90%);
  margin-inline: auto;
}

.slide-inner.center { text-align: center; }

/* شريحة الغلاف/الخاتمة بخلفية صورة */
.slide-cover {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(14, 44, 61, 0.92), rgba(31, 90, 122, 0.86));
}

.slide-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.35;
  z-index: 1;
}

/* ===== العناوين ===== */
.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand-light);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}

.slide-cover .kicker { color: #9fd4ec; }

h1, h2 {
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--brand-dark);
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); color: #fff; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }

.slide-cover h2 { color: #fff; }

.lead {
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  color: #eaf5fb;
  max-width: 62ch;
  margin: 0 auto;
}

.slide-inner:not(.center) .lead { margin-inline: 0; }

p { margin: 0 0 14px; }

/* ===== الشرائح المقسومة ===== */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media.wide { margin-top: 28px; }

.points {
  margin: 16px 0 0;
  padding-inline-start: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 12px;
}

.points li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ===== بطاقات المهارات ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.mini-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.mini-card span { font-size: 1.9rem; }

.mini-card h3 { margin: 10px 0 6px; font-size: 1.12rem; color: var(--brand-dark); }
.mini-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ===== الخطوات ===== */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 24px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  inset-inline-start: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(31, 90, 122, 0.35);
}

.steps strong { color: var(--brand-dark); }

.note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.97rem;
  background: #e9f2f8;
  border-inline-start: 4px solid var(--brand-light);
  padding: 12px 18px;
  border-radius: 10px;
}

/* ===== شريط النشر ===== */
.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.flow-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  font-weight: 800;
  color: var(--brand-dark);
  text-align: center;
  min-width: 180px;
}

.flow-step small { display: block; font-weight: 600; color: var(--muted); font-size: 0.88rem; }

.flow-arrow { align-self: center; font-size: 1.7rem; color: var(--brand-light); font-weight: 800; }

/* ===== روابط الشرائح ===== */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
}

.chips li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.hint { margin-top: 26px; color: #cfe6f3; font-size: 0.95rem; }

kbd {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 1px 9px;
  font-family: inherit;
  font-size: 0.9em;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.center .hero-actions { justify-content: center; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-primary { background: #fff; color: var(--brand); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ===== واجهة التنقل ===== */
.deck-ui {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-btn:hover { transform: translateY(-2px); background: var(--brand-light); }

.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.counter { font-weight: 800; color: var(--brand-dark); min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }

.dots {
  position: fixed;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}

.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dots button.is-active { background: var(--brand); transform: scale(1.25); }

/* ===== التجاوب ===== */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .media { order: -1; }
  .dots { display: none; }
  .slide { padding: 64px 0 96px; }
}

@media (max-width: 560px) {
  .slide-inner { width: 92%; }
  .flow-arrow { transform: rotate(-90deg); }
  .deck-ui { bottom: 14px; }
}
