* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('Golden_Horn.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ── Site nav ── */
.site-nav {
  background: transparent;
  padding: 20px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: none;
  position: relative;
  z-index: 100;
}

.site-nav-single {
  justify-content: flex-start;
}

.site-nav-logo {
  display: none;
}

.site-nav-links {
  display: flex;
  gap: 20px;
}

.site-nav-links a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 700;
  background: #c41e3a;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.3s;
  display: inline-block;
}

.site-nav-links a:hover {
  background: #9a7e94;
  transform: translateY(-2px);
}

.site-nav-links a.active {
  background: #c41e3a;
}

/* ── Hero Content (on top of background) ── */
.hero-parallax {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.parallax-bg {
  display: none;
}

.hero-content {
  color: white;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 6px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-btn {
  display: inline-block;
  background: #c41e3a;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.hero-btn:hover {
  background: #aa2828;
  transform: translateY(-3px);
}

/* ── Home Sections ── */
.home-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px;
  background: #c41e3a;
  backdrop-filter: none;
  border-radius: 12px;
  margin-bottom: 40px;
}

.home-section-title {
  background: url('Notepad_Header.png') center/100% auto no-repeat;
  background-color: transparent;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 40px 0;
  color: #5a4a42;
  padding: 60px 40px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 8px;
}

.home-section-sub {
  text-align: center;
  color: #999;
  margin-bottom: 40px;
  font-size: 14px;
}

/* ── Why Grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
}

.why-card {
  background: url('Notepad.png') center/contain no-repeat;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 60px 30px 30px 30px;
  text-align: center;
  transition: all 0.3s;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.why-card:hover {
  box-shadow: none;
  transform: translateY(-4px);
}

.why-icon {
  display: none;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #5a4a42;
  font-family: Arial, sans-serif;
}

.why-card p {
  font-size: 14px;
  color: #6b5b52;
  line-height: 1.7;
  font-family: Arial, sans-serif;
}

/* ── Lesson List ── */
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lesson-card {
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.lesson-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #c41e3a;
}

.lesson-available {
  cursor: pointer;
}

.lesson-complete,
.lesson-complete:hover {
  border-color: #2c9f4f;
  background: #eaf6ee;
}
.lesson-complete .lesson-num {
  background: #2c9f4f;
}
.lesson-complete .lesson-arrow {
  color: #2c9f4f;
}

.lesson-locked {
  background: #e8dbdb;
  border-color: #d0d0d0;
  opacity: 1;
}

.lesson-num {
  width: 40px;
  height: 40px;
  background: #c41e3a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-locked .lesson-num {
  background: #e8ddd0;
  color: #999;
}

.lesson-info {
  flex: 1;
  text-align: left;
}

.lesson-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #2c2c2c;
}

.lesson-info p {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.lesson-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  background: #f0ede6;
  color: #666;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.lesson-arrow {
  font-size: 20px;
  color: #c41e3a;
  flex-shrink: 0;
}

.lesson-lock {
  background: #f0ede6;
  color: #999;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.home-section-alt {
  display: none;
}

/* ── Learn Page Hero ── */
.hero-learn {
  height: 400px;
}

.hero-learn .hero-content h1 {
  font-size: 48px;
}

.hero-learn .hero-content p {
  font-size: 16px;
}

/* ── Units Section ── */
.units-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px;
  background: #c41e3a;
  border-radius: 12px;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ── Unit Cards ── */
.unit-card {
  background: white;
  border: 4px solid #c41e3a;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  transition: all 0.3s;
  color: #2c2c2c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
}

.unit-card-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.unit-card-clickable:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(196, 30, 58, 0.25);
}

.unit-available {
  opacity: 1;
}

.unit-locked {
  background: #e8dbdb;
  border-color: #d0d0d0;
  opacity: 1;
  pointer-events: none;
}

.unit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.unit-badge {
  font-size: 11px;
  font-weight: 800;
  color: #c41e3a;
  letter-spacing: 1px;
}

.unit-status {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
}

.available-badge {
  color: #2c9f4f;
  background: #e8f5e9;
}

.unit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c2c2c;
}

.unit-card p {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.unit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e8e8e8;
}

