/* ═══════════════════════════════
   COURSES — mobile first
═══════════════════════════════ */
.courses {
  background: #111111;
  display: flex;
  flex-direction: column;
}

.courses-header {
  background: #111111;
  padding: 48px 20px 32px;
  text-align: center;
}

.courses-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 14vw, 100px);
  line-height: 0.9;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.courses-subtext {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ── CARDS LIST ── */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #111111;
  padding: 0 20px;
}

/* ── SINGLE CARD ── */
.course-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.course-photo {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.course-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.course-photo::after { display: none; }

.course-info {
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.course-info-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 600;
  line-height: 1.0;
  color: #111111;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.course-sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0,0,0,0.55);
  line-height: 1.55;
}

.course-lessons {
  font-size: 12px;
  font-weight: 400;
  color: rgba(0,0,0,0.4);
}

.course-info-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.course-price {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.course-price .old-price {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0,0,0,0.35);
  text-decoration: line-through;
  margin-left: 6px;
}

.course-price.closed {
  color: rgba(0,0,0,0.35);
  font-weight: 300;
}

.btn-course {
  display: inline-block;
  width: auto;
  background: #111111;
  color: #ffffff;
  padding: 16px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}

.btn-course:hover { background: #333333; }

.btn-course.disabled {
  background: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.3);
  cursor: not-allowed;
  pointer-events: none;
}

/* ── DISCOUNT BADGE ── */
.discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.discount-badge-label {
  font-size: 9px;
  font-weight: 400;
  color: #555555;
  display: block;
  margin-bottom: 3px;
  line-height: 1.4;
}

.discount-badge-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #cc2200;
  line-height: 1;
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .courses-header { padding: 64px 40px 48px; }
  .courses-list { padding: 0 40px; }

  .course-card {
    flex-direction: row;
    min-height: 300px;
  }

  .course-photo {
    width: 400px;
    height: auto;
    flex-shrink: 0;
    order: 2;
  }

  .course-photo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 80px;
    background: linear-gradient(to right, #ffffff, transparent);
    z-index: 1;
    pointer-events: none;
  }

  .course-info {
    order: 1;
    padding: 40px;
    justify-content: space-between;
    flex: 1;
  }

  .discount-badge { top: 24px; left: 16px; }
}

/* ── Mid ── */
@media (min-width: 769px) and (max-width: 1199px) {
  .courses-header { padding: 64px 60px 48px; }
  .courses-list { padding: 0 60px; gap: 32px; }
  .course-photo { width: 340px; }
  .course-info { padding: 32px; }
}

/* ── 800–900 ── */
@media (min-width: 800px) and (max-width: 900px) {
  .courses-header { padding: 64px 48px 40px; }
  .courses-list { padding: 0 48px; }
  .course-photo { width: 300px; }
  .course-info { padding: 28px; }
  .course-name { font-size: 28px; }
}

/* ── 1000–1199 (iPad landscape) ── */
@media (min-width: 1000px) and (max-width: 1199px) {
  .courses-header { padding: 64px 72px 48px; }
  .courses-list { padding: 0 72px; }
  .course-photo { width: 380px; }
  .course-info { padding: 36px; }
}

/* ── Desktop ── */
@media (min-width: 1200px) {
  .courses {
    flex-direction: row;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
  }

  .courses-header {
    width: 380px;
    flex-shrink: 0;
    padding: 80px 40px;
    text-align: left;
    position: sticky;
    top: 72px;
    border-right: 1px solid rgba(255,255,255,0.1);
  }

  /* ADV SCHOOL decorative watermark */
  .courses-header::after {
    content: 'ADV SCHOOL';
    font-family: 'Bebas Neue', sans-serif;
    font-size: 90px;
    line-height: 0.88;
    color: rgba(255,255,255,0.06);
    letter-spacing: 0.02em;
    display: block;
    margin-top: 48px;
    word-break: break-word;
  }

  .courses-heading {
    font-size: 72px;
    text-align: left;
    margin-bottom: 16px;
  }

  .courses-subtext { text-align: left; }

  .courses-list {
    flex: 1;
    padding: 0;
    gap: 0;
  }

  .course-card {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 220px;
  }

  .course-card:first-child {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .course-card { margin-bottom: 40px; }

  .course-photo { width: 300px; }

  .course-info { padding: 40px 48px; }

  .course-name { font-size: 32px; }

  .discount-badge {
    top: 20px;
    left: auto;
    right: 20px;
  }
}

/* ── Small desktop ── */
@media (min-width: 1200px) and (max-width: 1399px) {
  .courses-header { width: 320px; padding: 60px 32px; }
  .course-photo { width: 260px; }
  .course-info { padding: 32px 40px; }
}
