/* ==========================================================================
   ZISK - Zájezdovo-Informatická Studentská Kancelář
   Style blending ZISK, Škola v Přírodě (KA MFF UK) & chwiedziuk.cz
   Strictly 100% Pure CSS - No JavaScript
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-color: #8b1e22;       /* Dark Red / Burgundy */
  --primary-dark: #660e12;
  --primary-light: #ab282c;
  --accent-gold: #eba500;         /* ZISK Gold / Amber */
  --accent-gold-hover: #d99300;
  --accent-yellow: #ffb70f;
  --bg-main: #f8f9fa;             /* Škola v Přírodě clean light background */
  --bg-card: #ffffff;
  --bg-card-alt: #f1f3f5;
  --text-main: #212529;
  --text-muted: #555e68;
  --text-light: #f8f9fa;
  --border-color: #e5e7eb;
  --border-focus: #8b1e22;

  /* Status Colors */
  --status-yellow: #eab308;       /* Already happened */
  --status-yellow-bg: #fef9c3;
  --status-yellow-text: #854d0e;

  --status-green: #16a34a;        /* Possible to register or happening */
  --status-green-bg: #dcfce7;
  --status-green-text: #14532d;

  --status-blue: #2563eb;         /* Planned */
  --status-blue-bg: #dbeafe;
  --status-blue-text: #1e3a8a;

  /* Dimensions & Spacing */
  --nav-height: 60px;
  --max-width: 1140px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

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

/* ==========================================================================
   LANDING HERO SCREEN
   ========================================================================== */
.hero-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background-color: #540e04;
  background-image: url('/img/intro.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--primary-dark);
  position: relative;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  width: 100%;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: #FFE88A;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 30, 34, 0.25);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  color: var(--text-main);
  border-color: #9ca3af;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-discord {
  background-color: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
}

.btn-discord:hover {
  background-color: #4752C4;
  color: #ffffff;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ============================================================================
  FIXED NAVIGATION BAR
  Always remains at the top of the viewport, including over the landing hero.
  ========================================================================== */
.sticky-nav {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--nav-height);
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--nav-height);
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.nav-brand-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: #374151;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  text-transform: lowercase;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-card-alt);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(139, 30, 34, 0.08);
}

.nav-link-highlight {
  color: #5865F2;
}

.nav-link-highlight:hover {
  color: #4752C4;
  background-color: rgba(88, 101, 242, 0.08);
}

.nav-link-seminar {
  border: 1px solid var(--accent-gold);
  color: #b45309;
}

.nav-link-seminar:hover {
  background-color: #fffbeb;
  color: #92400e;
}

/* Pure CSS Hamburger Toggle (No JS) */
.nav-toggle {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #1f2937;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================================================
   CONTENT LAYOUT & SECTIONS
   ========================================================================== */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   TIMELINE SECTION ("časová osa")
   - Vertical dark red spine line
   - Dots with white circle around them
   - Yellow (distant future), Green (can register/happening), Blue (happened)
   - Pure CSS Hover popup with preview photo & description
   ========================================================================== */
.timeline-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 12px 18px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-sample {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #9ca3af;
}


/* Timeline Container */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 20px 0;
}

/* Central Dark Red Line (The Spine) */
.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary-color); /* Dark red line */
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 24px 36px;
  margin-bottom: 8px;
}

.timeline-item-left {
  left: 0;
  text-align: right;
  margin-top: -80px; /* pull up — previous item is always on the right */
}

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

/* Pull right items up too when they follow a left item (all except the first) */
.timeline-item-left + .timeline-item-right {
  margin-top: -80px;
}

/* Node Dot on the dark red spine */
.timeline-node {
  position: absolute;
  top: 36px;
  z-index: 5;
}

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

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

/* Dots with white circle around them */
.timeline-dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #ffffff; /* White circle around it */
  box-shadow: 0 0 0 2px var(--primary-color), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Status Dot Colors */
.dot-yellow {
  background-color: var(--status-yellow);
}

.dot-green {
  background-color: var(--status-green);
}

.dot-blue {
  background-color: var(--status-blue);
}

/* Timeline Card */
.timeline-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.timeline-card-toggle {
  display: block;
  cursor: pointer;
}

