/* Open eLMS - Clean Apple-Inspired Design */

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

:root {
  --orange: #F7941D;
  --orange-dark: #e07d0a;
  --orange-light: #FFF4E6;
  --indigo: #4F46E5;
  --indigo-dark: #3730A3;
  --indigo-light: #EEF2FF;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light: #86868b;
  --bg-white: #ffffff;
  --bg-light: #f5f5f7;
  --bg-dark: #1d1d1f;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --max-width: 1200px;
  --nav-height: 64px;
  --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--indigo);
  transition: var(--transition);
}

a:hover {
  color: var(--indigo-dark);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

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

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-logo span.logo-open {
  color: var(--orange);
}

.nav-logo span.logo-elms {
  color: var(--text-primary);
}

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

.nav-links li {
  position: relative;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 0;
  transition: var(--transition);
}

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

/* ---- Apple-style Mega Menu ---- */
.nav-links .mega-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0 48px;
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.nav-links li.mega-open > .mega-menu,
.nav-links li:hover > .mega-menu {
  display: block;
  pointer-events: auto;
}

.mega-menu-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 48px;
}

.mega-menu-col {
  flex: 1;
  min-width: 0;
}

.mega-menu-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.mega-menu-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 400;
  transition: color 0.2s;
}

.mega-menu-col a:hover {
  color: var(--orange);
}

.mega-menu-col a.mega-link-primary {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mega-menu-col a.mega-link-primary:hover {
  color: var(--orange);
}

/* ---- Apple-style: Explore column gets more width ---- */
.mega-menu-col.mega-col-explore {
  flex: 1.5;
}

/* ---- Apple-style: Hero links in Explore column ---- */
.mega-menu-col a.mega-link-hero {
  display: block;
  padding: 4px 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color 0.2s;
}

.mega-menu-col a.mega-link-hero:hover {
  color: var(--orange);
}

.mega-menu-col .mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--orange);
  color: white;
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.2s;
}

.mega-menu-col .mega-cta:hover {
  background: var(--orange-dark);
  color: white;
}

/* Scrim overlay behind mega menu */
.mega-menu-scrim {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  z-index: 998;
  pointer-events: none;
}

.mega-menu-scrim.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Legacy dropdown fallback (simple menus like Register/Login) */
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.12);
  padding: 16px;
  min-width: 220px;
  border: 1px solid var(--border-light);
}

.nav-links li:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--orange);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--orange);
  color: white !important;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--orange-dark);
  color: white !important;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--orange);
}

.hero p {
  font-size: 1.25rem;
  margin: 0 auto 40px;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-white);
  border-radius: 980px;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--orange);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--orange-dark);
  color: white;
  transform: scale(1.02);
}

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

.btn-secondary:hover {
  background: var(--indigo-dark);
  color: white;
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
}

.btn-outline:hover {
  background: var(--indigo);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  padding: 14px 0;
}

.btn-ghost:hover {
  color: var(--indigo-dark);
}

.btn-ghost svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Sections ========== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-dark {
  background: var(--bg-dark);
  color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: white;
}

.section-dark p {
  color: rgba(255,255,255,0.7);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  margin: 16px auto 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 12px;
}

/* ========== Horizontal Scroll Carousel ========== */
.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 0 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  color: var(--text-primary);
  font-size: 1.25rem;
}

.carousel-btn:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ========== Product Cards ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Carousel mode: override grid to flex when carousel-track is present */
.product-grid.carousel-track,
.pricing-grid.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 0 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 20px;
}

.product-grid.carousel-track::-webkit-scrollbar,
.pricing-grid.carousel-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 48px 36px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  flex: 0 0 380px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

