/* ============================================================
   P6 Pro Academy — One-Day Crash Course Stylesheet
   Design: Superlist-inspired dark, immersive, modern layout
   Brand Colours: Navy #1B2A4A | Gold #C9A84C
   ============================================================ */

/* --- CSS Custom Properties (design tokens) --- */
:root {
  --navy: #1B2A4A;
  --navy-light: #243658;
  --navy-dark: #111d33;
  --bg-dark: #0c0f1a;           /* Near-black background — Superlist style */
  --bg-surface: #141824;        /* Slightly lighter surface for cards */
  --bg-surface-hover: #1a2030;  /* Hover state for surfaces */
  --gold: #C9A84C;
  --gold-light: #d4b96a;
  --gold-dark: #b8963a;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --grey-100: #f0f1f4;
  --grey-200: #e2e4e9;
  --grey-300: #c5c8d0;
  --grey-400: #9ca0ab;
  --grey-600: #6b7080;
  --grey-800: #2d3142;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(201, 168, 76, 0.4);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed navbar */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Utility: Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;         /* Fully rounded pill shape — Superlist style */
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================================
   NAVBAR — fixed top navigation, Superlist-style three-column
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Darken navbar slightly when user scrolls */
.navbar.scrolled {
  background: rgba(12, 15, 26, 0.95);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Gold accent on "P6" in the logo */
.logo-p6 {
  color: var(--gold);
  font-weight: 800;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Right-side CTA in navbar */
.nav-right {
  flex-shrink: 0;
}

.nav-cta-btn {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

/* Hamburger menu toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ============================================================
   HERO — Superlist-inspired dark immersive hero
   Large centred headline with gold accent, floating preview card
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg-dark);
  overflow: hidden;
  padding: 160px 24px 80px;
}

/* Radial gold glow behind the headline — mimics Superlist's ambient light
   Now pulsing gently, inspired by Antigravity's ambient background */
.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 168, 76, 0.08) 0%,
    rgba(201, 168, 76, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: hero-glow-pulse 4s ease-in-out infinite;
}

/* Glow breathes in and out for a living, ambient feel */
@keyframes hero-glow-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.6; transform: translateX(-50%) scale(1.08); }
}

/* --- Floating Particles — CSS-only ambient orbs inspired by Antigravity --- */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Each particle is a small glowing circle that floats upward continuously */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: particle-float linear infinite;
}

/* Individual particle sizes, positions, and timing — staggered for natural look */
.hero-particle:nth-child(1) { width: 4px; height: 4px; left: 12%; animation-duration: 14s; animation-delay: 0s; }
.hero-particle:nth-child(2) { width: 6px; height: 6px; left: 28%; animation-duration: 18s; animation-delay: 2s; }
.hero-particle:nth-child(3) { width: 3px; height: 3px; left: 45%; animation-duration: 12s; animation-delay: 4s; }
.hero-particle:nth-child(4) { width: 5px; height: 5px; left: 62%; animation-duration: 16s; animation-delay: 1s; }
.hero-particle:nth-child(5) { width: 4px; height: 4px; left: 78%; animation-duration: 20s; animation-delay: 3s; }
.hero-particle:nth-child(6) { width: 3px; height: 3px; left: 90%; animation-duration: 15s; animation-delay: 5s; }
.hero-particle:nth-child(7) { width: 5px; height: 5px; left: 5%;  animation-duration: 17s; animation-delay: 7s; }
.hero-particle:nth-child(8) { width: 4px; height: 4px; left: 55%; animation-duration: 13s; animation-delay: 6s; }

/* Particle floats from below the viewport upward, fading in then out */
@keyframes particle-float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.4; transform: translateY(80vh) scale(1); }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

/* --- Staggered Hero Fade-In — Antigravity-style cascading entrance --- */
.hero-content,
.hero-preview {
  opacity: 0;
  animation: hero-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Title appears first, then subtitle, actions, and preview in sequence */
.hero-content { animation-delay: 0.2s; }
.hero-preview { animation-delay: 0.8s; }

/* Each child element inside hero-content staggers slightly */
.hero h1           { opacity: 0; animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }
.hero-subtitle     { opacity: 0; animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards; }
.hero-actions      { opacity: 0; animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards; }

/* Slide up from below while fading in — smooth deceleration curve */
@keyframes hero-fade-up {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Typewriter Blinking Cursor — Antigravity-style text cursor --- */
.hero-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--gold);
  margin-left: 4px;
  vertical-align: text-bottom;
  border-radius: 2px;
  animation: cursor-blink 0.6s infinite;
}

/* Cursor blinks on and off like a code editor caret */
@keyframes cursor-blink {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  100% { opacity: 0; }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin-bottom: 80px;
}

