/* ============================================================
   ENSINA XYZ — REDESIGN CSS (MasterClass Style)
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Heebo:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --accent: #E60341;
  --accent-orange: #b8022f;
  --accent-green: #8bd026;
  --dark-blue: #021e40;
  --text-primary: #ffffff;
  --text-muted: #999999;
  --text-dim: #666666;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(230,3,65,0.3);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Heebo', sans-serif;
  --nav-height: 72px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(230,3,65,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.25s, height 0.25s;
}
body:hover .cursor { opacity: 1; }
a:hover ~ .cursor, button:hover ~ .cursor { width: 20px; height: 20px; }

/* ---- Utilities ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Fade-in animation classes (triggered by JS) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.nav__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-top: 6px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }

.nav__lang-switcher {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.nav__lang-flag::after { display: none !important; }
.nav__lang-flag img { width: 22px; height: auto; max-width: unset; border-radius: 2px; opacity: 0.6; transition: opacity .2s; }
.nav__lang-flag:hover img, .nav__lang-flag--active img { opacity: 1; }
.nav__mobile-lang { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 4px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-outline {
  border: 1.5px solid rgba(230,3,65,0.6);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover {
  background: #ff1a55;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230,3,65,0.35);
}
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}
.btn-dark {
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 700;
}
.btn-dark:hover {
  background: #f0e6ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 16px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 0 20px; }
}

/* ---- Nav search button ---- */
.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.65);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}
.nav__search-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

/* ---- Search overlay ---- */
.nav__search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  height: var(--nav-height);
  align-items: center;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav__search-overlay.is-animating {
  display: flex;
}
.nav__search-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
}
.nav__search-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.nav__search-form {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}
.nav__search-form svg { flex-shrink: 0; }
.nav__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}
.nav__search-input::placeholder { color: rgba(255,255,255,0.3); }
.nav__search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}
.nav__search-close:hover { color: var(--text-primary); }

@media (max-width: 768px) {
  .nav__search-inner { padding: 0 20px; }
  .nav__search-input { font-size: 16px; }
  .nav__cta { display: flex; }
  .nav__search-btn { display: flex; }
}

/* ---- User dropdown menu ---- */
.nav__user-menu {
  position: relative;
}
.nav__user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__user-menu__trigger svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav__user-menu:hover .nav__user-menu__trigger svg,
.nav__user-menu__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.nav__user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  list-style: none;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.nav__user-menu:hover .nav__user-menu__dropdown,
.nav__user-menu__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__user-menu__dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav__user-menu__dropdown li a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 1;
}
/* Video background — sibling of hero__bg, fades in once ready */
.hero__video-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}
.hero__video-bg.is-loaded { opacity: 1; }

/* Dark overlay — covers both the static image and the video */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.25) 100%),
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
  pointer-events: none;
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255,255,255,0.006) 60px, rgba(255,255,255,0.006) 61px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(255,255,255,0.006) 60px, rgba(255,255,255,0.006) 61px);
  z-index: 2;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  z-index: 3;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  padding-top: var(--nav-height);
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,3,65,0.1);
  border: 1px solid rgba(230,3,65,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 32px;
}
.js-ready .hero__badge {
  opacity: 0;
  transform: translateY(20px);
}
.hero__badge span { color: rgba(230,3,65,0.6); }
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 800px;
  overflow: hidden;
}
.hero__headline .line {
  display: block;
}
.js-ready .hero__headline .line {
  opacity: 0;
  transform: translateY(100%);
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 48px;
}
.js-ready .hero__sub {
  opacity: 0;
  transform: translateY(20px);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.js-ready .hero__actions {
  opacity: 0;
  transform: translateY(20px);
}
.hero__actions .btn {
  padding: 14px 32px;
  font-size: 15px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.js-ready .hero__stats {
  opacity: 0;
}
.hero__stat-number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
}
.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.js-ready .hero__scroll {
  opacity: 0;
}
.hero__scroll span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(230,3,65,0.6), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 768px) {
  .hero { align-items: flex-start; padding-bottom: 60px; }
  .hero__content { padding: 0 20px; padding-top: calc(var(--nav-height) + 32px); }
  .hero__badge { margin-bottom: 20px; font-size: 11px; }
  .hero__headline { letter-spacing: -1px; }
  .hero__sub { max-width: 100%; margin-bottom: 32px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { justify-content: center; padding: 14px 24px; }
  .hero__stats { gap: 12px 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; }
  .hero__stat { width: calc(50% - 10px); flex-shrink: 0; }
  .hero__stat-number { font-size: 28px; }
  .hero__stat-label { font-size: 11px; }
  .hero__scroll { display: none; }
}

.category-tag {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-sans);
}
.category-tag:hover,
.category-tag.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   FEATURED COURSES (CAROUSEL)
   ============================================================ */
