/* ==========================================================================
   DHARMA100 - Master Stylesheet
   100 Kejadian Populer Agama Buddha di Dunia (Multilingual, SEO & AdSense Ready)
   Aesthetic: Serene Buddhist Elegance, Saffron Gold, Burgundy, Lotus Cream & Slate
   ========================================================================== */

:root {
  /* Color Palette - Light Mode */
  --color-primary: #b45309;          /* Saffron Gold */
  --color-primary-light: #f59e0b;    /* Radiant Gold */
  --color-primary-dark: #78350f;     /* Deep Ochre */
  --color-sangha: #7c2d12;           /* Monastic Burgundy */
  --color-sangha-light: #991b1b;     /* Warm Crimson */
  --color-lotus: #fef3c7;            /* Lotus Petal Cream */
  --color-lotus-soft: #fffbeb;       /* Subtle Warm White */
  
  --bg-main: #fcfbf7;
  --bg-card: #ffffff;
  --bg-card-hover: #fffdfa;
  --bg-surface: #f7f4ed;
  --bg-modal: rgba(15, 23, 42, 0.75);
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-accent: #fde68a;
  --border-focus: #d97706;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", "Songti SC", "SimSun", "Noto Serif", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  
  --container-width: 1240px;
  --transition-speed: 0.25s;
}

[data-theme="dark"] {
  --color-primary: #f59e0b;
  --color-primary-light: #fbbf24;
  --color-primary-dark: #d97706;
  --color-sangha: #991b1b;
  --color-sangha-light: #b91c1c;
  --color-lotus: #1e293b;
  --color-lotus-soft: #0f172a;
  
  --bg-main: #0b0f19;
  --bg-card: #151d2f;
  --bg-card-hover: #1c273e;
  --bg-surface: #101726;
  --bg-modal: rgba(0, 0, 0, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-subtle: #24324c;
  --border-accent: #b45309;
  --border-focus: #f59e0b;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-sangha-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, select, input {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.brand-logo:hover {
  color: var(--color-primary);
}

.dharma-wheel-icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  animation: rotateSlow 60s linear infinite;
  flex-shrink: 0;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.brand-name {
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

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

/* Language Switcher Dropdown */
.lang-selector-wrap {
  position: relative;
}

.lang-select {
  appearance: none;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-speed);
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--color-primary);
}

.lang-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Theme & Sound Buttons */
.action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--bg-card);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Google AdSense Compliant Banner Slots (Zero-CLS)
   ========================================================================== */
.ad-slot-container {
  margin: 1.5rem auto;
  padding: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
  position: relative;
  min-height: 100px;
}

.ad-slot-container.leaderboard {
  max-width: 970px;
  min-height: 90px;
}

.ad-slot-container.in-feed {
  width: 100%;
  min-height: 250px;
}

.ad-slot-container.in-article {
  max-width: 728px;
  min-height: 280px;
  margin: 2rem auto;
}

.ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: block;
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 90px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.02) 10px,
    rgba(0, 0, 0, 0.04) 10px,
    rgba(0, 0, 0, 0.04) 20px
  );
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4rem 0 3.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.12), transparent 70%);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: var(--color-lotus);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-accent);
}

[data-theme="dark"] .hero-badge {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-primary-light);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2rem;
}

.hero-quote-box {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.75rem;
  background-color: var(--bg-card);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-primary);
}

.hero-quote-text {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.hero-quote-source {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
}

/* Stats Counter Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 940px;
  margin: 0 auto;
}

.stat-item {
  padding: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed);
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Controls Bar: Search, Category Pills, View Mode
   ========================================================================== */
.controls-section {
  padding: 2rem 0 1rem;
  position: sticky;
  top: 72px;
  z-index: 90;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.search-and-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

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

.filter-select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-speed);
}

.filter-select:focus, .filter-select:hover {
  border-color: var(--color-primary);
}

.view-toggle-btns {
  display: flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}

.view-btn {
  border: none;
  background: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.view-btn.active {
  background-color: var(--bg-card);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-pills::-webkit-scrollbar {
  height: 4px;
}

.category-pills::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.cat-pill {
  white-space: nowrap;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.cat-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cat-pill.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-inverse);
  font-weight: 600;
}

.results-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Events Grid View
   ========================================================================== */
.events-section {
  padding: 2.5rem 0 5rem;
}

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

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

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-accent);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--bg-surface);
}

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

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

.card-id-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-bookmark-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-speed);
  z-index: 2;
}

[data-theme="dark"] .card-bookmark-btn {
  background-color: rgba(15, 23, 42, 0.8);
  color: var(--text-secondary);
}

.card-bookmark-btn.saved, .card-bookmark-btn:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

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

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.card-cat-tag {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-meta-dot {
  color: var(--text-muted);
}

.card-era-badge {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.card-location-badge {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

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

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

.card-read-more-btn {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-speed);
}

.event-card:hover .card-read-more-btn {
  gap: 0.6rem;
  color: var(--color-sangha);
}

/* ==========================================================================
   Timeline View
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-sangha), var(--color-primary));
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
  box-sizing: border-box;
}

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

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

.timeline-node {
  position: absolute;
  top: 2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid var(--bg-main);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.timeline-item.left .timeline-node {
  right: -10px;
}

.timeline-item.right .timeline-node {
  left: -10px;
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.timeline-year-tag {
  display: inline-block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Detail Modal (Article Reader Mode)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-modal);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background-color var(--transition-speed);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: var(--color-sangha);
}

.modal-body {
  padding: 2.5rem;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.badge-pill {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.badge-pill.primary {
  background-color: var(--color-lotus);
  color: var(--color-primary-dark);
}

.badge-pill.secondary {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.modal-img-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.modal-summary-box {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.modal-history-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-history-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  white-space: pre-line;
  margin-bottom: 2rem;
}

.modal-quote-card {
  background: radial-gradient(circle at 10% 20%, var(--color-lotus-soft), var(--bg-surface));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  position: relative;
}

.modal-quote-icon {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary-light);
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.modal-quote-content {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background-color: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  font-size: 0.925rem;
}

.modal-detail-item {
  display: flex;
  flex-direction: column;
}

.modal-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.modal-detail-val {
  font-weight: 600;
  color: var(--text-primary);
}

.modal-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.share-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-speed);
}

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

.nav-prev-next-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Footer & Cookie Notice
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-settings-link {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 600px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  display: none;
}

.cookie-banner.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cookie-banner-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cookie-banner-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-accept {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-reject {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Floating Jump Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed);
  z-index: 99;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: var(--color-sangha);
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item.left .timeline-node,
  .timeline-item.right .timeline-node {
    left: 10px;
  }
  .modal-dialog {
    max-height: 95vh;
  }
  .modal-header {
    height: 240px;
  }
  .modal-body {
    padding: 1.5rem;
  }
  .modal-title {
    font-size: 1.65rem;
  }
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-links {
    display: none;
  }
}
