/* ==========================================================================
   100 PERISTIWA BERSEJARAH AGAMA KATOLIK DI DUNIA - STYLESHEET
   Design: Classical Sacred Majesty (Vatican Gold, Deep Crimson, Sacred Navy)
   Accessibility & SEO Optimized, Responsive, Modern CSS Grid & Flexbox
   ========================================================================== */

:root {
  --primary-gold: #c59b27;
  --primary-gold-dark: #997314;
  --primary-gold-light: #faeab8;
  --sacred-crimson: #7a1526;
  --sacred-crimson-dark: #500a16;
  --sacred-crimson-light: #9e2338;
  --sacred-navy: #0e1e38;
  --sacred-navy-light: #1b3054;
  
  --bg-parchment: #fbf9f4;
  --bg-card: #ffffff;
  --bg-secondary: #f3efe6;
  --border-subtle: #e6decb;
  --border-gold: #dfba5d;
  
  --text-main: #242220;
  --text-muted: #5f5950;
  --text-light: #877f72;
  --text-gold: #966f12;
  
  --shadow-sm: 0 2px 6px rgba(14, 30, 56, 0.05);
  --shadow-md: 0 6px 18px rgba(14, 30, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 30, 56, 0.12);
  --shadow-gold: 0 4px 20px rgba(197, 155, 39, 0.25);
  
  --font-serif: "Cinzel", "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --primary-gold: #dfba5d;
  --primary-gold-dark: #b58d24;
  --primary-gold-light: #443719;
  --sacred-crimson: #a8293f;
  --sacred-crimson-dark: #701021;
  --sacred-crimson-light: #c23851;
  --sacred-navy: #0b1422;
  --sacred-navy-light: #16243b;
  
  --bg-parchment: #0f1217;
  --bg-card: #171c24;
  --bg-secondary: #1f2530;
  --border-subtle: #2d3645;
  --border-gold: #73591c;
  
  --text-main: #eceae5;
  --text-muted: #b0a99c;
  --text-light: #7b7468;
  --text-gold: #ecc266;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.55);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-parchment);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sacred-crimson);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-gold-dark);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 244, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(15, 18, 23, 0.95);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sacred-crimson), var(--sacred-crimson-dark));
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(122, 21, 38, 0.3);
  border: 2px solid var(--primary-gold);
}

.brand-info h1 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--sacred-navy);
  line-height: 1.2;
}

[data-theme="dark"] .brand-info h1 {
  color: var(--primary-gold-light);
}

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

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--sacred-crimson);
  background-color: var(--bg-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--primary-gold);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  display: none;
  list-style: none;
  z-index: 200;
  animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown.open {
  display: block;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: background-color var(--transition-fast);
}

.lang-option:hover {
  background-color: var(--bg-secondary);
  color: var(--sacred-crimson);
}

.lang-option.active {
  font-weight: 700;
  color: var(--primary-gold-dark);
  background-color: var(--primary-gold-light);
}

[data-theme="dark"] .lang-option.active {
  background-color: rgba(223, 186, 93, 0.15);
  color: var(--primary-gold);
}

/* Theme Toggle */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold-dark);
  transform: rotate(15deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(197, 155, 39, 0.12), transparent 70%),
              linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-parchment) 100%);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.hero-cross-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background-color: rgba(122, 21, 38, 0.08);
  border: 1px solid rgba(122, 21, 38, 0.2);
  color: var(--sacred-crimson);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

[data-theme="dark"] .hero-cross-badge {
  background-color: rgba(223, 186, 93, 0.1);
  border-color: rgba(223, 186, 93, 0.3);
  color: var(--primary-gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--sacred-navy);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-card);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.stat-item .stat-num {
  color: var(--sacred-crimson);
  font-weight: 800;
}

[data-theme="dark"] .stat-item .stat-num {
  color: var(--primary-gold);
}

/* Search Bar */
.search-container {
  max-width: 680px;
  margin: 0 auto 32px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 20px;
  font-size: 1.2rem;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 16px 54px 16px 52px;
  font-size: 1.05rem;
  font-family: inherit;
  background-color: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 50px;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all var(--transition-normal);
}

.search-input:focus {
  border-color: var(--sacred-crimson);
  box-shadow: 0 0 0 4px rgba(122, 21, 38, 0.15), var(--shadow-md);
}

[data-theme="dark"] .search-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 4px rgba(223, 186, 93, 0.2), var(--shadow-md);
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  display: none;
}

.search-clear-btn.active {
  display: flex;
}

/* Timeline Eras Filter */
.era-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.era-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.era-btn:hover {
  border-color: var(--primary-gold);
  color: var(--text-main);
}

