/**
 * Restored stylesheet from last committed version.
 * (Matches previous design including footer and quick links.)
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Full contents restored from git snapshot */
/* (See project history for detailed rules.) */

/**
 * MAGISTRATE COURT MASTERMIND - Premium Dark Theme
 * Cyan accent: #00CFE8 | Font: Poppins / Montserrat
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --cyan: #00CFE8;
  --cyan-hover: #00b8cf;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --gray: #888888;
  --light: #e5e5e5;
  --white: #ffffff;
  --overlay: rgba(0, 0, 0, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* When mobile nav is open, prevent background scrolling */
body.is-nav-open {
  overflow: hidden;
}

/* Global page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  position: relative;
  width: min(220px, 60vw); /* keep logo comfortably inside spinner */
}

.page-loader__logo {
  display: block;
  width: 100%;
  height: auto;
}

.page-loader__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  margin-top: -130px;
  margin-left: -130px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #00cfe8;
  animation: page-loader-spin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(0, 207, 232, 0.4);
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg); /* classic clockwise loader */
  }
}

.page-course {
  background: #ffffff;
  color: #111111;
}

.page-contact {
  background: #ffffff;
  color: #111111;
}

/* ============ CONTACT PAGE ============ */
.contact-hero {
  position: relative;
  padding: 4.5rem 2rem 5rem;
  background: url("../images/contact_main_bg.png") center / cover no-repeat;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 207, 232, 0.86) 0%,
    rgba(0, 207, 232, 0.62) 48%,
    rgba(0, 0, 0, 0.18) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 58%;
  background: url("../images/contactus_hero.png") center / cover no-repeat;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 3.25rem;
  align-items: start;
}

.contact-hero__title {
  font-size: clamp(2.6rem, 4.8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000000;
  line-height: 1.05;
  margin-bottom: 1.6rem;
  position: relative;
  display: inline-block;
}

.contact-hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.05rem;
  width: 210px;
  height: 22px;
  background-image: url('../images/clip_white.png');
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.contact-hero__office-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.contact-hero__office-cyan {
  color: #000000;
}

.contact-hero__office-white {
  color: #000000;
}

.contact-hero__office-subtext {
  max-width: 520px;
  color: rgba(0, 0, 0, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-hero__cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 520px;
}

.contact-hero__card {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.contact-hero__card--cyan {
  background: #ffffff;
  color: #000000;
}

.contact-hero__card--dark {
  background: #0f0f0f;
  color: #ffffff;
}

.contact-hero__card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.25rem;
}

.contact-hero__card-icon--dark {
  background: rgba(255, 255, 255, 0.08);
}

.contact-hero__card-title {
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-hero__card-title--light {
  color: #ffffff;
}

.contact-hero__card-lines {
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0.95;
  line-height: 1.35;
  word-break: break-word;
}

.contact-hero__card-lines--light {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
  color: #111111;
}

.contact-form-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.contact-form-card__accent {
  color: var(--cyan);
}

.contact-form-card__subtext {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 0.35rem;
}

.contact-form__input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.contact-form__input:focus {
  border-color: rgba(0, 207, 232, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 207, 232, 0.18);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--cyan);
  color: #000000;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form__submit:hover {
  background: var(--cyan-hover);
}

@media (max-width: 980px) {
  .contact-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contact-hero {
    padding: 3.5rem 1.25rem 4rem;
  }

  .contact-hero::after {
    width: 100%;
    opacity: 0.22;
  }
}

/* ============ STICKY BLACK HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.header__logo-icon,
.header__logo-img {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.header__nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--cyan);
}

.header__nav .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.header__nav .nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--cyan);
  margin-left: 0.35rem;
  vertical-align: middle;
}

.header__cta {
  display: inline-block;
  background: var(--cyan);
  color: var(--black) !important;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  border-radius: 999px;
}

.header__cta:hover {
  background: var(--cyan-hover);
}

/* Mobile nav toggle (hamburger) - hidden on desktop */
.header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.header__toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.header__toggle:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 8px;
}

.header__toggle-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.header__toggle-line:first-child {
  top: 13px;
}

.header__toggle-line:last-child {
  bottom: 13px;
}

.header--nav-open .header__toggle-line:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header--nav-open .header__toggle-line:last-child {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile nav menu panel */
.header__mobile-menu {
  display: none;
}

/* ============ HERO SECTION (Figma match) ============ */
.hero {
  position: relative;
  /* Fallback for older browsers that don't support svh */
  min-height: 100vh;
  /* Stable hero height across devices */
  min-height: clamp(640px, 100svh, 900px);
  display: flex;
  align-items: center;
  padding: 4rem 2.5rem 4.25rem;
  background-color: #0a0a0a;
  background-image: url('../images/hero-bg.png?v=ff7b737');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 100%; /* let children (including image column) inherit hero height */
  overflow: hidden; /* allow hero person cutout to anchor to bottom/right cleanly */
}

.hero__left {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero__heading {
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero__subtext {
  font-size: 1.1rem; /* slightly smaller than before */
  font-weight: 600;  /* make subtext bold */
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  max-width: 520px;
  line-height: 1.5;
}

/* Primary CTA – larger than header button per Figma */
.hero__btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--black);
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 999px;
}

.hero__btn:hover {
  background: var(--cyan-hover);
}

.hero__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem;
}

.hero__image-wrap {
  width: 100%;
  height: 100%;
}

/* Home hero person cutout */
.hero__person {
  position: absolute;
  z-index: 0; /* keep hero content and notices above the cutout */
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
  transform-origin: bottom right;
  transform: translateY(80px) scale(1.17);
  pointer-events: none;
}

/* About page instructor cutout */
.hero__instructor {
  position: relative;
  z-index: 1;
  height: auto;
  max-height: 720px;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
}

/* Bottom-right block: cyan notice + Learn More button, no overlay on hero */
.hero__bottom-right {
  position: absolute;
  bottom: 7.0rem; /* nudge block upward slightly */
  right: max(1.5rem, calc((100vw - 1400px) / 2 + 1.5rem)); /* nudge block left slightly */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  max-width: 360px;
  z-index: 2;
}

.hero__card {
  background: var(--cyan);
  color: var(--black);
  padding: 1.05rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
}

.hero__learn-more {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--black);
  color: var(--white);
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  border: 2px solid var(--white);
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
}

.hero__learn-more:hover {
  background: var(--white);
  color: var(--black);
}

/* ============ HOME PAGE - SCROLL SECTIONS ============ */
.home-prepared {
  position: relative;
  background: var(--white);
  padding-top: 4rem; /* add more white space above "WALK INTO COURT" */
}

.home-prepared__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-prepared::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -10px;
  width: 600px;
  height: 550px;
  background-image: url('../images/blue-crayon.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.home-prepared__left {
  background: var(--white);
  padding: 4rem 3rem;
}

.home-prepared__title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.2;
  text-align: left;
}

.home-prepared__header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.home-prepared__title-underline {
  position: relative;
  display: inline-block;
  color: var(--cyan);
}

.home-prepared__title-underline::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  width: 100%;
  height: 20px;
  background-image: url('../images/clip.png');
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.home-prepared__img-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
  overflow: hidden;
  border-radius: 24px;
}

