/*
Theme Name: Clinton For Accountable Leadership
Description: A civic engagement one-page theme for Clinton town elections. Features candidate comparison tables and the 5 unyielding questions for voter education.
Author: Clinton Residents for Accountability
Version: 1.0
License: GPL v2 or later
Text Domain: clinton-accountability
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* Tailwind-inspired utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.comparison-section .container {
  max-width: 1400px !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.py-12 { padding: 3rem 0; }
.py-16 { padding: 4rem 0; }
.py-24 { padding: 6rem 0; }
.py-32 { padding: 8rem 0; }

.mx-auto { margin: 0 auto; }

.px-4 { padding: 0 1rem; }
.px-6 { padding: 0 1.5rem; }
.px-8 { padding: 0 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Typography */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Color System */
:root {
  --primary: hsl(220, 85%, 25%);
  --primary-foreground: hsl(220, 20%, 95%);
  --chart-1: hsl(140, 60%, 35%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 15%, 15%);
  --muted: hsl(210, 8%, 90%);
  --muted-foreground: hsl(210, 8%, 45%);
  --border: hsl(220, 13%, 91%);
  --card: hsl(220, 8%, 98%);
  --accent: hsl(220, 30%, 92%);
}

.text-primary { color: var(--primary); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-white { color: white; }
.text-green-600 { color: hsl(142, 76%, 36%); }
.text-red-600 { color: hsl(0, 84%, 60%); }
.text-green-700 { color: hsl(142, 69%, 30%); }
.text-red-700 { color: hsl(0, 70%, 35%); }

.bg-primary { background-color: var(--primary); }
.bg-chart-1 { background-color: var(--chart-1); }
.bg-background { background-color: var(--background); }
.bg-muted { background-color: var(--muted); }
.bg-card { background-color: var(--card); }
.bg-accent { background-color: var(--accent); }
.bg-white { background-color: white; }

.bg-green-50 { background-color: hsl(138, 76%, 97%); }
.bg-red-50 { background-color: hsl(0, 86%, 97%); }
.bg-green-100 { background-color: hsl(141, 84%, 93%); }
.bg-red-100 { background-color: hsl(0, 93%, 94%); }

/* Layout */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--chart-1);
  color: white;
}

.btn-primary:hover {
  background-color: hsl(140, 60%, 30%);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: var(--accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  width: auto;
  max-width: none;
  min-width: 0;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Specific Sections */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('Clinton_community_heritage_landscape.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  opacity: 0.85;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.events-section {
  background-color: hsl(220, 30%, 98%);
}

.event-card {
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  position: relative;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.event-card .btn-sm {
  margin-top: auto;
}

/* Enhanced Event Card Styles */
.event-card-enhanced {
  background: linear-gradient(135deg, var(--background) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.event-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.event-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--chart-1) 100%);
}

.event-card-inner {
  display: flex;
  align-items: stretch;
  min-height: 200px;
}

/* Calendar Date Block */
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--chart-1) 100%);
  color: white;
  padding: 1.5rem 1rem;
  min-width: 100px;
  position: relative;
  text-align: center;
}

.event-date-block::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--chart-1);
  border-top: 100px solid transparent;
  border-bottom: 100px solid transparent;
  filter: opacity(0.3);
}

.date-month {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.date-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

/* Event Content */
.event-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Event Type Badge */
.event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  transition: all 0.2s ease-in-out;
}

.event-type-forum {
  background: linear-gradient(135deg, hsl(200, 70%, 95%) 0%, hsl(200, 70%, 90%) 100%);
  color: hsl(200, 70%, 40%);
  border: 1px solid hsl(200, 70%, 80%);
}

.event-type-hearing {
  background: linear-gradient(135deg, hsl(350, 70%, 95%) 0%, hsl(350, 70%, 90%) 100%);
  color: hsl(350, 70%, 40%);
  border: 1px solid hsl(350, 70%, 80%);
}

.event-type-registration {
  background: linear-gradient(135deg, hsl(120, 70%, 95%) 0%, hsl(120, 70%, 90%) 100%);
  color: hsl(120, 70%, 40%);
  border: 1px solid hsl(120, 70%, 80%);
}

.event-type-meeting {
  background: linear-gradient(135deg, hsl(250, 70%, 95%) 0%, hsl(250, 70%, 90%) 100%);
  color: hsl(250, 70%, 40%);
  border: 1px solid hsl(250, 70%, 80%);
}