.unit-lessons {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.unit-link {
  font-size: 14px;
  font-weight: 700;
  color: #c41e3a;
}

.unit-city {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e8;
  text-align: center;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  font-size: 13px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.7;
}

/* ── Unit Hero ── */
.unit-hero {
  background: rgba(0, 0, 0, 0.3);
  padding: 60px 40px;
  text-align: center;
  color: white;
}

.unit-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.unit-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.unit-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.unit-hero p {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 20px;
}

.unit-hero-meta {
  font-size: 13px;
  opacity: 0.8;
}

/* ── Unit Lessons Container ── */
.unit-lessons-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px;
  background: #c41e3a;
  border-radius: 12px;
}

.back-link {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-link a {
  color: #5a4a42;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link a:hover {
  text-decoration: underline;
}

/* ── Lesson Header ── */
.lesson-header {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 40px;
  color: white;
}

.lesson-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.lesson-header-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.lesson-header-title {
  font-size: 36px;
  font-weight: 800;
  margin-top: 8px;
  text-align: center;
}

/* ── Lesson Stepper ── */
.lesson-stepper {
  position: static;
  background: transparent;
  border-bottom: none;
  padding: 15px 20px;
  margin-top: -60px;
  z-index: 50;
}

/* The transparent site-nav is pulled over the stepper by the negative margin
   above, so it intercepts clicks meant for the step circles. Let clicks pass
   through the nav bar to the stepper, while keeping the Home link clickable. */
.lesson-page .site-nav { pointer-events: none; }
.lesson-page .site-nav-links a { pointer-events: auto; }

.stepper-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stepper-circle:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: white;
}

