/* =========================================================
   DARYEEL ACADEMY — MAIN STYLESHEET
   ========================================================= */

:root {
  --navy-900: #061a38;
  --navy-800: #0b2559;
  --navy-700: #0f2f6e;
  --navy-100: #eef2fb;
  --orange-600: #d9670c;
  --orange-500: #ea7e17;
  --orange-400: #f4941f;
  --orange-100: #fdf1e3;
  --teal: #0e8a7d;
  --purple: #6a4ee0;
  --red: #d9483d;
  --ink: #1a2136;
  --muted: #626c82;
  --line: #e9ecf3;
  --bg: #ffffff;
  --bg-soft: #f7f9fd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(6, 26, 56, 0.05), 0 4px 16px rgba(6, 26, 56, 0.05);
  --shadow-md: 0 8px 24px rgba(6, 26, 56, 0.08), 0 2px 8px rgba(6, 26, 56, 0.04);
  --shadow-lg: 0 24px 60px rgba(6, 26, 56, 0.14);
  --container: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-800);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}

h1 { font-weight: 700; letter-spacing: -.02em; }
h2 { font-weight: 700; letter-spacing: -.015em; }
h3 { font-weight: 600; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 100px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b9c6e8; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-100);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--navy .eyebrow { background: rgba(244,148,31,.14); color: var(--orange-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 6px 18px rgba(234,126,23,.28); }
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 10px 26px rgba(234,126,23,.36); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); box-shadow: 0 10px 26px rgba(6,26,56,.28); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-outline-navy { background: transparent; border-color: var(--line); color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-ghost { background: var(--navy-100); color: var(--navy-800); }
.btn-ghost:hover { background: #e2e9f9; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy-800); line-height: 1.1; }
.brand-name span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-600); margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
  transition: right .25s var(--ease);
}
.nav-links a.active::after, .nav-links a:hover::after { right: 0; }
.nav-links a.active, .nav-links a:hover { color: var(--orange-600); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy-800); border-radius: 3px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-800) 100%);
  color: #fff;
  padding: 100px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -25% -12% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(244,148,31,.22), transparent 68%);
  filter: blur(20px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -35% -12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(14,138,125,.20), transparent 68%);
  filter: blur(20px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; font-size: clamp(33px, 4.2vw, 48px); margin-bottom: 22px; }
.hero p.lead { color: #b9c6e8; font-size: 17.5px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 38px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Poppins', sans-serif; font-size: 25px; color: #fff; }
.hero-stats div span { font-size: 12.5px; color: #8fa1cb; text-transform: uppercase; letter-spacing: .06em; }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-visual img { border-radius: 14px; }
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  color: var(--navy-800);
  border-radius: 16px;
  padding: 15px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 13.5px;
}
.hero-badge .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-100); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dbe1ef; }
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: var(--navy-100);
}

/* ---------- Course cards ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--navy-800);
  transition: all .15s ease;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--orange-500); color: var(--orange-600); background: var(--orange-100); }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }

.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dbe1ef; }

.course-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.course-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grad-blue { background: linear-gradient(135deg, #1a4fb4, #0b2559); }
.grad-orange { background: linear-gradient(135deg, #f4941f, #d9670c); }
.grad-navy { background: linear-gradient(135deg, #0f2f6e, #061a38); }
.grad-teal { background: linear-gradient(135deg, #17b3a3, #0e6a5f); }
.grad-purple { background: linear-gradient(135deg, #8a6ef0, #5535b8); }
.grad-red { background: linear-gradient(135deg, #ea6a5f, #c23c30); }

.course-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-free { background: #16a678; color: #fff; }
.badge-paid { background: #fff; color: var(--navy-800); }

.course-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-600); }
.course-title { font-size: 18px; margin: 0; }
.course-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.course-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy-800); }
.course-price.is-free { color: #16a678; }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: left; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px;
  margin-bottom: 16px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial p { color: var(--ink); font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Poppins', sans-serif;
}
.testimonial-person strong { display: block; font-size: 14px; color: var(--navy-800); }
.testimonial-person span { font-size: 12px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange-500), var(--orange-600));
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(217,103,12,.22);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Video ---------- */
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background:#000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