.timeline-toggle:focus-visible + .timeline-card-toggle .timeline-card {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

.timeline-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
  position: relative;
}

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

.timeline-card:hover .timeline-event-name {
  color: var(--primary-color);
}

.timeline-toggle:checked + .timeline-card-toggle .timeline-card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.timeline-toggle:checked + .timeline-card-toggle .timeline-event-name {
  color: var(--primary-color);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--primary-color), 0 3px 8px rgba(0,0,0,0.3);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.timeline-item-left .timeline-meta {
  justify-content: flex-end;
}

.timeline-item-right .timeline-meta {
  justify-content: flex-start;
}

.timeline-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-event-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.timeline-location {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 0;
}

/* Status Badges */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-yellow {
  background-color: var(--status-yellow-bg);
  color: var(--status-yellow-text);
  border: 1px solid #fde047;
}

.badge-green {
  background-color: var(--status-green-bg);
  color: var(--status-green-text);
  border: 1px solid #86efac;
}

.badge-blue {
  background-color: var(--status-blue-bg);
  color: var(--status-blue-text);
  border: 1px solid #93c5fd;
}

/* ==========================================================================
   TIMELINE HOVER POPUP (PURE CSS - NO JS!)
   "When hover over the event, short description and some photo will appear."
   ========================================================================== */
.timeline-hover-preview {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out, transform 0.3s ease-out;
  will-change: max-height, opacity, transform;
  margin-top: 0;
  text-align: left;
}

/* On hover of the card or item, the preview smoothly expands */
.timeline-card:hover .timeline-hover-preview,
.timeline-toggle:checked + .timeline-card-toggle .timeline-hover-preview {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.preview-img-wrap {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #000000;
}

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

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

.timeline-toggle:checked + .timeline-card-toggle .preview-img {
  transform: scale(1.05);
}

/* ==========================================================================
   TRAVEL MAP
   ========================================================================== */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px auto 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.map-swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid var(--primary-color);
  border-radius: 3px;
}

.map-swatch-yellow {
  background-color: var(--status-yellow);
}

.map-swatch-green {
  background-color: var(--status-green);
}

.map-swatch-blue {
  background-color: var(--status-blue);
}

.map-canvas {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0;
  overflow: hidden;
}

.map-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-canvas .country {
  fill: transparent;
  stroke: var(--primary-color);
  stroke-width: 2.4;
  stroke-linejoin: round;
  transition: fill var(--transition-fast);
}

.map-canvas .country-active {
  cursor: pointer;
}

.map-canvas .country-active:hover {
  filter: brightness(1.18);
}

.map-canvas[class~="map-country-ma-yellow"] .country-ma,
.map-canvas[class~="map-country-fi-yellow"] .country-fi,
.map-canvas[class~="map-country-bg-yellow"] .country-bg,
.map-canvas[class~="map-country-pl-yellow"] .country-pl,
.map-canvas[class~="map-country-sk-yellow"] .country-sk,
.map-canvas[class~="map-country-se-yellow"] .country-se,
.map-canvas[class~="map-country-it-yellow"] .country-it,
.map-canvas[class~="map-country-cz-yellow"] .country-cz,
.map-canvas[class~="map-country-no-yellow"] .country-no,
.map-canvas[class~="map-country-hu-yellow"] .country-hu,
.map-canvas[class~="map-country-de-yellow"] .country-de {
  fill: var(--status-yellow);
}

.map-canvas[class~="map-country-ma-blue"] .country-ma,
.map-canvas[class~="map-country-fi-blue"] .country-fi,
.map-canvas[class~="map-country-bg-blue"] .country-bg,
.map-canvas[class~="map-country-pl-blue"] .country-pl,
.map-canvas[class~="map-country-sk-blue"] .country-sk,
.map-canvas[class~="map-country-se-blue"] .country-se,
.map-canvas[class~="map-country-it-blue"] .country-it,
.map-canvas[class~="map-country-cz-blue"] .country-cz,
.map-canvas[class~="map-country-no-blue"] .country-no,
.map-canvas[class~="map-country-hu-blue"] .country-hu,
.map-canvas[class~="map-country-de-blue"] .country-de {
  fill: var(--status-blue);
}

