/* Learn intro/landing page — "الذكاء الاصطناعي في الدعوة" */

/* ===== Hero — editorial image-led ===== */
.learn-hero {
  padding-block: 80px;
  background: var(--canvas);
}

.learn-hero-grid {
  display: grid;
  grid-template-columns: 6.5fr 5.5fr;
  align-items: center;
  gap: 60px;
}

.learn-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.learn-hero-eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.learn-hero-copy h1 {
  max-width: 600px;
  margin: 0 0 20px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.5px;
}

.learn-hero-sub {
  max-width: 580px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.8;
}

.learn-hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 580px;
  margin: 0 0 8px;
  color: var(--muted-brand);
  font-size: 14px;
  font-weight: 600;
}

.learn-hero-facts span:not(:last-child)::after {
  margin-inline-start: 10px;
  color: var(--line);
  content: "•";
}

.learn-hero-concept {
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

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

.learning-actions .btn {
  min-height: 52px;
  padding-inline: 26px;
}

/* Left visual — editorial image + one product preview */
.learn-hero-visual {
  position: relative;
}

.learn-hero-visual::before {
  position: absolute;
  top: -24px;
  inset-inline-start: -24px;
  z-index: 0;
  width: 130px;
  height: 130px;
  content: "";
  background: var(--brand);
  border-radius: 50%;
  opacity: 0.9;
}

.learn-hero-figure {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 460px;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
}

.learn-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-hero-caption {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  max-width: 240px;
  padding: 10px 16px;
  color: var(--surface);
  background: rgba(27, 67, 50, 0.88);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.learn-preview {
  position: absolute;
  z-index: 2;
  bottom: -60px;
  inset-inline-start: -184px;
  width: 300px;
  max-width: calc(100% - 36px);
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 30, 22, 0.14);
}

.learn-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--soft-line);
}

.learn-preview-head span {
  color: var(--muted-brand);
  font-size: 12px;
  font-weight: 600;
}

.learn-preview-head b {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.learn-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.learn-preview-row span {
  flex: 0 0 20px;
  color: var(--muted-brand);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.learn-preview-row b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.learn-preview-featured {
  background: var(--canvas);
  border-radius: 8px;
}

.learn-preview-featured span {
  color: var(--brand);
}

.learn-preview-featured b {
  color: var(--brand);
  font-weight: 700;
}

.learn-preview-more {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted-brand);
  font-size: 11.5px;
}

/* ===== Local page navigation (not a global dropdown) ===== */
.learn-local-nav {
  position: sticky;
  top: 88px;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.learn-local-nav-inner {
  display: flex;
  gap: 28px;
  padding-block: 14px;
}

.learn-local-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted-brand);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.learn-local-nav a:hover,
.learn-local-nav a:focus-visible {
  color: var(--brand);
}

/* ===== Quick value strip ===== */
.value-strip {
  padding-block: 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.value-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.value-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--canvas);
  border-radius: var(--radius-md);
}

.value-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  color: var(--brand);
  background: var(--surface);
  border-radius: 11px;
  font-size: 15px;
}

.value-pill b {
  display: block;
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 700;
}

.value-pill p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Shared section rhythm ===== */
.learn-section {
  padding-block: 96px;
  background: var(--surface);
}

.learn-section-muted {
  background: var(--canvas);
}

.learn-section .section-heading-right {
  max-width: 660px;
}

.learn-section .section-heading-right .eyebrow {
  margin-bottom: 16px;
}

.learn-section .section-heading-right h2 {
  font-size: 38px;
}

/* ===== Modules ===== */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.module-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  box-shadow: var(--shadow-card);
}

.module-card-featured {
  grid-column: 1 / -1;
  color: var(--surface);
  background: var(--brand);
  border-color: var(--brand);
}

.module-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.module-num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.module-card-featured .module-num {
  color: var(--gold);
}

.module-tag {
  padding: 6px 12px;
  color: var(--muted-brand);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.module-tag-featured {
  color: var(--brand);
  background: var(--surface);
}

.module-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.module-card-featured h3 {
  color: var(--surface);
  font-size: 24px;
}

.module-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.module-card-featured p {
  color: rgba(247, 242, 236, 0.84);
}

.module-link {
  align-self: flex-start;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.module-card-featured .module-link {
  color: var(--surface);
}

.module-card:hover .module-link {
  color: var(--accent);
}

.module-card-featured:hover .module-link {
  color: var(--gold);
}

.section-more-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--soft-line);
}

.section-more-cta span {
  color: var(--muted-brand);
  font-size: 14px;
}

.section-more-cta span a {
  color: var(--accent);
  font-weight: 700;
}

