/* ── Tokens ───────────────────────────────────────────── */
:root {
  --navy: #0A1628;
  --navy-mid: #1A2E55;
  --navy-end: #0E3060;
  --blue: #1A4B8C;
  --blue-dark: #0F3468;
  --blue-mid: #2D6AB5;
  --blue-xl: #E8F0F8;
  --teal: #0E7B82;
  --teal-dark: #085F65;
  --teal-light: #12A0A9;
  --teal-glow: #7ECFCF;
  --grad-brand: linear-gradient(135deg, #1A56DB 0%, #6C3AE5 100%);
  --grad-hero: linear-gradient(145deg, #0A1628 0%, #1A2E55 42%, #0E3060 100%);
  --off: #F5F7FA;
  --ink: #0D1B35;
  --ink-mid: #4A5568;
  --ink-light: #718096;
  --border: #E8EDF4;
  --border-mid: #D1DCE8;
  --sans: 'Plus Jakarta Sans', sans-serif;
  --fast: .15s ease;
  --base: .25s ease;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 9999px;
  --sh-sm: 0 2px 8px rgba(13, 27, 53, .07);
  --sh-md: 0 4px 20px rgba(13, 27, 53, .10);
  --sh-hover: 0 20px 56px rgba(26, 75, 140, .15);
}
/* Global resets removed to prevent breaking layout wrapper */

/* ── Buttons ──────────────────────────────────────────── */
.btn[class*="btn--"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all var(--base);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--sans);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--primary-full {
  width: 100%;
  justify-content: center;
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--ghost:hover {
  background: var(--blue-xl);
}

.btn--white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.btn--white:hover {
  background: #edf2ff;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.btn--sm {
  padding: 8px 18px;
  font-size: .8125rem;
}

.btn--teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn--teal:hover {
  background: var(--teal-dark);
}

.btn[class*="btn--"] svg {
  flex-shrink: 0;
}

/* ── Eyebrow ──────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.eyebrow--teal {
  color: var(--teal-glow);
}

.eyebrow--blue {
  color: var(--teal);
}

/* ── Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.in, .reveal.visible, .reveal.animate-in {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: .07s;
}

.d2 {
  transition-delay: .14s;
}

.d3 {
  transition-delay: .21s;
}

/* ── Hero cover ───────────────────────────────────────── */
.module-cover {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--navy);
}

.module-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}

.module-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, .7) 0%, rgba(10, 22, 40, .15) 60%, transparent 100%);
}

.module-cover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 0 44px;
}

.module-cover-content .container {
  position: relative;
  z-index: 2;
}

.module-cover-content .eyebrow {
  color: var(--teal-glow);
}

.module-cover-content h1 {
  color: #fff;
  margin-bottom: 10px;
  max-width: 680px;
}

.module-lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .75);
  max-width: 560px;
  line-height: 1.72;
}

/* Meta pills on cover */
.module-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.meta-pill svg {
  flex-shrink: 0;
  color: var(--teal-glow);
}

/* ── Main layout ──────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.detail-main {}

.detail-sidebar {}

/* ── Section head ─────────────────────────────────────── */
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Curriculum list ──────────────────────────────────── */
.curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.curriculum-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: box-shadow var(--base), border-color var(--base);
}

.curriculum-item:hover {
  box-shadow: var(--sh-sm);
  border-color: var(--border-mid);
}

.curriculum-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-xl);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.curriculum-text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  padding-top: 5px;
}

/* ── Why this program ─────────────────────────────────── */
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--off);
  border-radius: var(--r-lg);
}

.why-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.why-item p {
  font-size: .86rem;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0;
}

/* ── Audience & prereqs ───────────────────────────────── */
.info-block {
  margin-bottom: 32px;
}

.info-block h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block h3 svg {
  color: var(--teal);
}

.info-block p {
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ── Sidebar: enrol form card ─────────────────────────── */
.enrol-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: sticky;
  top: 80px;
  box-shadow: var(--sh-md);
}

.enrol-card-header {
  background: var(--grad-hero);
  padding: 24px 28px;
}

.enrol-card-header h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.enrol-card-header p {
  color: rgba(255, 255, 255, .65);
  font-size: .84rem;
  margin: 0;
}

.enrol-card-body {
  padding: 24px 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 6px;
}

.form-group .required {
  color: #E53E3E;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  font-size: .9rem;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 75, 140, .08);
}

.form-input::placeholder {
  color: var(--ink-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.enrol-meta {
  background: var(--off);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 16px;
}

.enrol-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
}

.enrol-meta-row+.enrol-meta-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.enrol-meta-label {
  color: var(--ink-light);
}

.enrol-meta-value {
  font-weight: 600;
  color: var(--ink);
}

.demo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal);
  transition: color var(--fast);
}

