@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Nunito:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --green-dark:   #1e5128;
  --green-mid:    #2d7a3a;
  --green-light:  #6aaa6a;
  --green-pale:   #d4edda;
  --cream:        #f7f3eb;
  --cream-dark:   #ede8de;
  --white:        #ffffff;
  --text:         #1a2c1a;
  --text-muted:   #5a7060;
  --border:       #c8dfc8;
  --shadow:       0 4px 20px rgba(30,81,40,.10);
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: var(--green-dark);
  padding: 18px 0;
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: -.5px;
}
.site-logo span { color: var(--green-light); }
.site-nav a {
  color: rgba(255,255,255,.85);
  margin-left: 28px;
  font-size: .95rem;
  font-weight: 600;
  transition: color var(--transition);
}
.site-nav a:hover { color: #fff; text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 55%, #4a9e58 100%);
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 18px;
  line-height: 1.2;
}
.hero p {
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.btn-green {
  background: var(--green-mid);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-green:hover { background: var(--green-dark); }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section ── */
.section { padding: 72px 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ── Course cards ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30,81,40,.16);
}
.course-card-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 32px 28px 24px;
}
.course-card-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  line-height: 1.3;
}
.course-card-body { padding: 24px 28px 28px; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.meta-chip {
  background: var(--green-pale);
  color: var(--green-dark);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .85rem;
  font-weight: 600;
}
.course-desc {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spots-bar { margin-bottom: 20px; }
.spots-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.bar-track {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-light), var(--green-mid));
  border-radius: 4px;
  transition: width .6s ease;
}

/* ── Course detail page ── */
.course-hero {
  background: linear-gradient(160deg, var(--green-dark), var(--green-mid));
  padding: 64px 24px 80px;
}
.course-hero .inner { max-width: 880px; margin: 0 auto; }
.course-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.course-hero .subtitle {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.course-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 56px 0;
  align-items: start;
}
@media(max-width:860px) {
  .course-layout { grid-template-columns: 1fr; }
}

/* Info boxes */
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.info-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-pale);
}
.learn-list { list-style: none; }
.learn-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 1rem;
}
.learn-list li:last-child { border-bottom: none; }
.learn-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-mid);
  font-weight: 700;
}
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: .97rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-icon { font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }
.detail-label { font-weight: 700; color: var(--green-dark); min-width: 130px; }
.detail-val { color: var(--text); }

/* Price highlight */
.price-highlight {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  text-align: center;
}
.price-highlight .amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  line-height: 1;
}
.price-highlight .per { font-size: .9rem; opacity: .85; margin-top: 4px; }
.price-note { font-size: .85rem; opacity: .8; margin-top: 8px; }

/* Registration form card */
.reg-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--green-light);
  box-shadow: 0 8px 40px rgba(30,81,40,.15);
  padding: 32px;
  position: sticky;
  top: 24px;
}
.reg-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.reg-card .spots-available {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}
.spots-available.full { color: #c0392b; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: .95rem;
  color: var(--green-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--green-dark);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-submit:disabled { background: #999; cursor: not-allowed; transform: none; }
.or-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: .9rem;
}
.or-divider::before, .or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.or-divider::before { left: 0; }
.or-divider::after { right: 0; }
.phone-cta {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.phone-cta a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* Teacher section */
.teacher-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 36px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
@media(max-width:640px) {
  .teacher-card { flex-direction: column; align-items: center; text-align: center; }
}
.teacher-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green-pale);
  flex-shrink: 0;
}
.teacher-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  flex-shrink: 0;
}
.teacher-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.teacher-title { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; font-weight: 600; }
.teacher-bio { color: var(--text); line-height: 1.7; margin-bottom: 14px; }
.teacher-exp {
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .92rem;
  color: var(--green-dark);
}

/* Alert messages */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 40px 24px;
  margin-top: 80px;
  text-align: center;
  font-size: .9rem;
}
.site-footer strong { color: white; }
.site-footer a { color: var(--green-light); }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: .8rem; font-weight: 700; }
.badge-new  { background: #d4edda; color: #155724; }
.badge-full { background: #f8d7da; color: #721c24; }
.badge-inactive { background: #e2e3e5; color: #383d41; }

/* Responsive */
@media(max-width:600px) {
  .site-header .inner { flex-direction: column; gap: 12px; }
  .site-nav a { margin-left: 12px; }
  .hero { padding: 56px 20px 72px; }
  .section { padding: 48px 0; }
}