/* Event Title */
.event-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.3;
  margin: 0;
}

/* Event Details */
.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-time,
.event-location {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
}

.event-time svg,
.event-location svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Event Description */
.event-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Event Actions */
.event-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.event-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--chart-1) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.event-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  color: white;
  text-decoration: none;
}

.event-cta-button svg {
  transition: transform 0.2s ease-in-out;
}

.event-cta-button:hover svg {
  transform: translate(2px, -2px);
}

/* Responsive Design for Enhanced Event Cards */
@media (max-width: 768px) {
  .event-card-enhanced .event-card-inner {
    flex-direction: column;
    min-height: auto;
  }
  
  .event-card-enhanced .event-date-block {
    flex-direction: row;
    justify-content: center;
    min-width: auto;
    padding: 1rem 1.5rem;
  }
  
  .event-card-enhanced .event-date-block::after {
    display: none;
  }
  
  .event-card-enhanced .date-month {
    margin-bottom: 0;
    margin-right: 0.75rem;
  }
  
  .event-card-enhanced .date-day {
    font-size: 1.75rem;
  }
  
  .event-card-enhanced .event-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .event-card-enhanced .event-title {
    font-size: 1.25rem;
  }
}

.hero-content h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-content .tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-content .slogan {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  margin: 2rem 0;
}

.questions-grid {
  display: grid;
  gap: 2rem;
}

.question-card {
  cursor: pointer;
}

.question-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.comparison-section {
  background-color: hsl(220, 30%, 98%);
}

.candidate-card {
  text-align: center;
  transition: all 0.2s ease;
}

.candidate-card.pro-resident {
  background-color: var(--green-50);
  border-color: hsl(142, 69%, 80%);
}

.candidate-card.concerning {
  background-color: var(--red-50);
  border-color: hsl(0, 70%, 80%);
}

.vote-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 auto 0.5rem;
}

.vote-icon.thumbs-up {
  color: hsl(142, 76%, 36%);
}

.vote-icon.thumbs-down {
  color: hsl(0, 84%, 60%);
}

/* Responsive Design */

/* Mobile-first (default and small screens) */
@media (max-width: 767px) {
  /* Ensure candidate grids use 2 columns on mobile */
  .candidate-grid { 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  /* Ensure candidate cards fill their grid columns on mobile */
  .candidate-grid .card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: none !important;
  }
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
  .md\\:text-lg { font-size: 1.125rem; }
  .md\\:text-xl { font-size: 1.25rem; }
  .md\\:text-2xl { font-size: 1.5rem; }
  .md\\:text-3xl { font-size: 1.875rem; }
  .md\\:text-4xl { font-size: 2.25rem; }
  .md\\:text-5xl { font-size: 3rem; }
  
  /* Force three-column layout for Understanding the Votes section */
  .understanding-votes-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Force responsive grid layout for Take Action Today section */
  .take-action-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Ensure consistent 16px gap for candidate grids on tablet */
  .candidate-grid {
    gap: 1rem !important;
  }
  
  /* Ensure candidate cards fill their grid columns on tablet */
  .candidate-grid .card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: none !important;
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
  
  /* Force 6-column layout for candidate grids on desktop */
  .candidate-grid { 
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
  
  /* Ensure candidate cards fill their grid columns */
  .candidate-grid .card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    flex: none !important;
  }
  
  /* Force 4-column layout for Take Action Today section on desktop */
  .take-action-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* WordPress specific styles */
.wp-block-group {
  margin: 0;
}

.entry-content {
  margin: 0;
}

.entry-content > * {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* Hide admin bar space adjustment */
.admin-bar .hero-section {
  min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .hero-section {
    min-height: calc(100vh - 46px);
  }
}

/* Text utility classes */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

/* Smooth scrolling for anchor navigation */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Newsletter signup form layout fix */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.newsletter-form input,
.newsletter-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
}

.newsletter-form input:focus,
.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.newsletter-form button {
  white-space: nowrap;
}

/* Horizontal layout on larger screens */
@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

/* Newsletter section padding */
#newsletter .container {
  padding: 4rem 0 !important;
}

/* MC4WP Mailchimp Form Styling */
.mc4wp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.mc4wp-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.mc4wp-form-fields p {
  margin: 0;
  flex: 1;
}

