/* ==========================================================================
   LearnUp.lk Design System Tokens & Styles (learnup.lk)
   Follows SPEC.md and DESIGN.md exactly.
   ========================================================================== */

:root {
  /* Navy (text, outlines, tints) */
  --navy: #002147;
  --navy-200: #C9D6E6;
  --navy-100: #E4ECF5;
  --navy-50: #F1F5FA;

  /* Sky (accent, gradients) */
  --sky: #00BFFF;
  --sky-300: #7AD7F9;
  --sky-200: #B5E8FC;
  --sky-100: #DDF4FD;
  --sky-50: #F2FBFF;

  /* Neutrals */
  --white: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #F5F8FB;
  --muted: #51617A;
  --accent: #0E7DB0;
  /* accent text on white, AA */
  --error: #C93B3B;
  --success: #1E8E5A;

  /* Gradients */
  --grad: linear-gradient(100deg, #0077B6 0%, #0096C7 100%);
  /* primary buttons */
  --grad-soft: linear-gradient(100deg, #B5E8FC 0%, #7AD7F9 100%);
  /* banners, open items, featured */

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Radius */
  --r-control: 8px;
  /* buttons, inputs */
  --r-tile: 12px;
  /* tiles, thumbnails, list rows */
  --r-card: 16px;
  /* cards, hero image */
  --r-banner: 20px;
  /* CTA banner */
  --r-pill: 999px;
  /* avatars and icon circles only */

  /* Space (8px grid) */
  --gap: 20px;
  --gutter: 40px;
  /* 20px under 720px */
  --container: 1400px;
  --heading-gap: 64px;
  /* heading block to content */
  --section: 140px;
  /* between sections (96px under 720px) */
}

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  min-height: 100vh;
  background-color: #FAFCFE;
  /* background-image:
    radial-gradient(900px circle at 85% 0%, rgba(0, 191, 255, 0.06), transparent 60%),
    radial-gradient(800px circle at 8% 22%, rgba(122, 215, 249, 0.08), transparent 55%),
    radial-gradient(950px circle at 92% 44%, rgba(0, 191, 255, 0.05), transparent 60%),
    radial-gradient(850px circle at 5% 66%, rgba(181, 232, 252, 0.08), transparent 55%),
    radial-gradient(900px circle at 88% 88%, rgba(122, 215, 249, 0.06), transparent 60%),
    radial-gradient(750px circle at 15% 98%, rgba(0, 191, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 18%, #F2F7FC 45%, #F7FAFD 75%, #FFFFFF 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: calc(var(--section) / 2);
}

/* Heading pattern */
.head {
  margin-bottom: var(--heading-gap);
}

.head h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.a {
  color: var(--accent);
}

.lede {
  color: var(--muted);
  max-width: 46ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.c {
  text-align: center;
}

.c .lede {
  margin-inline: auto;
}

/* Icon circles */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--sky-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  font: 500 14px/1 var(--font);
  color: var(--navy);
  border: 0;
  border-radius: var(--r-control);
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background .2s, filter .2s;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
}

.btn-primary:hover {
  filter: brightness(.92);
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--sky-50);
}

.btn-soft {
  background: var(--navy-50);
  color: var(--navy);
}

.btn-soft:hover {
  background: var(--navy-100);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--sky-50);
}

.btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

.btn-sm {
  padding: 11px 16px;
  font-size: 13px;
}

/* Nav component */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 33, 71, 0.06);
}

.nav .wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
  text-decoration: none;
}

.logo img {
  height: 28px;
  width: auto;
}

.logo .bi-asterisk {
  color: var(--sky);
  font-size: 12px;
  vertical-align: super;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav .links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}

.nav .links a:hover {
  color: var(--navy);
}

/* Hero component */
.hero {
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 22px;
}

.hero-line {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-card);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
}

/* Learning path / Track cards (Two gaps) */
.track-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* Shared Glassmorphic Card Styling */
.card-track,
.card-path,
.feature-card,
.card-workshop,
.card-course,
.step-card,
.schedule-card,
.faq-item {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 214, 230, 0.65);
}

.card-track,
.card-path {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.card-track .thumb,
.card-path .thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--r-tile);
  overflow: hidden;
}

.card-track .thumb img,
.card-path .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-track h3,
.card-path h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 18px 6px 6px;
  color: var(--navy);
}

.card-track p,
.card-path p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 6px 18px;
  flex-grow: 1;
}

