/* ==========================================================================
   PAGE / course — COURSE DETAIL / SALES PAGE (יסודות הוויסות בבית)
   Figma: "Course"
   No literal Figma spec dump was provided for this page — values below
   are matched by eye from the screenshot. Literal px for spacing/sizing,
   tokens for color/font, per project convention. No real photography
   exists for the instructor headshot/video preview — placeholders used.
   Reuses components/_review-card.css, components/_content-card.css,
   components/_faq-accordion.css is not used here (no FAQ on this page).
   ========================================================================== */

/* ==========================================================================
   Hero — rebuilt (2026) from the real Figma CSS export (breadcrumb,
   title, rating row, meta row, price row, actions, circle photo w/
   decorative flowers + play button). Same visual language as
   Category.html's hero (identical circle/play-button styling, same
   60px/400 title treatment) — see the note at the bottom of this file
   about consolidating the two into one shared component later.
   ========================================================================== */
.course-hero {
  width: 100%;
  max-width: 1856px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 60px;
  box-sizing: border-box;
  direction: rtl;
  justify-content: center;
}

.course-hero-body {
  flex: 1 1 640px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  text-align: right;
}

.course-breadcrumb {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: #000080;
  margin: 0;
}

.course-hero-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 60px;
  color: #000080;
  margin: 0;
}

.course-hero-subtitle {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #000080;
  margin: 0;
  max-width: 530px;
}

/* --- Rating row (bordered strip: stars + verified-review count) --- */
.course-hero-rating {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(24, 59, 81, 0.3);
  box-sizing: border-box;
}

.course-hero-rating .rating-stars {
  display: inline-flex;
  gap: 2px;
  color: #C22DAF;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2px;
}

.rating-summary-count {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  color: #183B51;
  white-space: nowrap;
}

/* --- Meta row (certificate / lessons / hours) --- */
.course-hero-meta-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.course-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #000080;
  white-space: nowrap;
}

.course-hero-meta-item svg {
  flex-shrink: 0;
  color: #000080;
}

/* --- Price row --- */
.course-hero-price-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  box-sizing: border-box;
}

.course-price-current {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 32px;
  color: #000080;
}

.course-price-old {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 20px;
  color: #000080;
  text-decoration: line-through;
}

.course-price-discount {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  color: #000080;
}

/* --- Actions row --- */
.course-hero-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 5px;
  box-sizing: border-box;
}

.course-add-to-cart-btn {
  flex: 1 1 416px;
  max-width: 416px;
  height: 50px;
  box-sizing: border-box;
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  background: #CB6DA7;
  color: #FFFFFF;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease;
}

.course-add-to-cart-btn:hover {
  background: #c22daf;
}

.course-favorite-link {
  height: 50px;
  box-sizing: border-box;
  border: 1px solid rgba(24, 59, 81, 0.3);
  border-radius: 9999px;
  padding: 12px 32px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #183B51;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.course-favorite-link svg {
  color: #C22DAF;
  flex-shrink: 0;
}

.course-favorite-link:hover {
  background: rgba(24, 59, 81, 0.05);
}

/* --------------------------------------------------------------------------
   Media column: circle photo + decorative flowers + play button.
   Identical styling to Category.html's .cat-hero__circle /
   .cat-hero__play* (same 576px circle, same dashed-pink-to-solid
   border swap, same pink play button + shadow, same navy caption) —
   see the note below about sharing this as one component.
   -------------------------------------------------------------------------- */
.course-hero-media {
  position: relative;
  width: 576px;
  height: 576px;
  flex: 0 0 auto;
}

