/* ============================================
   THE CRITICAL CARE COURSE — Global Styles
   ============================================ */

:root {
  /* Brand colours from logo */
  --blue:       #1B4EA8;   /* brand royal blue */
  --blue-dark:  #0E2D6E;   /* darker blue for backgrounds */
  --blue-deep:  #091d4a;   /* deepest blue for hero/footer */
  --blue-light: #2563c4;   /* lighter blue for hover states */
  --red:        #E31F26;   /* brand red */
  --red-hover:  #C41A20;   /* darker red for hover */

  /* Aliases used throughout CSS */
  --navy:       var(--blue-dark);
  --navy-light: var(--blue);
  --teal:       var(--red);
  --teal-hover: var(--red-hover);

  --white:      #ffffff;
  --off-white:  #f5f7fc;
  --light-gray: #dde3ee;
  --mid-gray:   #8a96ae;
  --dark-text:  #111827;
  --body-text:  #374151;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.18);
  --transition: 0.2s ease;
  --max-width: 1160px;
}

/* --- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--body-text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Container ---------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ============================================
   ACRONYM STYLING
   Core Assessment Revision & Education
   C, A, R, E = brand red; rest = brand blue
   ============================================ */

/* Light background version */
.acronym-text {
  font-weight: 700;
  color: var(--blue);
}
.acronym-text .acr { color: var(--red); }

/* Dark background version (hero, dark sections) */
.acronym-text-dark {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.acronym-text-dark .acr { color: #FF3333; }

/* Course name with CARE styled */
.course-name { font-weight: 700; color: var(--blue-dark); }
.course-name .care { color: var(--red); }
.course-name-dark { font-weight: 700; color: var(--white); }
.course-name-dark .care { color: #FF3333; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.nav-logo-text .brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}
.nav-logo-text .sub {
  font-size: 10px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .nav-logo-text { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text);
  transition: all var(--transition);
  white-space: nowrap;
}

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

.nav-links a.nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 9px 18px;
  margin-left: 8px;
  font-weight: 600;
}

.nav-links a.nav-cta:hover { background: var(--teal-hover); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,165,160,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--light-gray);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(140deg, var(--blue-deep) 0%, var(--blue-dark) 50%, #143580 100%);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227,31,38,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27,78,168,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227,31,38,0.15);
  border: 1px solid rgba(227,31,38,0.35);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #FF3333;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero h1 .accent { color: #FF3333; }

.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.hero-trust img { height: 28px; opacity: 0.6; filter: brightness(2); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-gray);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-divider { border-right: 1px solid var(--light-gray); }
.stat-divider:last-child { border-right: none; }

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--mid-gray);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   SECTION TYPOGRAPHY
   ============================================ */
section { padding: 84px 0; }

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 17px;
  color: var(--body-text);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 48px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--light-gray);
}

/* ============================================
   AUDIENCE CARDS
   ============================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all var(--transition);
}

.audience-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(27,78,168,0.14);
  transform: translateY(-2px);
}

.audience-icon {
  width: 46px;
  height: 46px;
  background: rgba(27,78,168,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.65;
}

/* ============================================
   COURSE FORMAT SECTION
   ============================================ */
.format-section {
  background: linear-gradient(140deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  color: var(--white);
}

.format-section .section-title { color: var(--white); }
.format-section .section-lead { color: rgba(255,255,255,0.68); }

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

.format-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.format-card:hover { background: rgba(255,255,255,0.08); }

.format-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
}