.era-btn.active {
  background-color: var(--sacred-crimson);
  color: #ffffff;
  border-color: var(--sacred-crimson);
  box-shadow: 0 2px 10px rgba(122, 21, 38, 0.3);
}

[data-theme="dark"] .era-btn.active {
  background-color: var(--primary-gold);
  color: #0b1422;
  border-color: var(--primary-gold);
  box-shadow: 0 2px 10px rgba(223, 186, 93, 0.3);
}

/* Categories Filter */
.category-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .cat-btn {
  background-color: rgba(23, 28, 36, 0.7);
}

.cat-btn:hover {
  border-color: var(--primary-gold);
  color: var(--text-main);
  background-color: var(--bg-card);
}

.cat-btn.active {
  background-color: var(--sacred-navy);
  color: #ffffff;
  border-style: solid;
  border-color: var(--sacred-navy);
}

[data-theme="dark"] .cat-btn.active {
  background-color: var(--primary-gold-dark);
  color: #ffffff;
  border-color: var(--primary-gold);
}

/* ==========================================================================
   ADSENSE SLOTS (Clean & Policy Compliant)
   ========================================================================== */
.ad-slot-container {
  margin: 32px auto;
  text-align: center;
  max-width: 970px;
  padding: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.ad-unit-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-subtle);
}

/* Placeholder appearance when ads are not loaded */
.ad-placeholder {
  color: var(--text-light);
  font-size: 0.82rem;
  font-style: italic;
  padding: 20px;
}

/* ==========================================================================
   MAIN CONTENT & EVENT GRID
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 40px 0 80px;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sacred-navy);
  font-weight: 700;
}

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

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

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Event Card */
.event-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

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

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 58%; /* 16:9 approx */
  background-color: var(--bg-secondary);
  overflow: hidden;
}

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

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

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-year {
  background-color: rgba(14, 30, 56, 0.88);
  color: var(--primary-gold-light);
  backdrop-filter: blur(4px);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

.badge-cat {
  background-color: rgba(122, 21, 38, 0.9);
  color: #ffffff;
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--sacred-navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

[data-theme="dark"] .card-title {
  color: #ffffff;
}

.card-loc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sacred-crimson);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

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

.card-read-btn:hover {
  color: var(--primary-gold-dark);
  gap: 10px;
}

.card-share-btn {
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.card-share-btn:hover {
  color: var(--sacred-crimson);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--text-light);
}

.empty-state-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-state-btn {
  margin-top: 16px;
  padding: 10px 24px;
  background-color: var(--sacred-crimson);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   ARTICLE MODAL & DRAWER READER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 30, 56, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.modal-btn:hover {
  border-color: var(--primary-gold);
  color: var(--sacred-crimson);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--sacred-crimson);
  color: #ffffff;
  border-color: var(--sacred-crimson);
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  line-height: 1.8;
}

.modal-featured-img-wrap {
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}

.modal-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.modal-img-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--sacred-navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  background-color: var(--bg-secondary);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  border: 1px solid var(--border-subtle);
}

.meta-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.meta-box-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sacred-crimson);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

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

.modal-text {
  font-size: 1.05rem;
  color: var(--text-main);
  white-space: pre-line;
  margin-bottom: 20px;
}

.modal-quote-box {
  background-color: rgba(197, 155, 39, 0.1);
  border-left: 4px solid var(--primary-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  margin: 20px 0;
  color: var(--text-main);
}

.modal-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   COOKIE CONSENT & PRIVACY CMP (GDPR / Google Policy Compliant)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 1000;
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.open {
  display: block;
}

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

.cookie-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sacred-navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.cookie-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background-color: var(--sacred-crimson);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color var(--transition-fast);
}

.cookie-btn-accept:hover {
  background-color: var(--sacred-crimson-dark);
}

[data-theme="dark"] .cookie-btn-accept {
  background-color: var(--primary-gold);
  color: #0b1422;
}

.cookie-btn-reject {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.88rem;
}

.cookie-btn-reject:hover {
  background-color: var(--border-subtle);
}

.cookie-btn-manage {
  color: var(--sacred-crimson);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
}

[data-theme="dark"] .cookie-btn-manage {
  color: var(--primary-gold);
}

/* Toast notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--sacred-navy);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: none;
  border-left: 4px solid var(--primary-gold);
}

.toast-msg.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--sacred-navy);
  color: #d1d5db;
  padding: 60px 0 30px;
  border-top: 4px solid var(--primary-gold);
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  font-family: var(--font-serif);
  color: var(--primary-gold-light);
  font-size: 1.15rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 14px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d1d5db;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-bottom a {
  color: var(--primary-gold-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 12px;
  }
  
  .stat-item {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  .modal-content {
    max-height: 96vh;
  }
  
  .modal-body {
    padding: 20px 16px;
  }
  
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}