.card-track .btn,
.card-path .btn {
  margin: 0 6px 6px;
  align-self: flex-start;
}

/* Feature grid (Why LearnUp.lk) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 28px;
}

.feature-card .icon-circle {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--navy);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Featured workshops & courses */
.workshops-grid,
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.courses-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-workshop,
.card-course {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.card-workshop .thumb,
.card-course .thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--r-tile);
  overflow: hidden;
}

.card-workshop .thumb img,
.card-course .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-workshop .price,
.card-course .price {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--white);
  font: 600 14px var(--font);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: var(--r-control);
}

.card-workshop h4,
.card-course h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 18px 6px 6px;
  color: var(--navy);
}

.card-workshop p,
.card-course p {
  margin: 0 6px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 6px 12px;
  font-size: 12px;
  color: var(--muted);
}

.meta span {
  display: inline-flex;
  align-items: center;
}

.meta i {
  color: var(--accent);
  margin-right: 6px;
  font-size: 14px;
}

.card-workshop .btn,
.card-course .btn {
  width: 100%;
  margin-top: 6px;
}

/* Coming Soon Overlay */
.card-coming-soon {
  position: relative;
  overflow: hidden;
}

.card-coming-soon> :not(.card-overlay) {
  opacity: 0.42;
  filter: grayscale(35%);
  pointer-events: none;
  user-select: none;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(245, 248, 251, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: inherit;
  padding: 20px;
  text-align: center;
  pointer-events: auto;
}

.coming-soon-badge {
  background: var(--sky-50);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--r-control);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.coming-soon-badge i {
  color: var(--navy);
  font-size: 15px;
}

/* Steps (How to get started) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.step-card {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 191, 255, 0.4);
}

.step-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--navy);
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Workshop Schedule */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.schedule-card {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.schedule-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.schedule-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.schedule-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.schedule-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-meta i {
  color: var(--accent);
  font-size: 14px;
}

.schedule-card > .btn {
  width: 100%;
  margin-top: auto;
}

.schedule-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  width: 100%;
  align-items: stretch;
}

.schedule-actions .btn {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

/* Accordion (FAQ) */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.faq-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--sky-50);
}

.faq-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
}

.faq-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 20px 24px;
  transition: background .2s ease;
  overflow: hidden;
}

.faq-item[open] {
  background: var(--grad-soft);
}

.faq-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  gap: 16px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--navy);
  transition: transform .2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy);
}

.faq-content p {
  margin: 0;
}

/* CTA Banner */
.cta-wrap {
  padding-block: calc(var(--section) / 2);
}

.cta {
  background: var(--grad-soft);
  border-radius: var(--r-banner);
  text-align: center;
  padding: 64px 32px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 14px;
}

.cta p {
  max-width: 54ch;
  margin: 0 auto 28px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
}

.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 56px 0 36px;
  border-top: 1px solid var(--navy-100);
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-box {
  width: 36px;
  height: 36px;
  border: 1px solid var(--navy-100);
  border-radius: var(--r-pill);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
  transition: all .2s ease;
  flex-shrink: 0;
}

.social-box:hover {
  border-color: var(--sky);
  background: var(--white);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 33, 71, 0.08);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-nav a:hover {
  color: var(--navy);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--navy-100);
  margin: 32px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.copyright {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
}

/* ==========================================================================
   Course / Workshop Detail Page Styles
   ========================================================================== */

/* Breadcrumbs Component */
.breadcrumbs {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 500;
}

.breadcrumb-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  color: rgba(0, 33, 71, 0.35);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item.active,
.breadcrumb-item[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* Detail Hero */
.detail-hero {
  padding-top: 48px;
  padding-bottom: 0;
}

.detail-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 16px;
}

.detail-lede {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
  margin-bottom: 24px;
}

.detail-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detail-meta-item i {
  color: var(--accent);
  font-size: 16px;
}

.detail-hero-media {
  position: relative;
  aspect-ratio: 16/7;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.05);
}

.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two-column overview layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail-block h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.detail-block p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Checklists */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
}

.checklist i {
  color: var(--accent);
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Outcomes grid */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  border-radius: var(--r-tile);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy);
}

.outcome-card i {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Sticky Info Card */
.detail-sidebar {
  position: sticky;
  top: 96px;
}

.detail-info-card {
  background: var(--grad-soft);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 33, 71, 0.1);
}

.info-price-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  opacity: 0.8;
}

