:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-text: #2d2a26;
  --color-text-secondary: #5c5753;
  --color-primary: #003884;
  --color-primary-light: #1a4a8c;
  --color-accent: #ff6602;
  --color-secondary: #2c5f2d;
  --color-gold: #c9a227;
  --shadow-sm: 0 1px 2px 0 rgba(0,56,132,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,56,132,0.05);
  --radius: 6px;
  --radius-lg: 8px;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Navbar v2 */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: #f5f7fa;
  border-bottom: 1px solid #e0e8f0;
  box-shadow: 0 1px 3px rgba(0,56,132,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-icon { font-size: 1.75rem; }

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d2a26;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #5c5753;
}

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

.nav-link {
  text-decoration: none;
  color: #2d2a26;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #2d2a26;
  background: transparent;
  border-bottom: 2px solid #555555;
}

.nav-toggle { display: none; }

/* Hero v2 */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #0f1a2e;
  overflow: hidden;
}

.hero-bg-v2 {
  position: absolute;
  inset: 0;
  background: url('../img/southeast-asia-map.jpg') center / cover no-repeat;
  opacity: 0.5;
  filter: saturate(0.5) brightness(0.55) contrast(1.05);
}

.hero-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,26,46,0.75) 0%, rgba(15,26,46,0.5) 50%, rgba(13,21,37,0.65) 100%);
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  width: 100%;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 4rem;
  color: #2d2a26;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(212,165,116,0.7);
  margin-bottom: 0.75rem;
}

.hero-title-v2 {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.15;
  color: #230a58;
}

.hero-title-en {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 520px;
  letter-spacing: 0.01em;
}

.hero-subtitle-v2 {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
  opacity: 0.9;
  display: none;
}

.hero-desc-v2 {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 4rem 4rem 2rem;
}

.hero-intro {
  background: rgba(15, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 560px;
  color: rgba(255,255,255,0.88);
}

.intro-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212,165,116,0.25);
}

.hero-intro p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
  text-align: justify;
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

.hero-intro p strong {
  color: #555555;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.82rem;
  opacity: 0.75;
}

.hero-actions-v2 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons v2 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary-v2 {
  background: var(--color-primary);
  color: #2d2a26;
}

.btn-primary-v2:hover {
  background: #555555;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary-v2 {
  background: transparent;
  color: #2d2a26;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-secondary-v2:hover {
  background: rgba(255,255,255,0.1);
  border-color: #2d2a26;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: var(--color-primary);
  color: #2d2a26;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Sections */
.section-title-v2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #dbaf8a;
  padding: 1.25rem;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  border: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: #c49a7a;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #75564d;
}

.feature-card p {
  font-size: 0.9rem;
  color: rgba(117, 86, 77, 0.85);
  line-height: 1.6;
}

/* Highlight Section */
.highlight-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #eef2f7 0%, #f5f7fa 100%);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}

.highlight-card h4 {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.highlight-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Page Header v2 */
.page-header-v2 {
  position: relative;
  overflow: hidden;
  background-color: #faf8f5;
  color: #2d2a26;
  padding: 3rem 0;
}

/* Guide Section */
.storyline-intro {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-style: italic;
}

.storyline-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
}

.guide-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f5fa 0%, #e8f0f8 100%);
}

.guide-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.guide-grid .guide-card {
  flex: 0 0 320px;
  max-width: 360px;
}

.guide-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.guide-card-primary {
  background: linear-gradient(135deg, #2d2a26, #333333);
  color: #2d2a26;
}

.guide-card-primary h3 {
  color: #2d2a26;
}

.guide-card-primary p {
  color: rgba(255,255,255,0.9);
}

.guide-card-primary .guide-step {
  background: rgba(255,255,255,0.2);
  color: #2d2a26;
  border-color: rgba(255,255,255,0.3);
}

.guide-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(26,26,26,0.1);
  color: var(--color-primary);
  border: 2px solid rgba(26,26,26,0.2);
  flex-shrink: 0;
}

.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.guide-card-primary p {
  color: rgba(255,255,255,0.85);
}