.course-hero-flower {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.course-hero-flower--big {
  width: 300px;
  height: auto;
  left: -20px;
  top: 0;
  transform: rotate(52.2deg);
  display: none;
}

.course-hero-flower--small-1 {
  width: 90px;
  height: auto;
  left: 500px;
  top: 340px;
  transform: rotate(33.6deg);
  z-index: 2;
  display: none;
}

.course-hero-flower--small-2 {
  width: 90px;
  height: auto;
  left: 425px;
  top: 430px;
  transform: rotate(-124.5deg);
  z-index: 2;
  display: none;
}

.course-hero-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 576px;
  height: 576px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #E89DC4;
  box-shadow: 0px 18px 30px -10px rgba(86, 41, 80, 0.66);
  z-index: 1;
}

.course-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.course-hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-hero-play {
  position: absolute;
  left: -20px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 146px;
  z-index: 2;
}

.course-hero-play-btn {
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  background: #CB6DA7;
  box-shadow: 0px 18px 30px -10px rgba(194, 45, 175, 0.667);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.course-hero-play-btn:hover {
  transform: scale(1.08);
  background-color: #c22daf;
}

.course-hero-media-caption {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: #000080;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .course-hero {
    flex-wrap: wrap;
  }

  .course-hero-media {
    width: 420px;
    height: 524px;
  }

  .course-hero-photo {
    width: 420px;
    height: 420px;
  }

  .course-hero-play {
    left: 20px;
    bottom: 20px;
  }

  .course-hero-flower--big,
  .course-hero-flower--small-1,
  .course-hero-flower--small-2 {
    display: none;
  }
}

