/* ============================================
   הנסיך הקטן - אתר לימודי
   עיצוב: ספר אקוורל - נייר עתיק, קווי עט ומשיחות פסטל
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Suez+One&family=Frank+Ruhl+Libre:wght@500;700;900&family=Assistant:wght@300;400;600;700&display=swap');

:root {
  --paper: #f6ecd9;
  --paper-deep: #ecdcbc;
  --paper-card: #fdf8ec;
  --ink: #4a3826;
  --ink-soft: #6b5842;
  --gold: #d4a24e;
  --gold-deep: #b8842f;
  --gold-light: #e8b84f;
  --wash-blue: #a9cbd6;
  --wash-green: #b3cf9e;
  --wash-pink: #ddaaa4;
  --wash-brown: #c9a06a;
  --wash-grey: #cdc3ae;
  --navy: #3d5a75;

  --font-heading: 'Suez One', 'Frank Ruhl Libre', serif;
  --font-body: 'Assistant', 'Segoe UI', sans-serif;

  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 6px 24px rgba(74, 56, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background-image: radial-gradient(ellipse at 20% 0%, #fbf3e2 0%, var(--paper) 45%, var(--paper-deep) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  line-height: 1.8;
  font-size: 1.02rem;
}

/* מרקם נייר עדין */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* כוכבים/נצנצים מפוזרים עדינים */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 15%, var(--gold) 0%, transparent 60%),
    radial-gradient(1.6px 1.6px at 82% 10%, var(--gold) 0%, transparent 60%),
    radial-gradient(1.6px 1.6px at 92% 60%, var(--gold) 0%, transparent 60%),
    radial-gradient(1.6px 1.6px at 6% 70%, var(--gold) 0%, transparent 60%),
    radial-gradient(1.6px 1.6px at 45% 92%, var(--gold) 0%, transparent 60%),
    radial-gradient(1.6px 1.6px at 70% 40%, var(--gold) 0%, transparent 60%);
  opacity: 0.5;
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.65; }
  100% { opacity: 0.35; }
}

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

/* ---------- ניווט עליון ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(253, 248, 236, 0.92);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 6px 20px rgba(74, 56, 38, 0.08);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  padding: 0.18rem 1.5rem;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 62px;
}

.nav__logo img {
  display: block;
  height: 62px;
  width: auto;
}

.nav__logo-star {
  color: var(--gold);
  font-size: 1rem;
}

.nav__links {
  display: flex;
  direction: rtl;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  opacity: 1;
  color: var(--gold-deep);
}

.nav__chapter-select {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid rgba(74, 56, 38, 0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  cursor: pointer;
  max-width: 220px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav__toggle {
    display: block;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: rgba(246, 236, 217, 0.98);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(74, 56, 38, 0.15);
    display: none;
  }
  .nav__links.open {
    display: flex;
  }
}

/* ---------- מיכל כללי ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ---------- הירו (עמוד הבית) - בהשראת bg2.png ---------- */
.hero {
  position: relative;
  overflow: visible;
  text-align: center;
  z-index: 1;
  padding: 3.5rem 1.5rem 8rem;
  height: clamp(470px, 41vw, 650px);
  box-sizing: border-box;
  background-color: var(--paper-card);
  background-image: url("../images/bg2.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.chapter-banner {
  height: auto !important;
  min-height: clamp(470px, 41vw, 650px);
  padding-bottom: 3.2rem;
  background-image: url("../images/bg2.png?v=3");
}

.chapter-banner__divider {
  margin: 0 auto 0.9rem;
}

.chapter-banner + main {
  position: relative;
  z-index: 3;
  margin-top: 2.2rem;
}

body.page-cream {
  background-image: none;
  background-color: var(--paper-card);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 930px;
  margin: 0 auto;
}

.hero__copy {
  width: 100%;
}

.hero__prince {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 13%;
  width: 455px;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero__prince {
    left: 8%;
  }
}

@media (max-width: 900px) {
  .hero__prince {
    width: 264px;
    left: 3%;
  }
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 1.5rem 1.5rem 2.4rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__prince {
    position: static;
    width: 228px;
    margin: 0.5rem auto 0;
    transform: none;
    top: auto;
  }
}

/* --- אורנמנט קישוט (קו-כוכב-קו) --- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 auto 1.2rem;
}

.ornament__line {
  width: 44px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.ornament__star {
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
}

.ornament__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

/* כותרת הירו קסומה */
.hero-title {
  font-family: 'Frank Ruhl Libre', var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0 0 0.3rem;
  color: var(--gold-deep);
  text-shadow: 0 3px 0 rgba(255,255,255,0.5), 0 8px 24px rgba(184, 132, 47, 0.35);
  line-height: 1.1;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.56rem, 3.6vw, 2.16rem);
  color: var(--navy);
  font-weight: 400;
  margin: 0.4rem 0 1.6rem;
  letter-spacing: 0.01em;
}

