/* ==========================================================================
   KONGFUCIANISM 100 EVENTS - STYLESHEET
   Refined Classical Oriental Design System
   ========================================================================== */

:root {
  --primary: #9E2A2B;
  --primary-dark: #7A1D1E;
  --primary-light: #C0392B;
  --gold: #D4AF37;
  --gold-light: #F4D06F;
  --gold-dark: #AA820A;
  --jade: #1E5E4E;
  --jade-light: #2D7D68;
  --bg-parchment: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-main: #212529;
  --text-muted: #6C757D;
  --text-light: #8E9BAE;
  --border-color: #E8E1D5;
  --border-gold: #D4AF3740;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-serif: "Noto Serif", "Georgia", "Songti SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
}

/* Dark / Ink Mode */
[data-theme="dark"] {
  --primary: #C0392B;
  --primary-dark: #9E2A2B;
  --primary-light: #E74C3C;
  --gold: #F4D06F;
  --gold-light: #FCE6A8;
  --gold-dark: #D4AF37;
  --jade: #2D7D68;
  --jade-light: #3DA88D;
  --bg-parchment: #13171C;
  --bg-surface: #1B2129;
  --bg-card: #202731;
  --text-main: #E9ECEF;
  --text-muted: #A0AAB7;
  --text-light: #6C7A8B;
  --border-color: #2D3748;
  --border-gold: #D4AF3730;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic), var(--font-sans);
}
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .timeline-item::before { right: -9px; left: auto; }
[dir="rtl"] .timeline-item { border-right: 2px solid var(--gold); border-left: none; padding-right: 1.5rem; padding-left: 0; }

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-parchment);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Top Notification / Notice Bar */
.top-notice-bar {
  background: linear-gradient(90deg, #6B1718, #9E2A2B, #6B1718);
  color: #FFF3D6;
  font-size: 0.85rem;
  padding: 6px 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(212,175,55,0.4);
}
.top-notice-bar a {
  color: var(--gold-light);
  text-decoration: underline;
  font-weight: 600;
}

/* Header & Navigation */
header.site-header {
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-symbol {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-family: var(--font-serif);
  font-weight: bold;
  box-shadow: var(--shadow-sm);
}

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

.brand-title h1 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 0.5px;
}
[data-theme="dark"] .brand-title h1 {
  color: var(--gold-light);
}

.brand-title span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Nav Menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background-color: rgba(158, 42, 43, 0.08);
}
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active {
  color: var(--gold);
  background-color: rgba(212, 175, 55, 0.12);
}