.home-prepared__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-prepared__img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.home-prepared__right {
  background: var(--white);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-prepared__lead {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.home-prepared__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.home-prepared__list li {
  color: var(--black);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.home-prepared__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.home-prepared__btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--black);
  padding: 0.9rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  align-self: flex-start;
  border-radius: 999px;
}

.home-prepared__btn:hover {
  background: var(--cyan-hover);
}

/* Home video - Magistrate Masterclass Explained */
.home-video {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
  background-image: url('../images/masterclass_explainedbg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 2rem;
}

.home-video::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 500px;
  background-image: url('../images/backvideo.png');
  background-size: contain;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.home-video__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.home-video__title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}

.home-video__title-accent {
  display: inline-block;
  position: relative;
  color: var(--cyan);
}

.home-video__title-accent::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  width: 100%;
  height: 20px;
  background-image: url('../images/clip.png');
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.home-video__player {
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}

.home-video__player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Courtroom Topics */
.home-topics {
  position: relative;
  background: var(--white);
  padding: 6rem 2rem;
}

/* courtroomdesign brush now handled in Discover section */

.home-topics__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-topics__title {
  font-size: clamp(2.3rem, 3.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.home-topics__title-accent {
  color: var(--cyan);
}

.home-topics__sub {
  color: var(--gray);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.home-topics__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.home-topics__pill {
  background: var(--cyan);
  color: var(--black);
  padding: 0.6rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  display: inline-block;
}

/* Discover How To Prepare */
.home-discover {
  position: relative;
  background: var(--white);
  padding: 5rem 2rem;
}

.home-discover__brush {
  position: absolute;
  top: 60%;
  left: 0;
  transform: translate(-16%, -60%);
  width: 800px;
  height: 500px;
  background-image: url('../images/courtroomdesign.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.home-discover__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--black);
  border-radius: 28px;
  padding: 0.5rem 2.0rem 2.0rem;
  overflow: visible;
}

.home-discover__left {
  padding-left: 0;
}

.home-discover__title {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  position: relative;
  left: 50px; /* visual nudge right without affecting layout */
}

.home-discover__line {
  white-space: nowrap;
}

.home-discover__title-encircle {
  position: relative;
  display: inline-block;
  padding: 0.15em 0.4em;
  background-image: url('../images/circle.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.home-discover__btn {
  display: inline-block;
  margin-top: 1.5rem;
  position: relative;
  left: 47px; /* keep button aligned with shifted title */
  background: var(--cyan);
  color: var(--black);
  padding: 1rem 2.25rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.home-discover__btn:hover {
  background: var(--cyan-hover);
}

.home-discover__right {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.home-discover__img {
  max-width: 1000px;
  width: auto;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: -32px;
  transform: translateX(-85px) scale(1.5);
  transform-origin: bottom center;
}

.home-discover__img-placeholder {
  display: none;
}

/* Course Preview */
.home-preview {
  background: var(--white);
  padding: 5rem 2rem;
}

.home-preview__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-preview__title {
  font-size: clamp(2.2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 2rem;
}

.home-preview__title-accent {
  color: var(--cyan);
}

.home-preview__carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.home-preview__item {
  flex: 0 0 320px;
  aspect-ratio: 16/9;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  font-weight: 600;
}

.home-preview__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Specific thumbnails for each episode */
.home-preview__item--ep1 {
  background-image: url('../images/ep1.png');
}

.home-preview__item--ep2 {
  background-image: url('../images/ep2.png');
}

.home-preview__item--ep3 {
  background-image: url('../images/ep3.png');
}

.home-preview__item--ep4 {
  background-image: url('../images/ep4.png');
}

.home-preview__item--ep5 {
  background-image: url('../images/ep5.png');
}

.home-preview__item--ep6 {
  background-image: url('../images/ep6.png');
}

.home-preview__item--ep7 {
  background-image: url('../images/ep7.png');
}

.home-preview__item--ep8 {
  background-image: url('../images/ep8.png');
}

.home-preview__item--ep9 {
  background-image: url('../images/ep9.png');
}

.home-preview__item--ep10 {
  background-image: url('../images/ep10.png');
}

.home-preview__item--ep11 {
  background-image: url('../images/ep11.png');
}

.home-preview__item--ep12 {
  background-image: url('../images/ep12.png');
}

/* ============ MASTERCLASS PREVIEW PAGE ============ */
.preview-hero {
  background: #ffffff;
  padding: 3.5rem 2rem 3rem;
}

.preview-hero__card {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(135deg, #00BFFF 0%, #00C2FF 50%, #5dd4ff 100%);
  box-shadow: 0 12px 40px rgba(0, 180, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 2rem 1.5rem;
  overflow: hidden;
  position: relative;
}

.preview-hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/backgroundimage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08; /* very subtle, similar to reference design */
  pointer-events: none;
  z-index: 0;
}

.preview-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.preview-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 0.7; /* tighten vertical spacing between lines */
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.preview-hero__title-main {
  color: #000000;
  display: block;
  font-size: 1em;
}

.preview-hero__title-accent {
  color: #E0F7FA;
  display: block;
  font-size: 1em;
}

.preview-hero__title-underline {
  color: #000000;
  display: inline-block;
  font-size: 1em;
  position: relative;
  padding-bottom: 0.5em;
}

.preview-hero__title-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.5em;
  background-image: url('../images/clip_white.png');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: contain;
  mix-blend-mode: screen;
}

.preview-hero__list {
  list-style: none;
  margin: 1.9rem 0 0; /* push bullets slightly lower under the heading */
  padding: 0;
  font-weight: 500;
  font-size: 1.25rem;
  color: #000000;
}

.preview-hero__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.preview-hero__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #000000;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.preview-hero__right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  min-height: 440px;
}

.preview-hero__right::after {
  content: '';
  position: absolute;
  inset: auto;
  right: 65px;   /* move slightly left from the edge */
  bottom: 8%;
  width: 430px;  /* larger glow */
  height: 430px;
  background-image: url('../images/whiteglow.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(0);
  z-index: 0;
  pointer-events: none;
}

.preview-hero__right::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.preview-hero__person {
  max-height: 750px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  position: relative;
  z-index: 1;
  transform: translate(-16%, 15%) scale(1.30);
  transform-origin: center bottom;
}

.preview-lessons {
  background: #ffffff;
  padding: 4rem 2rem 5rem;
}

.preview-lessons__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.preview-lessons__title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  color: #000000;
}

.preview-lessons__title-accent {
  color: var(--cyan);
}

.preview-lessons__featured {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 1.75rem;
  background: #f8f8f8;
  border-radius: 24px;
  padding: 1.4rem 1.4rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.preview-lessons__featured-thumb {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.preview-lessons__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-lessons__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Pure CSS play triangle - geometrically centered in the black circle */
.preview-lessons__play-triangle {
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.preview-lessons__play-triangle--sm {
  border-left-width: 10px;
  border-top-width: 6px;
  border-bottom-width: 6px;
}

.preview-lessons__featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.preview-lessons__featured-ep {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.preview-lessons__featured-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
}

.preview-lessons__featured-text {
  font-size: 0.95rem;
  color: #555555;
  max-width: 460px;
}

.preview-lessons__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3-wide grid like reference */
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.preview-lessons__thumb {
  position: relative;
  border-radius: 14px;
  width: 100%;
  aspect-ratio: 16 / 9; /* ensure thumbnails have visible height */
  background-size: cover;
  background-position: center;
  border: none;
  cursor: pointer;
}

.preview-lessons__thumb--ep1       { background-image: url('../images/ep1.png'); }
.preview-lessons__thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.preview-lessons__thumb--ep2       { background-image: url('../images/ep2.png'); }
.preview-lessons__thumb--ep3       { background-image: url('../images/ep3.png'); }
.preview-lessons__thumb--ep4       { background-image: url('../images/ep4.png'); }
.preview-lessons__thumb--ep5       { background-image: url('../images/ep5.png'); }
.preview-lessons__thumb--ep6       { background-image: url('../images/ep6.png'); }
.preview-lessons__thumb--ep7       { background-image: url('../images/ep7.png'); }
.preview-lessons__thumb--ep8       { background-image: url('../images/ep8.png'); }
.preview-lessons__thumb--ep9       { background-image: url('../images/ep9.png'); }
.preview-lessons__thumb--ep10      { background-image: url('../images/ep10.png'); }
.preview-lessons__thumb--ep11      { background-image: url('../images/ep11.png'); }
.preview-lessons__thumb--ep12      { background-image: url('../images/ep12.png'); }

.preview-lessons__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.preview-lessons__page {
  cursor: pointer;
  color: #888888;
}

.preview-lessons__page--active {
  font-weight: 800;
  color: var(--cyan);
}

.preview-lessons__page--next {
  margin-left: 0.5rem;
}

.preview-lessons__page.is-hidden {
  display: none;
}

.preview-lessons__page.is-disabled {
  color: #bbbbbb;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Video modal */
.preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2200;
}

.preview-modal.is-open {
  display: flex;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.preview-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 90vw);
  max-height: 80vh;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.preview-modal__frame-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.preview-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

.home-preview__ep {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  display: none; /* hide episode label text on thumbnails */
}

.home-preview__name {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  display: none; /* hide bottom title text; thumbnails carry their own titles */
}

.home-preview__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.home-preview__arrows {
  display: inline-flex;
  gap: 0.5rem;
}

.home-preview__btn {
  background: var(--cyan);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.home-preview__btn:hover {
  background: var(--cyan-hover);
}

.home-preview__arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-preview__arrow-btn:hover {
  background: var(--black);
  color: var(--white);
}

.home-preview__arrow-btn.is-clicked {
  transform: translateX(4px) scale(1.05);
}

/* Meet Ibrahim Awad */
.home-meet {
  position: relative;
  background: #000;
  background-image: url('../images/ibrahimbg.png');
  background-size: cover;
  background-position: center;
  padding: 7rem 2rem 2rem;
  overflow: visible;
  min-height: 480px;
  z-index: 1; /* keep this section below following white block when overlapping */
}

.home-meet__brush {
  display: none;
}

.home-meet__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  min-height: 360px;
}

.home-meet__left {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.home-meet__right {
  align-self: flex-start;
  margin-top: -2.3rem;
}

.home-meet__portrait {
  width: 100%;
  max-width: none;
  height: auto;
  min-width: 600px;
  border-radius: 0;
  margin-bottom: -3.7rem; /* nudge portrait slightly lower */
  margin-top: auto;
  transform-origin: bottom left;
  transform: translateX(-160px) scale(1.30);
}

.home-meet__portrait-placeholder {
  display: none;
}

.home-meet__title {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.home-meet__title-accent {
  color: var(--cyan);
}

.home-meet__name-box {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}

.home-meet__bio {
  color: var(--light);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  font-size: 1.2rem;
  font-weight: 700;
}

.home-meet__btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}

.home-meet__btn:hover {
  background: var(--cyan-hover);
}

/* Course Curriculum */
.home-curriculum {
  background: var(--white);
  padding: 5rem 2rem;
  position: relative;
  z-index: 2; /* ensure white background covers overlapping portrait */
}

.home-curriculum__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-curriculum__title {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.home-curriculum__title-accent {
  color: var(--cyan);
}

.home-curriculum__meta {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.home-curriculum__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  align-items: stretch;
}

.home-curriculum__sidebar,
.home-curriculum__lessons {
  min-width: 0;
}

.home-curriculum__sidebar {
  margin: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1.25rem;
}

.home-curriculum__filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--black);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.home-curriculum__topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-curriculum__topics li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--black);
  font-size: 0.9rem;
}

.home-curriculum__topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: transparent;
  opacity: 0.9;
}

.home-curriculum__topics li.is-active {
  color: var(--cyan);
  font-weight: 700;
}

.home-curriculum__topics li.is-active::before {
  background: var(--cyan);
}

.home-curriculum__lessons {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem; /* tighter stack so filtered lessons compress together */
}

.home-curriculum__lesson {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 1.25rem;
  background: #f5f5f5;
  color: var(--black);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background 0.2s;
}

.home-curriculum__lesson--active {
  background: rgba(0, 207, 232, 0.12);
  border-color: rgba(0, 207, 232, 0.25);
}

.home-curriculum__lesson:hover {
  background: rgba(0, 207, 232, 0.1);
}

.home-curriculum__lesson-num {
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 5.5rem;
}

.home-curriculum__lesson-title {
  flex: 1;
  font-weight: 700;
  color: var(--black);
  min-width: 0;
}

.home-curriculum__lesson-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--gray);
  font-size: 0.85rem;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.home-curriculum__lesson:hover .home-curriculum__lesson-arrow {
  background: rgba(0, 207, 232, 0.2);
  color: var(--cyan);
}

.home-curriculum__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.home-curriculum__page {
  padding: 0.5rem 0.75rem;
  color: var(--gray);
  cursor: pointer;
  font-weight: 600;
}

.home-curriculum__page--active {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
  font-weight: 700;
}

.home-curriculum__next {
  color: var(--black);
  padding-left: 1rem;
  cursor: pointer;
  font-weight: 600;
}

.home-curriculum__next.is-disabled {
  color: var(--gray);
  cursor: not-allowed;
  opacity: 0.6;
}

.home-curriculum__page.is-hidden {
  display: none;
}

.home-curriculum__page.is-disabled {
  color: var(--gray);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Your Court Date CTA */
.home-cta {
  position: relative;
  background: var(--white);
  padding: 5rem 1.5rem;
}

.home-cta__brush {
  display: none;
}

.home-cta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background-image: url('../images/courtdatebg.png');
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  padding: 3rem 2.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.home-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05; /* tighten gap between lines */
  margin-bottom: 0.5rem;
}

.home-cta__sub {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.home-cta__underline {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.home-cta__underline-img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
}

.home-cta__btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.home-cta__btn:hover {
  background: var(--cyan-hover);
}

/* Full footer (home page) */
.footer--full {
  position: relative;
  background: var(--black);
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.footer--full .footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer--full .footer__brush {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.footer--full .footer__brush--left {
  bottom: 0;
  left: 0;
  width: 420px;
  height: 420px;
  background-image: url('../images/bottom_left_footer.png');
  transform-origin: left bottom;
  transform: scale(2.0); /* 30% larger, adjust as needed */
}

.footer--full .footer__brush--right {
  top: -6%;
  right: 0;
  width: 380px;
  height: 350px;
  transform: translateX(193px) scale(2.8);
  background-image: url('../images/center-right.png');
}

.footer__quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__quick-links li + li {
  margin-top: 0.25rem;
}

.footer__quick-links a {
  color: var(--gray);
  text-decoration: none;
}

.footer__quick-links a:hover {
  color: var(--cyan);
}

/* ============ COURSE DROPDOWN ============ */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--dark-2);
  min-width: 200px;
  padding: 0.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--gray);
  font-size: 0.8rem;
}

.dropdown-menu a:hover {
  background: rgba(0, 207, 232, 0.1);
  color: var(--cyan);
}

/* ============ GENERAL SECTIONS ============ */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* ============ COURSE PAGE LAYOUT ============ */

.course-hero {
  --cutout: 120px;
  --hero-bg-shift: 36px;
  margin-top: calc(var(--hero-bg-shift) * -1);
  padding: calc(1.8rem + var(--hero-bg-shift)) 2rem 3rem;
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 48px;
}

.course-hero::after {
  content: none;
}

.course-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.course-hero__left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.course-hero__title {
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 800;
  text-transform: none;
  color: #000000;
}

.course-hero__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 207, 232, 0.16);
  border: 1px solid rgba(0, 207, 232, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.course-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-hero__instructor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.course-hero__instructor-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.course-hero__instructor-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
}

.course-hero__instructor-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.course-hero__meta-box {
  margin-top: 0.75rem;
  background: #ffffff;
  border: 2px solid var(--cyan);
  border-radius: 18px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.course-hero__meta-col {
  flex: 1;
  padding: 0.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.course-hero__meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.course-hero__meta-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #000000;
}

.course-hero__meta-divider {
  width: 1px;
  background: rgba(0, 207, 232, 0.45);
}

.course-hero__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

/* Unified all-in-one purchase card (thumbnail + price + CTAs + includes) */
.course-product-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 26px;
  padding: 1.4rem 1.4rem 1.55rem;
  border: 1px solid #e6e6e6;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  overflow: hidden; /* keep everything inside rounded corners */
}

.course-product-card__media {
  width: 100%;
  border-radius: 18px; /* slightly smaller than card radius */
  overflow: hidden;
  background: #f3f3f3;
}

.course-product-card__thumbnail {
  width: 100%;
  display: block;
  object-fit: cover;
}

.course-product-card__price {
  margin-top: 1rem;
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  text-align: left;
}

.course-product-card__btn {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.75rem;
}

.course-product-card__btn--primary {
  background: var(--cyan);
  color: var(--black);
}

.course-product-card__btn--primary:hover {
  background: var(--cyan-hover);
}

.course-product-card__btn--secondary {
  background: #0f0f0f;
  color: #ffffff;
  margin-top: 0.6rem;
}

.course-product-card__error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.course-product-card__secure {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #f7f9fb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #222222;
}

.course-product-card__secure-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.course-product-card__secure-text i {
  color: var(--cyan);
}

.course-product-card__secure-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  color: #1a1a1a;
}

.course-product-card__secure-icons i {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .course-product-card__secure {
    flex-direction: column;
    align-items: flex-start;
  }
}

.course-product-card__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 1.25rem 0 1rem;
}

.course-product-card__includes-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #111111;
  margin-bottom: 0.75rem;
}

.course-product-card__rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.course-product-card__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #222222;
}

.course-product-card__row-left {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #222222;
  font-weight: 600;
}

.course-product-card__row-left i {
  color: var(--cyan);
}

.course-product-card__row-right {
  text-align: right;
  font-weight: 800;
  color: #111111;
}

@media (max-width: 600px) {
  .course-product-card {
    max-width: 520px;
    padding: 1.1rem 1.05rem 1.2rem;
  }

  .course-product-card__price {
    font-size: 2rem;
  }
}

/* ABOUT COURSE */

.course-about {
  padding: 5.5rem 2rem 4.5rem;
  background: #ffffff;
}

.course-about__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.course-about__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 3.0rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.course-about__icon {
  font-size: 1.4rem;
}

.course-about__heading-about {
  color: var(--cyan);
}

.course-about__heading-course {
  color: #000000;
  position: relative;
  display: inline-block;
  isolation: isolate;
  z-index: 0;
}

.course-about__heading-course::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 1.4em);
  height: 1.7em;
  transform: translate(-50%, -50%);
  background: url("../images/circledesign.png") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

.course-about__text {
  color: #000000;
  font-size: 1.25rem;
  max-width: 900px;
  font-weight: 700;
  line-height: 1.7;
}

.course-about__lead {
  color: var(--black);
  font-weight: 800;
}

.course-about__lead-brand {
  color: var(--cyan);
}

/* CURRICULUM */

.course-curriculum {
  padding: 5rem 2rem 5.5rem;
  background: #ffffff url("../images/coursecurribg.png") center / cover no-repeat;
}

.course-curriculum__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.course-curriculum__heading {
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.course-curriculum__heading-main {
  color: #000000;
  display: block;
}

.course-curriculum__heading-accent {
  color: var(--cyan);
  display: inline-block;
  position: relative;
}

.course-curriculum__heading-accent::after {
  content: "";
  position: absolute;
  left: -0.2rem;
  right: -0.2rem;
  bottom: -0.55rem;
  height: 16px;
  background: url("../images/clip.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.course-curriculum__module {
  background: var(--cyan);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin: 0 0 1.35rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.course-curriculum__module-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #000000;
  margin-bottom: 0.35rem;
}

.course-curriculum__module-meta {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.8);
}

.course-curriculum__instructors-title {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-curriculum__instructors-cyan {
  color: var(--cyan);
}

.course-curriculum__instructors-black {
  color: #000000;
}

.course-curriculum__instructor-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.1rem 1.1rem 0.95rem;
  border: 2px solid rgba(0, 207, 232, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.course-curriculum__instructor-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.course-curriculum__instructor-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f0f0f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
}

.course-curriculum__instructor-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #000000;
}

.course-curriculum__instructor-courses {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--cyan);
}

.course-curriculum__instructor-stats {
  background: var(--cyan);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #000000;
  font-weight: 900;
  font-size: 0.85rem;
}

.course-curriculum__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.course-curriculum__stat i {
  color: #000000;
}

.course-curriculum__episodes-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
}

.course-curriculum__episodes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.course-curriculum__episode {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--cyan);
}