.hero__intro {
  max-width: 85%;
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
  text-align: right;
}

.hero__intro + .hero__intro {
  margin-top: 0.8rem;
}

@media (max-width: 640px) {
  .hero__intro {
    max-width: 100%;
    text-align: center;
  }
}

/* ---------- כותרות מקטע - הרגשה של כתב יד ---------- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin: 0 0 2rem;
  color: var(--gold-deep);
  position: relative;
}

/* ---------- מקטע הפרקים ---------- */
.chapters-section {
  position: relative;
  z-index: 2;
  background: var(--paper-card);
  padding: 3.5rem 0 2rem;
}

/* ---------- רשת פרקים ---------- */
.chapters-section .container {
  margin-top: max(-215px, clamp(-320px, calc(277px - 36.4vw), -138px));
}

@media (max-width: 900px) {
  .chapters-section .container {
    margin-top: -138px;
  }
}

@media (max-width: 640px) {
  .chapters-section .container {
    margin-top: 0;
  }
}

.chapters-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

@media (max-width: 900px) {
  .chapters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .chapters-grid {
    grid-template-columns: 1fr;
  }
}

.chapter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  padding: 1.5rem 1rem 1.3rem;
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(74, 56, 38, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(74, 56, 38, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chapter-card.active:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(74, 56, 38, 0.14);
}

.chapter-card__num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.5rem;
}

.chapter-card__icon {
  width: 161px;
  height: 161px;
  max-width: 50vw;
  max-height: 50vw;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  box-shadow: 0 0 0 4px var(--paper-card), 0 0 0 6px rgba(212, 162, 78, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chapter-card:hover .chapter-card__icon {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--paper-card), 0 0 20px 8px rgba(255, 255, 255, 0.85), 0 0 0 6px rgba(212, 162, 78, 0.3);
}

.chapter-card:hover .chapter-card__title {
  color: var(--gold-deep);
}

.chapter-card__dot {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.chapter-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  display: block;
  transition: color 0.25s ease;
}

.chapter-card.disabled {
  cursor: default;
  background: rgba(253, 248, 236, 0.5);
}

.chapter-card__badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(212, 162, 78, 0.15);
  color: var(--gold-deep);
  border: 1px solid rgba(74, 56, 38, 0.15);
}

/* ---------- דף פרק ---------- */
.content-card {
  background: var(--paper-card);
  border: 1.5px solid rgba(74, 56, 38, 0.16);
  border-radius: var(--radius-lg);
  padding: 2rem clamp(1.3rem, 4vw, 3rem);
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-soft);
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
  position: relative;
}

.content-card h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--gold-deep);
  font-size: 1.5rem;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.content-card p {
  color: var(--ink-soft);
}

.inline-illustration {
  float: left;
  width: 130px;
  margin: 0.2rem 1.4rem 1rem 0;
  shape-outside: margin-box;
}

.chapter-banner__title {
  margin-bottom: 1.2rem;
  font-size: clamp(1.88rem, 4.2vw, 3.24rem);
}

@media (min-width: 900px) {
  .chapter-banner__title {
    white-space: nowrap;
  }
}

img.chapter-banner__illustration {
  display: block;
  width: auto;
  max-width: 92%;
  height: clamp(120px, 16vw, 180px);
  object-fit: contain;
  margin: 0 auto 1.2rem;
}

.chapter-banner__summary-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: right;
}

.chapter-banner__summary-text p {
  color: var(--ink-soft);
  font-size: 1.127rem;
  margin: 0 0 0.8rem;
}

.chapter-banner__summary-text p:last-child {
  margin-bottom: 0;
}

.about-hero__illustration {
  height: clamp(240px, 32vw, 360px) !important;
  margin-bottom: 0.7rem;
}

.page-cream .chapter-banner + main {
  margin-top: 1.1rem;
}