.video-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.video-card .video-wrap { border-radius: 0; box-shadow: none; }
.video-card-body { padding: 16px 18px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #c7d3ef; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--orange-400); font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; font-size: 18px; flex-shrink:0; }
.contact-row strong { display:block; font-size: 13px; color:#9fb0da; text-transform: uppercase; letter-spacing:.04em; margin-bottom:2px;}
.contact-row a, .contact-row span.val { font-weight: 600; }
.social-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: background .15s ease;
}
.social-btn:hover { background: var(--orange-500); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange-500); background: #fff; box-shadow: 0 0 0 4px rgba(234,126,23,.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q {
  padding: 18px 20px;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-q .chev { transition: transform .2s ease; color: var(--orange-500); font-size: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d3ef; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 38px; }
.footer-brand span { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: 17px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: #c7d3ef; font-size: 14px; }
.site-footer a:hover { color: var(--orange-400); }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #86a; }
.footer-bottom span { color: #8ea0c9; }
.footer-social { display: flex; gap: 10px; }

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.outcome-list li { display: flex; gap: 10px; padding: 8px 0; color: var(--ink); }
.outcome-list li::before { content: "✓"; color: #16a678; font-weight: 800; flex-shrink: 0; }
.sticky-card { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md); }
.price-tag { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; }
.price-tag.is-free { color: #16a678; }
.meta-list { margin: 18px 0; }
.meta-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-list li span:first-child { color: var(--muted); }
.meta-list li span:last-child { font-weight: 600; color: var(--navy-800); }

/* ---------- Lesson list (course detail) ---------- */
.lesson-list { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.lesson-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s ease;
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--bg-soft); }
.lesson-item.active { background: var(--orange-100); }
.lesson-item.locked { cursor: default; opacity: .65; }
.lesson-item.locked:hover { background: transparent; }
.lesson-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.lesson-item.active .lesson-num { background: var(--orange-500); color: #fff; }
.lesson-title { flex: 1; font-weight: 600; font-size: 14px; color: var(--ink); }
.lesson-preview-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  background: #16a678; color: #fff; padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.lesson-icon { font-size: 14px; color: var(--orange-600); flex-shrink: 0; }
.lesson-item.locked .lesson-icon { color: var(--muted); }
.lesson-locked-banner {
  background: var(--navy-100); color: var(--navy-800); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; font-weight: 600;
}

/* ---------- Enrollment gate (free courses) & request/unlock boxes (paid) ---------- */
.enroll-gate {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; margin-bottom: 24px;
}
.enroll-gate-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px;
}
.enroll-gate h3 { margin-bottom: 6px; }
.enroll-gate form { max-width: 440px; margin: 18px auto 0; text-align: left; }

.enroll-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; margin-bottom: 12px;
}
.enroll-box .field input { background: #fff; }
.enroll-success {
  background: #e9f9f3; color: #0e6a5f; border: 1px solid #bdeddd; border-radius: 10px;
  padding: 14px 16px; font-size: 14px; font-weight: 600; text-align: center;
}
.unlock-toggle {
  display: block; width: 100%; background: none; border: none; cursor: pointer;
  color: var(--navy-800); font-weight: 600; font-size: 13px; padding: 6px 0 14px; text-align: center;
}
.unlock-toggle:hover { color: var(--orange-600); }
.enroll-error { color: #b6362c; font-size: 13px; margin: 10px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Shop: product cards ---------- */
.shop-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dbe1ef; }

.product-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.product-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 56, .62);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-600); }
.product-title { font-size: 18px; margin: 0; }
.product-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy-800); }
.product-price-compare { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* ---------- Shop: quantity stepper ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 14px 0;
}
.qty-btn {
  width: 38px; height: 38px;
  border: none;
  background: var(--bg-soft);
  color: var(--navy-800);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.qty-btn:hover { background: var(--navy-100); }
.qty-input {
  width: 48px; height: 38px;
  border: none;
  border-left: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Shop: cart ---------- */
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.cart-line-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-title { font-weight: 700; font-size: 15px; color: var(--navy-800); }
.cart-line-title:hover { color: var(--orange-600); }
.cart-line-price { font-size: 13px; color: var(--muted); }
.cart-line-total { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy-800); white-space: nowrap; }
.cart-line-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.cart-line-remove:hover { background: #fdeceb; color: #b6362c; }
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 52px 1fr; grid-template-areas: "thumb body" "thumb qty" "thumb total"; row-gap: 8px; }
  .cart-line-thumb { grid-area: thumb; width: 52px; height: 52px; }
  .cart-line-body { grid-area: body; }
  .cart-line .qty-stepper { grid-area: qty; margin: 4px 0; }
  .cart-line-total { grid-area: total; }
  .cart-line-remove { position: absolute; margin-left: 8px; }
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 2px solid var(--line);
  margin-top: 6px;
  font-size: 17px;
}
.cart-total-row strong { font-family: 'Poppins', sans-serif; font-size: 22px; color: var(--navy-800); }

/* ---------- Nav cart icon ---------- */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: 17px;
  transition: background .15s ease;
}
.nav-cart:hover { background: #e2e9f9; }
.nav-cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--orange-500);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill { display:inline-block; background: var(--navy-100); color: var(--navy-800); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* fade in — CSS-only, plays automatically on load AND for elements
   inserted later by JS (e.g. dynamically rendered course cards) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: fadeInUp .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}