.map-canvas[class~="map-country-ma-green"] .country-ma,
.map-canvas[class~="map-country-fi-green"] .country-fi,
.map-canvas[class~="map-country-bg-green"] .country-bg,
.map-canvas[class~="map-country-pl-green"] .country-pl,
.map-canvas[class~="map-country-sk-green"] .country-sk,
.map-canvas[class~="map-country-se-green"] .country-se,
.map-canvas[class~="map-country-it-green"] .country-it,
.map-canvas[class~="map-country-cz-green"] .country-cz,
.map-canvas[class~="map-country-no-green"] .country-no,
.map-canvas[class~="map-country-hu-green"] .country-hu,
.map-canvas[class~="map-country-de-green"] .country-de {
  fill: var(--status-green);
}

.preview-desc {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 10px;
}

.preview-cta {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ==========================================================================
   ABOUT US SECTION ("o nás") & ORGANIZERS
   - Manifesto inspired by Škola v Přírodě
   - Organizers Grid inspired by chwiedziuk.cz & ZISK team
   ========================================================================== */
.about-manifesto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.manifesto-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.manifesto-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.manifesto-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.manifesto-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.manifesto-card p {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Organizers Block */
.organizers-section {
  margin-top: 50px;
}

.organizers-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 36px;
}

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

.team-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.team-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.team-motto {
  font-style: italic;
  color: #4b5563;
  font-size: 0.92rem;
  margin-bottom: 14px;
  padding: 8px 12px;
  background-color: var(--bg-card-alt);
  border-radius: 6px;
  border-left: 3px solid var(--accent-gold);
}

.team-bio {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 18px;
  text-align: left;
  flex: 1;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-weight: 600;
}

.github-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mail-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.team-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SUBPAGES
   ========================================================================== */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Standard Static Pages */
.standard-page {
  max-width: 840px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.page-head {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.page-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 32px 0 14px;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 24px 0 10px;
}

.page-content p {
  margin-bottom: 18px;
}

.page-content ul, .page-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* Callout Box */
.callout-box {
  background-color: #fffbeb;
  border-left: 4px solid var(--accent-gold);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.callout-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}

.callout-box p {
  color: #78350f;
  margin-bottom: 0;
}

/* Memes Gallery */
.memes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.meme-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.meme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.meme-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.meme-caption {
  padding: 16px;
  font-size: 0.95rem;
  color: #4b5563;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #1f242d;
  color: #9ca3af;
  padding: 28px 24px;
  margin-top: 60px;
  border-top: 3px solid var(--primary-color);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: #9ca3af;
}

/* ==========================================================================
   RESPONSIVE DESIGN (PURE CSS MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 860px) {
  /* Timeline becomes single-column on left on mobile */
  .timeline-spine {
    left: 24px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    padding-right: 12px;
    text-align: left !important;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .timeline-item-left + .timeline-item-right {
    margin-top: 0;
  }

  .timeline-item .timeline-node {
    left: 14px !important;
    right: auto !important;
  }

  .timeline-item-left .timeline-meta {
    justify-content: flex-start;
  }
}

@media (hover: none) {
  .timeline-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
  }

  .timeline-card:hover .timeline-event-name {
    color: #1f2937;
  }

  .timeline-item:hover .timeline-dot {
    transform: none;
    box-shadow: 0 0 0 2px var(--primary-color), 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .timeline-card:hover .timeline-hover-preview {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .timeline-card:hover .preview-img {
    transform: none;
  }

  .timeline-toggle:checked + .timeline-card-toggle .timeline-card {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
  }

  .timeline-toggle:checked + .timeline-card-toggle .timeline-event-name {
    color: var(--primary-color);
  }

  .timeline-toggle:checked + .timeline-card-toggle .timeline-hover-preview {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
  }

  .timeline-toggle:checked + .timeline-card-toggle .preview-img {
    transform: scale(1.05);
  }

  .map-canvas .country-active:hover {
    filter: none;
  }
}

@media (max-width: 768px) {
  /* Pure CSS Hamburger Menu on Mobile */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  /* Hamburger Toggle via Checkbox */
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-link {
    width: 100%;
    padding: 12px;
  }

  .standard-page {
    padding: 24px 16px;
  }
}
