/* =========================================================================
   Arya Academy Courses: design system
   All brand values live in the :root block below. Change a colour here and
   it changes everywhere on the platform.
   ========================================================================= */

:root {
  /* Brand colours (from cambridgeupskillenglishtest.com) */
  --navy-900: #071A34;      /* main text */
  --navy-800: #0A2540;      /* dark panels */
  --navy-700: #0F5560;
  --blue-600: #27C4BA;      /* primary buttons */
  --blue-700: #1FB0A7;      /* primary hover */
  --blue-500: #0A857E;      /* links */
  --blue-100: #DFF6F4;
  --blue-50:  #F4F6FB;      /* page tint */
  --teal-500: #27C4BA;
  --orange-500: #FF8530;   /* highlights */
  --teal-deep: #0E6F74;    /* end of dark gradients */
  --on-brand: #06262A;     /* text on teal or orange */
  --teal-700: #087E78;
  --red-500:  #E83D55;      /* logo accent, used sparingly */

  /* Neutrals */
  --white: #FFFFFF;
  --ink: var(--navy-900);
  --ink-2: #3C506F;         /* secondary text */
  --ink-3: #59616D;         /* captions */
  --line: #DCE5ED;          /* card borders */
  --line-2: #D0D0D4;        /* button borders */
  --surface: var(--white);
  --surface-tint: var(--blue-50);

  /* Status colours */
  --ok-bg: #E1F5EE;   --ok-ink: #085041;
  --warn-bg: #FAEEDA; --warn-ink: #633806;
  --bad-bg: #FCEBEB;  --bad-ink: #791F1F;
  --info-bg: #DFF6F4; --info-ink: #0A5F5A;

  /* Type */
  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;   /* 12 */
  --fs-sm: 0.875rem;  /* 14 */
  --fs-md: 1rem;      /* 16 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-xl: 1.375rem;  /* 22 */
  --fs-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --tracking-tight: -0.025em;

  /* Shape and depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-card: 0 8px 20px rgba(11, 31, 57, 0.04);
  --shadow-raised: 0 18px 46px rgba(17, 29, 85, 0.09);
  --shadow-btn: 0 10px 26px rgba(39, 196, 186, 0.28);
  --focus: 0 0 0 3px rgba(39, 196, 186, 0.40);

  /* Spacing */
  --gutter: 16px;
  --container: 1160px;
  --section-y: clamp(40px, 6vw, 72px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: var(--tracking-tight); font-weight: 700; }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 28px; } }

