/* === COLOR SYSTEM === */
:root {
  --primary: #0D0D0D;
  --primary-dark: #000000;
  --primary-light: #1A1A1A;
  --accent: #D41920;
  --accent-dark: #A81118;
  --accent-tint: #FDE8E9;
  --background: #FFFFFF;
  --surface: #F5F5F5;
  --surface-alt: #EBEBEB;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-on-dark: #EDEEF1;
  --text-muted-on-dark: #A9B2C0;
  --border: #D8D8D8;
  --border-on-dark: rgba(255,255,255,0.12);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Consolas", "Monaco", monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
  --container-w: 1240px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 2. SKIP LINK */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* 3. FOCUS-VISIBLE */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 4. CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* 5. EYEBROW */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

/* 6. SECTION-HEAD */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 16px;
  color: var(--text);
}

.section-head .section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* 7. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

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

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

.btn-share {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-share:hover {
  background: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--text-muted);
  border-color: var(--text-muted);
}

.btn-disabled:hover {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--text-muted);
  transform: none;
}

/* File upload styling */
.file-upload-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-remove-btn {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.file-remove-btn:hover {
  background: #fecaca;
}

.text-link {
  font-weight: 700;
  color: var(--accent);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover {
  color: var(--accent-dark);
}

/* 8. HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13,13,13,0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-on-dark);
  transition: box-shadow var(--transition), padding var(--transition);
}

/* Offset for fixed header */
body {
  padding-top: 72px;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex-shrink: 0;
}

.brand-logo {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted-on-dark);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  margin: 0 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-on-dark);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Style for the active navigation link in the header */
.site-header .nav-link.active {  
  /* Keep original text color, do not change it */
  /* color: var(--accent); */
  
  /* Apply a text shadow for the glow effect */
  text-shadow: 
    0 0 8px var(--text-on-dark), /* Subtle glow using text color */
    0 0 12px var(--accent);      /* Wider glow using accent color */
  
  /* Remove background highlight and scaling for a pure text glow */
  background-color: transparent;
  padding: 6px 10px; /* Revert to default padding */
  border-radius: var(--radius-sm); /* Revert to default border-radius */

  /* Smooth transition for when the active state changes */
  transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* Specific styles for active links in the mobile navigation */
.mobile-nav-list .nav-link.active {
  /* Ensure text color is white for active state in mobile nav */
  color: #fff; 
  
  /* Apply the same glow effect as desktop */
  text-shadow: 
    0 0 8px var(--text-on-dark), /* Subtle glow using text color */
    0 0 12px var(--accent);      /* Wider glow using accent color */
}

/* Hide the ::after pseudo-element for active links in mobile nav */
/* Mobile nav links already have a border-bottom for separation */
.mobile-nav-list .nav-link.active::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 9px 18px;
  font-size: 0.88rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: block;
}

/* Animate hamburger into X when active */
.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--primary);
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  z-index: 999;
  border-bottom: 1px solid var(--border-on-dark);
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-list .nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
  border-radius: 0;
}

.mobile-nav-list .nav-link:hover {
  background: transparent;
  color: #fff;
  padding-left: 8px;
}

/* 9. HERO */
.hero {
  padding: 84px 0 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.price-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  white-space: nowrap;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 22px;
  max-width: 22ch;
  color: var(--text);
  text-align: center;
}

.hero-subheadline {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 36px;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-tracks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.hero-track {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-light);
  white-space: nowrap;
}