/* ===== Module journey (5-stage staggered sequence) ===== */
.module-journey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "s1 s2"
    "s3 s3"
    "s4 s5";
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-journey-step:nth-child(1) { grid-area: s1; }
.module-journey-step:nth-child(2) { grid-area: s2; }
.module-journey-step:nth-child(3) { grid-area: s3; }
.module-journey-step:nth-child(4) { grid-area: s4; }
.module-journey-step:nth-child(5) { grid-area: s5; }

.module-journey-step {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.module-journey-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--surface);
  background: var(--brand);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.module-journey-step b {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 15.5px;
  font-weight: 700;
}

.module-journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.module-journey-step-featured {
  display: flex;
  flex-direction: column;
  padding: 32px;
  color: var(--surface);
  background: var(--brand);
  border-color: transparent;
}

.module-journey-step-featured .module-journey-num {
  color: var(--brand);
  background: var(--surface);
}

.module-journey-step-featured b {
  color: var(--surface);
  font-size: 18px;
}

.module-journey-step-featured p {
  color: rgba(247, 242, 236, 0.78);
}

.module-journey-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.module-journey-preview small {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
}

.module-journey-preview span {
  color: var(--surface);
  font-size: 13.5px;
}

/* ===== Cases ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.case-card-featured {
  background: var(--canvas);
  border-color: var(--brand);
}

.case-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 12px;
  color: var(--gold);
  background: rgba(212, 134, 11, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.case-card-featured .case-label {
  color: var(--surface);
  background: var(--brand);
}

/* الشارة تبدأ من جهة البداية، فالأيقونة تأخذ الركن المقابل وإلا ركبت عليها في كل لغة. */
.case-icon {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
}

.case-card h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.case-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.case-link {
  align-self: flex-start;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.case-module-tag {
  align-self: flex-start;
  padding: 6px 12px;
  color: var(--brand);
  background: var(--canvas);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.case-card-featured .case-module-tag {
  background: var(--surface);
}

.cases-note {
  margin: 0;
  color: var(--muted-brand);
  font-size: 14px;
}

.cases-note a {
  color: var(--accent);
  font-weight: 700;
}

/* ===== Guide ===== */
.guide-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.guide-copy h2 {
  margin: 16px 0 16px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
}

.guide-copy > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.guide-text-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-preview {
  padding: 28px;
  background: var(--brand);
  border-radius: var(--radius-lg);
}

.guide-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.guide-preview-head span {
  color: rgba(247, 242, 236, 0.75);
  font-size: 13px;
}

.guide-preview-head b {
  padding: 4px 12px;
  color: var(--brand);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
}

.guide-checklist li i {
  width: 22px;
  height: 22px;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  color: var(--brand);
  background: var(--gold);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}

/* ===== Learn → Practice bridge ===== */
.learn-bridge {
  padding: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.learn-bridge-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.learn-bridge-copy {
  flex: 1 1 260px;
}

.learn-bridge-copy .eyebrow {
  margin-bottom: 10px;
}

.learn-bridge-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.learn-bridge-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 2 1 480px;
}

.learn-bridge-example {
  flex: 1 1 200px;
  padding: 14px 16px;
  background: var(--canvas);
  border-radius: var(--radius-md);
}

.learn-bridge-example span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.learn-bridge-example b {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
  .value-strip-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991.98px) {
  .learn-hero {
    padding-block: 48px;
  }

  .learn-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .learn-hero-copy h1 {
    font-size: 46px;
  }

  .learn-hero-sub {
    max-width: 100%;
  }

  .learn-hero-visual::before {
    width: 100px;
    height: 100px;
  }

  .learn-preview {
    width: 280px;
  }

  .value-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .learn-section {
    padding-block: 64px;
  }

  .learn-section .section-heading-right h2 {
    font-size: 30px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card-featured {
    grid-column: auto;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .guide-preview {
    order: -1;
  }

  .module-journey {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .module-journey-step {
    padding-right: 0;
    padding-inline-start: 44px;
  }

  .module-journey-step:not(:last-child)::after {
    top: 0;
    inset-inline-start: auto;
    inset-inline-end: 15px;
    width: 2px;
    height: 100%;
  }

  .module-journey-num {
    position: absolute;
    top: 0;
    inset-inline-end: -44px;
  }

  .learn-bridge-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 575.98px) {
  .learn-hero-copy h1 {
    font-size: 36px;
  }

  .learn-hero-facts {
    max-width: 100%;
    font-size: 13px;
  }

  .learn-hero-visual::before {
    display: none;
  }

  .learn-hero-figure {
    height: 320px;
  }

  .learn-preview {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    box-shadow: none;
  }

  .learn-hero-caption {
    max-width: 200px;
    font-size: 11.5px;
  }

  .learning-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .value-strip-grid {
    grid-template-columns: 1fr;
  }

  .guide-copy h2 {
    font-size: 26px;
  }
}