.course-curriculum__episode-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.course-curriculum__episode-play {
  color: var(--cyan);
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.course-curriculum__episode-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.course-curriculum__episode-ep {
  font-weight: 900;
  color: var(--cyan);
  font-size: 0.8rem;
  white-space: nowrap;
}

.course-curriculum__episode-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-curriculum__episode-right {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.course-curriculum__episode-duration {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--cyan);
}

.course-curriculum__episode-lock {
  color: #000000;
  opacity: 0.75;
}

@media (max-width: 980px) {
  .course-curriculum__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .course-curriculum__episodes-card {
    padding: 0.95rem 0.95rem;
  }
}

/* RATINGS & REVIEWS */

.course-reviews {
  padding: 4rem 2rem 5rem;
  background: #ffffff;
}

.course-reviews__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.course-reviews__heading {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.course-reviews__heading-main {
  color: #000000;
}

.course-reviews__heading-accent {
  color: var(--cyan);
}

.course-reviews__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.course-reviews__empty-img {
  width: min(680px, 100%);
  height: auto;
  display: block;
  opacity: 0.95;
}

.course-reviews__empty-text {
  margin-top: 1.1rem;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.25);
}

/* ============ SUCCESS / CANCEL PAGES ============ */
.status-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.status-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem;
  max-width: 480px;
  text-align: center;
}