@media (max-width: 1023px) {
  .course-hero {
    flex-direction: column-reverse;
    padding: 32px 24px 0;
    gap: 32px;
    text-align: center;
  }

  .course-hero-body {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .course-hero-rating,
  .course-hero-meta-row,
  .course-hero-price-row,
  .course-hero-actions {
    justify-content: center;
  }

  .course-hero-media {
    margin: 0 auto;
  }
}

@media (max-width: 599px) {
  .course-hero-title {
    font-size: 34px;
    line-height: 42px;
  }

  .course-hero-subtitle {
    font-size: 19px;
    line-height: 27px;
    max-width: 100%;
  }

  .course-hero-media {
    width: 280px;
    height: 350px;
  }

  .course-hero-photo {
    width: 280px;
    height: 280px;
  }

  .course-hero-play {
    left: 0;
    bottom: 0;
  }

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

  .course-add-to-cart-btn,
  .course-favorite-link {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* NOTE: this circle/flowers/play-button pattern is now byte-for-byte
   identical in spirit to Category.html's .cat-hero__circle family
   (same 576px circle, same #E89DC4 border, same pink play button +
   shadow, same navy 22px/28px caption). Worth extracting into one
   shared components/_circle-photo-hero.css (a file that already exists
   in the project but isn't used by either page yet) once both pages'
   hero sections are confirmed final — right now each still has its own
   copy so this page can be built/reviewed independently, section by
   section, without touching Category.html. */

/* --- Why this course --- */
.course-section {
  max-width: var(--container-inner-max);
  margin: 0 auto 40px;
}

/* ==========================================================================
   "Why this course" — rebuilt (2026) from the real Figma CSS export
   ("Section - How it Works, Editorial Style"): a bordered/rounded
   outer card containing a centered heading + 3 equal feature cards.
   Figma positioned the 3 cards with absolute math (each ~435px, 32px
   gaps) inside a 1370px row — a plain flex row with gap:32px and
   flex:1 children reproduces that exactly without the arithmetic.
   ========================================================================== */
.course-why-section {
  width: 100%;
  max-width: 1468px;
  margin: 0 auto 40px;
  box-sizing: border-box;
  padding: 48px 48px;
  border: 1px solid #F1F5F9;
  border-radius: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.course-section-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  color: #000080;
  text-align: center;
  margin: 0;
}

.course-features-row {
  width: 100%;
  max-width: 1370px;
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.course-feature-card {
  flex: 1 1 0;
  box-sizing: border-box;
  padding: 40px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: right;
  box-shadow: 0px 40px 60px -10px rgba(13, 28, 47, 0.05);
}

/* Card order (right to left, matching the RTL reading order in the
   reference): "כיבוי שריפות" (mint) → "שפה סימבולית" (lavender) →
   "כלים פרקטיים" (light blue tint over white). */
.course-feature-card--mint {
  background: #E0EBE2;
}

.course-feature-card--lavender {
  background: #C4C5D9;
}

.course-feature-card--blue-tint {
  background: rgba(161, 206, 224, 0.2);
}

.course-feature-icon {
  color: #183B51;
  /* width: 32px; */
  /* height: 32px; */
}

.course-feature-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #000080;
  margin: 0;
}

.course-feature-desc {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 26px;
  color: #000080;
  margin: 0;
}

@media (max-width: 1023px) {
  .course-features-row {
    flex-direction: column;
  }
}

@media (max-width: 599px) {
  .course-why-section {
    padding: 32px 24px;
    border-radius: 24px;
  }
}

/* ==========================================================================
   "Syllabus Section" — rebuilt (2026) from the real Figma CSS export:
   a light-grey rounded card holding two columns — the lesson accordion
   (left, physically) and a summary card (right) — matching the
   two-column math in the spec (773.67px + 64px gap + 534.33px = 1372,
   +48px padding each side = 1468 total).
   ========================================================================== */
.course-curriculum-section {
  width: 100%;
  max-width: 1468px;
  margin: 0 auto 40px;
  box-sizing: border-box;
  background: #F5F5F5;
  border-radius: 48px;
  padding: 96px 48px;
  display: flex;
  flex-direction: row-reverse;
  direction: rtl;
  align-items: flex-start;
  gap: 64px;
}

.course-curriculum-col {
  flex: 1 1 773px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.curriculum-module {
  background: #FFFFFF;
  border: 1px solid rgba(196, 197, 217, 0.15);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.curriculum-module > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  list-style: none;
}

.curriculum-module > summary::-webkit-details-marker { display: none; }

.curriculum-module-title-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.curriculum-module-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 128, 0.18);
  color: #000080;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* Alternating per-module accent (module 1 = navy tint, module 2 = mint,
   module 3+ = pink tint), matching the badge colors in the spec. */
.curriculum-module:nth-of-type(2) .curriculum-module-badge {
  background: #BEE1DA;
  color: #4F8278;
}

.curriculum-module:nth-of-type(3) .curriculum-module-badge {
  background: rgba(247, 192, 255, 0.55);
  color: #C22DAF;
}

.curriculum-module-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  color: #000080;
}

.curriculum-module-meta {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
  color: #183B51;
  margin-top: 2px;
}

.curriculum-chevron {
  color: #000080;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.curriculum-module[open] .curriculum-chevron {
  transform: rotate(180deg);
}

.curriculum-lessons {
  padding: 0 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.curriculum-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-right: 2px solid rgba(0, 0, 128, 0.18);
  padding-right: 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 24px;
  color: #183B51;
}

.curriculum-lesson-icon {
  color: #000080;
  flex-shrink: 0;
}

/* "Extra Sections Placeholder" — Figma's own layer name; a dashed,
   not-yet-built module (opacity 0.6, dashed #5E2E8A border) rather than
   a real accordion item. */
.curriculum-summary-link {
  box-sizing: border-box;
  background: #FFFFFF;
  opacity: 0.6;
  border: 1px dashed #5E2E8A;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.curriculum-summary-link-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  color: #000080;
}

.curriculum-summary-link-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(247, 192, 255, 0.55);
  color: #C22DAF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* --- Right summary card --- */
.course-summary-card {
  flex: 1 1 534px;
  max-width: 534px;
  box-sizing: border-box;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.course-summary-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 45px;
  color: #000080;
  margin: 0;
  max-width: 300px;
}

.course-summary-desc {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  color: #000080;
  margin: 0;
}

.course-summary-stats {
  width: 100%;
  box-sizing: border-box;
  background: #F6DFEC;
  border-radius: 16px;
  padding: 32px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.course-summary-stat strong {
  display: block;
  font-weight: 600;
  font-size: 24px;
}

.course-summary-stat {
  flex: 1 1 auto;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 1.4px;
  color: #000080;
  text-align: start;
}

.course-summary-access {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.course-summary-access-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #183B51;
}

.course-summary-access-row svg {
  color: #C22DAF;
  flex-shrink: 0;
}

.course-summary-access-desc {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #183B51;
  margin: 0;
}

@media (max-width: 1023px) {
  .course-curriculum-section {
    flex-direction: column;
    padding: 48px 24px;
    gap: 32px;
  }

  .course-summary-card {
    max-width: 100%;
  }
  .course-curriculum-col{
    flex:1;
  }
}

@media (max-width: 599px) {
  .course-curriculum-section {
    border-radius: 24px;
    padding: 32px 16px;
    max-width: calc(100% - 40px);
  }

  .curriculum-lessons {
    padding: 0 16px 20px;
  }

  .course-summary-stats {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Instructor — rebuilt (2026) from the real Figma CSS export: a
   polaroid-style photo card + a right-aligned content column (eyebrow,
   name, role, large pull-quote). The export's "לסיפורים מלאים" button
   is display:none in Figma itself — left out here too, same treatment
   as other explicitly-hidden layers on this project.
   ========================================================================== */
.course-instructor-section {
  width: 100%;
  max-width: 1468px;
  margin: 0 auto 40px;
  box-sizing: border-box;
  padding: 80px 48px;
  display: flex;
  flex-direction: row-reverse;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.course-instructor-photo-card {
  flex: 0 0 288px;
  width: 288px;
  box-sizing: border-box;
  /* background: #FFFFFF; */
  border-radius: 20px;
  padding: 21px 14px 24px;
  box-shadow: 0px 28px 50px -20px rgba(0, 0, 128, 0.35), 0px 6px 16px rgba(0, 0, 128, 0.18);
  text-align: center;
}

.course-instructor-photo-placeholder {
  width: 100%;
  height: 324px;
  border-radius: 10px;
  background: rgba(230, 230, 250, 0.4);
  overflow: hidden;
  margin-bottom: 16px;
}

.course-instructor-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-instructor-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 32px;
  color: #000080;
}

.course-instructor-role {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #000080;
  text-transform: uppercase;
}

.course-instructor-body {
  flex: 1 1 640px;
  max-width: 981px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-align: right;
}

.course-instructor-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C22DAF;
  margin: 0;
  margin-bottom: 20px;
}

.course-instructor-fullname {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  color: #000080;
  margin: 0;
}

.course-instructor-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 40px;
  color: #000080;
  margin: 0;
}

.course-instructor-quote {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 54px;
  color: #000080;
  margin: 8px 0 0;
  max-width: 852px;
}

@media (max-width: 1023px) {
  .course-instructor-section {
    flex-direction: column;
    padding: 48px 24px;
    text-align: center;
  }

  .course-instructor-body {
    align-items: center;
    text-align: center;
    max-width: 100%;
    flex: 1;
  }
}

@media (max-width: 599px) {
  .course-instructor-quote {
    font-size: 26px;
    line-height: 36px;
  }

  .course-instructor-fullname {
    font-size: 26px;
    line-height: 34px;
  }

  .course-instructor-title {
    font-size: 19px;
    line-height: 28px;
  }
}

/* ==========================================================================
   Reviews — MOVED (2026) to components/_review-cards.css (Tool.html
   shows the exact same reviews). Link that file in this page's
   <head> instead of relying on it being bundled here.
   ========================================================================== */


/* ==========================================================================
   "Related tools / courses" swiper nav arrows — MOVED (2026) to
   components/_swiper-nav-arrows.css (Tool.html's tools row needs the
   exact same always-on-swiper + overlay-arrows treatment). Link that
   file in this page's <head> instead of relying on it being bundled
   here.
   ========================================================================== */
