/* ============================================================
   MAYELE ACADEMY — main.css
   Global Public Styles
   ============================================================ */

:root {
  --primary: #0A1F44;
  --gold: #D4AF37;
  --gold-hover: #f0d060;
  --text: #1a1a2e;
  --text-muted: #666;
  --bg-light: #f8fafd;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(10, 31, 68, 0.08);
  --shadow-hover: 0 12px 40px rgba(10, 31, 68, 0.15);
  --transition: 0.25s ease;
}

/* ── Dark Mode ─────────────────────────────────────────── */
.dark-mode {
  --bg-light: #0d1117;
  --white: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background-color var(--transition), color var(--transition);
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  background: var(--primary) !important;
  padding: 14px 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .5px;
}

.navbar-brand span {
  color: var(--gold);
}

.nav-link {
  color: rgba(255, 255, 255, .8) !important;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold) !important;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-enroll {
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.btn-enroll:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  color: var(--primary);
}

.btn-outline-white {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 14px;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ── Dark Mode Toggle ────────────────────────────────────── */
.dark-icon { display: block; width: 18px; height: 18px; color: #fff; }
.light-icon { display: none; width: 18px; height: 18px; color: var(--gold); }
.dark-mode .dark-icon { display: none; }
.dark-mode .light-icon { display: block; }

/* ── Hero Sections ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2d5e 60%, #1a3a6e 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.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='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a6e 100%);
  padding: 70px 0;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title em {
  color: var(--gold);
  font-style: normal;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

/* ── Content Sections ───────────────────────────────────── */
section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary);
  margin-top: 6px;
  margin-bottom: 8px;
}

.dark-mode .section-title {
  color: var(--gold);
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Course Cards ───────────────────────────────────────── */
.course-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.course-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.course-thumb {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.course-thumb-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #fff;
}

.badge-level {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  background: rgba(10, 31, 68, .08);
  color: var(--primary);
}

.dark-mode .badge-level {
  background: rgba(212, 175, 55, .15);
  color: var(--gold);
}

.course-price {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.dark-mode .course-price {
  color: var(--gold);
}

/* ── Testimonials ───────────────────────────────────────── */
.testi-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
}

.testi-quote {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 18px;
}

.testi-quote::before {
  content: '"';
  font-size: 40px;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: .7;
  display: block;
  margin-bottom: 8px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, .6);
  padding: 50px 0 24px;
}

footer a {
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
}

footer a:hover {
  color: var(--gold);
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, .08);
}

/* ── WhatsApp ───────────────────────────────────────────── */
.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: var(--transition);
}

.wa-btn:hover {
  transform: scale(1.1);
  background: #1ebe5a;
}

.wa-btn svg {
  width: 30px;
  height: 30px;
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.stats-bar .num {
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.stats-bar .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: 1px;
  text-transform: uppercase;
}
