/* ===============================================
   AKM MUSIC — EDUCATION HUB + CLASSES (Phase 4)
   Page-scoped styles for /education and /classes.
   Tokens only — no hardcoded colors, no CDN.
   =============================================== */

/* ---------- Shared hero ---------- */
.edu-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  padding: clamp(3rem, 2rem + 6vw, 5.5rem) var(--space-lg);
  margin-bottom: var(--space-3xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.edu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 82% 12%, rgba(184, 134, 46, 0.30), transparent 60%);
  pointer-events: none;
}
.edu-hero .container { position: relative; z-index: 1; }
.edu-hero h1 { color: var(--color-white); font-size: var(--font-size-6xl); margin-bottom: var(--space-md); }
.edu-hero .lead {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.92);
  max-width: 660px;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
}
.edu-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }
@media (max-width: 560px) {
  .edu-hero-actions { flex-direction: column; align-items: center; }
  .edu-hero-actions .btn { width: 100%; max-width: 320px; }
}

.edu-section { margin-bottom: var(--space-4xl); }
.edu-section > h2 { text-align: center; margin-bottom: var(--space-sm); }
.edu-section > .edu-sub { text-align: center; color: var(--text-muted); max-width: 60ch; margin: 0 auto var(--space-2xl); }

/* ---------- Hub cards ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-lg); }
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.hub-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--border-radius-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 58, 95, 0.08);
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}
.hub-card h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-xs); }
.hub-card p { color: var(--text-secondary); line-height: var(--line-height-relaxed); flex: 1; }
.hub-card .hub-link { font-weight: var(--font-weight-semibold); color: var(--color-primary); margin-top: var(--space-sm); }
.hub-card .hub-link i { transition: transform var(--transition-fast); }
.hub-card:hover .hub-link i { transform: translateX(4px); }

/* ---------- Highlight band (Trinity) ---------- */
.edu-highlight {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--border-radius-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.edu-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 12% 88%, rgba(184, 134, 46, 0.30), transparent 60%);
  pointer-events: none;
}
.edu-highlight > * { position: relative; z-index: 1; }
.edu-highlight h2 { color: var(--color-white); margin-bottom: var(--space-sm); }
.edu-highlight p { color: rgba(255, 255, 255, 0.9); line-height: var(--line-height-relaxed); margin: 0; }
.edu-highlight .badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  background: var(--color-brass); color: var(--color-primary-dark);
  font-weight: var(--font-weight-bold); padding: 6px 14px; border-radius: 9999px;
  margin-bottom: var(--space-md); font-size: var(--font-size-sm);
}
.edu-highlight-cta { text-align: center; }
.edu-highlight-cta .num { font-size: var(--font-size-6xl); font-weight: var(--font-weight-black); color: var(--color-white); line-height: 1; }
.edu-highlight-cta .unit { color: rgba(255, 255, 255, 0.85); display: block; margin-bottom: var(--space-md); }
@media (max-width: 760px) { .edu-highlight { grid-template-columns: 1fr; text-align: center; } .edu-highlight .badge { margin-inline: auto; } }

/* ---------- Pricing card ---------- */
.class-pricing {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: center;
  background: var(--bg-section-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
}
.class-pricing .price-amount { font-size: var(--font-size-6xl); font-weight: var(--font-weight-black); color: var(--color-primary); line-height: 1; }
.class-pricing .price-amount .per { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
.class-pricing .price-detail { color: var(--text-secondary); font-weight: var(--font-weight-semibold); margin-top: var(--space-xs); }
.class-pricing ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.class-pricing li { display: flex; align-items: flex-start; gap: var(--space-sm); color: var(--text-secondary); }
.class-pricing li i { color: var(--color-success); margin-top: 3px; }
@media (max-width: 760px) { .class-pricing { grid-template-columns: 1fr; text-align: center; } .class-pricing li { text-align: left; } }

/* ---------- Program cards ---------- */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); }
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-card .emoji { font-size: var(--font-size-4xl); line-height: 1; }
.program-card h3 { font-size: var(--font-size-lg); margin: var(--space-sm) 0 var(--space-xs); }
.program-card p { color: var(--text-muted); font-size: var(--font-size-sm); line-height: var(--line-height-relaxed); margin: 0; }

/* ---------- Schedule table ---------- */
.schedule-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); overflow: hidden; }
.schedule-table caption { text-align: left; color: var(--text-muted); margin-bottom: var(--space-sm); font-size: var(--font-size-sm); }
.schedule-table th, .schedule-table td { padding: var(--space-sm) var(--space-lg); text-align: left; border-bottom: 1px solid var(--border-color); font-size: var(--font-size-sm); }
.schedule-table thead th { background: var(--bg-section-light); color: var(--text-primary); font-weight: var(--font-weight-bold); }
.schedule-table tr:last-child td { border-bottom: none; }

/* ---------- Teachers ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); }
.teacher-card { text-align: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.teacher-avatar {
  width: 84px; height: 84px; margin: 0 auto var(--space-sm); border-radius: 50%;
  background: rgba(30, 58, 95, 0.08); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-size: var(--font-size-3xl);
}
.teacher-card h3 { font-size: var(--font-size-lg); margin-bottom: 2px; }
.teacher-card p { color: var(--text-muted); font-size: var(--font-size-sm); margin: 0; }

/* ---------- Registration form ---------- */
.class-register { max-width: 720px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: var(--space-2xl); box-shadow: var(--shadow-md); }
.class-register h2 { text-align: center; margin-bottom: var(--space-xs); }
.class-register .form-sub { text-align: center; color: var(--text-muted); margin-bottom: var(--space-xl); }
.class-register .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 560px) { .class-register .form-grid { grid-template-columns: 1fr; } }
.class-register label { display: block; margin-bottom: var(--space-md); font-weight: var(--font-weight-semibold); color: var(--text-primary); font-size: var(--font-size-sm); }
.class-register input, .class-register select, .class-register textarea {
  width: 100%; margin-top: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--border-color); border-radius: var(--border-radius-md);
  font-family: var(--font-family); font-size: var(--font-size-base); color: var(--text-primary); background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.class-register input:focus, .class-register select:focus, .class-register textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.class-register .btn-whatsapp { width: 100%; margin-top: var(--space-sm); }
.class-register .form-note { font-size: var(--font-size-sm); color: var(--text-muted); text-align: center; margin-top: var(--space-md); }

/* WhatsApp button (tokenised, matches shop/product) */
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-family); font-size: var(--font-size-base); font-weight: var(--font-weight-semibold);
  border: 2px solid #25D366; border-radius: var(--border-radius-md);
  background: #25D366; color: #fff; cursor: pointer; transition: all var(--transition-normal);
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- CTA ---------- */
.edu-cta {
  position: relative; overflow: hidden; text-align: center; color: var(--color-white);
  padding: var(--space-3xl) var(--space-lg); border-radius: var(--border-radius-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.edu-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 60% at 85% 15%, rgba(184, 134, 46, 0.30), transparent 60%); pointer-events: none; }
.edu-cta > * { position: relative; z-index: 1; }
.edu-cta h2 { color: var(--color-white); margin-bottom: var(--space-sm); }
.edu-cta p { color: rgba(255, 255, 255, 0.9); font-size: var(--font-size-lg); margin: 0 auto var(--space-xl); max-width: 560px; }
.edu-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }
@media (max-width: 560px) { .edu-cta-actions { flex-direction: column; align-items: center; } .edu-cta-actions .btn { width: 100%; max-width: 320px; } }
