:root {
  --blue: #123b8f;
  --blue-dark: #071f4f;
  --red: #d7193f;
  --white: #ffffff;
  --light: #f4f7fb;
  --gray: #64748b;
  --dark: #0f172a;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 150px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-weight: 700;
  color: var(--blue-dark);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.home-page {
  background: #f4f7fb;
}

.home-hero {
  min-height: auto;
  padding: 88px 24px 36px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(215, 25, 63, 0.14), transparent 30%),
    radial-gradient(circle at 12% 24%, rgba(18, 59, 143, 0.13), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef5ff 52%, #fff4f6 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 59, 143, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 59, 143, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #f4f7fb);
}

.home-hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 500px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
  padding-top: 34px;
  position: relative;
  z-index: 2;
}

.home-hero-copy {
  color: var(--blue-dark);
  animation: homeRise 0.8s ease both;
}

.home-hero-logo {
  width: min(220px, 62%);
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 22px rgba(18, 59, 143, 0.1));
}

.home-hero-copy .eyebrow {
  color: var(--white);
  background: var(--blue);
}

.home-hero h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.02;
  margin-bottom: 18px;
  text-wrap: balance;
}

.home-hero-text {
  max-width: 640px;
  margin-bottom: 26px;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: #475569;
}

.home-hero .hero-actions {
  justify-content: flex-start;
}

.home-hero .btn i,
.pulse-card i {
  font-size: 1.1rem;
}

.home-visual-stage {
  position: relative;
  min-height: 430px;
  margin-top: 8px;
  animation: homeRise 0.8s ease 0.12s both;
}

.visual-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.86);
  background: var(--white);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

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

.visual-card-main {
  inset: 20px 0 42px 42px;
  border-radius: 34px;
  animation: imageFloat 7s ease-in-out infinite;
}

.visual-card-side {
  width: 44%;
  aspect-ratio: 4 / 3;
  left: 0;
  bottom: 12px;
  border-radius: 28px;
  animation: imageFloat 8s ease-in-out 0.8s infinite;
}

.floating-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  animation: chipPulse 3.6s ease-in-out infinite;
}

.chip-one {
  top: 60px;
  right: 22px;
}

.chip-two {
  top: 46%;
  left: 0;
  animation-delay: 0.45s;
}

.chip-three {
  right: 40px;
  bottom: 26px;
  animation-delay: 0.9s;
}

.home-showcase {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 24px;
}

.home-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.home-language-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.home-language-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 31, 79, 0.05) 22%, rgba(7, 31, 79, 0.88)),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.42), transparent 36%);
}

.home-language-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-language-card:hover img {
  transform: scale(1.05);
}

.home-language-content {
  min-height: 470px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-language-content .card-badge {
  position: static;
  width: fit-content;
  margin-bottom: 18px;
}

.home-language-content h3 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1;
  margin-bottom: 14px;
}

.home-language-content p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.content-pulse-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: center;
  padding: 76px max(24px, calc((100% - 1180px) / 2));
  background: var(--white);
}

.home-method {
  padding-top: 76px;
  padding-bottom: 76px;
}

.content-pulse-copy {
  max-width: 500px;
}

.content-pulse-copy .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.content-pulse-copy h2 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.content-pulse-copy p {
  color: var(--gray);
  font-size: 1.06rem;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pulse-card {
  min-height: 178px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.1);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pulse-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 25, 63, 0.24);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.13);
}

.pulse-card i {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
}

.pulse-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.pulse-card span {
  display: block;
  color: var(--gray);
}

.home-method {
  background:
    linear-gradient(135deg, #eef4ff, #f4f7fb);
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes chipPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@media (max-width: 960px) {
  .home-hero-grid,
  .content-pulse-section {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    min-height: auto;
  }

  .home-visual-stage {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding-top: 92px;
  }

  .home-hero .hero-actions {
    justify-content: stretch;
  }

  .home-language-grid,
  .pulse-grid {
    grid-template-columns: 1fr;
  }

  .visual-card-main {
    inset: 24px 0 86px 0;
  }

  .visual-card-side {
    width: 58%;
  }

  .chip-one,
  .chip-three {
    right: 10px;
  }

  .chip-two {
    left: 10px;
  }
}

.hero {
  min-height: 100vh;
  padding: 130px 24px 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(110deg, rgba(7, 31, 79, 0.92), rgba(18, 59, 143, 0.72), rgba(215, 25, 63, 0.68)),
    url("../img/hero-languages.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.20), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.16), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: var(--white);
}

/* LOGO PRINCIPAL SIN RECUADRO BLANCO */
.hero-logo {
  width: min(360px, 80%);
  margin-bottom: 18px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
}

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

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

.languages-section,
.method-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading .eyebrow,
.method-content .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.section-heading h2,
.method-content h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--blue-dark);
}

.section-heading p,
.method-content p {
  color: var(--gray);
  font-size: 1.05rem;
}

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

.language-card {
  position: relative;
  min-height: 330px;
  padding: 38px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  color: var(--white);
}

.language-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.language-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
}

.french-card::before {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), var(--red));
}

.english-card::before {
  background: linear-gradient(135deg, var(--red), var(--blue), var(--blue-dark));
}

.card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-soon {
  color: var(--red);
}

.language-card h3 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.language-card p {
  max-width: 460px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.card-link {
  width: fit-content;
  background: var(--white);
  color: var(--blue-dark);
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  background: #eef4ff;
}

.method-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--light);
  max-width: 100%;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
}

.method-content {
  max-width: 480px;
}

.method-grid {
  display: grid;
  gap: 18px;
}

.method-item {
  background: var(--white);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.method-item span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 14px;
}

