/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* CSS Custom Properties (Color Palette from Logo) */
:root {
  --primary-blue: #1f5582;
  --accent-red: #ff0000;
  --light-blue: #4a7ba7;
  --dark-blue: #153d5c;
  --text-dark: #2c3e50;
  --text-light: #5a6c7d;
  --background-light: #f8fafc;
  --white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-soft: rgba(31, 85, 130, 0.1);
}

/* Modern Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
}

/* Modern Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  box-shadow: 0 4px 20px var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

nav h1 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

nav a:active {
  transform: translateY(0);
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
  display: none;
}

.hamburger-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
  background: transparent;
  border: none;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  width: 28px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
}

.hamburger-icon::before {
  transform: translateY(-9px);
}

.hamburger-icon::after {
  transform: translateY(6px);
}

/* Hamburger animation when menu is open */
.menu-toggle:checked ~ .hamburger-label .hamburger-icon {
  background-color: transparent;
}

.menu-toggle:checked ~ .hamburger-label .hamburger-icon::before {
  transform: rotate(45deg);
}

.menu-toggle:checked ~ .hamburger-label .hamburger-icon::after {
  transform: rotate(-45deg) translateY(-9px) translateX(9px);
}

/* Focus state for accessibility */
.menu-toggle:focus ~ .hamburger-label {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Main Content Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
#hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--background-light) 100%);
  margin: 0 -2rem 3rem -2rem;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 30px var(--shadow-soft);
}

#hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

#hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styling */
section {
  margin-bottom: 4rem;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-soft);
  border: 1px solid var(--border-light);
}

section h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--primary-blue));
  border-radius: 2px;
}

section h3 {
  color: var(--dark-blue);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
}

/* Election Info Cards */
.election-info {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.election-info > div {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-red);
}

/* Voting Guide Styling */
.voting-guide ol {
  background: var(--background-light);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
}

.voting-guide ol li {
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
}

.voting-guide ul {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: inset 0 2px 10px rgba(31, 85, 130, 0.05);
  border: 1px solid var(--border-light);
}

.voting-guide ul li {
  margin-bottom: 0.8rem;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.voting-guide ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: bold;
}

/* Candidates Section */
.candidates {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
  border-radius: 12px;
  border: 2px dashed var(--border-light);
}

/* Footer */
footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
  border-radius: 24px 24px 0 0;
}

footer h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    position: relative;
  }

  nav h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  /* Show hamburger icon on mobile */
  .hamburger-label {
    display: flex;
  }

  /* Hide nav links by default on mobile */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  /* Show nav links when checkbox is checked */
  .menu-toggle:checked ~ .nav-links {
    max-height: 500px;
    opacity: 1;
  }

  nav a {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  #hero {
    padding: 2rem 1rem;
    margin: 0 -1rem 2rem -1rem;
  }

  #hero h2 {
    font-size: 2rem;
  }

  main {
    padding: 0 1rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* Modern Interactive Elements */
a {
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

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

/* Focus States for Accessibility */
a:focus,
nav a:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Account for sticky header + padding */
}

/* Hero Section Enhanced */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 1rem 0;
  font-weight: 500;
}

.hero-details {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(31, 85, 130, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 85, 130, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: 0 4px 15px rgba(31, 85, 130, 0.1);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Deadlines Section */
.deadlines {
  background: linear-gradient(135deg, #fff5f5 0%, var(--white) 100%);
  border: 2px solid #fecaca;
}

.deadline-box h2 {
  color: var(--accent-red);
  text-align: center;
}

.deadlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.deadline-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-red);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.1);
}

.deadline-item.highlight {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  border-left: 4px solid var(--white);
}

/* Enhanced Election Days Card */
.deadline-item.election-days {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  color: var(--white);
  border-left: 4px solid #10b981;
  box-shadow: 0 8px 25px rgba(31, 85, 130, 0.3);
  position: relative;
  overflow: hidden;
}

.deadline-item.election-days::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.election-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.election-dates {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.election-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.5px;
}