.section { padding: var(--section-y) 0; }
.section--tint { background: linear-gradient(180deg, var(--blue-50) 0%, #FBFCFE 100%); }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: 10px;
}
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-3); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-600); color: var(--on-brand); box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--blue-700); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--on-dark { background: #fff; color: var(--navy-900); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: var(--fs-xs); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge--warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge--bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge--info { background: var(--info-bg); color: var(--info-ink); }
.badge--light { background: #fff; color: var(--navy-900); }
.badge--glass { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Header ---------- */
.notice { background: var(--navy-900); color: #fff; font-size: var(--fs-sm); text-align: center; padding: 8px var(--gutter); }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid #EEF1F5;
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { display: block; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; line-height: 1.1; }
.brand__sub { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.main-nav { display: none; gap: 24px; margin-right: auto; }
.main-nav a { color: #22201E; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em; padding: 22px 0; position: relative; }
.main-nav a:hover { text-decoration: none; color: var(--blue-500); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; border-radius: 2px; background: var(--blue-600); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .btn { min-height: 40px; white-space: nowrap; }
.brand__name { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header__inner { gap: 10px; }
  .brand__name { font-size: 18px; }
  .header-actions .btn { padding: 0 14px; }
}
.header-actions .btn--primary { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; border: 0; background: var(--blue-50); color: var(--ink); cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid #EEF1F5; padding: 8px 0 16px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px var(--gutter); color: var(--ink); font-weight: 600; }
.mobile-nav .btn { margin: 8px var(--gutter) 0; width: calc(100% - 2 * var(--gutter)); }
@media (min-width: 900px) {
  .main-nav { display: flex; margin-left: 12px; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
  .header-actions { margin-left: 0; }
  .header-actions .btn--primary { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(39,196,186,.38), transparent 36%),
    radial-gradient(circle at 6% 100%, rgba(18,189,183,.16), transparent 30%),
    linear-gradient(160deg, #0F5560 0%, #0A2540 55%, #061427 100%);
}
.hero__inner { position: relative; display: grid; gap: 36px; padding-block: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #C9D4E6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { display: grid; grid-template-columns: 1fr; gap: 10px; align-self: end; }
@media (max-width: 599px) {
  .hero-stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; }
  .hero-stat strong { margin: 0; }
}
@media (min-width: 600px) { .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-md); padding: 16px; }
.hero-stat strong { display: block; font-size: var(--fs-lg); line-height: 1.25; letter-spacing: var(--tracking-tight); margin-bottom: 4px; }
.hero-stat span { font-size: var(--fs-xs); color: #B7C5D8; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.3fr 1fr; align-items: end; } }

/* ---------- Course cards ---------- */
.course-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.course-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease;
}
.course-card:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.course-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy-800); overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; }
.course-card__badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.course-card__title { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.course-card__title a { color: var(--ink); }
.course-card__title a::after { content: ""; position: absolute; inset: 0; }
.course-card { position: relative; }
.course-card__desc { font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 14px; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 16px; }
.course-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card__meta svg { width: 14px; height: 14px; }
.course-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #EEF1F5; }

/* Placeholder artwork when a course has no thumbnail */
.cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(39,196,186,.55), transparent 45%),
    linear-gradient(150deg, #0F5560 0%, #0A2540 60%, #061427 100%);
}
.cover--teal { background: radial-gradient(circle at 85% 20%, rgba(18,189,183,.45), transparent 45%), linear-gradient(150deg, #1B4E8C 0%, #0A2540 65%, #061427 100%); }
.cover__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #B7C5D8; }
.cover__title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 22ch; }
.cover::after {
  content: "A"; position: absolute; right: 14px; top: 6px; font-size: 92px; font-weight: 800;
  line-height: 1; color: rgba(255,255,255,.06);
}

/* ---------- Price ---------- */
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__currency { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.price__amount { font-size: var(--fs-xl); font-weight: 800; letter-spacing: var(--tracking-tight); }
.price__was { font-size: var(--fs-xs); color: var(--ink-3); text-decoration: line-through; }
.price--free .price__amount { color: var(--teal-700); }

/* ---------- Catalog filters ---------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.page-head h1 { font-size: var(--fs-2xl); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
}
.chip:hover { text-decoration: none; border-color: var(--blue-600); }
.chip[aria-current="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-2); }

/* ---------- Course detail ---------- */
.course-hero { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.course-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(39,196,186,.35), transparent 40%), linear-gradient(160deg, #0F5560, #0A2540 60%, #061427); }
.course-hero__inner { position: relative; padding-block: clamp(32px, 6vw, 64px); }
.course-hero h1 { color: #fff; font-size: var(--fs-2xl); max-width: 22ch; }
.course-hero .lead { color: #C9D4E6; }
.breadcrumb { font-size: var(--fs-sm); color: #B7C5D8; margin-bottom: 18px; }
.breadcrumb a { color: #DCE5F5; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-sm); color: #DCE5F5; margin-top: 18px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; opacity: .8; }

.detail-layout { display: grid; gap: 28px; padding-top: 32px; padding-bottom: var(--section-y); }
@media (max-width: 959px) { .enroll-card { order: -1; } .enroll-card__media { display: none; } }
@media (min-width: 960px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .enroll-card { position: sticky; top: 88px; margin-top: -180px; }
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-card); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: var(--fs-xl); }
.enroll-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-raised); position: relative; z-index: 2; }
.enroll-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--navy-800); }
.enroll-card__body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.enroll-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.enroll-card__list li { display: flex; gap: 8px; align-items: center; }
.enroll-card__list svg { width: 16px; height: 16px; color: var(--blue-500); flex: none; }
.note { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--teal-700); margin-top: 1px; }

/* Curriculum accordion */
.curriculum { display: grid; gap: 10px; }
.module { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.module summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  font-weight: 600; background: #FAFBFD;
}
.module summary::-webkit-details-marker { display: none; }
.module summary .module__count { margin-left: auto; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.module summary > svg { width: 18px; height: 18px; transition: transform .2s ease; color: var(--ink-3); flex: none; }
.module[open] summary > svg { transform: rotate(90deg); }
svg { max-width: 100%; }
.facts svg, .course-card__meta svg, .lesson-list svg, .checklist svg, .enroll-card__list svg { flex: none; }
.module__num { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-100); color: var(--blue-500); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 700; flex: none; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #EEF1F5; font-size: var(--fs-sm); }
.lesson-list svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.lesson__link { color: var(--ink); font-weight: 500; }
.lesson__link:hover { color: var(--blue-500); }
.lesson-list .lesson__time { margin-left: auto; color: var(--ink-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

.instructor { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-100); color: var(--blue-500); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- How it works steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.step__num { font-size: var(--fs-xs); font-weight: 700; color: var(--blue-500); letter-spacing: .08em; }
.step h3 { margin: 8px 0 6px; }
.step p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 48px); display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #B7C5D8; margin: 6px 0 0; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: #061427; color: #B7C5D8; padding: 48px 0 28px; font-size: var(--fs-sm); }
.site-footer a { color: #DCE5F5; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-grid h4 { color: #fff; font-size: var(--fs-sm); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: var(--fs-xs); }
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: #8693A6; }

/* ---------- WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(7, 26, 52, .18);
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Messages ---------- */
.messages { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.message { padding: 12px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); background: var(--info-bg); color: var(--info-ink); }
.message--success { background: var(--ok-bg); color: var(--ok-ink); }
.message--warning { background: var(--warn-bg); color: var(--warn-ink); }
.message--error { background: var(--bad-bg); color: var(--bad-ink); }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 96px 16px; }
.error-page__code { font-size: 64px; font-weight: 800; color: var(--blue-100); letter-spacing: -0.04em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