.hero-track-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* 10. PORTFOLIO / PROGRAM CARDS */
.portfolio-section {
  padding: 96px 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.program-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.program-card-top {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.course-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.program-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.registration-status {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
}

.registration-status.open {
  background: #10B981;
  color: #ffffff;
}

.registration-status.closed {
  background: #6B7280;
  color: #ffffff;
}

.program-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.program-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.program-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.program-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.program-topics li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.program-topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.program-card-actions {
  margin-top: auto;
}

.program-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

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

.program-actions .btn-share {
  grid-column: 1 / -1;
}

/* 11. LAB SECTION */
.lab-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

/* DASHBOARD */
.dashboard-container {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin: 0;
}

.dashboard-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--background);
  color: var(--text);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.kpi-change {
  font-size: 0.8rem;
  font-weight: 700;
}

.kpi-change.positive {
  color: #28a745;
}

.kpi-change.negative {
  color: var(--accent);
}

.charts-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.chart-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.chart-box canvas {
  width: 100%;
  height: auto;
}

.data-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table .status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.completed { background: #d4edda; color: #155724; }
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.processing { background: #cce5ff; color: #004085; }

/* 12. BENEFITS */
.benefits-section {
  padding: 96px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.benefit-card {
  background: var(--background);
  padding: 32px 28px;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(212, 25, 32, 0.08);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.benefit-title {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.benefit-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 13. REVIEWS */
.reviews-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

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

.review-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border-top: 3px solid var(--accent);
  transition: box-shadow var(--transition), transform var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reviewer-name {
  font-weight: 700;
  color: var(--text);
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-course {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.review-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* 13. REVIEWS SLIDER */
.reviews-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.reviews-slider-wrap {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 30px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-slider-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: infiniteScroll 45s linear infinite;
}

.reviews-slider-track:hover {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reviews-slider-wrap .review-card {
  flex-shrink: 0;
  width: 360px;
  margin: 0;
}

/* File upload styling */
.file-upload-wrap {
  position: relative;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
}

.file-label:hover,
.file-input:focus + .file-label {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.file-label svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* 15. ENROLLMENT */
.contact-section {
  padding: 96px 0;
  background: var(--primary);
  color: var(--text-on-dark);
}

.contact-section .section-head h2 {
  color: #fff;
}

.contact-section .section-intro {
  color: var(--text-muted-on-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-details {
  margin-top: 24px;
}

.contact-details dt {
  font-weight: 700;
  color: var(--text-muted-on-dark);
  margin-bottom: 4px;
}

.contact-details dd {
  margin-left: 0;
  margin-bottom: 12px;
  color: #fff;
}

.contact-form {
  background: rgba(255,255,255,0.03);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-on-dark);
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2);
  color: #fff;
  color-scheme: dark;
  transition: border-color var(--transition);
}

.contact-form select option {
  color: #1A1A1A;
  background-color: #FFFFFF;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* 16. CONTACT STRIP */
.contact-strip {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 20px 24px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.contact-card a {
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

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

/* 17. FOOTER */
.site-footer {
  background: var(--primary);
  padding: 64px 0 32px;
  color: var(--text-on-dark);
}

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

.footer-logo-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  width: 96px;
  height: 96px;
}

.footer-logo {
  height: 84px;
  width: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.footer-tagline {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted-on-dark);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-on-dark);
  font-size: 0.85rem;
  color: var(--text-muted-on-dark);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credit {
  margin: 0;
}

.footer-credit a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: #ffffff;
}

/* 18. WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center; /* Ensure this is present for centering content */
  transition: all var(--transition), box-shadow 0.4s ease-in-out;
  text-decoration: none;
  /* The glow effect is now primarily driven by the animation */
  animation: whatsappPulse 1.8s infinite ease-in-out; /* Slightly faster pulse */
}

.whatsapp-float:hover {
  background: var(--accent-dark);
  transform: translateY(-3px) scale(1.06);
  /* Significantly more intense glow on hover */
  box-shadow: 0 0 50px 20px rgba(212, 25, 32, 1), /* Even more intense primary glow */
              0 0 90px 40px rgba(212, 25, 32, 0.95); /* Wider, brighter secondary glow */
  color: #ffffff;
}

/* Define the pulsing glow animation */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 20px 8px rgba(212, 25, 32, 0.8); /* Increased base glow */
  }
  50% {
    box-shadow: 0 0 45px 18px rgba(212, 25, 32, 1), /* Peak glow: much larger, brighter */
                0 0 80px 35px rgba(212, 25, 32, 0.9); /* Wider, softer, very bright peak glow */
  }
  100% {
    box-shadow: 0 0 20px 8px rgba(212, 25, 32, 0.8); /* Return to increased base glow */
  }
}

/* 19. MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--background);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  transform: translateY(16px);
  transition: transform var(--transition);
  border-top: 4px solid var(--accent);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--text); }
.modal-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.modal-title { font-size: 1.6rem; margin-bottom: 14px; }
.modal-desc { color: var(--text-muted); margin-bottom: 22px; }
.modal-areas-label { font-weight: 700; font-size: 0.85rem; color: var(--text); margin-bottom: 10px; }
.modal-areas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; list-style: none; padding: 0; }
.modal-areas li {
  color: var(--text-muted);
  font-size: 0.93rem;
  padding-left: 18px;
  position: relative;
}
.modal-areas li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Full detailed syllabus (accordion modules) */
.modal.modal--syllabus { max-width: 720px; }
.syllabus-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.syllabus-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  background: var(--surface, rgba(127,127,127,0.05));
}
.syllabus-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.2;
}
.syllabus-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.syllabus-modules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.syllabus-module {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
}
.syllabus-module-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
  background: var(--surface, rgba(127,127,127,0.05));
}
.syllabus-module-summary::-webkit-details-marker { display: none; }
.syllabus-module-summary::before {
  content: "+";
  margin-right: 10px;
  font-weight: 700;
  color: var(--accent);
}
.syllabus-module[open] > .syllabus-module-summary::before { content: "–"; }
.syllabus-module-name { flex: 1; }
.syllabus-module-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.syllabus-module-body { padding: 16px; }
.syllabus-section { margin-bottom: 16px; }
.syllabus-section:last-child { margin-bottom: 0; }
.syllabus-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.syllabus-topic-list { list-style: none; padding: 0; margin: 0; }
.syllabus-topic-row {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.syllabus-topic-row:first-child { border-top: none; }
.syllabus-topic-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.syllabus-topic-text { font-size: 0.9rem; color: var(--text); }
.syllabus-topic-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.syllabus-assignment-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb, 217,157,66), 0.14);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* SCROLL REVEAL — content always visible, gentle fade-in animation */
.reveal {
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1600px) {
  .container { max-width: 1140px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .contact-strip-inner { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { 
    display: flex; 
    flex-direction: column;
    top: 64px; /* Fixed gap */
  }
  .header-inner { height: 64px; }
  .brand-logo { height: 50px; width: 50px; }
  .brand-sub { display: none; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 640px) {
  /* Layout */
  .container { padding: 0 16px; }
  * { box-sizing: border-box; }

  /* Hero */
  .hero { padding: 60px 0 48px; }
  .hero-content { text-align: center; }
  .hero-headline { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-tagline, .hero-subheadline { text-align: center; }
  .price-badge { display: inline-block; margin: 0 auto 16px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-tracks {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .hero-track-divider { display: none; }

  /* Section headings - center align */
  .section-head { text-align: center; margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .eyebrow { display: block; text-align: center; }

  /* Sections */
  .portfolio-section, .lab-section, .benefits-section,
  .reviews-section, .contact-section, .contact-strip {
    padding: 52px 0;
  }

  /* Courses grid - single column */
  .program-grid { grid-template-columns: 1fr; gap: 20px; }
  .program-card { padding: 24px 20px; }
  .program-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .program-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .program-price,
  .registration-status {
    white-space: normal; /* Allow text to wrap within the badge to prevent overlap */
  }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card { text-align: center; }
  .benefit-icon { margin: 0 auto 12px; }

  /* Contact intro */
  .contact-intro { text-align: center; }
  .contact-intro h2 { text-align: center; }
  .contact-details {
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .contact-details dd {
    margin-left: 0 !important;
  }
  .contact-details a, .footer-grid a {
    word-break: break-word;
    white-space: normal;
  }

  /* Forms - full width */
  .contact-form {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* prevents iOS zoom */
    white-space: normal;
  }

  select {
    text-overflow: ellipsis;
  }

  option {
    color: #1A1A1A;
    background-color: #FFFFFF;
  }
  .form-row { width: 100%; }
  .file-label { flex-wrap: wrap; }
  .btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Dashboard */
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-card { padding: 14px 12px; }
  .kpi-value { font-size: 1.2rem; }
  .dashboard-container { padding: 12px; }
  .dashboard-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .charts-row { grid-template-columns: 1fr; }

  /* Modal */
  .modal { padding: 24px 18px; max-height: 88vh; border-radius: var(--radius-md); }
  .modal-title { font-size: 1.25rem; }

  /* WhatsApp float */
  .whatsapp-float { 
    bottom: 24px; 
    right: auto; 
    left: 24px; 
    z-index: 99; 
  }
  
  /* Hamburger CTA fix */
  .mobile-nav .btn-block {
    margin-top: 16px;
    width: 100%;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  /* Contact strip */
  .contact-cards { flex-direction: column; gap: 16px; }
  .contact-strip-inner { text-align: center; }
}

@media (max-width: 400px) {
  .hero-headline { font-size: 1.7rem; }
  .kpi-row { grid-template-columns: 1fr; }
}

@media (min-width: 1600px) {
  :root { --container-w: 1320px; }
}
