/* MELcademy — Shared Stylesheet
   Brand: Deep Teal Authority
   Fonts: DM Serif Display (headings), Inter (body) — loaded via Google Fonts CDN
   Colors: Teal #1a7a5e, Coral #d4622a, Cream #f7f3ee, Dark Teal #0f4a38
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ── */
.serif { font-family: 'DM Serif Display', Georgia, serif; }
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.1rem; }
p { line-height: 1.7; }

/* ── Colours ── */
:root {
  --teal:       #1a7a5e;
  --teal-dark:  #0f4a38;
  --teal-light: #e8f4f0;
  --coral:      #d4622a;
  --coral-light:#f5e6dc;
  --cream:      #f7f3ee;
  --cream-dark: #ede8e0;
  --text:       #1a1a1a;
  --text-muted: #6b7280;
  --white:      #ffffff;
  --border:     #e5e0d8;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}
.navbar-logo img {
  height: 36px;
  width: auto;
  transition: filter 0.25s ease;
}
.navbar:not(.scrolled) .navbar-logo img { filter: brightness(0) invert(1); }
.navbar-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) { .navbar-links { display: flex; } }
.navbar:not(.scrolled) .navbar-links a { color: rgba(255,255,255,0.85); }
.navbar.scrolled .navbar-links a { color: #374151; }
.navbar-links a:hover { color: var(--teal); }
.navbar-cta {
  display: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--coral);
  color: #fff;
  transition: background 0.15s;
  white-space: nowrap;
}
.navbar-cta:hover { background: #b8521f; }
@media (min-width: 768px) { .navbar-cta { display: inline-block; } }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: background 0.25s;
}
.navbar:not(.scrolled) .hamburger span { background: #fff; }
.navbar.scrolled .hamburger span { background: #374151; }
.mobile-menu {
  display: none;
  background: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #374151;
  font-size: 0.95rem;
}
.mobile-menu a:hover { background: var(--cream); color: var(--teal); }

/* ── Hero Section ── */
.hero {
  background-color: var(--teal-dark);
  padding-top: 64px;
  position: relative;
}
.hero-inner { padding: 4rem 0 0; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--coral);
  color: #fff;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #b8521f; }
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.15s;
  cursor: pointer;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.8); }