.demo-link:hover {
  color: var(--teal-dark);
}

.demo-link svg {
  flex-shrink: 0;
}

/* ── Other modules ────────────────────────────────────── */
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.other-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--base), transform var(--base), border-color var(--base);
}

.other-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--border-mid);
}

.other-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.other-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
  transition: color var(--fast);
}

.other-card:hover h3 {
  color: var(--blue);
}

.other-card p {
  font-size: .82rem;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 6px;
}

.other-duration {
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Responsive & Details Layout ───────────────────────── */
@media(max-width:1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .enrol-card {
    position: static;
  }
  .other-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:680px) {
  .module-cover {
    height: 320px;
  }
  .why-list {
    grid-template-columns: 1fr;
  }
  .other-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Page Hero ────────────────────────────────────────── */
.page-hero{background:var(--grad-hero);color:#fff;padding:80px 0 68px;position:relative;overflow:hidden;}
.page-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 55% 70% at 88% 55%,rgba(14,123,130,.18) 0%,transparent 68%);pointer-events:none;}
.hero-dots{position:absolute;inset:0;opacity:.033;background-image:linear-gradient(rgba(255,255,255,.6) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.6) 1px,transparent 1px);background-size:60px 60px;}
.page-hero .container{position:relative;z-index:2;}
.page-hero h1{color:#fff;max-width:640px;margin-bottom:14px;}
.hero-lede{font-size:1.05rem;color:rgba(255,255,255,.72);max-width:560px;line-height:1.75;margin-bottom:32px;}

/* Trust pills in hero */
.hero-pills{display:flex;flex-wrap:wrap;gap:10px;}
.hero-pill{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:var(--r-full);padding:7px 14px;font-size:.78rem;font-weight:600;color:rgba(255,255,255,.82);}
.hero-pill svg{color:var(--teal-glow);flex-shrink:0;}

/* ── Training Modules Grid ────────────────────────────── */
.modules-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}

/* Module card */
.module-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:var(--r-xl);overflow:hidden;text-decoration:none;color:inherit;transition:box-shadow var(--base),transform var(--base),border-color var(--base);}
.module-card:hover{box-shadow:var(--sh-hover);transform:translateY(-5px);border-color:rgba(26,75,140,.1);}

/* Card image */
.module-img{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--blue-xl);flex-shrink:0;}
.module-img img{width:100%;height:100%;object-fit:cover;filter:brightness(.88);transition:transform .55s ease,filter .55s ease;}
.module-card:hover .module-img img{transform:scale(1.07);filter:brightness(.95);}
.module-img-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(10,22,40,.35) 0%,transparent 55%);}

/* Duration badge */
.module-duration{position:absolute;top:12px;right:12px;background:rgba(10,22,40,.72);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12);color:#fff;font-size:.68rem;font-weight:700;padding:4px 10px;border-radius:var(--r-full);}

/* Card body */
.module-body{padding:20px 20px 0;flex:1;display:flex;flex-direction:column;}
.module-label{font-size:.64rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:6px;}
.module-title{font-size:1rem;font-weight:700;line-height:1.35;margin-bottom:6px;color:var(--ink);transition:color var(--fast);}
.module-card:hover .module-title{color:var(--blue);}
.module-tagline{font-size:.84rem;color:var(--ink-mid);line-height:1.6;flex:1;}

/* Card footer */
.module-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;margin-top:14px;border-top:1px solid var(--border);}
.module-audience{font-size:.75rem;color:var(--ink-light);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px;}
.module-cta{display:inline-flex;align-items:center;gap:4px;font-size:.78rem;font-weight:600;color:var(--blue);flex-shrink:0;transition:gap var(--fast);}
.module-card:hover .module-cta{gap:7px;}

/* ── Why Train section ────────────────────────────────── */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.why-card{background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);padding:28px 24px;transition:box-shadow var(--base),transform var(--base);}
.why-card:hover{box-shadow:var(--sh-md);transform:translateY(-3px);}
.why-icon{width:46px;height:46px;border-radius:12px;background:var(--blue-xl);display:flex;align-items:center;justify-content:center;margin-bottom:16px;flex-shrink:0;}
.why-card h4{font-size:.95rem;font-weight:700;margin-bottom:8px;}
.why-card p{font-size:.86rem;color:var(--ink-mid);line-height:1.68;}

/* ── Parent Responsive ────────────────────────────────── */
@media(max-width:1100px){
  .modules-grid{grid-template-columns:repeat(2,1fr);}
  .why-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:680px){
  .modules-grid{grid-template-columns:1fr;}
  .why-grid{grid-template-columns:1fr;}
  .hero-pills{gap:8px;}
}