.method-item h3 {
  color: var(--blue-dark);
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.method-item p {
  color: var(--gray);
}

.site-footer {
  padding: 30px 24px;
  text-align: center;
  color: var(--white);
  background: var(--blue-dark);
}

@media (max-width: 820px) {
  .navbar {
    flex-direction: column;
    gap: 14px;
  }

  .brand img {
    width: 130px;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 170px;
  }

  .language-grid,
  .method-section {
    grid-template-columns: 1fr;
  }

  .method-content {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-logo {
    width: 86%;
    padding: 0;
  }

  .language-card {
    padding: 30px;
    min-height: 300px;
  }

  .language-card h3 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ============================= */
/* ENGLISH PAGE */
/* ============================= */

.english-hero {
  min-height: 92vh;
  padding: 130px 24px 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(110deg, rgba(7, 31, 79, 0.94), rgba(18, 59, 143, 0.76), rgba(215, 25, 63, 0.62)),
    url("../img/hero-languages.jpg") center/cover no-repeat;
  overflow: hidden;
}

.levels-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px;
}

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

.level-card {
  position: relative;
  min-height: 350px;
  padding: 38px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  color: var(--white);
}

.level-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.level-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.38));
}

.basic-level::before {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue), #2f80ed);
}

.intermediate-level::before {
  background: linear-gradient(135deg, var(--red), var(--blue), var(--blue-dark));
}

.level-card h3 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.level-card p {
  max-width: 480px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 820px) {
  .level-grid {
    grid-template-columns: 1fr;
  }

  .english-hero {
    padding-top: 170px;
  }
}

@media (max-width: 520px) {
  .level-card {
    padding: 30px;
    min-height: 310px;
  }

  .level-card h3 {
    font-size: 2rem;
  }
}

/* ============================= */
/* ENGLISH INDEX PAGE */
/* ============================= */

.english-index-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 24px 70px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: center;
}

.english-hero-panel {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.english-hero-panel .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.english-hero-panel h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.english-hero-panel .hero-text {
  color: var(--gray);
  margin-bottom: 28px;
}

.english-hero-panel .hero-actions {
  justify-content: flex-start;
}

.english-hero-panel .btn-secondary {
  border: 2px solid rgba(18, 59, 143, 0.14);
}

.english-hero-image {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blue-dark);
}

.english-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.10), transparent 46%),
    linear-gradient(180deg, transparent 52%, rgba(7, 31, 79, 0.26));
  pointer-events: none;
}

.english-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.english-program-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 95px;
}

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

.english-program-card {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.english-program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.english-program-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--light);
}

.english-program-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(7, 31, 79, 0.32)),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.16), transparent 36%);
  pointer-events: none;
}

.english-program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.english-program-card:hover .english-program-image img {
  transform: scale(1.05);
}

.english-program-content {
  padding: 30px;
}

.english-program-content h3 {
  color: var(--blue-dark);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.english-program-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.english-feature-list {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--dark);
  list-style: none;
}

.english-feature-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.english-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px #fff0f3;
}

.english-program-content .card-link {
  background: var(--blue-dark);
  color: var(--white);
}

.english-program-content .card-link:hover {
  background: var(--red);
  color: var(--white);
}

.english-method-band {
  max-width: 100%;
  padding: 90px max(24px, calc((100% - 1180px) / 2));
  background: var(--light);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.english-method-content {
  max-width: 500px;
}

.english-method-content .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.english-method-content h2 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.english-method-content p {
  color: var(--gray);
  font-size: 1.05rem;
}

.english-method-grid {
  display: grid;
  gap: 18px;
}

@media (max-width: 920px) {
  .english-index-hero,
  .english-method-band {
    grid-template-columns: 1fr;
  }

  .english-index-hero {
    padding-top: 170px;
  }

  .english-program-grid {
    grid-template-columns: 1fr;
  }

  .english-method-content {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .english-index-hero {
    padding: 165px 18px 55px;
  }

  .english-hero-panel {
    padding: 28px;
    border-radius: 24px;
  }

  .english-hero-panel .hero-actions {
    flex-direction: column;
  }

  .english-hero-panel .btn {
    width: 100%;
  }

  .english-hero-image,
  .english-hero-image img {
    min-height: 300px;
    border-radius: 24px;
  }

  .english-program-section {
    padding: 55px 18px 75px;
  }

  .english-program-image {
    height: 200px;
  }

  .english-program-content {
    padding: 26px;
  }

  .english-method-band {
    padding: 70px 18px;
  }
}

/* ============================= */
/* FRENCH INDEX PAGE */
/* ============================= */

.french-index-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 24px 70px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.french-hero-content {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.french-hero-content .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.french-hero-content h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.french-hero-content .hero-text {
  color: var(--gray);
  margin-bottom: 28px;
}

.french-hero-content .hero-actions {
  justify-content: flex-start;
}

.french-hero-content .btn-secondary {
  border: 2px solid rgba(18, 59, 143, 0.14);
}

.french-hero-visual {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blue-dark);
}

.french-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.18), transparent 48%),
    linear-gradient(180deg, transparent 42%, rgba(7, 31, 79, 0.42));
  pointer-events: none;
}

.french-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.french-levels-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 95px;
}

.french-level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.french-level-card {
  min-height: 260px;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.french-level-card span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 18px;
  background: #e8eefc;
  color: var(--blue-dark);
  font-weight: 900;
}

.french-level-card h3 {
  color: var(--blue-dark);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.french-level-card p {
  color: var(--gray);
}

.locked-level {
  opacity: 0.74;
}

.active-level {
  grid-column: span 3;
  min-height: 320px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.92), rgba(18, 59, 143, 0.82), rgba(215, 25, 63, 0.76)),
    url("../../frances/Niveau 7/img/themes-du-cours.jpg") center/cover no-repeat;
  border: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.active-level::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 34%),
    linear-gradient(180deg, transparent, rgba(7, 31, 79, 0.34));
}

.active-level span {
  background: var(--white);
  color: var(--red);
}

.active-level h3 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.active-level p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
}