.mc4wp-form-fields label {
  display: block;
  width: 100%;
}

.mc4wp-form input[type="email"] {
  flex: 1;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mc4wp-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.mc4wp-form input[type="email"]::placeholder {
  color: var(--muted-foreground);
}

.mc4wp-form input[type="submit"] {
  background-color: var(--chart-1);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mc4wp-form input[type="submit"]:hover {
  background-color: hsl(140, 60%, 30%);
  transform: translateY(-1px);
}

/* Horizontal layout on larger screens */
@media (min-width: 640px) {
  .mc4wp-form-fields {
    flex-direction: row;
  }
}

/* Success/Error messages */
.mc4wp-success,
.mc4wp-error {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  text-align: center;
}

.mc4wp-success {
  background-color: hsl(138, 76%, 97%);
  color: hsl(142, 69%, 30%);
  border: 1px solid hsl(141, 84%, 93%);
}

.mc4wp-error {
  background-color: hsl(0, 86%, 97%);
  color: hsl(0, 70%, 35%);
  border: 1px solid hsl(0, 93%, 94%);
}

/* Section navigation spacing fix */
nav.sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px) !important;
}

nav.sticky div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1rem !important;
}

/* Direct targeting of navigation links */
a[data-testid="link-nav-questions"],
a[data-testid="link-nav-candidates"], 
a[data-testid="link-nav-newsletter"],
a[data-testid="link-nav-take-action"] {
  display: inline-block !important;
  padding: 8px 12px !important;
  margin: 0 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  color: #6b7280 !important;
  transition: all 0.2s ease-in-out !important;
}

a[data-testid="link-nav-questions"]:hover,
a[data-testid="link-nav-candidates"]:hover, 
a[data-testid="link-nav-newsletter"]:hover,
a[data-testid="link-nav-take-action"]:hover {
  color: #2563eb !important;
  background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Force proper capitalization for navigation links */
a[data-testid="link-nav-questions"],
a[data-testid="link-nav-candidates"], 
a[data-testid="link-nav-newsletter"],
a[data-testid="link-nav-take-action"] {
  text-transform: none !important;
}

/* ============================================================================
   Timeline Section Styles
   ============================================================================ */

.timeline-section {
  padding: 4rem 0;
  background-color: rgba(30, 58, 138, 0.1); /* bg-primary/10 */
}

.timeline-container {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1.5rem; /* px-6 */
}

.timeline-header {
  text-align: center;
  margin-bottom: 4rem; /* mb-16 */
}

.timeline-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700; /* font-bold */
  color: var(--foreground);
  margin-bottom: 1rem; /* mb-4 */
}

.timeline-subtitle {
  font-size: 1.125rem; /* text-lg */
  color: var(--muted-foreground);
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto;
}

/* Desktop Timeline Styles */
.timeline-desktop {
  display: none; /* hidden */
}

.timeline-line-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0.25rem; /* h-1 */
  background-color: rgba(30, 58, 138, 0.2); /* bg-primary/20 */
  transform: translateY(-50%);
}

.timeline-events-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.timeline-point-container {
  position: relative;
}

.timeline-point {
  width: 1.5rem; /* w-6 */
  height: 1.5rem; /* h-6 */
  background-color: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--background);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.timeline-event:hover .timeline-point {
  transform: scale(1.25) !important;
}

/* Additional hover effects for better visual feedback */
.timeline-event:hover {
  opacity: 0.9;
}