.courses {
  padding: 100px 0;
  background: var(--bg-primary);
}
.courses__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
  padding: 0 48px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.courses__header-left { max-width: 680px; flex: 1; }
.courses__nav {
  display: flex;
  gap: 12px;
}
.courses__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}
.courses__nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(230,3,65,0.06);
}

/* Swiper overrides */
.swiper {
  padding: 0 48px !important;
  overflow: visible !important;
}
.courses-swiper { padding-bottom: 0 !important; }
.courses-pagination {
  margin-top: 20px;
  text-align: center;
}
/* keep bullets in flow, not absolute */
.courses-pagination.swiper-pagination {
  position: static !important;
  display: block !important;
}
/* align all course slides to top so cards don't shift */
.courses-swiper .swiper-wrapper { align-items: flex-start !important; }
.swiper-wrapper { will-change: transform; }

.course-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s;
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(230,3,65,0.2);
}
.course-card__thumbnail {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.course-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.course-card:hover .course-card__thumbnail img { transform: scale(1.06); }
.course-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  transition: opacity var(--transition);
}
.course-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
}
.course-card:hover .course-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.course-card__info {
  padding: 20px;
}
.course-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.course-card__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.course-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.course-card__instructor {
  font-size: 12px;
  color: var(--text-muted);
}
.course-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.course-card__lessons {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .courses { padding: 64px 0; overflow-x: hidden; }
  .courses__header { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0 20px; margin-bottom: 32px; }
  .courses__nav { display: none; }
  .swiper { padding: 0 20px !important; }
}

/* ============================================================
   INSTRUCTORS
   ============================================================ */
.instructors {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.instructors__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  padding: 0 48px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}
.instructors__header-left { max-width: 500px; }
.instructors__header .section-subtitle { max-width: 100%; }

/* Swiper carousel */
.instructors-swiper {
  padding: 0 48px !important;
  padding-bottom: 48px !important;
  overflow: visible !important;
}

.instructor-card {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border-radius: 6px;
  opacity: 1;
}
.instructor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), filter 0.5s;
  filter: grayscale(20%);
}
.instructor-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
.instructor-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15,15,15,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
.instructor-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.1) 70%,
    transparent 100%
  );
  transition: background var(--transition);
}
.instructor-card:hover .instructor-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0.15) 75%,
    transparent 100%
  );
}
.instructor-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
}
.instructor-card__specialty {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.instructor-card__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}
.instructor-card__instagram {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.instructor-card:hover .instructor-card__instagram { opacity: 1; transform: translateY(0); }
.instructor-card__border {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color var(--transition);
  pointer-events: none;
  z-index: 3;
}
.instructor-card:hover .instructor-card__border { border-color: rgba(230,3,65,0.5); }

@media (max-width: 768px) {
  .instructors { padding: 64px 0; overflow-x: hidden; }
  .instructors__header { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0 20px; }
  .instructors__header .courses__nav { display: none; }
  .instructors-swiper { padding: 0 20px !important; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  padding: 120px 0;
  background: var(--dark-blue);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230,3,65,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto::after {
  content: '"';
  position: absolute;
  top: 40px;
  left: 48px;
  font-family: var(--font-serif);
  font-size: 320px;
  color: rgba(230,3,65,0.04);
  line-height: 1;
  pointer-events: none;
  font-weight: 900;
}
.manifesto__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.manifesto__quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 820px;
  margin: 0 auto 80px;
  text-align: center;
}
.manifesto__quote span { color: var(--accent); }
.manifesto__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.manifesto__stat {
  padding: 48px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: background var(--transition);
}
.manifesto__stat:hover { background: rgba(230,3,65,0.04); }
.manifesto__stat-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.manifesto__stat-number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 900;
  color: #ff4d7a;
  line-height: 1;
  margin-bottom: 8px;
}
.manifesto__stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .manifesto { padding: 64px 0; }
  .manifesto__inner { padding: 0 20px; }
  .manifesto__quote { margin-bottom: 48px; }
  .manifesto__stats { grid-template-columns: 1fr; gap: 1px; margin-top: 40px; }
  .manifesto__stat { padding: 32px 24px; }
  .manifesto__stat-number { font-size: 40px; }
  .manifesto::after { font-size: 180px; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-primary);
}
.how-it-works__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.how-it-works__header {
  text-align: center;
  margin-bottom: 72px;
}
.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.how-it-works__connector {
  position: absolute;
  top: 44px;
  left: calc(33.33% + 20px);
  right: calc(33.33% + 20px);
  height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(230,3,65,0.2));
  z-index: 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.4,0,0.2,1) 0.4s;
}
.how-it-works__connector.is-visible { transform: scaleX(1); }