.stepper-label {
  font-size: 11px;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stepper-line {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

/* ── Lesson Main Content ── */
.lesson-main {
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 0 40px;
}

.lesson-content-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.lesson-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.lesson-content-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #2c2c2c;
}

.lesson-content-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

.lesson-content-card ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.lesson-content-card li {
  margin-bottom: 10px;
  color: #666;
}

.duration-badge {
  display: inline-block;
  background: #f5f1eb;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5a4a42;
  margin-bottom: 20px;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.obj-box {
  background: #f9f7f4;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #c41e3a;
}

.obj-box h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c2c2c;
}

.obj-box ul {
  margin: 0;
  padding-left: 20px;
}

.obj-box li {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.insight-box {
  background: #fde8e6;
  border-left: 4px solid #c41e3a;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14px;
  color: #5a4a42;
  margin-top: 20px;
}

/* ── Alpha Table ── */
.alpha-special-note {
  background: #fde8e6;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  border-left: 4px solid #c41e3a;
}

.alpha-special-pill {
  display: inline-block;
  background: #c41e3a;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.alpha-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

.alpha-table thead {
  background: #f9f7f4;
  border-bottom: 2px solid #e8d4b8;
}

.alpha-table th {
  padding: 12px;
  text-align: left;
  font-weight: 700;
  color: #2c2c2c;
}

.alpha-table td {
  padding: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.alpha-letter {
  font-weight: 700;
  font-size: 16px;
}

.alpha-word {
  color: #1a6fb5;
  font-weight: 600;
}

.alpha-meaning {
  color: #999;
  font-style: italic;
}

.alpha-sound {
  color: #5a4a42;
}

.alpha-special-row {
  background: #fde8e6;
}

/* ── Interactive Alphabet (Learn step) ── */
.alpha-learn {
  margin-top: 20px;
}

.alpha-intro {
  background: #f9f7f4;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
}

.alpha-intro-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 12px;
}

.alpha-intro h3 {
  font-size: 24px;
  font-weight: 800;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.alpha-intro p {
  color: #666;
  max-width: 420px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.alpha-start-btn,
.alpha-nav-btn {
  background: #c41e3a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.alpha-start-btn:hover,
.alpha-nav-btn:hover {
  background: #aa2828;
  transform: translateY(-2px);
}

.alpha-arrow {
  font-size: 18px;
  line-height: 1;
}

/* Letter card */
.alpha-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.alpha-progress-bar {
  flex: 1;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.alpha-progress-fill {
  height: 100%;
  width: 0;
  background: #c41e3a;
  border-radius: 4px;
  transition: width 0.3s;
}

.alpha-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #5a4a42;
  white-space: nowrap;
}

.alpha-card-body {
  text-align: center;
  padding: 10px 0 6px 0;
}

.alpha-big {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: #c41e3a;
  margin-bottom: 8px;
}

.alpha-big.special {
  color: #e85d04;
}

.alpha-badge {
  display: inline-block;
  background: #fde8e6;
  color: #c41e3a;
  border: 1px solid #f5c6c0;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.alpha-ex-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 20px auto 0 auto;
}

.alpha-ex {
  background: #f9f7f4;
  border-radius: 8px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "word phon"
    "mean phon";
  align-items: center;
  text-align: left;
}

.alpha-ex-word {
  grid-area: word;
  font-size: 18px;
  font-weight: 700;
  color: #1a6fb5;
}

.alpha-ex-mean {
  grid-area: mean;
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.alpha-ex-phon {
  grid-area: phon;
  font-size: 15px;
  color: #5a4a42;
  font-weight: 600;
}

.alpha-card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

/* ── Practice Section ── */
.practice-progress {
  margin: 30px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2c9f4f;
  transition: width 0.3s;
}

.practice-question {
  background: #f9f7f4;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.practice-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-option {
  padding: 12px 16px;
  border: 2px solid #e8d4b8;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #5a4a42;
  transition: all 0.3s;
}

.practice-option:hover {
  border-color: #e85d04;
  background: #fffbf0;
}

.practice-option:disabled {
  cursor: default;
}

.practice-option.correct {
  background: #2c9f4f;
  border-color: #2c9f4f;
  color: white;
}

.practice-option.incorrect {
  background: #fdecec;
  border-color: #d64545;
  color: #d64545;
}

/* ── Practice: prompt + letter display ── */
.practice-prompt {
  font-weight: 600;
  text-align: center;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.practice-letter-display {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #c41e3a;
  margin: 10px 0 26px 0;
}

.practice-status {
  text-align: center;
  font-weight: 700;
  margin-top: 14px;
  min-height: 20px;
}
.practice-status.ok   { color: #2c9f4f; }
.practice-status.err  { color: #d64545; }
.practice-status.warn { color: #5a4a42; }

/* ── Practice: matching ── */
.match-wrap {
  position: relative;
  margin: 24px 0 4px 0;
  touch-action: none;
}

.match-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.match-cols {
  display: flex;
  justify-content: space-between;
  gap: 70px;
  position: relative;
  z-index: 2;
}

.match-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.match-item {
  display: flex;
  align-items: center;
  background: #f9f7f4;
  border: 2px solid #e8d4b8;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
  position: relative;
  user-select: none;
}

.match-left .match-item { justify-content: flex-start; cursor: grab; }
.match-right .match-item { justify-content: flex-end; }

.match-item.connected {
  border-color: #c41e3a;
  background: #fff;
}

.match-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #c41e3a;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.match-left .match-dot  { right: -8px; cursor: grab; }
.match-right .match-dot { left: -8px; }

.match-check-btn {
  display: block;
  margin: 18px auto 0 auto;
  background: #c41e3a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.match-check-btn:hover:not(:disabled) {
  background: #aa2828;
  transform: translateY(-2px);
}
.match-check-btn:disabled { opacity: 0.6; cursor: default; }

/* ── Practice: find the letter ── */
.find-target {
  display: inline-block;
  background: #c41e3a;
  color: white;
  padding: 1px 12px;
  border-radius: 5px;
  font-size: 20px;
}

.find-sentence {
  font-size: 30px;
  text-align: center;
  margin: 28px 0 6px 0;
  line-height: 2;
  color: #2c2c2c;
}

.find-char {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 0 1px;
  z-index: 0;
}
.find-char:hover { color: #c41e3a; }

.find-space { display: inline-block; width: 0.4em; }

.find-char.found::after,
.find-char.wrong::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 2px solid;
  z-index: -1;
  pointer-events: none;
}
.find-char.found { color: #2c9f4f; }
.find-char.found::after {
  border-color: #2c9f4f;
  background: rgba(44, 159, 79, 0.18);
}
.find-char.wrong { color: #d64545; }
.find-char.wrong::after {
  border-color: #d64545;
  background: rgba(214, 69, 69, 0.18);
}

/* ── Practice: completion ── */
.practice-done {
  background: #f9f7f4;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
}
.practice-done-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.practice-done h3 {
  font-size: 24px;
  font-weight: 800;
  color: #2c2c2c;
  margin-bottom: 10px;
}
.practice-done p {
  color: #666;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

.practice-retry-btn {
  margin-top: 22px;
  background: #c41e3a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.practice-retry-btn:hover {
  background: #aa2828;
  transform: translateY(-2px);
}

/* ── Reading Section ── */
.reading-passage {
  background: #f9f7f4;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.reading-tooltip {
  border-bottom: 2px dotted #e85d04;
  position: relative;
  cursor: help;
}

.tooltip-text {
  display: none;
  position: absolute;
  background: #2c2c2c;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.reading-tooltip:hover .tooltip-text {
  display: block;
}

/* ── Quiz Section ── */
.quiz-question {
  background: #f9f7f4;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.quiz-option {
  padding: 12px 16px;
  border: 2px solid #e8d4b8;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #5a4a42;
  transition: all 0.3s;
  text-align: left;
}

.quiz-option:not(:disabled):hover {
  border-color: #e85d04;
  background: #fffbf0;
}

/* ── Quiz: interactive states ── */
.quiz-q-text {
  font-weight: 600;
  margin-bottom: 4px;
  color: #2c2c2c;
  line-height: 1.5;
}
.quiz-q-num {
  color: #c41e3a;
  font-weight: 800;
  margin-right: 4px;
}
.quiz-multi-tag {
  display: inline-block;
  background: #fde8e6;
  color: #c41e3a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.quiz-option.selected {
  border-color: #9a9a9a;
  background: #e4e4e4;
  color: #2c2c2c;
}
.quiz-option:disabled { cursor: default; }
.quiz-option.opt-correct {
  border-color: #2c9f4f;
  background: #eaf6ee;
  color: #1f7a3d;
}
.quiz-option.opt-correct::after { content: '  ✓'; font-weight: 800; }
.quiz-option.opt-wrong {
  border-color: #d64545;
  background: #fdecec;
  color: #d64545;
}
.quiz-option.opt-wrong::after { content: '  ✗'; font-weight: 800; }

.quiz-question.quiz-unanswered {
  outline: 2px solid #d64545;
  outline-offset: 2px;
}
.quiz-question.q-correct { border-left: 4px solid #2c9f4f; }
.quiz-question.q-incorrect { border-left: 4px solid #d64545; }

.quiz-warning {
  color: #d64545;
  font-weight: 700;
  text-align: center;
  min-height: 18px;
  margin-top: 12px;
}

/* ── Quiz: result panel ── */
.quiz-result { margin-top: 24px; }
.quiz-score {
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}
.quiz-score.pass { background: #eaf6ee; border: 1px solid #b7e0c4; }
.quiz-score.fail { background: #f9f7f4; border: 1px solid #e8d4b8; }
.quiz-score-icon { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.quiz-score h3 { font-size: 24px; font-weight: 800; color: #2c2c2c; margin-bottom: 6px; }
.quiz-score-num { font-size: 20px; font-weight: 800; color: #c41e3a; margin-bottom: 6px; }
.quiz-score.pass .quiz-score-num { color: #2c9f4f; }
.quiz-score-msg { color: #666; max-width: 440px; margin: 0 auto 20px auto; line-height: 1.6; }
.quiz-next-btn,
.quiz-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  padding: 13px 30px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.quiz-next-btn { background: #2c9f4f; color: white; }
.quiz-next-btn:hover { background: #248442; transform: translateY(-2px); }
.quiz-retry-btn { background: #c41e3a; color: white; }
.quiz-retry-btn:hover { background: #aa2828; transform: translateY(-2px); }
.quiz-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #c41e3a;
  background: white;
  color: #c41e3a;
  border-radius: 6px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.quiz-review-btn:hover { background: #fde8e6; transform: translateY(-2px); }

/* ── Lesson Step Navigation ── */
.lesson-step {
  display: none;
}

.lesson-step.active {
  display: block;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 0 0;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.step-prev-btn,
.step-next-btn,
.submit-quiz-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.step-next-btn,
.submit-quiz-btn {
  background: #c41e3a;
  color: white;
}

.step-next-btn:hover,
.submit-quiz-btn:hover {
  background: #aa2828;
  transform: translateY(-2px);
}

.step-prev-btn {
  background: #c41e3a;
  color: white;
  border: none;
}

.step-prev-btn:hover {
  background: #aa2828;
}

/* ── Footer ── */
.home-footer {
  display: none;
  text-align: center;
  padding: 40px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 13px;
}