/**
 * Blog Lomas de Tacamichapan, Veracruz
 * Derechos Reservados © Rogelio Hernandez Reyes / CitySoftwaremty
 */

:root {
  --primary: #15803d;
  --primary-dark: #14532d;
  --primary-light: #86efac;
  --primary-subtle: #f0fdf4;
  --accent: #d97706;
  --accent-warm: #c2410c;
  --accent-light: #fef3c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --bg-body: #0b1120;
  --bg-card: #131c31;
  --bg-card-alt: #1e293b;
  --border-color: #27354f;
  --header-bg: rgba(11, 17, 32, 0.92);
  --primary-subtle: #064e3b33;
  --accent-light: #78350f33;
  --shadow-md: 0 4px 12px 0 rgb(0 0 0 / 0.35);
  --shadow-lg: 0 12px 24px -2px rgb(0 0 0 / 0.45);
}

/* Reset & Base */
*, *::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-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Reading Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #16a34a, #d97706, #059669);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent-warm));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.925rem;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease;
}

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

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

.theme-toggle {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.open {
  max-height: 480px;
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mobile-drawer-footer {
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.badge-tag {
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.badge-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  max-width: 950px;
}

.hero-title span {
  background: linear-gradient(120deg, #15803d, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Quick Stats Bar */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.green { background: #dcfce7; color: #166534; }
.stat-icon.blue { background: #e0f2fe; color: #075985; }
.stat-icon.amber { background: #fef3c7; color: #92400e; }
.stat-icon.terracotta { background: #ffedd5; color: #9a3412; }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
}

/* Hero Showcase Banner (Mejora de Calidad y Claridad Visual) */
.hero-showcase-wrapper {
  margin-bottom: 2rem;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  max-height: 580px;
  width: 100%;
}

.hero-banner img,
.enhanced-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  /* Image clarity and sharpness improvements */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.05) saturate(1.15) brightness(1.02);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.hero-banner:hover img {
  transform: scale(1.025);
  filter: contrast(1.08) saturate(1.2) brightness(1.04);
}

.hero-floating-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.hero-zoom-pill {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 0.55rem 1.15rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  z-index: 10;
}

.hero-banner:hover .hero-zoom-pill {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.hero-banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-banner-meta .meta-title {
  color: var(--text-main);
}

.hero-banner-meta .meta-title strong {
  color: var(--primary);
}

.hero-banner-meta .meta-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Layout Container for Blog & Sidebar */
.main-layout {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
}

/* Blog Article Content */
.article-container {
  min-width: 0;
}

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

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

.lead-paragraph {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-main);
  position: relative;
  padding-left: 1.25rem;
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 2.75rem 0 1.25rem;
  color: var(--text-main);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.85rem;
  color: var(--text-main);
}

.quote-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
}

.quote-author {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Article Inline Image Card */
.article-figure {
  margin: 2.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.article-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.article-figure img:hover {
  transform: scale(1.02);
}

.article-figure figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.article-figure figcaption .caption-tag {
  font-weight: 600;
  color: var(--primary);
}

/* Highlights List */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

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

.highlight-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
  margin: 3.5rem 0 2rem;
  scroll-margin-top: 5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-thumb-wrap {
  position: relative;
  height: 270px;
  overflow: hidden;
}

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

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.06);
}

.gallery-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-zoom-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-card-body {
  padding: 1.25rem;
}

.gallery-card-body h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.gallery-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Interactive Article Reactions */
.reaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 1rem;
}

.reaction-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.reaction-buttons {
  display: flex;
  gap: 0.75rem;
}

.reaction-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.reaction-btn:hover {
  transform: scale(1.05);
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.reaction-btn.reacted {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.share-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

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

/* Comments Section */
.comments-section {
  margin: 3rem 0;
}

.comments-header {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.comment-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1rem;
}

.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.comment-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.widget-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Author Box Widget */
.author-card {
  text-align: center;
}

.author-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #15803d, #d97706);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-card h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.author-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Quick Facts List */
.fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.fact-bullet {
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 2px;
}

.fact-item strong {
  color: var(--text-main);
  display: block;
}

.fact-item span {
  color: var(--text-muted);
}

/* How to get there widget */
.travel-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.88rem;
}

.travel-step {
  position: relative;
  padding-left: 1.75rem;
}

.travel-step::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: -15px;
  width: 2px;
  background: var(--border-color);
}

.travel-step:last-child::before {
  display: none;
}

.step-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
}

.travel-step strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.travel-step p {
  color: var(--text-muted);
  margin: 0;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.lightbox-img-wrap {
  position: relative;
  max-height: 75vh;
  display: inline-block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #e2e8f0;
  font-size: 1rem;
}

.lightbox-caption h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: var(--bg-body);
  padding: 0.85rem 1.4rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2.5rem;
  margin-top: 5rem;
}

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

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

/* FAQ Accordion Section (SEO Optimized) */
.faq-section {
  margin: 3.5rem 0 2rem;
  scroll-margin-top: 5rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-serif);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-chevron {
  font-size: 0.85rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 1.35rem;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.35rem 1.25rem;
}

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(21, 128, 61, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-nav-drawer {
    display: block;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    height: 320px;
  }
  .hero-banner-overlay {
    padding: 1.5rem;
  }
  .hero-banner-content h2 {
    font-size: 1.4rem;
  }
  .article-figure img {
    height: 270px;
  }
  .lightbox-content {
    padding: 0 0.5rem;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem 1.5rem;
  }
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 0.9rem;
  }
  .hero-lead {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }
  .quick-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero-banner {
    height: 250px;
    border-radius: var(--radius-md);
  }
  .main-layout {
    padding: 0 1rem;
    margin: 2rem auto;
  }
  .article-content {
    font-size: 1rem;
  }
  .lead-paragraph {
    font-size: 1.05rem;
    padding-left: 0.85rem;
  }
  .article-content h2 {
    font-size: 1.45rem;
    margin: 2rem 0 1rem;
  }
  .reaction-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .reaction-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  .reaction-btn {
    justify-content: center;
    width: 100%;
  }
  .share-btn {
    justify-content: center;
    width: 100%;
  }
  .back-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
  }
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
    justify-content: center;
    font-size: 0.82rem;
  }
  .gallery-thumb-wrap {
    height: 220px;
  }
  .footer {
    padding: 3rem 1rem 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }
}