.step {
  padding: 0 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step__number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  transition: all var(--transition);
}
.step:hover .step__number {
  background: rgba(230,3,65,0.08);
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(230,3,65,0.2);
}
.step__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.step__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .how-it-works { padding: 64px 0; }
  .how-it-works__header { margin-bottom: 48px; }
  .how-it-works__steps { grid-template-columns: 1fr; gap: 40px; }
  .how-it-works__connector { display: none; }
  .how-it-works__inner { padding: 0 20px; }
  .step { padding: 0; }
  .step__number { width: 72px; height: 72px; font-size: 24px; margin-bottom: 20px; }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 140px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #800020;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
/* overlay degradê vermelho sobre a imagem */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(230,3,65,0.72) 0%, rgba(100,0,20,0.92) 100%),
    linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  display: block;
}
.cta-section__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-section__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  line-height: 1.6;
}
.cta-section .btn-dark {
  padding: 16px 40px;
  font-size: 16px;
}

@media (max-width: 768px) { .cta-section { padding: 80px 20px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer__brand-logo { height: 32px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 280px; margin-bottom: 24px; }
.footer__socials { display: flex; gap: 12px; }
.footer__social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 14px;
}
.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(230,3,65,0.06);
}
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 48px 0;
}
.footer__copy { font-size: 13px; color: var(--text-dim); }
.footer__copy span { color: var(--text-muted); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 13px; color: var(--text-dim); transition: color var(--transition); }
.footer__legal a:hover { color: var(--text-muted); }

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; padding: 32px 20px 0; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   SWIPER CUSTOM PAGINATION
   ============================================================ */
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.3) !important;
  opacity: 1 !important;
  width: 6px !important;
  height: 6px !important;
  transition: all 0.3s !important;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  width: 20px !important;
  border-radius: 3px !important;
}

/* ============================================================
   SINGLE COURSE PAGE — MasterClass style
   ============================================================ */

/* ── Trailer modal ──────────────────────────────────────────── */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.trailer-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.trailer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}
.trailer-modal__inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
}
.trailer-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.trailer-modal__close:hover { color: #fff; }
.trailer-modal__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.trailer-modal__video iframe,
.trailer-modal__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ── Hero — MasterClass split ───────────────────────────────── */
.cp-hero {
  display: grid;
  width: 100%;
  height: min(56.25vw, calc(100vh - var(--nav-height)));
  margin-top: var(--nav-height);
  background: #000;
  /* sem overflow:hidden — permite o panel deslizar para fora dos limites */
}

/* visual ocupa toda a célula do grid */
.cp-hero__visual {
  grid-area: 1/1;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.cp-hero__video-wrap {
  position: absolute;
  inset: 0;
}
.cp-hero__video-wrap iframe,
.cp-hero__video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}
.cp-hero__thumb {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
}
.cp-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.cp-hero__thumb-grad { display: none; }

/* ── Video controls overlay ───────────────────────────────── */
.cp-hero__vc-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cp-hero__video-wrap:hover .cp-hero__vc-overlay {
  opacity: 1;
  pointer-events: auto;
}
.cp-hero__vc-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cp-hero__vc-mute-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s, transform .2s;
}
.cp-hero__vc-mute-center:hover {
  background: rgba(0,0,0,0.85);
  border-color: #fff;
  transform: scale(1.08);
}