.format-step {
  font-size: 52px;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.format-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.format-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { background: var(--off-white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.quote-mark {
  font-size: 64px;
  line-height: 1;
  color: var(--teal);
  opacity: 0.2;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  right: 20px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author { font-weight: 700; font-size: 14px; color: var(--navy); }
.testimonial-role { font-size: 13px; color: var(--mid-gray); }

/* ============================================
   ENDORSEMENT STRIP
   ============================================ */
.endorsement-strip {
  padding: 52px 0;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

.endorsement-strip img { height: 52px; margin: 0 auto 12px; opacity: 0.82; }
.endorsement-strip p { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(140deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 84px 0;
}

.cta-section h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.5);
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand p { font-size: 13px; line-height: 1.75; max-width: 260px; }

footer h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: #FF3333; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-social { display: flex; gap: 8px; }

.social-link {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}

.social-link:hover { background: var(--red); color: var(--white); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(140deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 56px 0 52px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.breadcrumb a { color: #FF3333; transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.content-block {
  max-width: 760px;
}

.content-block h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-top: 40px;
}

.content-block h2:first-child { padding-top: 0; }

.content-block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 16px;
}

.content-block p:last-child { margin-bottom: 0; }

.content-hr {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 36px 0;
}

.info-box {
  background: rgba(27,78,168,0.06);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p { font-size: 15px; color: var(--body-text); margin: 0; line-height: 1.7; }

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.feature-item {
  background: var(--off-white);
  border-radius: 10px;
  padding: 22px 20px;
}

.feature-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--body-text);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   TEAM PAGE
   ============================================ */
.team-list { display: flex; flex-direction: column; gap: 56px; }

.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--light-gray);
}

.team-member:last-child { border-bottom: none; padding-bottom: 0; }

.team-photo-wrap { flex-shrink: 0; }

.team-photo {
  width: 220px;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  display: block;
  background: var(--light-gray);
}

.team-photo-placeholder {
  width: 220px;
  height: 260px;
  background: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 64px;
}

.team-bio-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  display: block;
}

.team-bio-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--body-text);
}

.team-bio-text p { margin-bottom: 12px; }
.team-bio-text p:last-child { margin-bottom: 0; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 52px;
  align-items: start;
}

.contact-aside h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-aside > p {
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  background: rgba(27,78,168,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.contact-item-text { font-size: 14px; line-height: 1.55; }
.contact-item-text strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 2px; }
.contact-item-text a { color: var(--blue); transition: opacity var(--transition); }
.contact-item-text a:hover { opacity: 0.8; }

.book-cta-box {
  background: linear-gradient(140deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  border-radius: 14px;
  padding: 28px 24px;
  color: var(--white);
  margin-top: 28px;
}

.book-cta-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.book-cta-box p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 18px; line-height: 1.65; }
.book-cta-box .btn { width: 100%; justify-content: center; }

/* --- Form --------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--light-gray);
  border-radius: 7px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--dark-text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,78,168,0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 13px; color: var(--mid-gray); margin-top: 12px; }

.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition);
  margin-top: 4px;
}

.form-submit:hover { background: var(--teal-hover); }

/* --- Dates Table -------------------------- */
.dates-section { background: var(--off-white); }

.dates-table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: var(--shadow); }

.dates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.dates-table thead th {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dates-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--body-text);
}

.dates-table tbody tr:last-child td { border-bottom: none; }
.dates-table tbody tr:hover td { background: #f1f8f8; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.status-open     { background: #dcfce7; color: #15803d; }
.status-limited  { background: #fef9c3; color: #92400e; }
.status-full     { background: #fee2e2; color: #dc2626; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--light-gray); padding: 12px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { margin-left: 0; }
  .nav-toggle { display: flex; }

  .format-grid { grid-template-columns: 1fr; }
  .two-col-grid { grid-template-columns: 1fr; }
  .team-member { grid-template-columns: 1fr; }
  .team-photo, .team-photo-placeholder { width: 100%; height: 220px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-divider:nth-child(2) { border-right: none; }
  .hero { padding: 64px 0 56px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Hero entrance animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge  { animation: heroFadeUp 0.6s ease 0.1s both; }
.hero h1     { animation: heroFadeUp 0.6s ease 0.25s both; }
.hero-acronym-line { animation: heroFadeUp 0.6s ease 0.38s both; }
.hero-lead   { animation: heroFadeUp 0.6s ease 0.5s both; }
.hero-actions { animation: heroFadeUp 0.6s ease 0.62s both; }
.hero-trust  { animation: heroFadeUp 0.6s ease 0.74s both; }

/* ============================================
   PHOTO CAROUSEL
   ============================================ */
.carousel-wrap {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--blue-dark);
}

@media (max-width: 600px) {
  .carousel-wrap { height: 260px; }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: 0;
}
.carousel-slide.active { opacity: 1; z-index: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(9,29,74,0.55) 0%, transparent 60%);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 32px 40px;
}

.carousel-caption {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  max-width: 340px;
  line-height: 1.5;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.25);
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--red); border-color: var(--red); }

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  padding: 0;
}
.carousel-dot.active { background: var(--white); transform: scale(1.25); }