/* Header Controls: Language & Theme */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-parchment);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--gold);
  background-color: rgba(212, 175, 55, 0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 1001;
  padding: 0.5rem 0;
}
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}
[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover, .lang-option.active {
  background-color: rgba(158, 42, 43, 0.08);
  color: var(--primary);
  font-weight: 600;
}
[data-theme="dark"] .lang-option:hover, [data-theme="dark"] .lang-option.active {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  gap: 0.75rem;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1C232B 0%, #2A1719 50%, #161B22 100%);
  color: #FFFFFF;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

.hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.08;
  background-image: radial-gradient(#D4AF37 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #FFFBF0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title .highlight {
  color: var(--gold-light);
  background: linear-gradient(180deg, #FCE6A8, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #D6DEE7;
  max-width: 760px;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.8rem;
  color: #A0B0C0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Box */
.search-wrapper {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-input-group {
  display: flex;
  background-color: var(--bg-surface);
  border: 2px solid var(--gold);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.search-input-group input {
  flex: 1;
  border: none;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  background: transparent;
  color: var(--text-main);
  outline: none;
}

.search-input-group button {
  background: var(--primary);
  border: none;
  color: #FFF;
  padding: 0 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-input-group button:hover {
  background: var(--primary-dark);
}

/* Ad Unit Containers (AdSense Standard Compliant) */
.ad-unit-wrapper {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 970px;
  padding: 0.5rem;
}

.ad-unit-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.ad-unit-container {
  background-color: rgba(0,0,0,0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Main Container & Layout */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Filter Bar */
.filter-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.75px;
  margin-bottom: 0.6rem;
}

.era-filter-scroll, .cat-filter-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.filter-btn {
  background-color: var(--bg-parchment);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFF;
  font-weight: 600;
}
[data-theme="dark"] .filter-btn.active {
  background-color: var(--gold-dark);
  border-color: var(--gold);
  color: #FFF;
}

.view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.view-modes {
  display: flex;
  gap: 0.5rem;
}

.view-mode-btn {
  background: var(--bg-parchment);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.view-mode-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1A1A;
  font-weight: 600;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Event Cards Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.event-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 15px rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #2D3748;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .card-image {
  transform: scale(1.05);
}

.card-number-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(158, 42, 43, 0.92);
  color: #FFF;
  border: 1px solid var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}
[dir="rtl"] .card-number-badge {
  left: auto;
  right: 10px;
}

.card-year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(22, 27, 34, 0.88);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
[dir="rtl"] .card-year-badge {
  right: auto;
  left: 10px;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.meta-era {
  color: var(--jade);
  font-weight: 600;
}
[data-theme="dark"] .meta-era {
  color: var(--jade-light);
}

.meta-region {
  background-color: var(--bg-parchment);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--primary);
}
[data-theme="dark"] .card-title a:hover {
  color: var(--gold);
}

.card-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.card-read-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}
[data-theme="dark"] .card-read-link {
  color: var(--gold-light);
}

.card-read-link:hover {
  gap: 0.6rem;
}

/* Timeline View */
.timeline-container {
  display: none;
  max-width: 860px;
  margin: 2rem auto;
  position: relative;
}

.timeline-container.active {
  display: block;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  border-left: 2px solid var(--gold);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  background-color: var(--primary);
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
[data-theme="dark"] .timeline-year {
  color: var(--gold-light);
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Article Page Layout */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
[data-theme="dark"] .article-breadcrumbs a {
  color: var(--gold-light);
}

.article-header {
  margin-bottom: 2rem;
}

.article-era-badge {
  display: inline-block;
  background-color: var(--bg-parchment);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
[data-theme="dark"] .article-era-badge {
  color: var(--gold-light);
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-main);
  font-weight: 400;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
[dir="rtl"] .article-lead {
  border-left: none;
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.article-hero-image-wrap {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.article-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.image-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-style: italic;
}

.article-body-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .article-body-content h2 {
  color: var(--gold-light);
}

.article-body-content p {
  margin-bottom: 1.25rem;
}

.scripture-quote-box {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(158,42,43,0.05));
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.quote-icon {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.quote-source {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-align: right;
}
[data-theme="dark"] .quote-source {
  color: var(--gold-light);
}
[dir="rtl"] .quote-source {
  text-align: left;
}

/* Share & Navigation Controls */
.share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: var(--bg-surface);
  transition: all 0.2s;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--primary);
}

.article-nav-links {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  gap: 1rem;
}

.article-nav-btn {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.article-nav-btn:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.nav-direction {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}
[data-theme="dark"] .nav-title {
  color: var(--gold-light);
}

/* Related Stories */
.related-stories-section {
  margin: 3rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}
[data-theme="dark"] .section-title {
  color: var(--gold-light);
}

/* Footer */
footer.site-footer {
  background-color: #12161A;
  color: #D3DCE6;
  border-top: 3px solid var(--gold);
  padding: 3.5rem 1.25rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h3 {
  color: #FFFBF0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding-bottom: 0.4rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: #9EABB9;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #B5C2D1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-disclaimer-box {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #8C99A8;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #7D8C9D;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal-links a, .cookie-settings-trigger {
  color: #9EABB9;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.85rem;
}

.footer-legal-links a:hover, .cookie-settings-trigger:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* Cookie Consent Banner (Google Funding Choices Fallback / Local Compliance) */
.cookie-banner-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 25px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 1.25rem;
  display: none;
}

.cookie-banner-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background-color: var(--primary);
  color: #FFF;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-cookie-manage {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .article-title {
    font-size: 1.8rem;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   ENHANCED SYSTEM STYLES - 100 CONFUCIAN EVENTS
   Full Component Styling, Grid, Timeline, Ad Slots, & Cookie Consent
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--gold-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-family: var(--font-serif);
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-emblem.lg {
  width: 60px;
  height: 60px;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
[data-theme="dark"] .brand-title {
  color: var(--gold-light);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-item {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.nav-item:hover, .nav-item.active {
  color: var(--primary);
  background: rgba(158, 42, 43, 0.08);
}
[data-theme="dark"] .nav-item:hover, [data-theme="dark"] .nav-item.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-select {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.lang-select:focus, .lang-select:hover {
  border-color: var(--gold);
}

.btn-theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.btn-theme-toggle:hover {
  border-color: var(--gold);
}
.btn-theme-toggle .icon-moon { display: none; }
.btn-theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .btn-theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .btn-theme-toggle .icon-moon { display: inline; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #4A0E10 0%, #7A1D1E 50%, #9E2A2B 100%);
  color: #FFF;
  padding: 4.5rem 1.25rem 3.5rem;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212,175,55,0.15) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.hero-emblem-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #FFF3D6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #E2E8F0;
  margin-bottom: 1.5rem;
}

/* Search Bar in Hero */
.search-filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
}
.search-icon {
  font-size: 1.25rem;
}
.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-main);
  outline: none;
}
.btn-clear-search {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Eras Scroll Bar & Filters */
.filter-controls-bar {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.eras-scroll-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.filter-pill {
  white-space: nowrap;
  background: var(--bg-parchment);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}
[data-theme="dark"] .filter-pill.active {
  background: var(--gold);
  color: #13171C;
  border-color: var(--gold);
}

.view-buttons {
  display: flex;
  gap: 0.5rem;
}
.btn-view {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-view.active {
  background: var(--gold);
  color: #13171C;
  border-color: var(--gold);
}

/* Events Grid */
.events-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #1A202C;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.event-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge-id {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #FFF;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
}
.card-badge-era {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.meta-year {
  color: var(--primary);
  font-weight: 700;
}
[data-theme="dark"] .meta-year {
  color: var(--gold);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}
.card-title a:hover {
  color: var(--primary);
}
[data-theme="dark"] .card-title a:hover {
  color: var(--gold);
}

.card-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-quote-snippet {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gold-dark);
  border-left: 2px solid var(--gold);
  padding-left: 0.5rem;
  margin-top: auto;
  line-height: 1.4;
}
[data-theme="dark"] .card-quote-snippet {
  color: var(--gold-light);
}

.card-footer {
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-category-tag {
  font-size: 0.78rem;
  background: var(--bg-parchment);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.btn-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-read-more:hover {
  transform: translateX(3px);
  text-decoration: underline;
}
[data-theme="dark"] .btn-read-more {
  color: var(--gold);
}

/* Event Detail Article */
.article-container {
  max-width: 860px;
}
.event-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}
.badge-era { background: var(--primary); color: #FFF; }
.badge-category { background: var(--jade); color: #FFF; }
.badge-year { background: var(--gold); color: #13171C; }
.badge-region { background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-main); }

.article-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.text-gold {
  color: var(--gold-dark);
}
[data-theme="dark"] .text-gold {
  color: var(--gold);
}

.article-summary {
  font-size: 1.15rem;
  line-height: 1.6;
}

.article-figure {
  margin: 2rem 0;
}
.article-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.figure-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 0.5rem;
}

/* Scripture Quote Card */
.scripture-card {
  position: relative;
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(158,42,43,0.06) 100%);
  border: 1px solid var(--gold);
  border-left: 6px solid var(--gold);
  padding: 1.75rem;
  border-radius: var(--radius-md);
}
.scripture-emblem {
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-family: var(--font-serif);
}
.scripture-quote {
  margin: 0;
}
.scripture-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.scripture-source {
  font-size: 0.92rem;
  font-weight: 700;
}

/* Sections & Callout */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
[data-theme="dark"] .section-heading {
  color: var(--gold-light);
}

.section-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.callout-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--jade);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
}

/* Share Box & Pagination */
.share-box {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-whatsapp { background: #25D366; color: #FFF; text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 4px; font-weight: 600; }
.btn-twitter { background: #1DA1F2; color: #FFF; text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 4px; font-weight: 600; }
.btn-facebook { background: #4267B2; color: #FFF; text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 4px; font-weight: 600; }
.btn-copy { background: var(--bg-parchment); color: var(--text-main); border: 1px solid var(--border-color); padding: 0.35rem 0.75rem; border-radius: 4px; font-weight: 600; cursor: pointer; }

.event-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.pagination-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  max-width: 320px;
}
.pagination-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pagination-title {
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s;
}
.pagination-link:hover .pagination-title {
  color: var(--primary);
}
[data-theme="dark"] .pagination-link:hover .pagination-title {
  color: var(--gold);
}
.btn-all-events {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

/* Dedicated Timeline Page */
.timeline-era-nav {
  margin: 1.5rem 0;
}
.btn-era-jump {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-era-jump:hover {
  border-color: var(--gold);
  background: var(--primary);
  color: #FFF;
}
.era-section-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.era-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.era-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.5rem;
}
.era-event-row {
  background: var(--bg-card);
  transition: transform 0.2s;
}
.era-event-row:hover {
  transform: translateX(5px);
  border-color: var(--gold) !important;
}
.era-event-title a {
  color: var(--text-main);
  text-decoration: none;
}
.era-event-title a:hover {
  color: var(--primary);
}
[data-theme="dark"] .era-event-title a:hover {
  color: var(--gold);
}

/* AdSense Containers */
.ad-container {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  overflow: hidden;
}
.ad-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cookie Banner Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 99999;
  padding: 1rem 0;
  display: none;
}
.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}
[data-theme="dark"] .cookie-text h4 {
  color: var(--gold);
}
.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
}
.btn-primary {
  background: var(--primary);
  color: #FFF;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary {
  background: var(--bg-parchment);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
}
.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .events-grid-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--gold);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.nav-open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}