/* RIGHT panel — grid overlap, transparent over video */
.cp-hero__panel {
  grid-area: 1/1;
  justify-self: end;
  align-self: stretch;
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 40px;
  background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.88) 65%);
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  visibility: visible;
}
.cp-hero__panel::before { display: none; }

.cp-hero--idle .cp-hero__panel {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Series label */
.cp-hero__series-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.cp-hero__series-label a {
  color: inherit;
  transition: color 0.2s;
}
.cp-hero__series-label a:hover { color: var(--accent); }

/* Title */
.cp-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 480px;
}

/* Excerpt */
.cp-hero__excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 20px;
}

/* Stats row */
.cp-hero__stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
}
.cp-hero__sep { opacity: 0.35; }
.cp-hero__trailer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}
.cp-hero__trailer-link:hover { color: var(--accent); }

/* CTA card */
.cp-hero__card {
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 24px;
}
.cp-hero__card-instructor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cp-hero__card-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.cp-hero__card-instr-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.cp-hero__card-instr-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}
.cp-hero__card-instr-name:hover { color: var(--accent); }
.cp-hero__card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 14px 20px;
  border-radius: 3px;
  transition: background var(--transition);
  margin-bottom: 12px;
}
.cp-hero__card-btn:hover { background: var(--accent-orange); }
.cp-hero__card-price {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.5;
}
.cp-hero__card-price strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cp-hero {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .cp-hero__panel {
    width: 100%;
    justify-self: stretch;
    align-self: end;
    height: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
    padding: 32px 20px 36px;
  }
  .cp-hero--idle .cp-hero__panel {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

/* ── Body layout ────────────────────────────────────────────── */
.cp-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0 60px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 120px;
}

/* ── Sections ───────────────────────────────────────────────── */
.cp-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.cp-section:first-child { padding-top: 0; }
.cp-section__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cp-section__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-primary);
}

/* ── Prose (about) ──────────────────────────────────────────── */
.cp-prose {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.8;
}
.cp-prose p  { margin-bottom: 16px; }
.cp-prose h2, .cp-prose h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin: 28px 0 14px;
}
.cp-prose h2 { font-size: 22px; }
.cp-prose h3 { font-size: 18px; }
.cp-prose ul, .cp-prose ol { padding-left: 22px; margin-bottom: 16px; }
.cp-prose li { margin-bottom: 6px; }
.cp-prose a  { color: var(--accent); }
.cp-prose strong { color: var(--text-primary); font-weight: 600; }

/* ── Outcomes grid ──────────────────────────────────────────── */
.cp-outcomes__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  margin: 0;
  padding: 0;
}
.cp-outcomes__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.cp-outcomes__item svg { flex-shrink: 0; margin-top: 2px; }

/* ── Curriculum ─────────────────────────────────────────────── */
.cp-curriculum__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cp-curriculum__header .cp-section__title { margin-bottom: 0; }
.cp-curriculum__count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.cp-curriculum__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
/* Show only first 8 lessons, hide the rest */
.cp-curriculum__list .cp-lesson:nth-child(n+9) {
  display: none;
}
.cp-curriculum__list.is-expanded .cp-lesson:nth-child(n+9) {
  display: flex;
}
.cp-lesson {
  border-bottom: 1px solid var(--border);
  display: flex;
}
.cp-lesson:last-child { border-bottom: none; }
.cp-lesson__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  width: 100%;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  transition: background 0.2s;
}
.cp-lesson__row:hover {
  background: rgba(255,255,255,0.04);
}
.cp-lesson--locked .cp-lesson__row {
  color: rgba(255,255,255,0.45);
  cursor: default;
}
.cp-lesson--locked .cp-lesson__row:hover {
  background: transparent;
}
.cp-lesson__num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}
.cp-lesson__title {
  flex: 1;
  line-height: 1.4;
}
.cp-lesson__lock,
.cp-lesson__arrow {
  flex-shrink: 0;
  opacity: 0.35;
}
.cp-lesson__arrow { opacity: 0; transition: opacity 0.2s; }
.cp-lesson__row:hover .cp-lesson__arrow { opacity: 0.5; }