@media (max-width: 920px) {
  .french-index-hero {
    grid-template-columns: 1fr;
    padding-top: 170px;
  }

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

  .active-level {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .french-index-hero {
    padding: 165px 18px 55px;
  }

  .french-hero-content {
    padding: 28px;
    border-radius: 24px;
  }

  .french-hero-content .hero-actions {
    flex-direction: column;
  }

  .french-hero-content .btn {
    width: 100%;
  }

  .french-hero-visual,
  .french-hero-visual img {
    min-height: 300px;
    border-radius: 24px;
  }

  .french-levels-section {
    padding: 55px 18px 75px;
  }

  .french-level-grid {
    grid-template-columns: 1fr;
  }

  .active-level {
    grid-column: span 1;
  }
}
/* ============================= */
/* BASIC ENGLISH COURSE 1 PAGE */
/* ============================= */

.basic-course-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 24px 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.basic-hero-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--light);
  min-height: 360px;
}

.basic-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.18), transparent 48%),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.18), transparent 34%);
  pointer-events: none;
}

.basic-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

.basic-hero-content {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.basic-hero-content .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.basic-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.basic-hero-content p {
  color: var(--gray);
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.basic-hero-content .hero-actions {
  justify-content: flex-start;
}

.basic-hero-content .btn-secondary {
  border: 2px solid rgba(18, 59, 143, 0.14);
  background: var(--white);
  color: var(--blue-dark);
}

/* INTRO SECTION */

.basic-intro-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 20px;
}

/* COURSE DASHBOARD CARDS */

.course-dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 95px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.course-section-card {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-section-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.course-section-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--light);
}

.course-section-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(7, 31, 79, 0.28)),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.18), transparent 36%);
  pointer-events: none;
}

.course-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.course-section-card:hover .course-section-image img {
  transform: scale(1.05);
}

.course-section-content {
  padding: 30px;
}

.section-number {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 18px;
}

.course-section-content h3 {
  color: var(--blue-dark);
  font-size: 1.65rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.course-section-content p {
  color: var(--gray);
  margin-bottom: 24px;
}

.course-section-content .card-link {
  background: var(--blue-dark);
  color: var(--white);
}

.course-section-content .card-link:hover {
  background: var(--red);
  color: var(--white);
}

/* SPECIAL ACCENTS BY CARD */

.course-section-card:nth-child(2) .section-number {
  background: var(--red);
}

.course-section-card:nth-child(3) .section-number {
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.course-section-card:nth-child(4) .section-number {
  background: var(--blue-dark);
}

/* RESPONSIVE BASIC ENGLISH PAGE */

@media (max-width: 920px) {
  .basic-course-hero {
    grid-template-columns: 1fr;
    padding-top: 170px;
  }

  .basic-hero-content {
    padding: 34px;
  }

  .course-dashboard {
    grid-template-columns: 1fr;
  }

  .course-section-image {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .basic-course-hero {
    padding: 165px 18px 55px;
  }

  .basic-hero-image {
    min-height: 260px;
    border-radius: 24px;
  }

  .basic-hero-image img {
    min-height: 260px;
  }

  .basic-hero-content {
    padding: 28px;
    border-radius: 24px;
  }

  .basic-hero-content .hero-actions {
    flex-direction: column;
  }

  .basic-hero-content .btn {
    width: 100%;
  }

  .basic-intro-section {
    padding: 20px 18px 10px;
  }

  .course-dashboard {
    padding: 24px 18px 75px;
  }

  .course-section-image {
    height: 190px;
  }

  .course-section-content {
    padding: 26px;
  }

  .course-section-content h3 {
    font-size: 1.4rem;
  }
}
/* ============================= */
/* COURSE OVERVIEW PAGE */
/* ============================= */

.overview-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 24px 70px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.english-basic-page {
  background: #f4f7fb;
}

.english-basic-page .immersive-basic-hero {
  max-width: 100%;
  min-height: 88vh;
  padding: 132px max(24px, calc((100% - 1180px) / 2)) 72px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.94), rgba(18, 59, 143, 0.78), rgba(215, 25, 63, 0.52)),
    var(--hero-image) center/cover no-repeat;
}

.english-basic-page .immersive-basic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(244, 201, 93, 0.18), transparent 24%);
  pointer-events: none;
}

.english-basic-page .immersive-basic-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #f4f7fb);
  pointer-events: none;
}

.english-basic-page .immersive-basic-hero > * {
  position: relative;
  z-index: 2;
}

.english-basic-page .immersive-basic-hero .lesson-hero-content,
.english-basic-page .immersive-basic-hero .overview-hero-content {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.2);
}

.english-basic-page .immersive-basic-hero .lesson-hero-content h1,
.english-basic-page .immersive-basic-hero .overview-hero-content h1 {
  color: var(--white);
}

.english-basic-page .immersive-basic-hero .lesson-hero-content p,
.english-basic-page .immersive-basic-hero .overview-hero-content p {
  color: rgba(255, 255, 255, 0.9);
}

.english-basic-page .immersive-basic-hero .eyebrow {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
}

.english-basic-page .immersive-basic-hero .lesson-meta span {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
}

.english-basic-page .immersive-basic-hero .btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
}

.english-basic-page .immersive-basic-hero .lesson-hero-image,
.english-basic-page .immersive-basic-hero .overview-hero-image {
  background: rgba(255, 255, 255, 0.14);
  border: 10px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.english-basic-page .immersive-basic-hero .lesson-hero-image img,
.english-basic-page .immersive-basic-hero .overview-hero-image img,
.english-basic-page .course-section-image img,
.english-basic-page .overview-card-image img {
  object-position: center;
}

.overview-hero-content {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.overview-hero-content .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.overview-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.05;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.overview-hero-content p {
  color: var(--gray);
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.overview-hero-content .hero-actions {
  justify-content: flex-start;
}

.overview-hero-content .btn-secondary {
  border: 2px solid rgba(18, 59, 143, 0.14);
  background: var(--white);
  color: var(--blue-dark);
}

.overview-hero-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
  background: var(--light);
}

.overview-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.16), transparent 48%),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.18), transparent 34%);
  pointer-events: none;
}

