: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);
}

.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.png") 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.png") 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;
  }
}
/* ============================= */
/* 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;
}

.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;
}

@media (max-width: 560px) {
  .spelling-tool-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .spelling-tool-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .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;
}

.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;
}

@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;
  }
}