.status-card__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.status-card.success .status-card__icon {
  color: var(--cyan);
}

.status-card.cancel .status-card__icon {
  color: var(--gray);
}

.status-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.status-card__text {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.status-card a {
  display: inline-block;
  background: var(--cyan);
  color: var(--black);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.status-card a:hover {
  background: var(--cyan-hover);
}

/* ============ ABOUT PAGE ============ */
.hero--about {
  min-height: 60vh;
  background-image: url('../images/Awad5.png');
  background-size: cover;
  background-position: center calc(40% + 20px);
}

.hero__content--about {
  align-items: center;
}

.hero__left--about {
  max-width: none;
}

.hero__heading--about {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.hero__right--about {
  justify-content: center;
  align-items: flex-end;
}

.hero__right--about .hero__card {
  display: none;
}

/* About program section - white background */
.about-program {
  background: var(--white);
  padding: 5rem 2rem;
}

.about-program__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-program__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.about-program__title-cyan {
  color: var(--cyan);
}

.about-program__title-underline {
  position: relative;
  display: inline-block;
  font-weight: 800;
}

.about-program__title-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -16px; /* moved slightly further below PRACTICE for clearer separation */
  width: 100%;
  height: 20px;
  background-image: url('../images/clip.png');
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.about-program__text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--black);
  font-weight: 700;
}

/* About stats banner */
.about-stats {
  position: relative;
  overflow: visible;
  padding: 20px 40px;
  background: var(--white);
}

/* Large brush accent on LEFT EDGE of the section (behind, not inside the card) */
.about-stats::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 600px;
  height: 700px;
  background: url("../images/2krightbottom.png") left center / contain no-repeat;
  transform: translateY(-55%);
  pointer-events: none;
  z-index: 0;
}


.about-stats__card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  overflow: visible;
}

/* Cyan outline: peeks out bottom and right (16px). Radius 16+16 so corner stays same thickness. */
.about-stats__card-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: -16px;
  right: -16px;
  background-image: url("../images/rectangle.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 32px;
  z-index: 1;
  opacity: 1;
}

/* Small white gap between card and outline */
.about-stats__card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 16px;
  margin-right: 3px;
  margin-bottom: 3px;
  background-image:
    linear-gradient(90deg, rgba(0, 199, 232, 0.95), rgba(0, 125, 191, 0.98)),
    url("../images/2kstudents.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  padding: 1.75rem 2.5rem;
  border: none;
  outline: none;
  box-shadow: none;
}

.about-stats__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0;
  text-align: center;
}

.about-stats__number {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.9;
  flex-shrink: 0;
}

.about-stats__label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.about-stats__label {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
}

.about-stats__label-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
}

.about-stats__cta-wrap {
  position: relative;
  text-align: center;
}

.about-stats__cta {
  display: inline-block;
  background: var(--cyan);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.about-stats__cta:hover {
  background: var(--cyan-hover);
}

/* White spacer after stats card to separate from next section */
.about-stats__spacer {
  height: 40px;
  background: var(--white);
}

/* About three-column features */
.about-features {
  position: relative;
  background: url("../images/masterthemagistratebg.png") center / cover no-repeat;
  padding: 10rem 2rem;
  overflow: hidden;
}

.about-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72); /* soften texture to a whiter look */
  z-index: 0;
  pointer-events: none;
}

.about-features::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 65%;
  width: 600px;
  height: 700px;
  background: url("../images/rightsidedesign.png") right center no-repeat;
  background-size: 100% auto;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.about-features__brush {
  position: absolute;
  top: 50%;
  width: 25%;
  height: 120%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 207, 232, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.about-features__brush--left {
  left: -5%;
  transform: translateY(-50%) rotate(-10deg);
}

.about-features__brush--right {
  right: -5%;
  transform: translateY(-50%) rotate(10deg);
}

.about-features__inner {
  position: relative;
  z-index: 1; /* keep content above white overlay + background */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-features__title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.about-features__title-line {
  display: block;
}

.about-features__title-line--top {
  color: var(--cyan);
}

.about-features__title-line--bottom {
  position: relative;
  display: inline-block;
}

.about-features__title-line--bottom::after {
  content: none;
}

.about-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem;
  align-items: flex-start;
  justify-items: center; /* center each feature column for a cleaner layout */
}

.about-features__item-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--black);
  margin-bottom: 0.5rem;
  min-height: 3.5rem;
  line-height: 1.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  padding-bottom: 1rem; /* space for underline image, slightly tighter */
}

.about-features__item-text {
  font-size: 1.2rem;       /* larger for better readability */
  line-height: 1.7;
  color: var(--black);
  font-weight: 700;
  text-align: center;      /* align with headings for modern, balanced look */
  max-width: 22rem;        /* keep paragraphs at an ideal reading width */
  margin: 0 auto;          /* center text block within each column */
}

.about-features__item-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 120%;
  height: 20px;
  background-image: url('../images/clip.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.about-features__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;      /* keep headings and copy vertically aligned */
}

@media (max-width: 1100px) {
  .about-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* About outcomes stats */
.about-outcomes {
  background: #ffffff;
  padding: 5rem 2rem;
}

.about-outcomes__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.25rem;
}

.about-outcomes__card-frame {
  position: relative;
  overflow: visible;
}

/* Cyan rectangle.png outline for the top-left 2000+ card, mirroring 2K+ hero box */
.about-outcomes__card-frame--tl::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: 0;
  bottom: 0;
  background-image: url("../images/rectangle.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
}

.about-outcomes__card-frame--tl > .about-outcomes__card {
  position: relative;
  z-index: 1;
  margin-right: 3px;
  margin-bottom: 3px;
}

.about-outcomes__card {
  border-radius: 26px;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Sharpen inner corners so edges pointing toward center are square */
.about-outcomes__card--tl {          /* top-left box */
  border-radius: 26px 26px 0 26px;   /* round both top corners, square bottom-right */
}

.about-outcomes__card--tr {          /* top-right box */
  border-radius: 0 26px 26px 0;      /* round outer right, square left */
}

.about-outcomes__card--bl {          /* bottom-left box */
  border-radius: 26px 0 26px 0;      /* round outer left, square right */
}

.about-outcomes__card--br {          /* bottom-right box */
  border-radius: 0 26px 0 26px;      /* round outer right, square left */
}

.about-outcomes__card--cyan {
  background: linear-gradient(135deg, #00cfe8 0%, #00b3d4 100%);
  color: var(--black);
}

.about-outcomes__card--black {
  background: linear-gradient(135deg, #111111 0%, #222222 100%);
  color: var(--white);
}

/* Cyan rectangle.png outline for the top-left 2000+ card, mirroring 2K+ hero box */
.about-outcomes__card--outline-tl {
  position: relative;
  overflow: visible;
}

.about-outcomes__card--outline-tl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: -16px;
  right: -16px;
  background-image: url("../images/rectangle.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
}

.about-outcomes__value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.about-outcomes__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-outcomes__label-clip {
  position: relative;
  display: inline-block;
  padding-bottom: 0.7rem;
}

.about-outcomes__label-clip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: url("../images/clip.png") center / 100% 100% no-repeat;
}
/* Meet Our Expert Instructor */
.about-instructor {
  position: relative;
  background: var(--white);
  padding: 5rem 2rem;
  overflow: hidden;
}

.about-instructor__brush {
  position: absolute;
  left: -70px;            /* hug the left edge of the section */
  top: 20%;           /* vertical position (adjust as needed) */
  width: 300px;       /* size/scale (adjust to change scale) */
  height: 700px;
  background: url("../images/instructor_leftdesign.png") center / contain no-repeat;
  transform: translateY(-50%); /* only center vertically */
  pointer-events: none;
  z-index: 0;         /* sit behind text/content */
}

.about-instructor__inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.about-instructor__title {
  font-size: clamp(2.2rem, 3.2vw, 3rem); /* larger heading */
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.5rem;  /* tighter gap above paragraph */
  text-align: center;      /* center the full heading line */
}

.about-instructor__title-accent {
  color: var(--cyan);
  position: relative;
  display: inline-block;
}

.about-instructor__title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 12px;
  background: url("../images/clip.png") center / 100% 100% no-repeat;
}

.about-instructor__bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--black);
  font-weight: 700; /* make body text bold */
  max-width: 720px;
  margin-bottom: 0.6rem;  /* pull banner closer */
  text-align: center;      /* center paragraph under heading */
  margin-left: auto;
  margin-right: auto;
}

