/* ═══════════════════════════════
   COURSE HERO
   Desktop: white bg, title left, photo right
   Tablet/Mobile: stacked
═══════════════════════════════ */
.course-hero {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 40px 20px 0;
}

/* Discount badge */
.course-hero-badge {
  display: inline-block;
  border: 1px solid #cccccc;
  padding: 8px 14px;
  margin-bottom: 24px;
  align-self: flex-start;
}

.course-hero-badge-label {
  font-size: 10px;
  font-weight: 400;
  color: #555555;
  display: block;
  margin-bottom: 3px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.course-hero-badge-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #cc2200;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Title */
.course-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 13vw, 140px);
  line-height: 0.88;
  color: #111111;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

/* Subtitle */
.course-hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(16px, 4vw, 28px);
  font-weight: 400;
  color: #111111;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* CTA buttons */
.course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn-course-book {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 16px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #111111;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-course-book:hover {
  background: transparent;
  color: #111111;
}

.btn-course-cabinet {
  display: inline-block;
  background: transparent;
  color: #111111;
  padding: 16px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #111111;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-course-cabinet:hover {
  background: #111111;
  color: #ffffff;
}

/* Photo */
.course-hero-photo {
  width: 100%;
  aspect-ratio: 1;
  background-image: url('/images/layered/SalonHaircutsPhoto.png');
  background-size: cover;
  background-position: top center;
  display: block;
}

/* ── TABLET ── */
@media (min-width: 768px) {
  .course-hero {
    padding: 48px 40px 0;
  }
  .course-hero-photo {
    aspect-ratio: 16/9;
  }
}

/* ── 768px (iPad Mini portrait) ── */
@media (min-width: 768px) and (max-width: 799px) {
  .course-hero {
    padding: 40px 32px 0;
  }
  .course-hero-photo {
    aspect-ratio: 16/9;
    max-height: 400px;
  }
}

/* ── Mid ── */
@media (min-width: 769px) and (max-width: 1199px) {
  .course-hero {
    padding: 56px 60px 0;
  }
  .course-hero-title { font-size: 80px; }
  .course-hero-subtitle { font-size: 24px; }
}

/* ── 800–900 ── */
@media (min-width: 800px) and (max-width: 900px) {
  .course-hero {
    padding: 48px 48px 0;
  }
  .course-hero-title { font-size: 72px; }
  .course-hero-subtitle { font-size: 22px; }
  .course-hero-photo { max-height: 420px; }
}

/* ── 1000–1199 (iPad landscape) ── */
@media (min-width: 1000px) and (max-width: 1199px) {
  .course-hero {
    padding: 56px 72px 0;
  }
  .course-hero-title { font-size: 100px; }
  .course-hero-subtitle { font-size: 26px; }
  .course-hero-photo { max-height: 520px; }
}

/* ── DESKTOP ── */
@media (min-width: 1200px) {
  .course-hero {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    min-height: 560px;
  }
  .course-hero-content {
    flex: 1;
    padding: 60px 60px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  .course-hero-badge { margin-bottom: 20px; }
  .course-hero-photo {
    width: 520px;
    flex-shrink: 0;
    aspect-ratio: auto;
    min-height: 100%;
    background-position: top center;
    /* soft fade from white content into photo */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
  }
}

/* ── Small desktop ── */
@media (min-width: 1200px) and (max-width: 1399px) {
  .course-hero-content {
    padding: 48px 48px;
  }
  .course-hero-photo {
    width: 440px;
  }
}