@media (max-width: 560px) {
  .chapter-banner {
    min-height: 570px;
  }

  .about-hero__illustration {
    height: 260px !important;
  }

  .page-cream .chapter-banner + main {
    margin-top: 0.8rem;
  }

  img.chapter-banner__illustration {
    width: auto;
    max-width: 78%;
    height: 130px;
    margin-bottom: 1rem;
  }

  .chapter-banner__summary-text p {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .chapter-banner + main {
    margin-top: 2.6rem;
  }

  .inline-illustration {
    float: none;
    width: 110px;
    margin: 0 auto 1rem;
  }
}

.quote-block {
  border-inline-start: 3px solid var(--gold);
  padding: 0.7rem 1.3rem;
  margin: 1.3rem 0;
  color: var(--gold-deep);
  background: rgba(212, 162, 78, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
  position: relative;
}

.discussion-box {
  background: rgba(169, 203, 214, 0.15);
  border: 1.5px dashed rgba(74, 56, 38, 0.25);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin-top: 1.2rem;
}

.discussion-box p {
  margin: 0.4rem 0;
}

.discussion-box strong {
  color: var(--gold-deep);
}

/* ---------- פעילויות ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.activities-stack {
  display: flex;
  flex-direction: column;
  gap: calc(1.3rem + 0.5cm);
}

.activity-card__file {
  margin-top: 1cm;
  margin-bottom: 1cm;
  padding-top: 1cm;
  border-top: 1px dashed rgba(74, 56, 38, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.activity-card__video-wrap {
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.activity-card__file-thumb {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(74, 56, 38, 0.18);
  box-shadow: var(--shadow-soft);
}


.activity-card__pdf-viewer {
  width: 100%;
}

.activity-card__pdf-frame {
  width: 100%;
  aspect-ratio: 1.414 / 1;
  min-height: 260px;
  max-height: 420px;
  height: min(62vw, 420px);
  border: 1px solid rgba(74, 56, 38, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

.activity-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(184, 132, 47, 0.16);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(74, 56, 38, 0.08);
}

.activity-card__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  height: auto;
  display: block;
  border: 1px solid rgba(74, 56, 38, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

.activity-card__video-preview-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.activity-card__video-preview-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(74, 56, 38, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 560px) {
  .activity-card__video {
    aspect-ratio: 16 / 9;
  }
}

.activity-card__download:hover {
  color: var(--gold);
}

.activity-card__video-link {
  margin-top: 0.3rem;
}

.activity-card__video-intro {
  margin: 0 0 0.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.activity-card__downloads {
  margin-top: 1.1rem;
  margin-bottom: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(74, 56, 38, 0.2);
}

.activity-card__downloads-title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: var(--gold-deep);
}

.activity-card__downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.activity-card__download-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: inherit;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
}

.activity-card__download-item-thumb {
  width: auto;
  height: auto;
  max-width: min(181px, 4.8cm, 100%);
  max-height: min(181px, 4.8cm);
  border-radius: 10px;
  border: 1px solid rgba(74, 56, 38, 0.18);
  box-shadow: var(--shadow-soft);
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.72);
}

.activity-card__download-item-preview-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.activity-card__download-item-pdf-preview {
  display: block;
  pointer-events: none;
  overflow: hidden;
  align-self: flex-start;
}

.activity-card__download-item-canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: min(181px, 4.8cm, 100%);
  max-height: min(181px, 4.8cm);
}

.activity-card__download-item-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.92rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(184, 132, 47, 0.16);
  color: var(--gold-deep);
  box-shadow: 0 2px 10px rgba(74, 56, 38, 0.08);
}

.activity-card__download-item-button:hover {
  color: var(--gold);
}

.activity-card__external-link-wrap {
  text-align: center;
  margin: 0.45rem 0 0.25rem;
}

.activity-card__external-link {
  display: inline-block;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  font-weight: 700;
  text-decoration: underline;
}

.chapter-summary-card {
  margin-bottom: 1.3rem;
}

.chapter-summary-card p {
  margin: 0;
  line-height: 1.8;
  font-size: 1rem;
}

.activity-card__empty {
  margin: 0;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(74, 56, 38, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 1rem;
}

.activity-card {
  background: var(--paper);
  border: 1.5px solid rgba(74, 56, 38, 0.15);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: transform 0.2s;
}

.activity-card:hover {
  transform: translateY(-3px);
}

.activity-card--brown { background: rgba(236, 220, 193, 0.55); }
.activity-card--blue { background: rgba(169, 203, 214, 0.34); }
.activity-card--pink { background: rgba(244, 214, 221, 0.42); }

.activity-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--paper-card);
  background: var(--gold-deep);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.activity-card h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.42rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.activity-card p {
  font-size: 1.0925rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}

.activity-card p:last-child {
  margin-bottom: 0;
}

.activity-card__rich {
  font-size: 1.0925rem;
  color: var(--ink-soft);
}

.activity-card__rich strong {
  font-weight: 700;
  color: var(--ink);
}

.activity-card__rich span[style*="font-weight:900"] {
  font-weight: 900 !important;
  color: var(--ink) !important;
}

.activity-card__rich p {
  margin: 0 0 0.85rem;
}

.activity-card__rich p:last-child {
  margin-bottom: 0;
}

.activity-card__rich:not(:last-child) p:last-child {
  margin-bottom: 0.78rem;
}

.activity-card__rich p:has(> strong:only-child) {
  margin-top: 1.15rem;
  margin-bottom: 0.18rem;
}

.activity-card__rich p:has(> strong:only-child):first-child {
  margin-top: 0;
}

.activity-card__rich ul {
  margin: 0.45rem 0 0.75rem;
  padding: 0.1rem 0.35rem 0 0;
  list-style: none;
}

.activity-card__rich ol {
  margin: 0.45rem 0 0.75rem;
  padding: 0.1rem 0.35rem 0 0;
  list-style: none;
  counter-reset: rich-ol;
}

.activity-card__rich li {
  display: block;
  position: relative;
  padding-right: 1.45rem;
  padding-inline-start: 1.45rem;
  margin: 0.25rem 0;
}

.activity-card__rich ul li::before {
  content: "•";
  position: absolute;
  right: 0.32rem;
  inset-inline-start: 0.32rem;
}

.activity-card__rich ol li::before {
  counter-increment: rich-ol;
  content: counter(rich-ol) ".";
  position: absolute;
  right: 0.32rem;
  inset-inline-start: 0.32rem;
}

.activity-card__rich ul li::before,
.activity-card__rich ol li::before {
  color: var(--ink-soft);
  font-weight: 700;
}

.activity-card__rich .activity-questions {
  margin-top: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(74, 56, 38, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.activity-card__rich .activity-questions p {
  margin-bottom: 0.35rem;
}

.did-you-know {
  margin: calc(0.02rem + 1cm) 0 0.02rem;
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(212, 162, 78, 0.62);
  border-radius: 14px;
  background: rgba(252, 242, 217, 0.76);
  padding: 0.18rem 0.45rem 0.26rem 0.9rem;
  box-sizing: border-box;
}

.did-you-know__icon {
  width: 4.2cm;
  height: 4.2cm;
  flex: 0 0 20%;
  max-width: 20%;
  object-fit: contain;
  align-self: center;
  transform: translate(8px, -6px);
}

.did-you-know__text {
  direction: rtl;
  text-align: justify;
  flex: 1 1 80%;
  min-width: 0;
  align-self: center;
  margin: 0;
  padding: 0.5cm;
  color: var(--ink-soft);
  line-height: 1.54;
  overflow-wrap: anywhere;
}

.did-you-know + p {
  margin-top: 1cm;
}

.did-you-know__prefix {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.28em;
}

.activity-card__bottom-image {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 1rem auto 1cm;
}

.activity-card__bottom-image--small {
  width: 50%;
  max-width: 252px;
}

.activity-card__bottom-image--clickable {
  cursor: zoom-in;
}

.activity-card__bottom-image--clickable:hover {
  filter: brightness(1.02);
}

.activity-card__source {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--gold-deep);
  opacity: 0.8;
}

.activity-card__separator {
  margin: 1cm;
  border-top: 2px dashed rgba(74, 56, 38, 0.28);
}

.chapter-page img.chapter-banner__illustration {
  height: clamp(144px, 19.2vw, 216px);
}

.chapter-page .activity-card__file-thumb {
  max-width: 456px;
}

.chapter-page .activity-card__bottom-image {
  max-width: 620px;
}

/* ---------- הורדות ---------- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.download-card {
  text-align: center;
  border: 1.5px dashed rgba(74, 56, 38, 0.3);
  border-radius: var(--radius-md);
  padding: 1.6rem 1rem;
  color: var(--ink-soft);
}

.download-card__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.download-card__label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.download-card__status {
  font-size: 0.78rem;
  color: var(--gold-deep);
}

/* ---------- ניווט בין פרקים ---------- */
.chapter-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem auto 4rem;
  max-width: 780px;
  flex-wrap: wrap;
}

.pager-link {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(74, 56, 38, 0.18);
  background: var(--paper-card);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}

.pager-link:not(.disabled):hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.pager-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pager-link.next {
  text-align: end;
  align-items: flex-end;
}

.pager-link__dir {
  font-size: 0.78rem;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}

.pager-link__title {
  font-family: var(--font-heading);
  font-weight: 400;
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  color: var(--paper-card);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(184, 132, 47, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 132, 47, 0.45);
}

/* ---------- אודות ---------- */
.about-page {
  padding: 3.5rem 1.5rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}

.about-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: right;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1.127rem;
  margin: 0 0 0.8rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-page h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 1.8rem;
}

.contact-logo-wrap {
  text-align: center;
  margin-top: 2rem;
}

img.contact-logo {
  width: 200px;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.contact-page .about-text {
  text-align: center;
}

.contact-page .about-text p {
  font-size: 1.2rem;
}

/* ---------- פוטר ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--gold-deep);
}

/* ---------- נצנצי קישוט מפוזרים ---------- */
.sparkle-decor {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0.75;
  pointer-events: none;
  animation: twinkle 5s ease-in-out infinite alternate;
}

.sparkle-decor.s-sm { width: 16px; height: 16px; }
.sparkle-decor.s-lg { width: 36px; height: 36px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--gold-deep);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  opacity: 0.6;
}