.timeline-year-label {
  position: absolute;
  top: -2rem; /* -top-8 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem; /* text-xs */
  font-weight: 600; /* font-semibold */
  color: var(--primary);
  background-color: var(--background);
  padding: 0.25rem 0.5rem; /* px-2 py-1 */
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.timeline-event:hover .timeline-year-label {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.timeline-event-title-container {
  margin-top: 1.5rem; /* mt-6 */
  text-align: center;
  max-width: 8rem; /* max-w-32 */
}

.timeline-event-title {
  font-size: 0.875rem; /* text-sm */
  font-weight: 600; /* font-semibold */
  color: var(--foreground);
  transition: color 0.2s ease-in-out;
}

.timeline-event:hover .timeline-event-title {
  color: var(--primary) !important;
}

/* Mobile Timeline Styles */
.timeline-mobile {
  display: flex; /* Show by default, hidden on lg+ */
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

.timeline-mobile-event {
  display: flex;
  align-items: flex-start;
  gap: 1rem; /* gap-4 */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.timeline-mobile-point-container {
  flex-shrink: 0;
  padding-top: 0.25rem; /* pt-1 */
}

.timeline-mobile-point {
  width: 1rem; /* w-4 */
  height: 1rem; /* h-4 */
  background-color: var(--primary);
  border-radius: 50%;
  transition: transform 0.2s ease-in-out;
}

.timeline-mobile-event:hover .timeline-mobile-point {
  transform: scale(1.25);
}

.timeline-mobile-content {
  flex: 1;
}

.timeline-mobile-year {
  font-size: 0.75rem; /* text-xs */
  font-weight: 600; /* font-semibold */
  color: var(--primary);
  margin-bottom: 0.25rem; /* mb-1 */
}

.timeline-mobile-title {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600; /* font-semibold */
  color: var(--foreground);
  transition: color 0.2s ease-in-out;
}

.timeline-mobile-event:hover .timeline-mobile-title {
  color: var(--primary);
}

/* Modal Styles */
.timeline-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.timeline-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fade-in 0.2s ease-out;
}

.timeline-modal-content {
  position: relative;
  background-color: var(--background);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 42rem; /* max-w-2xl */
  max-height: 80vh;
  overflow-y: auto;
  animation: scale-in 0.2s ease-out;
}

.timeline-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.timeline-modal-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700; /* font-bold */
  color: var(--primary);
  margin-bottom: 1rem; /* mb-4 */
  margin-right: 1rem;
}

.timeline-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease-in-out;
}

.timeline-modal-close:hover {
  color: var(--foreground);
}

.timeline-modal-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.timeline-modal-text {
  color: var(--foreground);
  line-height: 1.75; /* leading-relaxed */
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 1rem;
}

.timeline-modal-actions {
  padding-top: 1rem; /* pt-4 */
}

.timeline-modal-close-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.timeline-modal-close-btn:hover {
  background-color: rgba(30, 58, 138, 0.9);
}

/* Responsive Styles */
@media (min-width: 768px) {
  .timeline-title {
    font-size: 3rem; /* md:text-5xl */
  }
}

@media (min-width: 1024px) {
  .timeline-desktop {
    display: block; /* lg:block */
  }
  
  .timeline-mobile {
    display: none; /* lg:hidden */
  }
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Who to Vote For Section - Accordions ===== */
.who-to-vote-section {
  padding: 4rem 0;
}

.accordions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Accordion Item (details element) */
.accordion-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Accordion Header (summary element) */
.accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  background-color: var(--card);
  border: none;
  list-style: none;
  transition: background-color 0.2s ease-in-out;
  user-select: none;
}

/* Remove default marker/triangle */
.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header::marker {
  display: none;
}

.accordion-header:hover {
  background-color: var(--accent);
}

/* Custom + / - Icon */
.accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease-in-out;
}

/* Rotate icon when open */
details[open] .accordion-icon {
  transform: rotate(90deg);
}

/* Update icon content based on open/closed state */
.accordion-item:not([open]) .accordion-icon::before {
  content: '+';
}

.accordion-item[open] .accordion-icon::before {
  content: '−';
}

/* Accordion Title */
.accordion-title {
  flex: 1;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
}

/* Accordion Content */
.accordion-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--foreground);
  line-height: 1.75;
  animation: accordion-slide-down 0.3s ease-out;
}

.accordion-content p {
  margin-bottom: 1rem;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content strong {
  font-weight: 600;
  color: var(--foreground);
}

.accordion-content em {
  font-style: italic;
  color: var(--muted-foreground);
}

.accordion-content a {
  color: hsl(220, 80%, 42%);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease-in-out, text-decoration-thickness 0.2s ease-in-out;
}

.accordion-content a:hover {
  color: hsl(220, 90%, 32%);
  text-decoration-thickness: 2.5px;
}

.accordion-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style-type: disc;
}

.accordion-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Slide down animation */
@keyframes accordion-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .who-to-vote-section {
    padding: 3rem 0;
  }
  
  .accordion-header {
    padding: 1rem 1rem;
    font-size: 1rem;
  }
  
  .accordion-title {
    font-size: 1rem;
  }
  
  .accordion-content {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.9375rem;
  }
  
  .accordion-icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
  }
}