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

:root {
  --navy-900: #061a38;
  --navy-800: #0b2559;
  --navy-700: #0f2f6e;
  --navy-100: #eaf0fb;
  --orange-600: #d9670c;
  --orange-500: #ea7e17;
  --orange-400: #f4941f;
  --orange-100: #fef1e2;
  --teal: #0e8a7d;
  --purple: #6a4ee0;
  --red: #d9483d;
  --ink: #1c2438;
  --muted: #5b6478;
  --line: #e6e9f1;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(6, 26, 56, 0.06);
  --shadow-md: 0 10px 30px rgba(6, 26, 56, 0.10);
  --shadow-lg: 0 20px 50px rgba(6, 26, 56, 0.16);
  --container: 1180px;
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-weight: 700; }
h2 { font-weight: 700; }
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; }

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

.section { padding: 84px 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: #c7d3ef; }

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

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-800);
  position: relative;
  padding: 6px 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 { display: none; }
}

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

.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 20px; }
.hero p.lead { color: #c7d3ef; font-size: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Poppins', sans-serif; font-size: 26px; color: #fff; }
.hero-stats div span { font-size: 13px; color: #9fb0da; text-transform: uppercase; letter-spacing: .05em; }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-visual img { border-radius: 12px; }
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  color: var(--navy-800);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}
.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: 26px 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: 14px; font-weight: 600; }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@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: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  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: 28px; }
@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 .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.course-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  position: relative;
  color: #fff;
}
.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: 22px;
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  flex-wrap: wrap;
}
.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-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;
}
.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); }

/* ---------- 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(16px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: fadeInUp .6s ease both; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}