.info-price-val {
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.info-fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-fact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

.info-fact-item i {
  color: var(--accent);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.detail-info-card .btn {
  width: 100%;
}

.info-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -12px;
}

/* Tools list */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  border-radius: var(--r-tile);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-card i {
  font-size: 26px;
  color: var(--accent);
}

.tool-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.tool-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Instructor card */
.instructor-card {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.instructor-avatar {
  width: 120px;
  height: 150px;
  border-radius: var(--r-tile);
  overflow: hidden;
  flex-shrink: 0;
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.instructor-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.instructor-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.contact-channel-card {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: var(--sky-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 26px;
  flex-shrink: 0;
}

.contact-channel-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 4px;
}

.contact-channel-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-channel-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  flex-grow: 1;
}

.contact-badge-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  padding: 4px 10px;
  border-radius: var(--r-control);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-channel-card .btn {
  margin-top: 8px;
  width: 100%;
}

/* Social showcase */
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.social-tile {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-tile);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.social-tile:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
}

.social-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sky-50);
  border: 1px solid var(--navy-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 20px;
  flex-shrink: 0;
  transition: all .2s ease;
}

.social-tile:hover .social-tile-icon {
  background: var(--sky-100);
  color: var(--accent);
}

.social-tile-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.social-tile-info span {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   About Page Styles & Headings
   ========================================================================== */
.about-hero {
  padding-top: 24px;
  padding-bottom: 24px;
}

.about-hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Headings & Eyebrows */
.section-head {
  margin-bottom: var(--heading-gap);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-head .subline {
  font-size: 16px;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.5;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Large description justification & line height 150% */
.story-gap-card p,
.mission-card p,
.detail-block p,
.legal-body p,
.large-desc,
.text-justify {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.5;
}

/* Why we exist: title left, text right */
.split-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: flex-start;
}

.split-story-left h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
}

.split-story-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story-gap-card {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-card);
  padding: 32px;
  transition: transform .2s ease, border-color .2s ease;
}

.story-gap-card:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
}

.story-gap-card .gap-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-block;
}

.story-gap-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.story-gap-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Mission & Vision grid */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.mission-card {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--r-tile);
  background: var(--sky-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 24px;
}

.mission-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.mission-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Principles rows/grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.principle-card {
  background: var(--surface);
  border: 1px solid rgba(201, 214, 230, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-tile);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, border-color .2s ease;
}

.principle-card:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
}

.principle-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  width: fit-content;
  padding: 2px 8px;
  border-radius: var(--r-control);
}

.principle-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.principle-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Legal Pages (Terms & Privacy)
   ========================================================================== */
.legal-section {
  padding: 48px 0 80px;
}

.legal-wrap {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--navy);
}

.legal-wrap h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-100);
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-body p {
  font-size: 15px;
  color: var(--navy);
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 18px;
}

.legal-body ul {
  margin: 12px 0 20px 24px;
  color: var(--navy);
}

.legal-body li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .tools-grid,
  .social-cards-grid,
  .principles-grid,
  .feature-grid,
  .workshops-grid,
  .courses-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-media {
    aspect-ratio: 16/9;
    max-height: 380px;
  }

  .split-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .hero-grid {
    gap: 36px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Mobile Breakpoint (468px)
   ========================================================================== */
@media (max-width: 468px) {
  :root {
    --gutter: 16px;
    --section: 80px;
  }

  .nav .links {
    display: none;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 42px);
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .hero-line {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .track-grid,
  .path-grid,
  .feature-grid,
  .workshops-grid,
  .courses-grid,
  .courses-grid-2,
  .steps-grid,
  .schedule-grid,
  .outcomes-grid,
  .tools-grid,
  .contact-cards-grid,
  .social-cards-grid,
  .split-story-grid,
  .mission-vision-grid,
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .schedule-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .schedule-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .schedule-actions .btn {
    width: 100%;
    flex: none;
    padding: 13px 16px;
    font-size: 14px;
    white-space: normal;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-media {
    aspect-ratio: 16/9;
    max-height: 220px;
    border-radius: var(--r-tile);
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .legal-wrap h1 {
    font-size: 26px;
  }

  .instructor-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
  }

  .instructor-avatar {
    width: 90px;
    height: 110px;
  }

  .detail-hero-media {
    aspect-ratio: 16/10;
  }

  .cta {
    padding: 36px 16px;
  }

  .step-card {
    padding: 20px 18px;
  }

  .step-num {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer {
    padding: 36px 0 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    gap: 10px 16px;
    padding-bottom: 0;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* Accessibility: Smooth Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}