.about-instructor__banner {
  background-image: url("../images/semi-rectangle.png"), url("../images/image.png");
  background-size: 112% 112%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 2.1rem 2.75rem;  /* vertical span top/bottom */
  margin: 1.75rem auto 1rem; /* lower the banner so its top can fully show */
  max-width: 720px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  position: relative;
  overflow: visible; /* allow content to overflow; image is now outside this box */
}

.about-instructor__banner-wrap {
  position: relative;
  max-width: 720px;
  margin: 5rem auto 0;  /* more breathing room between paragraph and banner, centered */
  overflow: visible;
}

.about-instructor__name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.about-instructor__headshot {
  position: absolute;
  right: -10px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 10px solid #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.about-instructor__creds {
  font-size: 0.8rem;
  font-weight: 700; /* make Experienced Injury Attorney / Trial Lawyer / Legal Educator bold */
  letter-spacing: 0.1em;
  color: var(--black);
  text-align: center;
  margin-top: 1.25rem;
}

/* About video section */
.about-video {
  position: relative;
  background: var(--white);
  padding: 5rem 2rem;
  overflow: hidden;
}

.about-video__brush {
  position: absolute;
  top: 50%;
  width: 20%;
  height: 100%;
  background: radial-gradient(ellipse 40% 50% at 50% 50%, rgba(0, 207, 232, 0.12) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.about-video__brush--left {
  left: -3%;
}

.about-video__brush--right {
  right: -3%;
}

.about-video__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-video__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.about-video__title-main {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.about-video__title-main::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 12px;
  background: url("../images/clip.png") center / 100% 100% no-repeat;
}

.about-video__player {
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark-2);
}

.about-video__player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* About expertise - two boxes */
.about-expertise {
  background: var(--white);
  padding: 5rem 2rem;
}

.about-expertise__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.about-expertise__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.about-expertise__title-accent {
  font-size: clamp(1.85rem, 3vw, 2.3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 2rem;
  position: relative;
}

.about-expertise__title-accent::after {
  content: none;
}

.about-expertise__title-word--underlined {
  position: relative;
  display: inline-block;
}

.about-expertise__title-word--underlined::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 14px;
  background-image: url('../images/clip.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.about-expertise__cards {
  position: relative;
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 3rem; /* reserve space for brush */
  z-index: 0;           /* create stacking context for pseudo-element */
}

.about-expertise__cards::after {
  content: '';
  position: absolute;
  left: 58%;            /* nudge brush slightly to the right */
  bottom: -26px;        /* tuck a bit further under the cards */
  transform: translateX(-50%);
  width: 620px;         /* scale a bit larger */
  height: 300px;
  background-image: url('../images/backdesign.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  z-index: -1;          /* behind the card group, above section background */
  pointer-events: none;
}

.about-expertise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-expertise__box {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.about-expertise__box-title {
  background: var(--cyan);
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1rem 1.75rem;
  margin: 0;
}

.about-expertise__box-text {
  padding: 1.5rem 1.75rem 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
}

/* Full footer (about page) */
.footer--about {
  position: relative;
  background: var(--black);
  padding: 0;
  text-align: left;
}

.footer--about .footer__brush {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0, 207, 232, 0.2) 0%, transparent 60%);
  transform: rotate(-15deg);
  pointer-events: none;
}

.footer__top {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__top-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 0 0 50%;
  padding: 1.15rem 2.25rem;
  background: #111111;
}

.footer__connect {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__social:hover {
  color: var(--cyan);
}

.footer__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: var(--black);
  padding: 1.1rem 2.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 0;
  flex: 0 0 50%;
  justify-content: center;
  text-align: center;
}

.footer__contact-btn:hover {
  background: var(--cyan-hover);
}

.footer__main {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 2.5rem 2rem 1.5rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo-img {
  max-width: 260px;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.footer--about .footer__logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray);
}

.footer__links-wrap {
  display: flex;
  gap: 3rem;
}

.footer__col {
  margin-left: 4.8rem; /* nudge Course Inquiries + Quick Links slightly right */
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}

.footer__email {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 0.9rem; /* create a small gap before QUICK LINKS */
}

.footer__email:hover {
  color: var(--cyan);
}

.footer__quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__quick-links li {
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.5rem;
}

.footer__quick-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap; /* keep labels like 'Masterclass Preview' on one line */
}

.footer__quick-links a:hover {
  color: var(--cyan);
}

.footer__quick-links li::before {
  content: '↗';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--white);
}

.footer__bottom {
  padding: 1.5rem 2rem 2.25rem;
  text-align: center;
}

.footer__divider {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  max-width: 100%;
  margin: 0 auto 1rem;
}

.footer__legal {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray);
}

.footer--about .footer__legal {
  margin: 0;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: var(--gray);
}