.btn-coral-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-coral-outline:hover { background: var(--coral); color: #fff; }

/* ── Wave Divider ── */
.wave-divider { margin-bottom: -1px; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ── Section Styles ── */
.section-cream { background-color: var(--cream); }
.section-cream-dark { background-color: var(--cream-dark); }
.section-white { background-color: #fff; }
.section-teal { background-color: var(--teal-dark); }
.section-pad { padding: 4rem 0; }
.section-pad-lg { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.coral-bar {
  width: 2.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--coral);
  margin-bottom: 1.5rem;
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.25rem; }
.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.badge-free { background: #dcfce7; color: #166534; }
.badge-beginner { background: var(--teal-light); color: var(--teal-dark); }
.badge-intermediate { background: #fef3c7; color: #92400e; }
.badge-advanced { background: #fee2e2; color: #991b1b; }
.card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; line-height: 1.4; }
.card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.card-price { font-weight: 700; color: var(--teal); font-size: 1rem; }
.card-price-orig { text-decoration: line-through; color: var(--text-muted); font-size: 0.8rem; margin-left: 0.25rem; }
.card-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.stars { color: #f59e0b; font-size: 0.8rem; }

/* ── Stat Boxes ── */
.stat-box {
  background: rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}
.stat-value { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-value.coral { color: #f4a261; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* ── Pillar / Feature Cards ── */
.pillar {
  background: #fff;
  border-radius: 0.875rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal-dark);
  font-size: 1.1rem;
}
.pillar h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.pillar p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Timeline ── */
.timeline { position: relative; }
.timeline-item { display: flex; gap: 1.5rem; padding-bottom: 1.5rem; }
.timeline-year { width: 3rem; flex-shrink: 0; text-align: right; font-weight: 700; font-size: 0.85rem; color: var(--teal); padding-top: 0.1rem; }
.timeline-dot { width: 2rem; flex-shrink: 0; display: flex; justify-content: center; position: relative; }
.timeline-dot::before { content: ''; position: absolute; top: 0.6rem; bottom: -1.5rem; left: 50%; width: 1px; background: var(--border); transform: translateX(-50%); }
.timeline-item:last-child .timeline-dot::before { display: none; }
.timeline-dot span { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--coral); background: #fff; margin-top: 0.15rem; flex-shrink: 0; }
.timeline-text { flex: 1; font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Testimonials ── */
.testimonial {
  background: #fff;
  border-radius: 0.875rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.testimonial blockquote { font-size: 0.875rem; color: #374151; font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.testimonial cite { font-size: 0.8rem; color: var(--text-muted); font-style: normal; }
.testimonial cite strong { display: block; color: var(--text); font-weight: 600; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,122,94,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.inline-form .form-input { flex: 1; min-width: 200px; }

/* ── Footer ── */
.footer {
  background-color: #0a2e22;
  color: #fff;
  padding: 3.5rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; } }
.footer-logo { height: 2.25rem; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 1rem; }
.footer-values { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-teal { color: var(--teal); }
.text-coral { color: var(--coral); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none; }
@media (min-width: 1024px) { .lg-block { display: block !important; } }

/* ── Course Detail ── */
.course-hero { background: var(--teal-dark); padding-top: 64px; }
.course-hero-inner { padding: 3rem 0 0; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.learn-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .learn-list { grid-template-columns: 1fr 1fr; } }
.learn-list li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.learn-list li::before { content: '✓'; color: #4ade80; flex-shrink: 0; font-weight: 700; }
.enrol-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  position: sticky;
  top: 80px;
}
.enrol-price { font-size: 2rem; font-weight: 800; color: var(--teal); }
.enrol-price-orig { font-size: 1rem; text-decoration: line-through; color: var(--text-muted); margin-left: 0.5rem; }
.curriculum-item {
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.curriculum-header {
  padding: 0.875rem 1.25rem;
  background: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.curriculum-body { padding: 0.75rem 1.25rem; background: #fff; }
.curriculum-body li { font-size: 0.85rem; color: var(--text-muted); padding: 0.3rem 0; border-bottom: 1px solid var(--border); list-style: none; }
.curriculum-body li:last-child { border-bottom: none; }
.curriculum-body li::before { content: '▶ '; font-size: 0.65rem; color: var(--teal); }

/* ── Blog Cards ── */
.blog-card {
  background: #fff;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.25rem; }
.blog-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--cream-dark);
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.blog-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; font-family: 'DM Serif Display', Georgia, serif; }
.blog-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Contact sidebar ── */
.contact-info-card {
  background: #fff;
  border-radius: 0.875rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-info-card h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; font-family: inherit; }
.contact-info-card p { font-size: 0.875rem; color: #374151; }
.contact-info-card small { font-size: 0.75rem; color: var(--text-muted); }

/* ── Value bar ── */
.value-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.value-bar { width: 4px; border-radius: 2px; background: var(--coral); flex-shrink: 0; min-height: 2.5rem; }
.value-item h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; font-family: inherit; }
.value-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Module path cards ── */
.module-card {
  background: #fff;
  border-radius: 0.875rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}
.module-num { font-size: 2rem; font-weight: 800; color: var(--cream-dark); font-family: 'DM Serif Display', Georgia, serif; flex-shrink: 0; line-height: 1; }
.module-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; font-family: inherit; }
.module-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Audience cards ── */
.audience-card {
  background: #fff;
  border-radius: 0.875rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.audience-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; font-family: inherit; }
.audience-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA Section ── */
.cta-section { background: var(--teal-dark); padding: 4rem 0; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); }

/* ── Filter tabs ── */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

/* ── Success message ── */
.success-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.875rem;
  padding: 1.5rem;
}
.success-box h3 { color: #fff; font-size: 1rem; margin-bottom: 0.25rem; font-family: inherit; }
.success-box p { color: rgba(255,255,255,0.7); font-size: 0.875rem; }

/* ── Responsive helpers ── */
@media (max-width: 1023px) { .lg-hidden { display: none !important; } }
@media (min-width: 1024px) { .lg-grid-2-1 { grid-template-columns: 2fr 1fr; } .lg-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
