/* ============================================================
   COURSES — Elegant light-theme card grid
   - Impeccable: Clear visual hierarchy, generous spacing, fine typography
   - Taste Skill: Staggered reveal entry, asymmetrical highlights
   - Premium feel: Crisp borders, warm cream tones, burnt orange accents
   ============================================================ */

.courses-section {
  padding-block: var(--section-py);
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}

/* Subtle background decorative shapes for organic human-made feel */
.courses-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,98,26,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.courses-section::after {
  content: '';
  position: absolute;
  bottom: -5%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,0.02) 0%, transparent 70%);
  pointer-events: none;
}

/* Bento-inspired grid layout */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* ── COURSE CARD (WEBFLOW STYLE) ──────────────────────────── */
.course-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26,17,8,0.04);
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 450ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(26,17,8,0.08), 0 4px 12px rgba(26,17,8,0.04);
}

/* ── CARD HEADER (FULL WIDTH IMAGE) ───────────────────────── */
.card-hero-wrap {
  width: 100%;
  height: 220px;
  background: var(--cream-deep);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}

.card-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .card-hero-img {
  transform: scale(1.05);
}

/* ── CARD CONTENT ─────────────────────────────────────────── */
.card-content {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 0;
}

.card-description {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── CARD FOOTER ──────────────────────────────────────────── */
.card-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-level {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.level-icon {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}

.level-bar {
  width: 4px;
  background: #E0E0E0;
  border-radius: 2px;
}
.level-bar.active { background: var(--orange); }

.card-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--charcoal);
}

/* ── FEATURED CARD VARIANT ─────────────────────────────────── */
.course-card.featured {
  background: linear-gradient(135deg, var(--cream-card) 0%, var(--orange-bg) 100%);
  border-color: rgba(232,98,26,0.18);
  box-shadow: 0 10px 30px rgba(232,98,26,0.04), var(--shadow-card);
}

.course-card.featured::before { 
  transform: scaleX(1); /* always highlighted */
}

/* ── LOAD MORE ────────────────────────────────────────────── */
.courses-footer {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .courses-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

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