/* ============================================
   COURSE TIMETABLE
   ============================================ */
.timetable-section { background: var(--off-white); }

.timetable {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  position: relative;
}

.timetable::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-gray);
}

.timetable-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  position: relative;
  padding-bottom: 4px;
}

.timetable-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--mid-gray);
  padding: 16px 20px 16px 0;
  text-align: right;
  letter-spacing: 0.02em;
  padding-top: 18px;
}

.timetable-content {
  padding: 14px 0 14px 28px;
  position: relative;
}

.timetable-content::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--off-white);
  z-index: 1;
}

.timetable-row.break .timetable-content::before { background: var(--mid-gray); }
.timetable-row.highlight .timetable-content::before { background: var(--red); }

.timetable-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 2px;
}

.timetable-desc {
  font-size: 13px;
  color: var(--mid-gray);
}

.timetable-row.break .timetable-label { color: var(--mid-gray); font-weight: 500; }

.timetable-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}
.tag-workshop { background: rgba(27,78,168,0.1); color: var(--blue); }
.tag-session  { background: rgba(227,31,38,0.08); color: var(--red); }

.timetable-dur {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--mid-gray);
  margin-left: 8px;
  vertical-align: middle;
}

.timetable-parallel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.timetable-parallel span {
  background: rgba(27,78,168,0.07);
  color: var(--blue);
  border: 1px solid rgba(27,78,168,0.15);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================
   VIDEO EMBED
   ============================================ */
.video-section { background: var(--blue-deep); color: var(--white); }
.video-section .section-title { color: var(--white); }
.video-section .section-lead { color: rgba(255,255,255,0.68); }

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  background: #000;
  aspect-ratio: 16/9;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Placeholder shown when no video URL is set */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--blue-dark) 0%, #1a3a7a 100%);
  color: rgba(255,255,255,0.6);
  gap: 12px;
  cursor: pointer;
}
.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-placeholder:hover .video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(227,31,38,0.4);
}
.video-placeholder p { font-size: 15px; font-weight: 500; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  text-align: left;
  transition: background var(--transition);
}
.faq-trigger:hover { background: var(--off-white); }
.faq-trigger[aria-expanded="true"] { color: var(--red); }

.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--mid-gray);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--red);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-body-inner {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body-text);
}

/* ============================================
   ANIMATED STAT COUNTERS
   ============================================ */
.stat-value[data-target] {
  transition: none; /* JS handles this */
}

/* ============================================
   MAILING LIST STRIP
   ============================================ */
.maillist-strip {
  background: var(--off-white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding: 48px 0;
  text-align: center;
}
.maillist-strip h3 { font-size: 22px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.maillist-strip p { font-size: 15px; color: var(--body-text); margin-bottom: 24px; }

.maillist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.maillist-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.maillist-form input:focus { border-color: var(--blue); }

@media (max-width: 500px) {
  .maillist-form { flex-direction: column; }
  .maillist-form .btn { width: 100%; justify-content: center; }
  .timetable::before { left: 64px; }
  .timetable-row { grid-template-columns: 64px 1fr; }
}