.cp-curriculum__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 2px;
}
.cp-curriculum__more:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}
.cp-curriculum__more.is-expanded svg {
  transform: rotate(180deg);
}

/* ── LearnDash enrollment area ──────────────────────────────── */
.cp-enroll {
  border-bottom: 1px solid var(--border);
}
.cp-ld-wrap {
  color: rgba(255,255,255,0.72);
}
/* Hide LearnDash's own curriculum list (we show ours above) */
.cp-ld-wrap .learndash-wrapper .ld-item-list,
.cp-ld-wrap .learndash-wrapper .ld-table-list {
  display: none !important;
}
/* Show full curriculum for enrolled users */
.cp-ld-wrap .learndash-wrapper .ld-course-status ~ .ld-item-list,
.cp-ld-wrap .learndash-wrapper .ld-course-status ~ .ld-table-list {
  display: block !important;
}
/* General LD dark theme */
.cp-ld-wrap .learndash-wrapper {
  --ld-color-primary: #E60341;
  background: transparent !important;
}
.cp-ld-wrap .learndash-wrapper * { box-sizing: border-box; }
.cp-ld-wrap .learndash-wrapper .ld-course-status-segment,
.cp-ld-wrap .learndash-wrapper .ld-course-status {
  background: transparent !important;
  border-color: var(--border) !important;
}
.cp-ld-wrap .learndash-wrapper .ld-item-list-item,
.cp-ld-wrap .learndash-wrapper .ld-table-list-item {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  margin-bottom: 4px !important;
}
.cp-ld-wrap .learndash-wrapper .ld-item-list-item:hover {
  background: var(--bg-card-hover) !important;
}
.cp-ld-wrap .learndash-wrapper .ld-item-title,
.cp-ld-wrap .learndash-wrapper .ld-table-list-item-preview {
  color: var(--text-primary) !important;
}
.cp-ld-wrap .learndash-wrapper .ld-expand-button {
  background: transparent !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}
.cp-ld-wrap .learndash-wrapper .ld-expand-button:hover {
  border-color: var(--border-accent) !important;
  color: var(--accent) !important;
}
.cp-ld-wrap .learndash-wrapper .ld-status-icon {
  border-color: var(--border-accent) !important;
}
.cp-ld-wrap .learndash-wrapper .ld-status-complete .ld-status-icon {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
/* Enrollment / CTA button */
.cp-ld-wrap .learndash-wrapper .learndash_checkout_button,
.cp-ld-wrap .learndash-wrapper .learndash-course-enrollment a,
.cp-ld-wrap .learndash-wrapper .btn-join,
.cp-ld-wrap .learndash-wrapper input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 15px 36px !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: background var(--transition) !important;
  margin-top: 8px !important;
}
.cp-ld-wrap .learndash-wrapper .learndash_checkout_button:hover,
.cp-ld-wrap .learndash-wrapper input[type="submit"]:hover {
  background: var(--accent-orange) !important;
}

/* ── Instructor section ─────────────────────────────────────── */
.cp-instructor__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.cp-instructor__portrait {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}
.cp-instructor__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s;
}
.cp-instructor__portrait:hover img { filter: grayscale(0); }
.cp-instructor__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cp-instructor__name {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.cp-instructor__bio {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 20px;
}
.cp-instructor__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}
.cp-instructor__link:hover { gap: 10px; }