/* Massive bold headline — Superlist's signature oversized type */
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* Gold accent on the second line — mirrors Superlist's coloured phrase */
.hero-accent {
  display: block;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   HERO PREVIEW — floating window mockup below the headline
   Mimics Superlist's product screenshot / device frame
   ============================================================ */
.hero-preview {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding: 0 24px;
}

.preview-window {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* macOS-style window toolbar */
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* Colour the three dots like macOS traffic lights */
.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Two-column layout inside the preview window */
.preview-body {
  display: flex;
  min-height: 320px;
}

.preview-sidebar {
  width: 220px;
  padding: 20px 16px;
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.preview-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: default;
  transition: all var(--transition);
  margin-bottom: 4px;
}

.preview-nav-item.active {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

.preview-icon {
  font-size: 1rem;
}

.preview-main {
  flex: 1;
  padding: 24px 28px;
}

.preview-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.preview-task-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background var(--transition);
}

.preview-task:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Checkmark circle for completed tasks */
.preview-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  border: 2px solid var(--border-subtle);
  color: transparent;
}

.preview-check.done {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
}

/* ============================================================
   SECTION HEADERS — reusable heading pattern (dark theme)
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   ABOUT — features grid on dark background
   ============================================================ */
.about {
  padding: 120px 0;
  background: var(--bg-dark);
}

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

.feature-card {
  padding: 36px 28px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   MODULES — three-card overview grid
   ============================================================ */
.modules {
  padding: 120px 0;
  background: var(--bg-surface);
}

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

.module-card {
  display: block;
  padding: 40px 32px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

/* Large letter badge in the corner */
.module-letter {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.module-card:hover .module-letter {
  opacity: 0.4;
}

.module-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.module-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.module-tasks {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
}

/* ============================================================
   COURSE PARTS — main teaching content sections
   ============================================================ */
.course-part {
  padding: 120px 0;
  background: var(--bg-dark);
}

/* Alternate background for visual separation */
.course-part.part-alt {
  background: var(--bg-surface);
}

.part-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.part-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.part-header h2 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.part-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ============================================================
   TOPIC CARDS — individual lesson blocks
   ============================================================ */
.topic-card {
  display: flex;
  gap: 32px;
  padding: 48px 40px;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);    /* Animate all properties — matches feature/module cards */
}

/* Keep consistent card bg on alternate sections */
.part-alt .topic-card {
  background: var(--bg-dark);
}

/* Hover lift + shadow to match feature and module card behaviour */
.topic-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Large number label on the left */
.topic-number {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  min-width: 60px;
  flex-shrink: 0;
}

.topic-content {
  flex: 1;
}

.topic-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.topic-content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Key concept boxes within topic cards */
.key-concept {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
}

.key-concept h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.key-concept ul {
  list-style: none;
  padding: 0;
}

.key-concept li {
  padding: 4px 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  padding-left: 20px;
}

/* Gold bullet points */
.key-concept li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* Pro-tip / How-to boxes — increased contrast for readability */
.pro-tip {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  color: rgba(255, 255, 255, 0.9);  /* Bumped from 0.8 to 0.9 for WCAG AA compliance */
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 20px;
}

.pro-tip strong {
  color: var(--gold);
}

.pro-tip em {
  color: var(--gold-light);
  font-style: normal;
}

/* ============================================================
   DATA TABLES — dark-themed reference tables
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table caption {
  padding: 12px 16px;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.data-table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(201, 168, 76, 0.3);
}

.data-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.75);
}

.data-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.05);
}

/* ============================================================
   QUICK REFERENCE — keyboard shortcuts grid
   ============================================================ */
.reference {
  padding: 120px 0;
  background: var(--bg-surface);
}

.reference .section-header h2 {
  color: var(--white);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.ref-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.ref-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

/* Keyboard key styling */
kbd {
  display: inline-block;
  min-width: 70px;
  padding: 6px 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  white-space: nowrap;
}

.ref-item span:not(kbd) {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   TEMPLATES — free template cards section
   ============================================================ */
.templates {
  padding: 120px 0;
  background: var(--bg-surface);
}

/* Two-column grid for template cards, single column on mobile */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.template-card {
  padding: 36px 28px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

/* Emoji icon above each template card title */
.template-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.template-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.template-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Inline column/field pills showing what's in the template */
.template-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.template-col {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* "Ties to" reference line linking template to course tasks */
.template-link-text {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

.template-link-text strong {
  color: var(--gold);
}

/* ============================================================
   HERO TRUST BAR — credibility signals below the CTA
   ============================================================ */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Small gold dot separating trust items */
.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

/* ============================================================
   OUTCOME LIST — bullet points inside module cards
   Replaces the verbose task-by-task syllabus
   ============================================================ */
.outcome-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

/* Each outcome gets a gold checkmark prefix */
.outcome-list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.outcome-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Module cards in the curriculum section are now block (not links) */
.modules .module-card {
  display: block;
  text-decoration: none;
  cursor: default;
}

/* ============================================================
   INSTRUCTOR — authority and trust section
   ============================================================ */
.instructor {
  padding: 120px 0;
  background: var(--bg-dark);
}

/* Side-by-side layout: avatar left, bio right */
.instructor-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

/* Instructor headshot — circular crop with gold border accent */
.instructor-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid rgba(201, 168, 76, 0.4);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
}

.instructor-photo {
  flex-shrink: 0;
}

.instructor-bio h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.instructor-title {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

/* Row of credential badges (PMP, RMP, etc.) */
.instructor-credentials {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.credential-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.instructor-bio p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ============================================================
   LOGISTICS — course details grid
   ============================================================ */
.logistics {
  padding: 120px 0;
  background: var(--bg-dark);
}

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

.logistics-item {
  padding: 32px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.logistics-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.logistics-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.logistics-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.logistics-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Price number styled prominently in the logistics card */
.price-highlight {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
}

/* ============================================================
   TESTIMONIALS — social proof cards
   ============================================================ */
.testimonials {
  padding: 120px 0;
  background: var(--bg-surface);
}

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

.testimonial-card {
  padding: 36px 28px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

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

/* Gold star rating row */
.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author strong {
  color: var(--white);
  font-size: 0.9rem;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================
   CTA — pricing and conversion section
   ============================================================ */
/* CTA price block */
.cta-price {
  margin-bottom: 32px;
}

.cta-price-amount {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-price-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-subtext {
  margin-top: 16px;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

/* ============================================================
   CTA — call-to-action section
   ============================================================ */
.cta {
  padding: 120px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle glow behind the CTA for visual emphasis */
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 168, 76, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.cta-content h2 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cta-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ============================================================
   FOOTER — branding and attribution
   ============================================================ */
.site-footer {
  padding: 48px 0;
  background: var(--bg-surface);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-attribution {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-attribution a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-attribution a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   ANIMATED PILL BUTTON — "Novice to Expert"
   Pure CSS recreation of the React ButtonWithIcon component.
   Icon circle slides from right to left on hover, text shifts.
   ============================================================ */
.btn-icon-slide {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 4px 56px 4px 24px;     /* Extra right padding for the icon circle */
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: padding 0.5s ease, border-color 0.3s ease;
  width: fit-content;
}

/* On hover: shift text right, make room for icon on the left */
.btn-icon-slide:hover {
  padding: 4px 24px 4px 56px;
  border-color: var(--border-hover);
}

/* The text label inside the button */
.btn-icon-slide__text {
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
  white-space: nowrap;
}

/* The sliding icon circle */
.btn-icon-slide__icon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.5s ease, transform 0.5s ease;
}

/* On hover: slide the icon circle from right to left and rotate 45 degrees */
.btn-icon-slide:hover .btn-icon-slide__icon {
  right: calc(100% - 46px);
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   MOBILE ENROL CTA — styled gold button inside hamburger menu
   Hidden on desktop, visible only in the mobile dropdown
   ============================================================ */
.nav-enrol-mobile {
  display: none;    /* Hidden on desktop */
}

/* ============================================================
   SCROLL REVEAL — CSS classes toggled by JavaScript
   Replaces inline styles for cleaner separation of concerns
   ============================================================ */
.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================================
   RESPONSIVE — mobile-first adjustments
   ============================================================ */

/* Tablet breakpoint */
@media (max-width: 768px) {
  /* Show hamburger, hide nav links and CTA by default */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(12, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-subtle);
    gap: 4px;
  }

  /* Show nav links when toggle is active */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .nav-right {
    display: none;
  }

  /* Show Enrol button inside the hamburger menu on mobile */
  .nav-enrol-mobile {
    display: list-item;
  }

  .nav-cta-mobile {
    background: var(--gold) !important;
    color: var(--bg-dark) !important;
    font-weight: 700 !important;
    text-align: center;
  }

  /* Topic cards stack vertically on mobile */
  .topic-card {
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
  }

  .topic-number {
    font-size: 2rem;
    min-width: auto;
  }

  /* Reduce section padding on mobile */
  .about,
  .modules,
  .course-part,
  .reference,
  .templates,
  .instructor,
  .logistics,
  .testimonials,
  .cta {
    padding: 80px 0;
  }

  /* Instructor section stacks vertically on mobile */
  .instructor-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .instructor-credentials {
    justify-content: center;
  }

  /* Preview window sidebar hides on mobile */
  .preview-sidebar {
    display: none;
  }

  .hero {
    padding: 130px 24px 60px;
  }

  .hero-content {
    margin-bottom: 48px;
  }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .features-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .ref-grid {
    grid-template-columns: 1fr;
  }

  .preview-heading {
    font-size: 1.1rem;
  }

  .preview-task {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  /* Animated button becomes full-width on small screens */
  .btn-icon-slide {
    width: 100%;
    justify-content: center;
  }
}

/* Large screen breakpoint — prevent overly sparse layouts on ultra-wide monitors */
@media (min-width: 1600px) {
  :root {
    --max-width: 1400px;
  }

  .hero h1 {
    font-size: 5.5rem;
  }
}

/* ============================================================
   ACCESSIBILITY — respect user motion preferences
   Disables all animations for users who request reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-particle {
    display: none;
  }

  .hero-cursor {
    animation: none;
    opacity: 1;
  }

  .reveal-hidden {
    opacity: 1;
    transform: none;
  }
}