.overview-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

/* INTRO */

.overview-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 20px;
}

/* SECTION CARDS */

.overview-sections {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 95px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.overview-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.overview-card-image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--light);
}

.overview-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(7, 31, 79, 0.22)),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.16), transparent 36%);
  pointer-events: none;
}

.overview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.overview-card-content {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-card-content h3 {
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.overview-card-content p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.overview-card-content .card-link {
  background: var(--blue-dark);
  color: var(--white);
}

.overview-card-content .card-link:hover {
  background: var(--red);
  color: var(--white);
}

.overview-card:nth-child(2) .section-number {
  background: var(--red);
}

.overview-card:nth-child(3) .section-number {
  background: linear-gradient(135deg, var(--blue), var(--red));
}

/* RESPONSIVE COURSE OVERVIEW */

@media (max-width: 920px) {
  .overview-hero {
    grid-template-columns: 1fr;
    padding-top: 170px;
  }

  .overview-card {
    grid-template-columns: 1fr;
  }

  .overview-card-image {
    min-height: 250px;
  }
}

@media (max-width: 560px) {
  .overview-hero {
    padding: 165px 18px 55px;
  }

  .overview-hero-content {
    padding: 28px;
    border-radius: 24px;
  }

  .overview-hero-content .hero-actions {
    flex-direction: column;
  }

  .overview-hero-content .btn {
    width: 100%;
  }

  .overview-hero-image {
    min-height: 260px;
    border-radius: 24px;
  }

  .overview-hero-image img {
    min-height: 260px;
  }

  .overview-intro {
    padding: 20px 18px 10px;
  }

  .overview-sections {
    padding: 24px 18px 75px;
  }

  .overview-card {
    border-radius: 24px;
  }

  .overview-card-image {
    min-height: 200px;
  }

  .overview-card-content {
    padding: 28px;
  }
}
/* ============================= */
/* UNIT 1: ALL ABOUT YOU LESSON */
/* ============================= */

.lesson-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 24px 70px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.lesson-hero-content {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.lesson-hero-content .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.lesson-hero-content h1 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.lesson-hero-content p {
  color: var(--gray);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.lesson-meta span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.lesson-hero-content .hero-actions {
  justify-content: flex-start;
}

.lesson-hero-content .btn-secondary {
  border: 2px solid rgba(18, 59, 143, 0.14);
  background: var(--white);
  color: var(--blue-dark);
}

.lesson-hero-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
  background: var(--light);
}

.lesson-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.18), transparent 48%),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.18), transparent 34%);
  pointer-events: none;
}

.lesson-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

/* LEARNING OUTCOME */

.lesson-outcome {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px 30px;
}

.outcome-card {
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.96), rgba(18, 59, 143, 0.92)),
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.42), transparent 34%);
  color: var(--white);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.outcome-label {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.outcome-card p {
  font-size: 1.15rem;
  max-width: 960px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
}

/* LESSON BODY */

.premium-lesson-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 80px;
  display: grid;
  gap: 28px;
}

