* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
nav {
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #ffcc00;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    justify-content: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo {
    margin-left: 3rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #203a43;
    position: absolute;
    top: 70px;
    left: 0;
    width: 220px;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Quiz Section */
.questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.question {
  background: #1e2a24; /* dark green-gray background */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
  color: #e0e0e0; /* light gray text */
}
.question:hover {
  transform: translateY(-3px);
}

.q-label {
  font-weight: 700;
  color: #b0c4b1; /* muted mint accent */
  margin-bottom: 8px;
}
.stem {
  font-size: 16px;
  margin-bottom: 12px;
  color: #f5f5f5; /* off-white for clarity */
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #3c4a3f;
  background: #2a352f;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
  color: #f0f0f0;
}
.option:hover {
  background: #3c4a3f;
  border-color: #8bc34a;
  box-shadow: 0 0 10px rgba(139,195,74,0.6);
}

.option.correct {
  background: #2e7d32;
  border-color: #66bb6a;
  color: #ffffff;
}
.option.incorrect {
  background: #c62828;
  border-color: #ef5350;
  color: #ffffff;
}

.feedback {
  margin-top: 10px;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}
.correct-text { color: #66bb6a; font-weight: bold; }
.incorrect-text { color: #ef5350; font-weight: bold; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background: linear-gradient(90deg, #2c5364, #203a43, #0f2027);
  color: #fff;
  padding: 2rem 1rem;
  margin-top: auto;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-top p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  color: #fff;
}

.footer-top a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.footer-top img {
  height: 40px;
  width: auto;
  margin: 0 8px;
}

.footer-top span {
  font-size: 1rem;
  font-weight: 600;
}

.footer-top a:hover span {
  color: #ffcc00;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-row a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-row a:hover {
  color: #ffcc00;
}

.footer-row i {
  font-size: 1.5rem;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.8;
}
/* ===== Premium Passage Styles ===== */
:root {
  --bg: #0f1a14;            /* deep green-black */
  --surface: #12231a;       /* card background */
  --surface-2: #162a21;     /* hover/active surface */
  --text: #e6efe9;          /* primary text */
  --muted: #b7c7be;         /* secondary text */
  --accent: #2fd180;        /* emerald accent */
  --accent-2: #1aa765;      /* darker accent */
  --ring: rgba(47, 209, 128, 0.35);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Base (optional) */
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.8;
}

/* Passage container */
.passage {
  position: relative;
  margin: 24px 0;
  padding: 18px 22px 18px 26px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* Accent bar on the left */
.passage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px var(--ring);
  opacity: 0.95;
}

/* Subtle header (optional) */
.passage .passage-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 12px;
}

/* Main text */
.passage p {
  margin: 0;
  font-size: clamp(16px, 1.9vw, 18px);
  color: var(--text);
}

/* Emphasis for key words */
.passage em,
.passage ruby rt {
  color: var(--accent);
  font-style: normal;
}

/* Nice hover micro-interaction */
.passage:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 209, 128, 0.25);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

/* Compact variant for shorter lines */
.passage.compact {
  padding: 14px 18px 14px 24px;
  border-radius: 12px;
}

/* Inset quote style (use when passage is a quote) */
.passage.quote {
  background:
    radial-gradient(1200px 200px at 20% 0%, rgba(47, 209, 128, 0.08), transparent),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border-left: 4px solid var(--accent);
}

/* Divider between passage and questions */
.passage + .questions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}

/* Accessibility: larger text on small screens */
@media (max-width: 560px) {
  .passage { padding: 16px 18px 16px 22px; }
  .passage p { font-size: 18px; }
}

/* Optional: drop cap for first character (works well with kana/kanji) */
.passage.dropcap p:first-child::first-letter {
  float: left;
  font-weight: 700;
  font-size: 1.8em;
  line-height: 1;
  margin: 2px 10px 0 0;
  color: var(--accent);
  text-shadow: 0 4px 14px rgba(47, 209, 128, 0.3);
}

.new-words {
  margin: 32px auto;
  padding: 20px 28px;
  max-width: 600px; /* keeps it nicely centered */
  background: linear-gradient(180deg, #12231a, #162a21);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  text-align: center; /* centers text */
}

.new-words h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #2fd180; /* emerald accent */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-words ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.new-words li {
  margin: 8px 0;
  font-size: 16px;
  color: #e6efe9;
}

.new-words li strong {
  color: #2fd180;
  font-weight: 600;
}

.promo-text {
  margin: 32px auto;
  padding: 22px 26px;
  max-width: 640px;
  background: linear-gradient(180deg, #162a21, #0f1a14);
  border: 1px solid rgba(47, 209, 128, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  text-align: center;
  color: #e6efe9;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 500;
}

.promo-label {
  font-size: 35px;
  font-weight: 700;
  color: #d12f2f;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.promo-link {
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
}

.promo-logo {
  width: 120px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(47, 209, 128, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(47, 209, 128, 0.6);
}
.pagination {
  margin-top: 20px;
  text-align: center;
}
.pagination a {
  display: inline-block;
  background: #2fd180;
  color: #0f1a14;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 16px;
  margin: 4px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.pagination a:hover {
  background: #1aa765;
  transform: translateY(-2px);
}
.pagination a.active {
  background: #0f1a14;
  color: #2fd180;
  border: 2px solid #2fd180;
}