.voting-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.voting-day {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.voting-day:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.day-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.day-time {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.day-duration {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Responsive design for election days */
@media (max-width: 768px) {
  .voting-schedule {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .election-dates {
    font-size: 1.6rem;
  }

  .day-time {
    font-size: 1.1rem;
  }

  .voting-day {
    padding: 1rem;
  }
}

.deadline-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.deadline-item.highlight strong {
  color: var(--white);
}

/* Two Equal Options Layout */
.two-equal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  /* Mobile Chrome compatibility */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
}

.option-item {
  background: var(--background-light);
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid var(--border-light);
  text-align: center;
  /* Mobile Chrome layout fixes */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.option-item h4 {
  color: var(--primary-blue);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.option-item p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.equal-importance {
  text-align: center;
  margin: 1rem 0 0 0;
  padding: 0.8rem;
  background: linear-gradient(135deg, #fff7ed 0%, var(--white) 100%);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.95rem;
  /* Mobile Chrome text rendering */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive adjustments for two equal options */
@media (max-width: 768px) {
  .two-equal-options {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    /* Mobile Chrome Grid fixes */
    display: -webkit-grid;
    display: grid;
    -webkit-box-align: stretch;
    align-items: stretch;
  }

  .option-item {
    padding: 0.8rem;
    /* Mobile Chrome font and layout fixes */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .option-item h4 {
    /* Ensure consistent font rendering on mobile Chrome */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
  }

  .option-item p {
    /* Mobile Chrome text rendering fixes */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
  }
}

/* Mobile Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
  .two-equal-options {
    /* Force hardware acceleration for smoother rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }

  .option-item {
    /* Mobile Chrome grid item fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: relative;
  }

  .option-item h4,
  .option-item p {
    /* Prevent mobile Chrome font scaling issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .equal-importance {
    /* Mobile Chrome gradient and text rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Voting Cards */
.voting-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.voting-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  text-align: center;
}

.voting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-soft);
  border-color: var(--primary-blue);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voting-card h3 {
  color: var(--primary-blue);
  margin: 1rem 0;
  font-size: 1.2rem;
}

.voting-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
}

.faq-item h3 {
  color: var(--primary-blue);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
}

/* Loss Actions and Consequences in FAQ */
.loss-actions,
.loss-consequences {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-red);
}

.loss-actions h4,
.loss-consequences h4 {
  color: var(--accent-red);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.loss-actions ol,
.loss-consequences ul {
  margin: 0;
  padding-left: 1.5rem;
}

.loss-actions ol li,
.loss-consequences ul li {
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Warning Section - Toned Down */
.warning-section {
  background: var(--white);
  border: 1px solid var(--border-light);
}

.warning-box h2 {
  color: var(--text-dark);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
}

.warning-icon {
  font-size: 1.2rem;
  color: #f59e0b;
}

.warning-content {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid var(--border-light);
}

.warning-main {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.warning-action,
.warning-consequences,
.warning-solution,
.warning-tip {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.warning-action {
  border-left: 4px solid var(--primary-blue);
}

.warning-consequences {
  border-left: 4px solid var(--text-light);
}

.warning-solution {
  border-left: 4px solid var(--primary-blue);
}

.warning-tip {
  border-left: 4px solid var(--primary-blue);
}

.warning-action h3 {
  color: var(--primary-blue);
  margin: 0 0 1rem 0;
}

.warning-consequences h3 {
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.warning-solution h3 {
  color: var(--primary-blue);
  margin: 0 0 1rem 0;
}

.warning-list {
  margin: 0;
  padding-left: 1.5rem;
}

.warning-list li {
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* First Time Voter Section */
.first-time-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.first-time-info,
.first-time-tip {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
}

.first-time-tip {
  background: linear-gradient(135deg, #fff7ed 0%, var(--white) 100%);
  border-left-color: #f59e0b;
}

.first-time-tip h3 {
  color: #f59e0b;
}

/* Action Hub */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.action-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.action-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-soft);
  border-color: var(--primary-blue);
}

.action-item h3 {
  color: var(--primary-blue);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.action-item p {
  color: var(--text-light);
  margin: 0 0 1.5rem 0;
}

/* Footer Enhanced */
.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-1px);
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  font-style: italic;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  /* Adjust scroll padding for mobile header height */
  html {
    scroll-padding-top: 120px; /* Account for mobile header + padding */
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .deadlines-grid,
  .voting-cards,
  .faq-grid,
  .first-time-content,
  .action-grid {
    grid-template-columns: 1fr;
  }

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

  .voting-card {
    padding: 1.5rem;
  }

  .action-item {
    padding: 1rem;
  }

  .action-item .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    word-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
  }

  .card-icon {
    font-size: 2.5rem;
    height: 50px;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--background-light) 100%);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px var(--shadow-soft);
  z-index: 1000;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent:not(.hidden) {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-consent p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  min-width: 300px;
}

.cookie-consent a {
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent a:hover {
  color: var(--light-blue);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  min-width: 100px;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-settings-modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.cookie-settings-content {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.cookie-settings-header h2 {
  color: var(--primary-blue);
  margin: 0;
  font-size: 1.5rem;
}

.close-settings {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.close-settings:hover {
  background: var(--background-light);
  color: var(--text-dark);
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
}

.cookie-category h3 {
  color: var(--primary-blue);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-category p {
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: var(--primary-blue);
}

.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-slider {
  background-color: var(--text-light);
  cursor: not-allowed;
}

.cookie-settings-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.cookie-settings-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 12px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(31, 85, 130, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 85, 130, 0.4);
  color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cookie-consent p {
    min-width: auto;
    font-size: 0.9rem;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .cookie-buttons .btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
  }

  .cookie-settings-modal {
    padding: 1rem;
  }

  .cookie-settings-content {
    padding: 1.5rem;
  }

  .cookie-settings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .close-settings {
    align-self: flex-end;
  }

  .cookie-category h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cookie-settings-actions {
    flex-direction: column;
  }

  .cookie-settings-link {
    bottom: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}