.premium-topic-card {
  background: var(--white);
  border-radius: 30px;
  padding: 36px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.topic-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.topic-number {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.topic-label {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.topic-heading h2 {
  color: var(--blue-dark);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.lesson-text {
  color: var(--gray);
  font-size: 1.06rem;
  margin-bottom: 24px;
}

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

.single-card-grid {
  grid-template-columns: 1fr;
}

.lesson-mini-card {
  background: #f8fbff;
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 24px;
  padding: 24px;
}

.lesson-mini-card h3 {
  color: var(--blue-dark);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.phrase-list {
  display: grid;
  gap: 12px;
}

.phrase-item {
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.phrase-item strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.phrase-item span {
  display: block;
  color: var(--gray);
  font-size: 0.95rem;
}

.featured-phrase {
  border-left: 5px solid var(--red);
}

.teacher-tip {
  margin-top: 24px;
  background: #fff7e8;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 6px solid #f59e0b;
  border-radius: 20px;
  padding: 20px;
}

.teacher-tip span {
  display: block;
  color: #b45309;
  font-weight: 900;
  margin-bottom: 8px;
}

.teacher-tip p {
  color: #7c4a03;
  margin: 0;
}

/* CHAT */

.premium-chat {
  background: #f8fbff;
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 26px;
  display: grid;
  gap: 16px;
}

.chat-row {
  display: flex;
}

.chat-row.left {
  justify-content: flex-start;
}

.chat-row.right {
  justify-content: flex-end;
}

.chat-bubble-premium {
  max-width: 72%;
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chat-row.left .chat-bubble-premium {
  background: var(--white);
  color: var(--dark);
  border-bottom-left-radius: 8px;
}

.chat-row.right .chat-bubble-premium {
  background: var(--blue-dark);
  color: var(--white);
  border-bottom-right-radius: 8px;
}

.chat-bubble-premium span {
  display: block;
  font-weight: 900;
  margin-bottom: 5px;
}

.chat-bubble-premium p {
  margin: 0;
  line-height: 1.45;
}

/* NEXT STEP */

.lesson-next-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 95px;
}

.lesson-next-card {
  background: var(--light);
  border-radius: 32px;
  padding: 42px;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.lesson-next-card .eyebrow {
  color: var(--blue);
  background: #e8eefc;
}

.lesson-next-card h2 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.lesson-next-card p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--gray);
}

.lesson-next-card .hero-actions {
  justify-content: center;
}

/* RESPONSIVE LESSON */

@media (max-width: 920px) {
  .lesson-hero {
    grid-template-columns: 1fr;
    padding-top: 170px;
  }

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

  .chat-bubble-premium {
    max-width: 88%;
  }
}

@media (max-width: 560px) {
  .lesson-hero {
    padding: 165px 18px 55px;
  }

  .lesson-hero-content {
    padding: 28px;
    border-radius: 24px;
  }

  .lesson-hero-content .hero-actions {
    flex-direction: column;
  }

  .lesson-hero-content .btn {
    width: 100%;
  }

  .lesson-hero-image {
    min-height: 260px;
    border-radius: 24px;
  }

  .lesson-hero-image img {
    min-height: 260px;
  }

  .lesson-outcome {
    padding: 10px 18px 24px;
  }

  .premium-lesson-container {
    padding: 24px 18px 70px;
  }

  .premium-topic-card {
    padding: 26px;
    border-radius: 24px;
  }

  .topic-heading {
    align-items: flex-start;
  }

  .topic-number {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .premium-chat {
    padding: 18px;
  }

  .chat-bubble-premium {
    max-width: 94%;
  }

  .lesson-next-section {
    padding: 0 18px 75px;
  }

  .lesson-next-card {
    padding: 30px;
    border-radius: 24px;
  }

  .lesson-next-card .hero-actions {
    flex-direction: column;
  }

  .lesson-next-card .btn {
    width: 100%;
  }
}
/* ============================= */
/* SPELLING TOOL PAGE */
/* ============================= */

.spelling-tool-panel {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

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

.spelling-tool-header h3 {
  color: var(--blue-dark);
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.spelling-tool-header p {
  color: var(--gray);
  margin: 0;
}

.spelling-badge {
  display: inline-flex;
  min-width: 68px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px;
}

.alphabet-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  border: 2px solid rgba(18, 59, 143, 0.12);
  border-radius: 22px;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.alphabet-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.alphabet-card:active {
  transform: scale(0.96);
}

.alphabet-card.playing {
  background: #e8eefc;
  border-color: var(--blue);
}

.letter-pair {
  color: var(--blue-dark);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.letter-pair .lower {
  opacity: 0.42;
  margin-left: 2px;
}

.alphabet-card.vowel {
  border-color: rgba(215, 25, 63, 0.35);
}

.alphabet-card.vowel .letter-pair {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.sound {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 700;
}

.spelling-status {
  color: var(--gray);
  text-align: center;
  margin-top: 20px;
  min-height: 22px;
  font-style: italic;
}

.spelling-word-row {
  margin-top: 26px;
  padding: 20px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(18, 59, 143, 0.10);
}

.spelling-word-row label {
  display: block;
  color: var(--blue-dark);
  font-weight: 900;
  margin-bottom: 10px;
}

.spelling-word-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.spelling-word-controls input {
  min-height: 52px;
  border: 2px solid rgba(18, 59, 143, 0.12);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 1rem;
  outline: none;
}

.spelling-word-controls input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 59, 143, 0.12);
}

.practice-submit-btn.compact {
  width: auto;
  margin-top: 0;
  padding: 0 22px;
}

@media (max-width: 560px) {
  .spelling-tool-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .spelling-tool-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .spelling-word-controls {
    grid-template-columns: 1fr;
  }

  .practice-submit-btn.compact {
    width: 100%;
  }

  .alphabet-grid {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
  }

  .alphabet-card {
    border-radius: 18px;
  }

  .letter-pair {
    font-size: 1.35rem;
  }
}
/* ============================= */
/* PRACTICE LAB: UNIT 1 FORM */
/* ============================= */

.practice-form-panel {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

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

.practice-form-header h3 {
  color: var(--blue-dark);
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.practice-form-header p {
  color: var(--gray);
  margin: 0;
}

.practice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.practice-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.practice-form-group {
  display: grid;
  gap: 8px;
}

.practice-form-group.full-width {
  grid-column: 1 / -1;
}

.practice-form-group label {
  color: var(--blue-dark);
  font-weight: 900;
}

.practice-form-group input {
  width: 100%;
  min-height: 52px;
  border: 2px solid rgba(18, 59, 143, 0.12);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.practice-form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 59, 143, 0.12);
}

.practice-submit-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.practice-submit-btn:hover {
  transform: translateY(-3px);
  background: var(--blue-dark);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.20);
}

.practice-submit-btn:active {
  transform: scale(0.98);
}

.practice-result-card {
  display: none;
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: #eef4ff;
  border: 1px solid rgba(18, 59, 143, 0.14);
  border-left: 6px solid var(--blue);
  animation: practiceFadeIn 0.45s ease;
}

.result-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.practice-result-card p {
  background: var(--white);
  color: var(--dark);
  border-radius: 18px;
  padding: 18px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  font-style: italic;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

@keyframes practiceFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .practice-form-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .practice-form-grid {
    grid-template-columns: 1fr;
  }

  .practice-form-panel {
    padding: 22px;
    border-radius: 24px;
  }
}
/* ============================= */
/* SPEED DATING ACTIVITY */
/* ============================= */

.speed-dating-panel {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.speed-timer-card {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.96), rgba(18, 59, 143, 0.92));
  color: var(--white);
  border-radius: 26px;
  padding: 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.speed-timer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.42), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.13), transparent 38%);
  pointer-events: none;
}

.speed-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timer-display {
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  font-weight: 900;
  font-family: "Courier New", monospace;
  margin-bottom: 22px;
}

.speed-timer-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.timer-btn {
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.timer-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.timer-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.timer-btn.start {
  background: var(--red);
}

.timer-btn.reset {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.speed-form {
  margin-bottom: 30px;
}

.partner-chart-wrapper {
  background: var(--white);
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.partner-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.partner-chart-header h3 {
  color: var(--blue-dark);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.partner-chart-header p {
  margin: 0;
  color: var(--gray);
}

.clear-chart-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.clear-chart-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.partner-table-container {
  overflow-x: auto;
}

.partner-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.partner-table th,
.partner-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.partner-table th {
  background: #f8fbff;
  color: var(--blue-dark);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.partner-table td {
  color: var(--dark);
}

.partner-table tbody tr:hover {
  background: #f8fbff;
}

@media (max-width: 680px) {
  .speed-dating-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .speed-timer-card {
    padding: 26px 20px;
  }

  .speed-timer-actions {
    flex-direction: column;
  }

  .timer-btn {
    width: 100%;
  }

  .partner-chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .clear-chart-btn {
    width: 100%;
  }
}
/* ============================= */
/* LISTENING PRACTICE ACTIVITY */
/* ============================= */

.listening-panel {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.listening-audio-card {
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.96), rgba(18, 59, 143, 0.92));
  color: var(--white);
  border-radius: 26px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.listening-audio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.42), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.13), transparent 38%);
  pointer-events: none;
}

.listening-audio-card > * {
  position: relative;
  z-index: 1;
}

.course-audio-player {
  width: 100%;
  margin: 18px 0;
  display: block;
  accent-color: var(--blue);
}

.quick-access-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 0;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 59, 143, 0.10);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.10);
}

.quick-access-panel.compact {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

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

.quick-access-header h2,
.quick-access-header h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.quick-access-header span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 0.84rem;
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.quick-link-grid a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(18, 59, 143, 0.10);
  color: var(--blue-dark);
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-link-grid a span {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.quick-link-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 25, 63, 0.24);
  background: #fff0f3;
  color: var(--blue-dark);
}

.quick-link-grid i,
.quick-link-grid b {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.82rem;
}

.quick-access-dropdown {
  border: 1px solid rgba(18, 59, 143, 0.12);
  border-radius: 18px;
  background: #f8fbff;
  overflow: hidden;
}

.quick-access-dropdown summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.quick-access-dropdown summary::after {
  content: "v";
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.9rem;
}

.quick-access-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.quick-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.quick-link-list a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid rgba(18, 59, 143, 0.08);
  font-weight: 900;
}

.quick-link-list a span {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.quick-link-list a:hover {
  background: #fff0f3;
  border-color: rgba(215, 25, 63, 0.24);
  color: var(--blue-dark);
}

.quick-link-list b {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.82rem;
}

.activity-steps {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.activity-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(18, 59, 143, 0.10);
}

.activity-step b {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.activity-step h3 {
  margin: 0 0 6px;
  color: var(--blue-dark);
}

.activity-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.conversation-challenge {
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
}

.conversation-challenge h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.conversation-challenge p {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0;
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.role-card-grid span {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: var(--white);
  font-weight: 900;
}

.workshop-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.workshop-brief-card {
  padding: 18px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(18, 59, 143, 0.10);
}

.workshop-brief-card span {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.workshop-brief-card p {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
  line-height: 1.45;
}

.workshop-material-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.workshop-material-list li {
  list-style: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff0f3;
  color: var(--blue-dark);
  font-weight: 900;
}

.task-flow {
  counter-reset: task-step;
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.task-flow li {
  counter-increment: task-step;
  list-style: none;
  position: relative;
  padding: 18px 18px 18px 68px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(18, 59, 143, 0.10);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.task-flow li::before {
  content: counter(task-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 900;
}

.task-flow strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 5px;
}

.task-flow span {
  color: var(--muted);
  line-height: 1.6;
}

.worksheet-board {
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,251,255,0.94)),
    var(--white);
  border: 1px solid rgba(18, 59, 143, 0.12);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.worksheet-board h3 {
  color: var(--blue-dark);
  margin-bottom: 14px;
}

.worksheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.worksheet-actions h3 {
  margin: 0;
}

.worksheet-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  font-size: 0.95rem;
}

.worksheet-table th,
.worksheet-table td {
  border: 1px solid rgba(18, 59, 143, 0.12);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.worksheet-table th {
  background: var(--blue-dark);
  color: var(--white);
}

.worksheet-table td {
  background: var(--white);
  color: var(--muted);
}

.language-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.language-bank-grid span {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(18, 59, 143, 0.10);
  color: var(--blue-dark);
  font-weight: 900;
}

.deliverable-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--red), #a61430);
  color: var(--white);
}

.deliverable-card h3 {
  color: var(--white);
}

.deliverable-card p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
}

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

.resource-link-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(18, 59, 143, 0.10);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.resource-link-card h3 {
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.resource-link-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.resource-link-card .resource-tag {
  display: inline-flex;
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff0f3;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-link-card a {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

@media (max-width: 640px) {
  .quick-access-panel {
    width: calc(100% - 32px);
    padding: 18px;
    border-radius: 22px;
  }

  .quick-access-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.listening-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.listening-audio-card h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.listening-audio-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.audio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.audio-btn {
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audio-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.audio-btn.play {
  background: var(--red);
}

.audio-btn.stop {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.premium-details {
  background: var(--white);
  border: 1px solid rgba(18, 59, 143, 0.12);
  border-radius: 22px;
  padding: 18px 20px;
}

.premium-details summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.transcript-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  display: grid;
  gap: 10px;
}

.transcript-box p {
  margin: 0;
  color: var(--gray);
}

.transcript-box strong {
  color: var(--blue-dark);
}

.listening-quiz {
  display: grid;
  gap: 18px;
}

.quiz-question-card {
  background: #f8fbff;
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 22px;
  padding: 22px;
}

.quiz-question-card h3 {
  color: var(--blue-dark);
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.quiz-question-card label {
  display: block;
  color: var(--dark);
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-question-card label:hover {
  border-color: var(--blue);
  background: #eef4ff;
}

.quiz-question-card input {
  margin-right: 10px;
}

.quiz-result-box {
  display: none;
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  text-align: center;
  font-weight: 900;
  line-height: 1.6;
}

.quiz-result-box.correct {
  display: block;
  background: #e8f8ef;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.18);
}

.quiz-result-box.incorrect {
  display: block;
  background: #fff0f3;
  color: #9f1239;
  border: 1px solid rgba(159, 18, 57, 0.18);
}

@media (max-width: 760px) {
  .listening-audio-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .audio-actions {
    width: 100%;
    flex-direction: column;
  }

  .audio-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .listening-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .listening-audio-card {
    padding: 24px;
    border-radius: 22px;
  }
}
/* ============================= */
/* READING PRACTICE ACTIVITY */
/* ============================= */

.reading-passage-card {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.reading-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  padding: 16px;
}

.reading-line span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 900;
}

.reading-line p {
  margin: 0;
  color: var(--dark);
  line-height: 1.6;
}

.reading-line:nth-child(even) span {
  background: #fff0f3;
  color: var(--red);
}

@media (max-width: 560px) {
  .reading-passage-card {
    padding: 20px;
    border-radius: 24px;
  }

  .reading-line {
    grid-template-columns: 1fr;
  }

  .reading-line span {
    width: fit-content;
    padding: 0 16px;
  }
}
/* ============================= */
/* PERSONAL INFORMATION ROULETTE */
/* ============================= */

.roulette-dialogue-card {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.role-line {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  padding: 14px 16px;
}

.role-line span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
}

.role-line p {
  margin: 0;
  color: var(--dark);
  line-height: 1.6;
}

.role-line.student-a span {
  background: #eef4ff;
  color: var(--blue-dark);
}

.role-line.student-b span {
  background: #fff0f3;
  color: var(--red);
}

.roulette-panel {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.roulette-setup {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 28px;
}

.roulette-setup-text h3 {
  color: var(--blue-dark);
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.roulette-setup-text p {
  color: var(--gray);
  margin-bottom: 18px;
}

.roulette-textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 2px solid rgba(18, 59, 143, 0.12);
  border-radius: 20px;
  padding: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: #f8fbff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.roulette-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 59, 143, 0.12);
}

.roulette-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.roulette-btn {
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.roulette-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

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

.roulette-btn.secondary {
  background: var(--blue-dark);
  color: var(--white);
}

.roulette-btn.danger {
  background: #eef4ff;
  color: var(--blue-dark);
}

.roulette-btn.danger:hover {
  background: var(--red);
  color: var(--white);
}

.roulette-play-area {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 28px;
}

.roulette-wheel-zone {
  position: relative;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.96), rgba(18, 59, 143, 0.92));
  color: var(--white);
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
  overflow: hidden;
}

.roulette-wheel-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.42), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.13), transparent 38%);
  pointer-events: none;
}

.roulette-pointer {
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  margin: 0 auto -4px;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 28px solid var(--red);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.roulette-wheel {
  position: relative;
  z-index: 2;
  width: min(280px, 82vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--red) 0deg 45deg,
      #ffffff 45deg 90deg,
      var(--blue) 90deg 135deg,
      #eef4ff 135deg 180deg,
      var(--red) 180deg 225deg,
      #ffffff 225deg 270deg,
      var(--blue-dark) 270deg 315deg,
      #eef4ff 315deg 360deg
    );
  border: 10px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 4px rgba(7, 31, 79, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform 2.6s cubic-bezier(0.12, 0.72, 0.08, 1);
}

.roulette-wheel-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 5px solid var(--white);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.roulette-spin-btn {
  position: relative;
  z-index: 2;
  min-height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.roulette-spin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.roulette-spin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.roulette-status {
  position: relative;
  z-index: 2;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 320px;
}

.roulette-result-zone {
  display: grid;
  gap: 18px;
}

.selected-pair-card,
.students-left-card,
.roulette-history-card {
  background: var(--white);
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.selected-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.selected-role-card {
  border-radius: 22px;
  padding: 20px;
}

.selected-role-card small {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.selected-role-card strong {
  display: block;
  font-size: 1.45rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.selected-role-card p {
  margin: 0;
  color: var(--gray);
}

.selected-role-card.role-a {
  background: #eef4ff;
}

.selected-role-card.role-b {
  background: #fff0f3;
}

.selected-role-card.role-b strong {
  color: var(--red);
}

.students-left-header,
.roulette-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.students-left-header h3,
.roulette-history-header h3 {
  color: var(--blue-dark);
  margin: 0;
}

.students-left-header span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 900;
}

.roulette-history-header p {
  color: var(--gray);
  margin: 0;
}

.student-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-chip {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 800;
}

.empty-list-message {
  color: var(--gray);
  margin: 0;
  font-style: italic;
}

/* ============================= */
/* UNIT 2 LOCATION CARD GAME */
/* ============================= */

.unit2-reference-grid,
.tobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.grammar-table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border-radius: 22px;
  border: 1px solid rgba(18, 59, 143, 0.10);
}

.grammar-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.grammar-table th,
.grammar-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(18, 59, 143, 0.08);
  vertical-align: top;
}

.grammar-table th {
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 900;
}

.grammar-table td {
  color: var(--gray);
  line-height: 1.55;
}

.location-card-game {
  display: grid;
  gap: 26px;
}

.location-wheel {
  background:
    conic-gradient(
      #d7193f 0deg 36deg,
      #ffffff 36deg 72deg,
      #1f4e8c 72deg 108deg,
      #eef4ff 108deg 144deg,
      #f4c95d 144deg 180deg,
      #d7193f 180deg 216deg,
      #ffffff 216deg 252deg,
      #1f4e8c 252deg 288deg,
      #eef4ff 288deg 324deg,
      #f4c95d 324deg 360deg
    );
}

.location-selected-card strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--blue-dark);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.location-selected-card p {
  color: var(--gray);
  margin: 0;
}

.location-game-actions {
  margin-top: 20px;
}

.location-game-actions .roulette-btn {
  min-width: min(100%, 220px);
}

.location-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.location-flip-card {
  min-height: 390px;
  border: 0;
  padding: 0;
  background: transparent;
  perspective: 1200px;
  cursor: pointer;
}

.location-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.location-flip-card.is-flipped .location-card-inner {
  transform: rotateY(180deg);
}

.location-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  border-radius: 26px;
  backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 143, 0.12);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.location-card-front {
  padding: 14px;
  background: #f8fbff;
}

.location-card-back {
  place-items: center;
  text-align: center;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(215, 25, 63, 0.15), transparent 32%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  transform: rotateY(180deg);
}

.location-flip-card.selected .location-card-face {
  border-color: rgba(215, 25, 63, 0.55);
  box-shadow: 0 18px 42px rgba(215, 25, 63, 0.20);
}

.location-card-number,
.location-answer-label {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.location-card-number {
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  background: var(--blue-dark);
  color: var(--white);
}

.location-answer-label {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.location-card-question {
  display: block;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 900;
  line-height: 1.25;
}

.location-card-image {
  display: block;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 59, 143, 0.08), rgba(215, 25, 63, 0.08)),
    #eef4ff;
}

.location-card-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.location-image-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px;
  color: var(--blue-dark);
  text-align: center;
}

.location-image-placeholder strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1;
}

.location-image-placeholder span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  font-weight: 900;
  text-transform: capitalize;
}

.location-card-back strong {
  max-width: 260px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.14;
}

.location-card-back span:last-child {
  display: block;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .roulette-play-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .role-line {
    grid-template-columns: 1fr;
  }

  .role-line span {
    width: fit-content;
    padding: 0 16px;
  }

  .roulette-panel,
  .roulette-dialogue-card {
    padding: 22px;
    border-radius: 24px;
  }

  .roulette-actions,
  .selected-role-grid {
    grid-template-columns: 1fr;
  }

  .roulette-actions {
    flex-direction: column;
  }

  .roulette-btn {
    width: 100%;
  }

  .selected-role-grid {
    display: grid;
  }

  .students-left-header,
  .roulette-history-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ============================= */
/* TALKING ABOUT OTHERS: MY FAMILY */
/* ============================= */

.family-table-wrapper {
  overflow-x: auto;
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.family-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  overflow: hidden;
  border-radius: 20px;
}

.family-comparison-table th,
.family-comparison-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.family-comparison-table th {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.family-comparison-table td {
  color: var(--dark);
  background: var(--white);
}

.family-comparison-table td:first-child {
  font-weight: 900;
  color: var(--blue-dark);
}

.family-comparison-table strong {
  color: var(--red);
}

.family-question-panel,
.family-generator-panel {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.family-question-panel h3 {
  color: var(--blue-dark);
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.family-question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.family-question-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.family-question-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 14px;
}

.family-question-card:nth-child(2) span,
.family-question-card:nth-child(4) span {
  background: var(--red);
}

.family-question-card p {
  color: var(--dark);
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.family-example-box {
  margin-top: 26px;
  background: #fff7e8;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 6px solid #f59e0b;
  border-radius: 22px;
  padding: 22px;
}

.family-example-box span {
  display: block;
  color: #b45309;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.family-example-box p {
  margin: 0;
  color: #7c4a03;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.family-generator-header h3 {
  color: var(--blue-dark);
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.family-generator-header p {
  color: var(--gray);
  margin: 0;
}

.family-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.family-select {
  width: 100%;
  min-height: 52px;
  border: 2px solid rgba(18, 59, 143, 0.12);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.family-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 59, 143, 0.12);
}

@media (max-width: 760px) {
  .family-question-grid,
  .family-form-grid {
    grid-template-columns: 1fr;
  }

  .family-generator-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .family-table-wrapper,
  .family-question-panel,
  .family-generator-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .family-question-card {
    padding: 20px;
  }
}
/* ============================= */
/* PHONETIC RULES PAGE */
/* ============================= */

.phonetic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.phonetic-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid rgba(18, 59, 143, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.phonetic-tab:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.phonetic-tab.active {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.phonetic-panel {
  display: none;
  animation: phoneticFadeIn 0.35s ease;
}

.phonetic-panel.active {
  display: block;
}

@keyframes phoneticFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phonetic-rule-card {
  background:
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(18, 59, 143, 0.10);
  border-left: 6px solid var(--blue);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.phonetic-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phonetic-rule-card h3 {
  color: var(--blue-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.phonetic-rule-card h3 strong {
  color: var(--red);
}

.phonetic-rule-card p {
  color: var(--gray);
  margin: 0;
}

.phonetic-word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.phonetic-word-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 8px;
}

.phonetic-word-card strong {
  color: var(--blue-dark);
  font-size: 1.55rem;
}

.phonetic-word-card span {
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 900;
}

.phonetic-word-card small {
  color: var(--gray);
  line-height: 1.45;
}

.phonetic-word-card button,
.phonetic-compare-card button {
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.phonetic-word-card button:hover,
.phonetic-compare-card button:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.phonetic-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.phonetic-compare-card {
  background: #eef4ff;
  border-radius: 26px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(18, 59, 143, 0.12);
}

.phonetic-compare-card.accent {
  background: #fff0f3;
}

.phonetic-compare-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.phonetic-compare-card h3 {
  color: var(--blue-dark);
  font-size: 2rem;
  margin-bottom: 4px;
}

.phonetic-compare-card p {
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.phonetic-quiz {
  display: grid;
  gap: 18px;
}

@media (max-width: 720px) {
  .phonetic-compare-grid {
    grid-template-columns: 1fr;
  }

  .phonetic-tab {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .phonetic-rule-card,
  .phonetic-word-card,
  .phonetic-compare-card {
    border-radius: 22px;
  }

  .phonetic-word-grid {
    grid-template-columns: 1fr;
  }
}
/* ================================
   COMPACT HEADER / JARALINGUA LOGO
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.navbar {
  min-height: 68px;
  padding: 0.35rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1;
}

/* Responsive header */
@media (max-width: 768px) {
  .navbar {
    min-height: 62px;
    padding: 0.35rem 5%;
  }

  .brand img {
    height: 46px;
  }

  .nav-links {
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }
}