@media (max-width: 900px) {
  .hero__content--about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__right--about {
    order: -1;
  }

  .about-program__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats__inner {
    flex-direction: column;
    text-align: center;
  }

  .about-stats__label {
    max-width: none;
  }

  .about-features__grid {
    grid-template-columns: 1fr;
  }

  .about-outcomes__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-expertise__grid {
    grid-template-columns: 1fr;
  }

  .footer--full .footer__main {
    grid-template-columns: 1fr;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__top-left,
  .footer__contact-btn {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .about-outcomes__inner {
    grid-template-columns: 1fr;
  }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__text {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ============ GLOBAL BUTTON & FORM TOUCH OPTIMIZATIONS ============ */
@media (max-width: 600px) {
  /* Base button improvements */
  button,
  input[type="submit"],
  input[type="button"],
  .btn {
    min-height: 48px;
    min-width: 48px;
    padding: 0.875rem 1.25rem;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Primary CTA buttons */
  .hero__btn,
  .home-prepared__btn,
  .home-discover__btn,
  .home-cta__btn,
  .header__cta,
  .header__mobile-cta,
  .footer__contact-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
  }

  /* Button hover and active states */
  .hero__btn:hover,
  .home-prepared__btn:hover,
  .home-discover__btn:hover,
  .home-cta__btn:hover,
  .header__cta:hover,
  .header__mobile-cta:hover,
  .footer__contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 207, 232, 0.3);
  }

  .hero__btn:active,
  .home-prepared__btn:active,
  .home-discover__btn:active,
  .home-cta__btn:active,
  .header__cta:active,
  .header__mobile-cta:active,
  .footer__contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 207, 232, 0.2);
  }

  /* Secondary buttons */
  .hero__learn-more,
  .home-meet__btn,
  .contact-form__submit {
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Form inputs */
  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    min-height: 48px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--dark-2);
    color: var(--light);
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 207, 232, 0.2);
  }

  /* Form labels */
  label {
    display: block;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light);
  }

  /* Contact form specific */
  .contact-form {
    gap: 1rem;
  }

  .contact-form__input,
  .contact-form__textarea {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.2);
  }

  .contact-form__input:focus,
  .contact-form__textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 207, 232, 0.18);
  }

  /* Navigation links */
  .header__mobile-list a {
    min-height: 48px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Interactive elements */
  .home-preview__play,
  .home-curriculum__lesson-arrow,
  .home-preview__arrow-btn {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Curriculum lessons */
  .home-curriculum__lesson {
    min-height: 48px;
    padding: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Topic pills */
  .home-topics__pill,
  .home-curriculum__topics li {
    min-height: 44px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  /* Footer links */
  .footer__quick-links li {
    min-height: 44px;
    padding: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Course page specific mobile optimizations */
  .course-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .course-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .course-hero__instructor {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .course-product-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .course-product-card__thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .course-product-card__price {
    font-size: clamp(2rem, 5vw, 2.5rem);
    text-align: center;
    margin: 1rem 0;
  }

  .course-product-card__btn {
    width: 100%;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    margin-bottom: 1rem;
  }

  .course-product-card__secure {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }

  .course-product-card__secure-text {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    line-height: 1.4;
  }

  .course-product-card__secure-icons {
    font-size: 1.5rem;
    gap: 1rem;
  }

  /* Contact page specific mobile optimizations */
  .contact-hero {
    padding: 2rem 1rem 3rem;
  }

  .contact-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .contact-hero__office-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 1rem;
  }

  .contact-hero__office-subtext {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
    margin-bottom: 2rem;
  }

  .contact-hero__cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-hero__card {
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
  }

  .contact-hero__card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .contact-hero__card-title {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin-bottom: 0.5rem;
  }

  .contact-hero__card-lines {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    line-height: 1.4;
    word-break: break-word;
  }

  .contact-form-card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .contact-form-card__title {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .contact-form-card__subtext {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .contact-form {
    gap: 1rem;
  }

  .contact-form__field {
    margin-bottom: 0.5rem;
  }

  .contact-form__label {
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    margin-bottom: 0.5rem;
  }

  .contact-form__input,
  .contact-form__textarea {
    padding: 0.875rem 1rem;
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
  }

  .contact-form__submit {
    width: 100%;
    padding: 1rem 1.25rem;
    min-height: 48px;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    margin-top: 0.5rem;
  }

  /* About page mobile optimizations */
  .hero__content--about {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero__heading--about {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
  }

  .hero__subtext--about {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
    max-width: 100%;
  }

  .about-features__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-outcomes__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Students page mobile optimizations */
  .students-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
  }

  .students-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .students-testimonial__card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  /* Checkout page mobile optimizations */
  .checkout-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
  }

  .checkout-form {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .checkout-form__field {
    margin-bottom: 1rem;
  }

  .checkout-form__input {
    padding: 0.875rem 1rem;
    min-height: 48px;
    font-size: 16px;
  }

  .checkout-form__submit {
    width: 100%;
    padding: 1rem 1.25rem;
    min-height: 48px;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
  }

  /* Success page mobile optimizations */
  .success-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
  }

  .success-hero__subtext {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
  }

  .success-hero__btn {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    margin: 0 auto;
    display: block;
  }

  /* Cancel page mobile optimizations */
  .cancel-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
  }

  .cancel-hero__subtext {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
  }

  .cancel-hero__btn {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    margin: 0 auto;
    display: block;
  }

  /* Masterclass preview page mobile optimizations */
  .preview-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
  }

  .preview-hero__subtext {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-align: center;
  }

  .preview-lessons__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .preview-lesson__card {
    padding: 1rem;
    border-radius: 8px;
  }

  .preview-lesson__play {
    min-width: 44px;
    min-height: 44px;
  }

  /* Ensure all pages have proper mobile spacing */
  main {
    padding-top: 1rem;
  }

  section {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 2rem;
  }

  /* Prevent horizontal scroll on all pages */
  body {
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px;
  }

  /* Remove default button styles */
  button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
  }
}

/* ============ GLOBAL IMAGE & MEDIA RESPONSIVENESS ============ */
@media (max-width: 600px) {
  /* Base image responsiveness */
  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Hero images */
  .hero__person,
  .hero__instructor {
    max-width: min(300px, 90vw);
    height: auto;
    margin: 1rem auto;
    display: block;
    transform: none;
    position: relative;
  }

  /* Section images */
  .home-prepared__img,
  .home-discover__img,
  .home-meet__portrait {
    max-width: min(280px, 85vw);
    height: auto;
    margin: 1rem auto;
    display: block;
    transform: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  /* Logo images */
  .header__logo-img,
  .footer__logo-img {
    height: auto;
    max-height: 60px;
    width: auto;
  }

  /* Video embeds */
  iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .home-video__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Preview modal video */
  .preview-modal__iframe {
    width: 100%;
    height: 60vh;
    min-height: 300px;
    border: none;
    border-radius: 8px;
  }

  /* Course preview thumbnails */
  .home-preview__item {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--dark-2);
  }

  /* Ensure all images maintain aspect ratio */
  img:not([src$=".svg"]) {
    object-fit: cover;
    object-position: center;
  }

  /* Placeholder images */
  .home-prepared__img-placeholder,
  .home-discover__img-placeholder,
  .home-meet__portrait-placeholder {
    display: none;
  }

  /* Decorative images */
  .home-cta__underline-img {
    max-width: min(150px, 40vw);
    height: auto;
  }

  /* Background images */
  .hero {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  /* Prevent image overflow in containers */
  .hero__content,
  .home-prepared__inner,
  .home-video__inner,
  .home-preview__inner,
  .home-topics__inner,
  .home-discover__inner,
  .home-meet__inner,
  .home-curriculum__inner,
  .home-cta__inner {
    overflow: hidden;
  }

  /* Gallery/carousel improvements */
  .home-preview__carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .home-preview__item {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* Touch-friendly media controls */
  .home-preview__play,
  .home-curriculum__lesson-arrow {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============ GLOBAL TYPOGRAPHY IMPROVEMENTS ============ */
@media (max-width: 600px) {
  /* Base typography improvements */
  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  h4 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  p, li, td, th {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }

  /* Improve readability */
  body {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
  }

  /* Prevent text overflow */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Improve heading readability */
  .hero__heading,
  .home-prepared__title,
  .home-video__title,
  .home-preview__title,
  .home-topics__title,
  .home-discover__title,
  .home-meet__title,
  .home-curriculum__title,
  .home-cta__title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
  }

  /* Ensure proper line height for all text */
  .hero__subtext,
  .home-prepared__lead,
  .home-meet__bio,
  .footer__tagline {
    line-height: 1.6;
  }

  /* Improve list readability */
  .home-prepared__list,
  .home-curriculum__topics,
  .footer__quick-links {
    line-height: 1.5;
  }

  /* Form improvements */
  .contact-form__label {
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    margin-bottom: 0.5rem;
  }

  .contact-form__input,
  .contact-form__textarea {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.875rem 1rem;
    min-height: 48px;
    border-radius: 8px;
  }

  .contact-form__submit {
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    padding: 1rem 1.25rem;
    min-height: 48px;
  }

  /* Small text adjustments */
  .home-topics__pill,
  .home-curriculum__lesson-num,
  .footer__legal {
    font-size: clamp(0.75rem, 2vw, 0.8rem);
  }

  /* Medium text adjustments */
  .home-curriculum__lesson-title,
  .footer__email,
  .footer__quick-links a {
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
  }

  /* Large text adjustments */
  .pricing-card__price {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
}

/* ============ RESPONSIVE - MOBILE STACKING ============ */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-prepared__inner {
    grid-template-columns: 1fr;
  }

  .home-prepared__left {
    order: 1;
  }

  .home-prepared__right {
    order: 2;
  }

  .home-video__inner {
    grid-template-columns: 1fr;
  }

  .home-discover__inner {
    grid-template-columns: 1fr;
  }

  .home-discover__right {
    order: -1;
  }

  .home-meet__inner {
    grid-template-columns: 1fr;
  }

  .home-meet__left {
    order: -1;
  }

  .home-meet__right {
    align-self: flex-start;
    margin-top: -1rem;
  }

  .home-curriculum__grid {
    grid-template-columns: 1fr;
  }

  .footer--full .footer__main {
    grid-template-columns: 1fr;
  }

  .footer--full .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__left {
    max-width: 100%;
  }

  .hero__subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__right {
    justify-content: center;
    order: -1;
  }

  .hero__instructor {
    max-height: 320px;
  }

  .hero__right {
    align-items: center;
  }

  .hero__bottom-right {
    right: 1.25rem;
    bottom: 2.5rem;
    max-width: 320px;
  }

  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__toggle {
    display: inline-block;
  }

  .header__mobile-menu {
    position: fixed;
    inset: 0 0 auto 0;
    top: 72px;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    padding: 2rem 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header--nav-open .header__mobile-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .header__mobile-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .header__mobile-list a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block;
  }

  .header__mobile-list a:hover,
  .header__mobile-list a:focus {
    color: var(--cyan);
    background: rgba(0, 207, 232, 0.1);
    transform: translateX(4px);
  }

  .header__mobile-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--cyan);
    color: var(--black);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
  }

  .header__mobile-cta:hover {
    background: var(--cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 207, 232, 0.3);
  }

  /* Tame large hero/portrait transforms on tablets and large phones */
  .home-discover__img {
    max-width: min(280px, 85vw);
    transform: none;
    margin: 1rem auto;
    display: block;
    position: relative;
  }

  .home-meet__portrait {
    min-width: 0;
    max-width: min(420px, 90vw);
    transform: none;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
  }

  .header__logo {
    flex-shrink: 0;
  }

  .header__logo-img {
    height: 50px;
    width: auto;
  }

  .hero {
    padding: 2rem 1rem 3rem;
    background-size: cover;
    min-height: clamp(500px, 80vh, 700px);
  }

  .hero__heading {
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.1;

  }

  @media (max-width: 600px) {
    .header {
      padding: 0.75rem 1rem;
      flex-wrap: nowrap;
      gap: 0.5rem;
    }

    .header__logo {
      flex-shrink: 0;
    }

    .header__logo-img {
      height: 50px;
      width: auto;
    }

    .hero {
      padding: 2rem 1rem 3rem;
      background-size: cover;
      min-height: clamp(500px, 80vh, 700px);
    }

    .hero__heading {
      font-size: clamp(2rem, 5vw, 2.5rem);
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    .hero__subtext {
      font-size: clamp(0.9rem, 2.5vw, 1rem);
      margin-bottom: 1.5rem;
      max-width: 100%;
    }

    .hero__btn {
      padding: 0.875rem 1.5rem;
      font-size: 0.875rem;
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .hero__bottom-right {
      position: relative;
      right: auto;
      bottom: auto;
      max-width: 100%;
      margin-top: 2rem;
      order: 3;
    }

    .hero__card {
      text-align: center;
      padding: 0.875rem 1.25rem;
      font-size: 0.875rem;
    }

    .hero__learn-more {
      padding: 0.625rem 1rem;
      font-size: 0.8rem;
    }
  }

  /* Ensure key CTAs are easy to tap */
  .hero__btn,
  .home-prepared__btn,
  .home-discover__btn,
  .home-cta__btn,
  .course-product-card__btn,
  .footer__contact-btn {
    width: 100%;
    text-align: center;
  }

  /* Contact form & cards */
  .contact-hero {
    padding: 3rem 1.25rem 3.5rem;
  }

  .contact-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.25rem 1rem 1.1rem;
  }

  /* Home feature sections spacing */
  .home-prepared__left,
  .home-prepared__right {
    padding: 2rem 1rem;
  }

  .home-prepared__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .home-prepared__lead {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    text-align: center;
    margin-bottom: 2rem;
  }

  .home-prepared__list {
    text-align: center;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .home-prepared__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 0.875rem;
  }

  .home-video,
  .home-preview,
  .home-topics,
  .home-discover,
  .home-curriculum,
  .home-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-video__title,
  .home-preview__title,
  .home-topics__title,
  .home-discover__title,
  .home-curriculum__title,
  .home-cta__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 1rem;
  }

  .home-video__player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
  }

  .home-video__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Course preview carousel */
  .home-preview__carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .home-preview__item {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }

  .home-preview__play {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .home-preview__play:hover {
    background: rgba(0, 207, 232, 0.9);
  }

  .home-preview__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .home-preview__btn {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 0.875rem;
  }

  .home-preview__arrows {
    display: none;
  }

  /* Topics section */
  .home-topics__sub {
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 2rem;
  }

  .home-topics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    justify-items: center;
  }

  .home-topics__pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--dark-2);
    border: 1px solid var(--cyan);
    border-radius: 20px;
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
  }

  .home-topics__pill:hover {
    background: var(--cyan);
    color: var(--black);
    transform: translateY(-2px);
  }
  /* Discover section */
  .home-discover__title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .home-discover__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 0.875rem;
  }

  /* Meet section */
  .home-meet__portrait {
    min-width: 0;
    max-width: min(280px, 90vw);
    transform: none;
    margin: 0 auto 1rem;
    display: block;
  }

  .home-meet__title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
  }

  .home-meet__name-box {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--cyan);
    color: var(--black);
    border-radius: 8px;
    font-weight: 700;
    margin-top: 0.5rem;
  }

  .home-meet__bio {
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .home-meet__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 0.875rem;
  }

  /* Curriculum section */
  .home-curriculum__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-curriculum__sidebar {
    order: 2;
    margin-top: 1rem;
  }

  .home-curriculum__lessons {
    order: 1;
  }

  .home-curriculum__filter-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .home-curriculum__topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    text-align: center;
  }

  .home-curriculum__topics li {
    padding: 0.5rem 0.75rem;
    background: var(--dark-2);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .home-curriculum__topics li:hover {
    background: var(--cyan);
    color: var(--black);
  }

  .home-curriculum__lesson {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--dark-2);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--light);
    transition: all 0.2s ease;
  }

  .home-curriculum__lesson:hover {
    background: rgba(0, 207, 232, 0.1);
    transform: translateX(4px);
  }

  .home-curriculum__lesson-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    margin-right: 1rem;
  }

  .home-curriculum__lesson-title {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .home-curriculum__lesson-arrow {
    background: none;
    border: none;
    color: var(--cyan);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
  }

  /* CTA section */
  .home-cta__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .home-cta__sub {
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 1.5rem;
  }

  .home-cta__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 1rem 1.5rem;
    min-height: 48px;
    font-size: 0.875rem;
  }
  /* Footer improvements */
  .footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .footer__brand {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer__logo-img {
    height: 60px;
    margin: 0 auto 1rem;
  }

  .footer__tagline {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer__links-wrap {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer__col {
    text-align: center;
  }

  .footer__col-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer__email {
    font-size: 0.9rem;
    word-break: break-word;
  }

  .footer__quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer__quick-links li {
    padding: 0.5rem;
    background: var(--dark-2);
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .footer__quick-links li:hover {
    background: rgba(0, 207, 232, 0.1);
  }

  .footer__quick-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
  }

  .footer__quick-links a:hover {
    color: var(--cyan);
  }

  .footer__bottom {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .footer__legal {
    font-size: 0.8rem;
    color: var(--gray);
  }

  /* Ensure key CTAs are easy to tap */
  .hero__btn,
  .home-prepared__btn,
  .home-discover__btn,
  .home-cta__btn,
  .course-product-card__btn,
  .footer__contact-btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .hero__btn:hover,
  .home-prepared__btn:hover,
  .home-discover__btn:hover,
  .home-cta__btn:hover,
  .course-product-card__btn:hover,
  .footer__contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 207, 232, 0.3);
  }
}
@media (max-width: 600px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
    padding: 2rem 1rem 0;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
    position: relative;
    grid-template-columns: 1fr;
  }

  .hero__left {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: left;
    order: 1;
  }

  .hero__heading {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  .hero__right {
    display: none;
  }

  .hero__person {
    position: relative;
    bottom: auto;
    right: auto;
    height: 320px;
    width: auto;
    transform: none;
    display: block;
    margin: 0 auto;
    order: 3;
    z-index: 1;
  }

  .hero__bottom-right {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
    align-items: flex-start;
    margin-top: 1rem;
    order: 2;
    z-index: 3;
  }
}
@media (max-width: 900px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
  }

  .header__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
  }

  .header__toggle-line {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: block;
    width: 24px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
  }

  .header__toggle-line:first-child { top: auto; }
  .header__toggle-line:last-child { bottom: auto; }
}
/* ============ HAMBURGER → X FIX ============ */
@media (max-width: 900px) {
  .header__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .header__toggle-line {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: block;
    width: 24px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* When open: hide middle line, rotate top + bottom into X */
  .header--nav-open .header__toggle-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg) !important;
  }

  .header--nav-open .header__toggle-line:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  .header--nav-open .header__toggle-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
  }
}
/* ============ MOBILE HERO - PERSON RIGHT EDGE + BUTTONS LEFT ============ */
@media (max-width: 600px) {
  .hero {
    min-height: 560px;
    overflow: hidden;
    padding-bottom: 0;
  }

  .hero__person {
    position: absolute !important;
    right: -10px !important;
    bottom: 0 !important;
    height: 300px !important;
    width: auto !important;
    transform: none !important;
    display: block !important;
    z-index: 1;
    order: unset !important;
    margin: 0 !important;
  }

  .hero__bottom-right {
    position: absolute !important;
    bottom: 1.5rem !important;
    left: 1rem !important;
    right: auto !important;
    width: 52% !important;
    max-width: 210px !important;
    margin-top: 0 !important;
    order: unset !important;
    z-index: 3;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  .hero__card {
    text-align: left;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .hero__learn-more {
    text-align: left;
    font-size: 0.72rem;
    padding: 0.6rem 0.85rem;
    white-space: normal;
  }
}
@media (max-width: 600px) {
  .home-curriculum__lesson {
    background: #f5f5f5 !important;
    color: var(--black) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .home-curriculum__lesson:hover {
    background: rgba(0, 207, 232, 0.1) !important;
    transform: none !important;
  }

  .home-curriculum__lesson-title {
    color: var(--black) !important;
  }

  .home-curriculum__topics li {
    background: transparent !important;
    color: var(--black) !important;
    padding: 0.4rem 0 !important;
    border-radius: 0 !important;
  }

  .home-curriculum__topics li:hover {
    background: transparent !important;
    color: var(--cyan) !important;
  }

  .home-curriculum {
    background: var(--white) !important;
  }

  .home-curriculum__sidebar {
    background: var(--white) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  }
}
/* ============ DISCOVER SECTION MOBILE FIX ============ */
@media (max-width: 600px) {
  .home-discover__inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 2rem 1.5rem 0 !important;
    overflow: hidden !important;
    gap: 0 !important;
  }

  .home-discover__left {
    order: 2;
    padding-bottom: 2rem;
  }

  .home-discover__title {
    font-size: clamp(1.6rem, 5vw, 2rem) !important;
    left: 0 !important;
    text-align: center !important;
    margin-bottom: 1.25rem;
  }

  .home-discover__btn {
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .home-discover__right {
    order: 1;
    justify-content: center !important;
    align-items: flex-end !important;
    height: 320px;
    overflow: hidden;
  }

  .home-discover__img {
    transform: none !important;
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain;
    object-position: bottom;
  }
}
@media (max-width: 600px) {
  .home-meet__btn {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
}
/* ============ COURSE PREVIEW THUMBNAILS MOBILE FIX ============ */
@media (max-width: 600px) {
  .home-preview__item {
    background-color: #111 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  .home-preview__item--ep1  { background-image: url('../images/ep1.png') !important; }
  .home-preview__item--ep2  { background-image: url('../images/ep2.png') !important; }
  .home-preview__item--ep3  { background-image: url('../images/ep3.png') !important; }
  .home-preview__item--ep4  { background-image: url('../images/ep4.png') !important; }
  .home-preview__item--ep5  { background-image: url('../images/ep5.png') !important; }
  .home-preview__item--ep6  { background-image: url('../images/ep6.png') !important; }
  .home-preview__item--ep7  { background-image: url('../images/ep7.png') !important; }
  .home-preview__item--ep8  { background-image: url('../images/ep8.png') !important; }
  .home-preview__item--ep9  { background-image: url('../images/ep9.png') !important; }
  .home-preview__item--ep10 { background-image: url('../images/ep10.png') !important; }
  .home-preview__item--ep11 { background-image: url('../images/ep11.png') !important; }
  .home-preview__item--ep12 { background-image: url('../images/ep12.png') !important; }

  .home-preview__play {
    background: rgba(0, 0, 0, 0.6) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}
/* ============ COURSE PREVIEW CTA MOBILE FIX ============ */
@media (max-width: 600px) {
  .home-preview__cta {
    justify-content: center !important;
  }

  .home-preview__btn {
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
  }
}
/* ============ FOOTER MOBILE FIX ============ */
@media (max-width: 600px) {
  .footer--full {
    overflow: hidden !important;
  }

  .footer__brush--left,
  .footer__brush--right {
    opacity: 0.35 !important;
  }

  .footer__top {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .footer__top-left {
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem !important;
  }

  .footer__contact-btn {
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem !important;
  }

  .footer__main {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2rem 1.5rem 1rem !important;
    text-align: center !important;
  }

  .footer__brand {
    margin: 0 auto !important;
    text-align: center !important;
  }

  .footer__logo-img {
    margin: 0 auto 0.75rem !important;
  }

  .footer__links-wrap {
    flex-direction: column !important;
    gap: 1.25rem !important;
    align-items: center !important;
  }

  .footer__col {
    margin-left: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer__email {
    word-break: break-word !important;
    display: block !important;
    text-align: center !important;
  }

  .footer__quick-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: transparent !important;
    grid-template-columns: unset !important;
  }

  .footer__quick-links li {
    background: transparent !important;
    padding: 0.25rem 0 !important;
    width: auto !important;
    text-align: center !important;
  }

  .footer__quick-links li::before {
    display: none !important;
  }

  .footer__quick-links a {
    font-size: 0.9rem !important;
    padding-left: 0 !important;
  }

  .footer__bottom {
    padding: 1rem 1.5rem 2rem !important;
    text-align: center !important;
  }
}
/* ============ PAGE LOADER RING ANIMATION FIX ============ */
@media (max-width: 600px) {
  .page-loader__ring {
    max-width: none !important;
    max-height: none !important;
    width: 170px !important;
    height: 170px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -85px !important;
    margin-left: -85px !important;
    animation: page-loader-spin 0.9s linear infinite !important;
    border-radius: 50% !important;
    border: 4px solid transparent !important;
    border-top-color: #00cfe8 !important;
    box-shadow: 0 0 24px rgba(0, 207, 232, 0.4) !important;
  }

  .page-loader__inner {
    overflow: visible !important;
  }
}
/* ============ COURSE PAGE MOBILE FIX ============ */
@media (max-width: 600px) {
  .course-about {
    padding: 3rem 1.25rem !important;
    overflow: hidden !important;
  }

  .course-about__inner {
    overflow: hidden !important;
  }

  .course-about__heading {
    font-size: clamp(1.75rem, 6vw, 2.2rem) !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 1.25rem !important;
  }

  .course-about__heading-course::after {
    width: calc(100% + 0.6em) !important;
    height: 1.4em !important;
  }

  .course-about__text {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  /* Course hero on mobile */
  .course-hero {
    border-bottom-left-radius: 24px !important;
    padding: 2rem 1.25rem 2.5rem !important;
    margin-top: 0 !important;
  }

  .course-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  .course-hero__title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    text-align: center !important;
  }

  .course-hero__instructor {
    justify-content: center !important;
  }

  /* Course curriculum on mobile */
  .course-curriculum {
    padding: 3rem 1.25rem !important;
  }

  .course-curriculum__inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .course-curriculum__heading {
    font-size: clamp(1.75rem, 5vw, 2.2rem) !important;
  }

  .course-curriculum__episode-title {
    white-space: normal !important;
    font-size: 0.85rem !important;
  }

  .course-curriculum__episode {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }
}
/* ============ COURSE HERO TOP SPACING FIX ============ */
@media (max-width: 600px) {
  .course-hero {
    margin-top: 0 !important;
    padding-top: 2rem !important;
  }
}
/* ============ MASTERCLASS PREVIEW HERO MOBILE FIX V2 ============ */
@media (max-width: 600px) {
  .preview-hero {
    padding: 1rem !important;
  }

  .preview-hero__card {
    padding: 1.25rem 1rem 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    min-height: 320px !important;
  }

  .preview-hero__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    align-items: flex-end !important;
  }

  .preview-hero__left {
    padding-bottom: 1.5rem !important;
  }

  .preview-hero__title {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    line-height: 1.05 !important;
    gap: 0.05em !important;
    margin-bottom: 0.75rem !important;
  }

  .preview-hero__list {
    font-size: 0.8rem !important;
    margin-top: 0.75rem !important;
  }

  .preview-hero__list li {
    margin-bottom: 0.35rem !important;
    gap: 0.4rem !important;
  }

  .preview-hero__right {
    min-height: 280px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }

  .preview-hero__right::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 220px !important;
    height: 220px !important;
    background-image: url('../images/whiteglow.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
    margin: 0 !important;
  }

  .preview-hero__right::before {
    display: none !important;
  }

  .preview-hero__person {
    position: relative !important;
    z-index: 1 !important;
    height: 260px !important;
    max-height: none !important;
    width: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    object-position: bottom !important;
  }
}
/* ============ PREVIEW FEATURED LESSON MOBILE FIX ============ */
@media (max-width: 600px) {
  .preview-lessons__featured {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  .preview-lessons__featured-thumb {
    width: 100% !important;
    max-width: 100% !important;
  }

  .preview-lessons__featured-body {
    width: 100% !important;
    overflow: visible !important;
  }

  .preview-lessons__featured-title {
    font-size: 1.1rem !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .preview-lessons__featured-text {
    font-size: 0.9rem !important;
    white-space: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .preview-lessons {
    padding: 2rem 1rem !important;
    overflow: hidden !important;
  }

  .preview-lessons__inner {
    overflow: hidden !important;
    max-width: 100% !important;
  }
}
/* ============ PREVIEW HERO PERSON DESKTOP-MATCH FIX ============ */
@media (max-width: 600px) {
  .preview-hero__card {
    overflow: hidden !important;
    position: relative !important;
    min-height: 320px !important;
    padding: 1.25rem 0 0 1rem !important;
  }

  .preview-hero__inner {
    position: relative !important;
    z-index: 2 !important;
  }

  .preview-hero__right {
    position: static !important;
    height: auto !important;
    min-height: auto !important;
  }

  .preview-hero__person {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    height: 100% !important;
    width: auto !important;
    max-width: 55% !important;
    max-height: none !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 1 !important;
    object-fit: contain !important;
    object-position: bottom right !important;
  }
}
/* ============ PREVIEW HERO PERSON SCALE FIX ============ */
@media (max-width: 600px) {
  .preview-hero__card {
    overflow: hidden !important;
    position: relative !important;
    min-height: 280px !important;
    padding: 1.25rem 0 0 1rem !important;
  }

  .preview-hero__person {
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
    right: -5px !important;
    height: 105% !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 1 !important;
    object-fit: contain !important;
    object-position: bottom right !important;
  }
}
/* ============ PREVIEW HERO PERSON PULL DOWN FIX ============ */
@media (max-width: 600px) {
  .preview-hero__person {
    top: auto !important;
    bottom: -55px !important;
    height: 115% !important;
  }

  .preview-hero__right::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: 55px !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: 200px !important;
    height: 200px !important;
    transform: none !important;
    background-image: url('../images/whiteglow.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
  }
}
/* ============ ABOUT US HERO MOBILE FIX ============ */
@media (max-width: 600px) {
  .hero--about {
    min-height: 280px !important;
    background-position: center top !important;
    background-size: cover !important;
    padding: 2rem 1rem !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  .hero__content--about {
    grid-template-columns: 1fr !important;
    align-items: flex-end !important;
    width: 100% !important;
    padding-bottom: 1.5rem !important;
  }

  .hero__heading--about {
    font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    text-align: left !important;
    color: var(--white) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  }
}
/* ============ ABOUT FEATURES DESIGN Z-INDEX FIX ============ */
@media (max-width: 600px) {
  .about-features::after {
    z-index: 0 !important;
  }

  .about-features__inner {
    z-index: 2 !important;
  }
}
/* ============ ABOUT INSTRUCTOR BANNER MOBILE FIX ============ */
@media (max-width: 600px) {
  .about-instructor__banner-wrap {
    margin-top: 2rem !important;
    max-width: 100% !important;
  }

  .about-instructor__banner {
    padding: 1.5rem 1.25rem !important;
    border-radius: 20px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 5rem !important;
  }

  .about-instructor__headshot {
    position: absolute !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    top: -70px !important;
    width: 130px !important;
    height: 130px !important;
    border-width: 6px !important;
  }

  .about-instructor__name {
    font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
  }

  .about-instructor__creds {
    font-size: 0.75rem !important;
    letter-spacing: 0.06em !important;
    padding: 0 1rem !important;
  }
}
/* ============ ABOUT INSTRUCTOR HEADSHOT POSITION FIX ============ */
@media (max-width: 600px) {
  .about-instructor__headshot {
    top: -106px !important;
  }
}
/* ============ ABOUT INSTRUCTOR BANNER SPACING FIX ============ */
@media (max-width: 600px) {
  .about-instructor__banner-wrap {
    margin-top: 7rem !important;
  }
}
/* ============ ABOUT PAGE SECTION GAP FIX ============ */
@media (max-width: 600px) {
  .about-program,
  .about-stats,
  .about-features,
  .about-instructor,
  .about-video,
  .about-expertise {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  section {
    margin-bottom: 0 !important;
  }
}