/* ==========================================================================
   עמוד קורס בודד (single-course.php) - לפי עיצוב "קורס נבחר" בפיגמה
   ========================================================================== */

.single-course-wrap {
  background: var(--page-bg);
}

.course-section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 40px;
  color: var(--brand-dark);
  margin: 0 0 32px;
}

.course-section-title--center {
  text-align: center;
}

/* ---------- HERO ---------- */
.course-hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-darker);
}

.course-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.course-hero-content {
  position: relative;
  left: 26%;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 80px 24px;
  color: var(--page-bg);
}

.course-hero-tag {
  font-family: var(--font-title);
  font-size: 28px;
  margin: 0 0 12px;
}

.course-hero-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 80px;
  margin: 0 0 20px;
  line-height: 1.1;
}

.course-hero-description {
  font-size: 24px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.course-hero-secure {
  font-size: 16px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.course-hero-register {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.course-hero-price {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.course-register-button {
  display: inline-block;
  padding: 18px 60px;
  background: var(--page-bg);
  color: var(--brand-dark);
  border-radius: 13px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 28px;
  transition: opacity 0.2s ease;
}

.course-register-button:hover {
  opacity: 0.85;
}

/* ---------- CURRICULUM ---------- */
.course-curriculum {
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 6%;
}

.course-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.course-curriculum-card {
  border: 2px solid #c18e26;
  border-radius: 13px;
  padding: 32px 20px;
  text-align: center;
}

.course-curriculum-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
}

.course-curriculum-caption {
  font-size: 18px;
  color: #333;
  margin: 0 0 14px;
  min-height: 40px;
}

.course-curriculum-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 26px;
  color: #000;
  margin: 0;
}

/* ---------- ABOUT (עם תמונת רקע אווירתית) ---------- */
.course-about {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--brand-darker);
}

.course-about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.course-about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(28, 23, 18, 0.94) 30%, rgba(28, 23, 18, 0.35) 65%, rgba(28, 23, 18, 0) 100%);
}

.course-about-content {
  position: relative;
  left: 78%;
  z-index: 1;
  max-width: 620px;
  margin-inline-start: auto;
  padding: 80px 6%;
  color: var(--page-bg);
}

.course-about-content .course-section-title {
  color: var(--page-bg);
  text-align: right;
}

.course-about-text {
  font-size: 20px;
  line-height: 1.8;
  color: rgba(252, 247, 237, 0.9);
}

/* ---------- TESTIMONIALS SLIDER (ללא תמונת רקע) ---------- */
.course-testimonials {
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 6%;
  text-align: center;
}

.course-testimonials-slider {
  position: relative;
  padding: 0 68px;
}

.course-testimonials-viewport {
  overflow: hidden;
}

.course-testimonials-track {
  display: flex;
  direction: ltr;
  transition: transform 0.5s ease;
}

.course-testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  direction: rtl;
  padding: 0 8px;
}

.course-testimonial-quote {
  font-family: var(--font-title);
  font-size: 30px;
  color: var(--brand-dark);
  line-height: 1.5;
  margin: 0 0 20px;
}

.course-testimonial-author {
  font-size: 20px;
  color: var(--gold-accent);
  margin: 0;
}

.course-testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.course-testimonials-arrow:hover {
  opacity: 0.85;
}

.course-testimonials-arrow img {
  width: 12px;
  height: 7px;
}

.course-testimonials-arrow--prev {
  right: 0;
}

.course-testimonials-arrow--prev img {
  transform: rotate(-90deg);
}

.course-testimonials-arrow--next {
  left: 0;
}

.course-testimonials-arrow--next img {
  transform: rotate(-270deg);
}

.course-testimonials-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.course-testimonials-dot {
  width: 26px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: var(--gold-accent);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.course-testimonials-dot:hover {
  opacity: 0.6;
}

.course-testimonials-dot.is-active {
  width: 40px;
  opacity: 1;
}

/* ---------- DETAILS ---------- */
.course-about-details {
  position: relative;
  background: var(--brand-dark);
  padding: 80px 6% 100px;
  overflow: hidden;
}

.course-details {
  max-width: 1600px;
  margin: 0 auto;
}

.course-details .course-section-title {
  color: var(--page-bg);
}

.course-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 48px;
}

.course-detail-card {
  position: relative;
  border: 1px solid #d5a431;
  border-radius: 13px;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.course-detail-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.course-detail-card .course-detail-divider {
  display: block;
  width: stretch;
  height: 1px;
  margin: 0 auto 16px;
  background: #d5a431;
}

.course-detail-card h3 {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--page-bg);
  margin: 0 0 10px;
}

.course-detail-card p {
  font-size: 20px;
  color: var(--page-bg);
  margin: 0;
}

.course-register-cta {
  text-align: center;
}

@media (max-width: 640px) {
  .course-hero-title {
    font-size: 48px;
  }

  .course-about {
    min-height: auto;
  }

  .course-about::after {
    background: rgba(28, 23, 18, 0.82);
  }

  .course-about-content {
    max-width: none;
    margin-inline-start: 0;
    text-align: center;
    padding: 48px 6%;
  }

  .course-about-content .course-section-title {
    text-align: center;
  }

  .course-testimonial-quote {
    font-size: 24px;
  }

  .course-testimonials-slider {
    padding: 0 46px;
  }

  .course-testimonials-arrow {
    width: 36px;
    height: 36px;
  }
}