/* ── Sidebar card ───────────────────────────────────────────── */
.cp-body__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 56px + 24px);
}
.cp-card {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.cp-card:hover { border-color: rgba(255,255,255,0.18); }
.cp-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cp-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.cp-card:hover .cp-card__thumb img { transform: scale(1.03); }
.cp-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s;
}
.cp-card__play:hover { background: rgba(230,3,65,0.45); }
.cp-card__play svg {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50%;
  padding: 11px 10px 11px 14px;
}
.cp-card__body {
  padding: 24px;
}
.cp-card__price {
  margin-bottom: 16px;
}
.cp-card__price-amount {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.cp-card__price-free {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-green);
}
.cp-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.cp-card__badge--enrolled {
  background: rgba(230,3,65,0.12);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.cp-card__badge--done {
  background: rgba(139,208,38,0.1);
  color: var(--accent-green);
  border: 1px solid rgba(139,208,38,0.25);
}
.cp-card__cta {
  display: block;
  text-align: center;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.cp-card__includes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.cp-card__includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cp-card__includes li:last-child { border-bottom: none; }
.cp-card__includes svg { flex-shrink: 0; opacity: 0.5; }
.cp-card__instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cp-card__instructor-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.9;
}
.cp-card__instructor-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.cp-card__instructor-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.cp-card__instructor-name:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cp-body {
    grid-template-columns: 1fr 320px;
    gap: 0 40px;
  }
}
@media (max-width: 900px) {
  .cp-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .cp-body__sidebar {
    position: static;
    order: -1;
    margin-bottom: 48px;
  }
  .cp-card { max-width: 480px; }
  .cp-hero { height: auto; aspect-ratio: 16 / 9; }
  .cp-hero__content { padding-bottom: 48px; }
  .cp-outcomes__grid { grid-template-columns: 1fr; }
  .cp-instructor__inner { grid-template-columns: 140px 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .cp-hero { aspect-ratio: 16 / 9; height: auto; max-height: none; }
  .cp-hero__title { letter-spacing: -0.01em; }
  .cp-hero__play svg { width: 56px; height: 56px; padding: 16px 14px 16px 18px; }
  .cp-instructor__inner { grid-template-columns: 1fr; }
  .cp-instructor__portrait { max-width: 180px; }
}

/* ============================================================
   WP ADMIN BAR OFFSET
   ============================================================ */
body.admin-bar .nav {
  top: 32px;
}
body.admin-bar .nav__mobile {
  top: calc(var(--nav-height) + 32px);
}
body.admin-bar .nav__search-overlay {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .nav {
    top: 46px;
  }
  body.admin-bar .nav__mobile {
    top: calc(var(--nav-height) + 46px);
  }
  body.admin-bar .nav__search-overlay {
    top: 46px;
  }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-orange));
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.05s linear;
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-results-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
}
.search-results-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.search-results-header__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.search-results-header__title em {
  font-style: italic;
  color: var(--accent);
}
.search-results-header__sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.search-results-form {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 20px;
  max-width: 560px;
  color: var(--text-muted);
  transition: border-color var(--transition);
}
.search-results-form:focus-within {
  border-color: rgba(230,3,65,0.45);
  color: rgba(255,255,255,0.6);
}
.search-results-form__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
}
.search-results-form__input::placeholder { color: rgba(255,255,255,0.3); }
.search-results-form__btn {
  background: var(--accent);
  color: #000;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-results-form__btn:hover { background: #ff1a55; }

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 48px 0 80px;
}
.search-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.search-result-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.search-result-card__link { display: block; }
.search-result-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.search-result-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.search-result-card:hover .search-result-card__media img { transform: scale(1.04); }
.search-result-card__body { padding: 20px; }
.search-result-card__type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.search-result-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.search-result-card__excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.search-results-pagination {
  display: flex;
  gap: 8px;
  padding-bottom: 80px;
  flex-wrap: wrap;
}
.search-results-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.search-results-pagination .page-numbers:hover,
.search-results-pagination .page-numbers.current {
  background: rgba(230,3,65,0.12);
  border-color: rgba(230,3,65,0.3);
  color: var(--accent);
}

.search-no-results {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.25);
  text-align: center;
}
.search-no-results p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 400px;
}
.search-no-results a { color: var(--accent); }
.search-no-results a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .search-results-grid { grid-template-columns: 1fr; }
  .search-results-header { padding: 48px 0 36px; }
}