/* Apple-style card: solid bg, text top, image bottom */
.product-card:has(.product-card-image) {
  padding: 0;
  border: none;
  min-height: 480px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Text body at top */
.product-card-body {
  padding: 36px 32px 20px;
  display: flex;
  flex-direction: column;
}

/* Product image at bottom, fills remaining space */
.product-card-image {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px 16px;
  min-height: 200px;
}

.product-card-image img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

/* Card colour themes — dark card */
.product-card.card-dark {
  background: linear-gradient(180deg, #1d1d1f 0%, #2d2d30 100%);
}
.product-card.card-dark h3 { color: #fff; }
.product-card.card-dark p { color: rgba(255,255,255,0.7); }
.product-card.card-dark .btn-ghost { color: #2997ff; }
.product-card.card-dark .btn-ghost:hover { color: #0077ed; }

/* Card colour themes — light card */
.product-card.card-light {
  background: linear-gradient(180deg, #f5f5f7 0%, #ebebed 100%);
  border: none;
}

/* Card colour themes — warm card */
.product-card.card-warm {
  background: linear-gradient(180deg, #FFF8F0 0%, #FFEFD6 100%);
  border: none;
}

/* Card colour themes — cool card */
.product-card.card-cool {
  background: linear-gradient(180deg, #F0F4FF 0%, #E0E8FF 100%);
  border: none;
}

.product-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--orange);
}

/* Dark card icon */
.product-card.card-dark .product-card-icon {
  background: rgba(255,255,255,0.1);
}
.product-card.card-dark .product-card-icon svg { fill: none; }
.product-card.card-dark .product-card-icon svg rect,
.product-card.card-dark .product-card-icon svg circle,
.product-card.card-dark .product-card-icon svg path { stroke: #fff; }

.product-card h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.product-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.product-card .btn-ghost {
  padding: 0;
  font-size: 0.9375rem;
  margin-top: 12px;
}

/* ========== Feature Section ========== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-content {
  max-width: 520px;
}

.feature-content h3 {
  margin-bottom: 16px;
}

.feature-content p {
  margin-bottom: 24px;
}

.feature-visual {
  background: var(--bg-light);
  border-radius: 24px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--orange-light), var(--indigo-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.5;
}

/* ========== Stats Section ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-item p {
  font-size: 1rem;
  margin: 0 auto;
}

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Remove padding when card has image + body structure */
.pricing-card:has(.pricing-card-image) {
  padding: 0;
}

.pricing-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-light), var(--indigo-light));
}

.pricing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-card-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 40px rgba(247, 148, 29, 0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  color: white;
  padding: 4px 16px;
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.pricing-card h4 {
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 16px 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin: 24px 0;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ========== Client Logos Infinite Carousel ========== */
.logo-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Fade edges */
.logo-carousel::before,
.logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logo-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-white) 0%, transparent 100%);
}
.logo-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-white) 0%, transparent 100%);
}

/* Alt section uses light bg */
.section-alt .logo-carousel::before {
  background: linear-gradient(90deg, var(--bg-light) 0%, transparent 100%);
}
.section-alt .logo-carousel::after {
  background: linear-gradient(270deg, var(--bg-light) 0%, transparent 100%);
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: logo-scroll 30s linear infinite;
}

.logo-carousel-track:hover {
  animation-play-state: paused;
}

.logo-carousel-track img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-carousel-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

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

/* ========== Certifications ========== */
.cert-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  min-width: 120px;
}

.cert-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ========== Blog Cards ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--orange-light), var(--indigo-light));
  overflow: hidden;
  position: relative;
}
.blog-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-card h4 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.blog-card p {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

/* ========== CTA Banner ========== */
.cta-banner {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d30 100%);
  border-radius: 32px;
  margin: 0 24px;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin: 0 auto 32px;
}

/* ========== FAQ Accordion ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
}

.faq-answer p {
  font-size: 1rem;
}

/* ========== Page Header ========== */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: var(--bg-light);
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-light);
}

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

/* ========== Content Page ========== */
.content-page {
  padding: 60px 0 100px;
}

.content-page .container {
  max-width: 800px;
}

.content-page h2 {
  font-size: 1.75rem;
  margin: 48px 0 16px;
}

.content-page h3 {
  font-size: 1.375rem;
  margin: 36px 0 12px;
}

.content-page p {
  margin-bottom: 16px;
  max-width: none;
}

.content-page ul, .content-page ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-page li {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ========== Team Grid ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--indigo-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--orange);
  font-weight: 700;
}

.team-card h4 {
  margin-bottom: 4px;
  font-size: 1.125rem;
}

.team-card p {
  font-size: 0.875rem;
  margin: 0 auto;
}

/* ========== Course Grid ========== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.course-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--orange);
}

.course-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.course-card p {
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.course-card .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}

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

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-social a:hover {
  background: var(--orange);
  color: white;
}

.footer-col h4 {
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover {
  color: var(--orange);
}

/* ========== Portfolio/Course List ========== */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .nav-links .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-links li:hover .dropdown {
    display: block;
  }

  .nav-links .mega-menu {
    position: static;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 0 0 0 16px;
  }

  .mega-menu-inner {
    flex-direction: column;
    gap: 16px;
  }

  .mega-menu-col h5 {
    margin-bottom: 8px;
    margin-top: 8px;
  }

  .mega-menu-col.mega-col-explore {
    flex: 1;
  }

  .mega-menu-col a.mega-link-hero {
    font-size: 1.125rem;
  }

  .mega-menu-scrim {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .section {
    padding: 64px 0;
  }

  .product-grid:not(.carousel-track) {
    grid-template-columns: 1fr;
  }

  .pricing-grid:not(.carousel-track) {
    grid-template-columns: 1fr;
  }

  .carousel-track .product-card {
    flex: 0 0 300px;
    min-height: 400px;
  }

  .carousel-track .pricing-card {
    flex: 0 0 260px;
  }

  .carousel-btn {
    display: none;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Split heroes: buttons line up with the left-aligned hero text, as on the
   homepage. Same specificity as each page's own rules, which come later, so a
   page that centres its hero on narrow screens still centres the buttons. */
.hero-text .btn-group {
  justify-content: flex-start;
}