/* Story Section */
.story-section {
  padding: 5rem 0;
  background: var(--color-surface);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.story-card {
  background: var(--color-bg);
  border-radius: 0;
  padding: 2rem;
  border: 2px solid #2d2a26;
  transition: all 0.3s;
}

.story-card:hover {
  box-shadow: var(--shadow);
}

.story-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(26,26,26,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.story-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.story-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.story-card p strong {
  color: var(--color-primary);
  font-weight: 600;
}

.story-detail {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  opacity: 0.85;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.story-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.story-link:hover {
  color: var(--color-primary-light);
}

/* Numbers Section */
.numbers-section {
  padding: 5rem 0;
  background: #eef2f7;
  color: #2d2a26;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.number-card {
  text-align: center;
  padding: 2rem 1rem;
}

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

.number-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.number-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.number-desc {
  font-size: 0.85rem;
  color: #5c5753;
  line-height: 1.5;
}

.section-title-v2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

.numbers-section .section-title-v2 {
  color: #2d2a26;
}

/* Page Header v2 */
.page-header-v2 {
  position: relative;
  overflow: hidden;
  background-color: #faf8f5;
  color: #2d2a26;
  padding: 3rem 0;
}

.page-header-v2 h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header-v2 .page-desc {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.page-why {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  border-left: 3px solid rgba(255,255,255,0.5);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.2);
  color: #2d2a26;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: white;
  color: var(--color-primary);
}

/* Timeline v2 */
.timeline-section-v2 {
  padding: 3rem 0;
  background: var(--color-surface);
}

.timeline-v2 {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-v2::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-gold));
  transform: translateX(-50%);
}

.timeline-item-v2 {
  position: relative;
  margin-bottom: 2rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item-v2.left {
  left: 0;
  text-align: right;
}

.timeline-item-v2.right {
  left: 50%;
  text-align: left;
}

.timeline-dot-v2 {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--shadow);
  top: 0;
}

.timeline-item-v2.left .timeline-dot-v2 { right: -8px; }
.timeline-item-v2.right .timeline-dot-v2 { left: -8px; }

.timeline-card-v2 {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.timeline-year-v2 {
  display: inline-block;
  background: var(--color-primary);
  color: #2d2a26;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-type {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.type-education { background: #e3f2fd; color: #333333; }
.type-policy { background: #f3e5f5; color: #7b1fa2; }
.type-political { background: #fff3e0; color: #e65100; }
.type-conference { background: #e8f5e9; color: #2e7d32; }

.card-plain-summary {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0.5rem 0;
  padding: 0.6rem 0.8rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

/* Newcomer Banner */
.newcomer-banner {
  background: linear-gradient(135deg, #f5f8fc 0%, #f0f4fa 50%, #e8eef7 100%);
  border-bottom: 2px solid #2d2a26;
  padding: 1rem 0;
}
.newcomer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.newcomer-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.newcomer-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}
.newcomer-text h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}
.newcomer-text p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin: 0;
}
.newcomer-cta {
  background: var(--color-primary) !important;
  color: white !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: var(--radius) !important;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(26,26,26,0.3);
}
.newcomer-cta:hover {
  background: #555555 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,102,2,0.4);
}
@media (max-width: 768px) {
  .newcomer-inner { flex-direction: column; text-align: center; }
  .newcomer-text { flex-direction: column; }
}

.timeline-card-v2 h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

.timeline-impact {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

/* Map Section */
.map-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.map-legend {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* Textbooks Section */
.textbooks-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.textbooks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.textbook-card-v2 {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.textbook-card-v2:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.textbook-period {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.period-pre-918 { background: #e3f2fd; color: #333333; }
.period-post-918 { background: #ffebee; color: #c62828; }

.textbook-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.textbook-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.textbook-desc {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.lesson-tag {
  padding: 0.25rem 0.5rem;
  background: rgba(26,26,26,0.1);
  color: var(--color-primary);
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Compare Section */
.compare-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

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

.compare-col {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.compare-col h3 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.lesson-compare-card {
  background: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.lesson-compare-card h4 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.lesson-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.period-badge {
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
}

.lesson-content-preview {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  background: rgba(26,26,26,0.1);
  color: var(--color-primary);
  border-radius: 3px;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.education-intent {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}

/* Policies Section */
.policies-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.policies-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.policy-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-year {
  min-width: 60px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
}

.policy-card {
  flex: 1;
  background: var(--color-bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.policy-type {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--color-primary);
  color: #2d2a26;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.policy-header h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.policy-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.policy-content {
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-impact {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
}

/* Schools Section */
.schools-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.school-card-v2 {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.school-card-v2:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.school-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.school-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.school-type {
  padding: 0.2rem 0.5rem;
  background: var(--color-primary);
  color: #2d2a26;
  border-radius: 4px;
  font-size: 0.75rem;
}

.school-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.school-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Figures Section */
.figures-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.figure-card-v2 {
  display: flex;
  gap: 1rem;
  background: var(--color-bg);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.figure-avatar {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: #2d2a26;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.figure-info {
  flex: 1;
}

.figure-info h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
}

.figure-title {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.figure-lifespan {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.figure-achievements {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.achievement {
  margin-bottom: 0.25rem;
}

/* Simplified Figure Cards */
.figure-card-simple {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.figure-card-simple:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.figure-card-info {
  flex: 1;
  min-width: 0;
}
.figure-card-info h3 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  font-size: 1rem;
}
.figure-plain-summary {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0.2rem 0;
}
.figure-card-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.figure-card-tags .tag { font-size: 0.7rem; padding: 0.15rem 0.45rem; }
.figure-arrow {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Schools page map/list toggle */
.dashboard-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.dashboard-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dashboard-card.full-width {
  grid-column: span 2;
}

.dashboard-card h3 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-box .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* Data Table */
.data-table-v2 {
  width: 100%;
  border-collapse: collapse;
}

.data-table-v2 th, .data-table-v2 td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table-v2 th {
  background: var(--color-bg);
  font-weight: 600;
}

.data-table-v2 a {
  color: var(--color-primary);
  text-decoration: none;
}

.data-table-v2 a:hover {
  text-decoration: underline;
}

/* Themes Section */
.themes-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #eef2f7 0%, #f5f7fa 100%);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.theme-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-secondary);
}

.theme-card h4 {
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.theme-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* About Content */
.about-content {
  padding: 3rem 0;
  background: var(--color-surface);
}

.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-main h2 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin: 2rem 0 1rem;
}

.about-main h3 {
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem;
}

.about-main p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.about-main ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.about-main li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background: #f5f7fa;
  color: #2d2a26;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 1px solid #e8e8e8;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: #2d2a26;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  color: #5c5753;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #e8e8e8;
  color: #5c5753;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .figures-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .guide-grid, .storyline-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .story-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; padding: 0.75rem 1rem; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    order: 3;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; order: 2; }
  .nav-search-toggle { order: 1; margin-left: auto; margin-right: 0.5rem; }
  
  .hero-title-v2 { font-size: 2.5rem; }
  .hero-stats { gap: 1rem; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-left { padding: 2rem 1.5rem; }
  .hero-right { padding: 0 1.5rem 2rem; }
  .hero-intro { padding: 1.5rem; }
  
  .features-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .guide-grid, .storyline-grid { grid-template-columns: 1fr !important; }
  .story-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .textbooks-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .schools-grid { grid-template-columns: 1fr; }
  .figures-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card.full-width { grid-column: span 1; }
  .stats-grid-v2 { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  
  .timeline-v2::before { left: 20px; }
  .timeline-item-v2 {
    width: 100%;
    left: 0;
    padding-left: 50px;
    text-align: left;
  }
  .timeline-item-v2.left .timeline-dot-v2,
  .timeline-item-v2.right .timeline-dot-v2 {
    left: 12px;
    right: auto;
  }
  
  .policy-item { flex-direction: column; }
  .policy-year { text-align: left; }
  
  .figure-card-v2 { flex-direction: column; align-items: center; text-align: center; }
  
  .page-header-v2 h1 { font-size: 1.8rem; }
  .search-bar-main { flex-direction: column; }
  .search-filter-bar { flex-direction: column; align-items: flex-start; }
  .search-results-grid { grid-template-columns: 1fr; }
}

/* ===== Nav Search Toggle ===== */
.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s;
}
.nav-search-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: #2d2a26;
}

/* ===== Search Overlay ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.search-overlay.open {
  display: flex;
}
.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.search-overlay-content {
  position: relative;
  width: 90%;
  max-width: 640px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
}
.search-overlay-form svg { flex-shrink: 0; }
.search-overlay-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  color: var(--color-text);
}
.search-overlay-form kbd {
  padding: 0.15rem 0.5rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #999;
  font-family: var(--font-sans);
}
.search-overlay-results {
  overflow-y: auto;
  max-height: calc(70vh - 60px);
}
.so-group { border-bottom: 1px solid #f0f0f0; }
.so-group-title {
  padding: 0.75rem 1.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}
.so-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s;
}
.so-item:hover { background: #f9f6f2; }
.so-type {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2d2a26;
  flex-shrink: 0;
}
.so-type.school { background: #333333; }
.so-type.policy { background: #7b1fa2; }
.so-type.textbook { background: #c62828; }
.so-type.figure { background: #2e7d32; }
.so-type.event { background: #e65100; }
.so-item-content { flex: 1; min-width: 0; }
.so-item-title {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.so-item-meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}
.so-more {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  border-top: 1px solid #f5f5f5;
}
.so-more:hover { background: #f9f6f2; }
.so-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.so-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #eee;
  text-align: center;
}
.so-footer a {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
}
.so-footer a:hover { text-decoration: underline; }

/* ===== Search Page ===== */
.search-bar-main {
  margin-top: 1.5rem;
}
.search-form-main {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
}
.search-input-main {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  font-size: 1rem;
  background: rgba(255,255,255,0.15);
  color: #2d2a26;
  outline: none;
  font-family: var(--font-sans);
}
.search-input-main::placeholder { color: rgba(255,255,255,0.6); }
.search-input-main:focus { border-color: #2d2a26; background: rgba(255,255,255,0.2); }

.search-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.search-filter-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.search-results-section {
  padding: 2rem 0;
  background: var(--color-surface);
}

.search-empty {
  text-align: center;
  padding: 4rem 0;
}
.search-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.search-empty h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.search-empty p { color: var(--color-text-secondary); }

.search-suggestions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.search-suggestion-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.search-suggestion-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(26,26,26,0.08);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.search-suggestion-tag:hover { background: rgba(26,26,26,0.15); }

.search-result-summary {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.search-group {
  margin-bottom: 2.5rem;
}
.search-group-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-text);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.search-result-card {
  background: var(--color-bg);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
}
.search-result-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.search-result-type {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2d2a26;
  margin-bottom: 0.5rem;
}
.search-result-type.school { background: #333333; }
.search-result-type.policy { background: #7b1fa2; }
.search-result-type.textbook { background: #c62828; }
.search-result-type.figure { background: #2e7d32; }
.search-result-type.event { background: #e65100; }

.search-result-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.search-result-meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}
.search-result-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.search-result-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #2d2a26;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.search-results-list { display: flex; flex-direction: column; gap: 0.75rem; }
.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  align-items: flex-start;
}
.search-result-item:hover {
  box-shadow: var(--shadow);
}
.search-result-item-content { flex: 1; }
.search-result-item-content h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.search-matched-lessons {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.matched-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}
.matched-lesson-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(26,26,26,0.1);
  color: var(--color-primary);
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ===== Share Button ===== */
.share-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-bg);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.share-btn:hover {
  background: var(--color-primary);
  color: #2d2a26;
  border-color: var(--color-primary);
}
.share-btn svg { width: 14px; height: 14px; }

/* ===== Back-to-top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #2d2a26;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: all 0.2s;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.back-to-top.visible { display: flex; }

/* ===== Print Styles ===== */
@media print {
  .navbar, .nav-search-toggle, .nav-toggle, .back-to-top,
  .search-overlay, .share-bar, .filter-bar, .btn-sm,
  .footer { display: none !important; }
  
  body { background: white; color: black; font-size: 12pt; }
  
  .hero-v2 { 
    background: white !important;
    min-height: auto;
    padding: 1rem 0;
  }
  .hero-title-v2 {
    -webkit-text-fill-color: black;
    background: none;
    font-size: 18pt;
  }
  .hero-subtitle-v2, .hero-desc-v2 { color: #333; }
  
  .page-header-v2 {
  position: relative;
  overflow: hidden;
    background: white !important;
    color: black;
    padding: 1rem 0;
  }
  .page-header-v2 h1 { font-size: 16pt; }
  .page-header-v2 .page-desc { color: #333; }
  
  .feature-card, .highlight-card, .school-card-v2,
  .figure-card-v2, .textbook-card-v2, .policy-card,
  .timeline-card-v2, .dashboard-card, .theme-card,
  .search-result-card, .search-result-item {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  a { color: black; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
  
  .section-title-v2 { font-size: 14pt; }
  main { padding: 0; }
}

/* ==================== NYHS Style Enhancements ==================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Page load fade-in */
body {
  opacity: 0;
  animation: pageLoad 0.6s ease-out forwards;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

/* Sticky Navbar enhancements */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,56,132,0.08);
  padding: 0.5rem 2rem;
}

body {
  padding-top: 60px;
}

/* Nav link hover micro-interaction */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #003884;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Card hover micro-interactions */
.story-card,
.feature-card,
.guide-card,
.number-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card:hover,
.feature-card:hover,
.guide-card:hover,
.number-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,56,132,0.1);
}

/* Button hover effects */
.btn,
.story-link,
.newcomer-cta {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.story-link:hover,
.newcomer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,56,132,0.15);
}

/* Smooth page transition for links */
.page-transition {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.page-transition.fade-out {
  opacity: 0;
}

/* Image hover effects */
.hero-right img,
.story-card img,
.feature-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.hero-right:hover img,
.story-card:hover img,
.feature-card:hover img {
  transform: scale(1.03);
}

/* Feature card icon animation */
.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Number counter animation */
.number-value {
  transition: color 0.3s ease;
}

.number-card:hover .number-value {
  color: #003884;
}

/* Guide card step circle animation */
.guide-step {
  transition: all 0.3s ease;
}

.guide-card:hover .guide-step {
  transform: scale(1.1);
  background: #003884;
  color: #fff;
}

/* Footer link hover */
.footer-col a,
.footer-bottom a {
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: #003884;
}

/* Back to top button enhancement */
.back-to-top {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,56,132,0.2);
}

/* Search overlay smooth open/close */
.search-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay-content {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Magazine Layout Styles ==================== */

.magazine-section {
  padding: 8rem 0;
  background: var(--color-bg);
}

.magazine-section.magazine-alt {
  background: #f8f9fa;
}

.magazine-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.magazine-row-reverse {
  direction: rtl;
}

.magazine-row-reverse > * {
  direction: ltr;
}

.magazine-visual {
  position: relative;
}

.magazine-image-wrap {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
  aspect-ratio: 4/3;
}

.magazine-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
  filter: grayscale(20%);
}

.magazine-image-wrap:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.magazine-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.magazine-content {
  padding: 1rem 0;
}

.magazine-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.magazine-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.magazine-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.magazine-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.magazine-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #003884;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.magazine-link:hover {
  border-bottom-color: #003884;
  gap: 0.75rem;
}

/* Section header styling */
.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Hero stats row */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,56,132,0.1);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-item .stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #003884;
  display: block;
  line-height: 1;
}

.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
  display: block;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: #e0e8f0;
}

/* Hero lead text */
.hero-lead {
  font-size: 1.15rem;
  line-height: 2;
  color: #555;
  max-width: 520px;
  margin-bottom: 2rem;
}

/* CTA Section V2 */
.cta-section-v2 {
  background: #003884;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.cta-section-v2 h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-section-v2 p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.cta-section-v2 .btn-primary-v2 {
  background: #fff;
  color: #003884;
  border-color: #fff;
}

.cta-section-v2 .btn-primary-v2:hover {
  background: transparent;
  color: #fff;
}

/* Responsive for magazine layout */
@media (max-width: 768px) {
  .magazine-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .magazine-row-reverse {
    direction: ltr;
  }
  .magazine-section {
    padding: 4rem 0;
  }
  .hero-stats-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-stat-divider {
    display: none;
  }
}

/* ==================== Global Micro-interactions ==================== */
.textbook-card-v2,
.theme-card-v2,
.featured-card,
.other-card,
.timeline-event-item,
.dashboard-card,
.stat-box,
.filter-btn-v2,
.period-nav-btn,
.textbook-btn-v2 {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.textbook-card-v2:hover,
.theme-card-v2:hover,
.featured-card:hover,
.other-card:hover,
.dashboard-card:hover,
.stat-box:hover {
  transform: translateY(-4px);
}

.timeline-event-item:hover {
  transform: translateX(4px);
}

.filter-btn-v2:hover,
.period-nav-btn:hover {
  transform: translateY(-1px);
}

.filter-btn-v2:active,
.period-nav-btn:active,
.textbook-btn-v2:active,
.btn:active {
  transform: scale(0.97);
}

/* Link underline micro-interaction */
a {
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* Image hover zoom for all content images */
.textbook-card-v2 img,
.theme-card-v2 img,
.featured-card img,
.other-card img,
.dashboard-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.textbook-card-v2:hover img,
.theme-card-v2:hover img,
.featured-card:hover img,
.other-card:hover img {
  transform: scale(1.03);
}

/* ==================== Mobile Responsive Grids ==================== */
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr !important; }
  .others-grid { grid-template-columns: 1fr !important; }
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .themes-grid-v2 { grid-template-columns: 1fr !important; }
  .filter-bar-inner { justify-content: flex-start; }
  .period-header-v2,
  .archive-header-v2,
  .section-header-v2 {
    flex-wrap: wrap;
  }
  .period-range-v2,
  .archive-count-v2 {
    margin-left: 0;
    width: 100%;
    margin-top: 0.3rem;
  }
  .network-legend { gap: 0.8rem; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body { animation: none; opacity: 1; }
  .navbar { transition: none; }
  .story-card, .feature-card, .guide-card, .number-card { transition: none; }
  .magazine-image-wrap img { transition: none; }
}
