/* ================================
   HERO SECTION
   ================================ */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(4, 54, 115, 0.6) 25%, transparent 25%),
    linear-gradient(225deg, rgba(48, 99, 105, 0.4) 25%, transparent 25%),
    linear-gradient(315deg, rgba(48, 99, 105, 0.3) 25%, transparent 25%);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-section .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

/* Hero heading — override uppercase for the tagline */
.hero-section h1 {
  text-transform: none;
  letter-spacing: normal;
}

/* ================================
   COUNTDOWN BANNER
   ================================ */
.countdown-banner {
  width: 100%;
}

/* Countdown banner heading — condensed font looks great here */
.countdown-banner h3 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-timer {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.countdown-label {
  font-family: "Sofia Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================
   VOTE CARDS
   ================================ */
.vote-icon {
  text-align: center;
}

.vote-card .wp-block-group {
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.vote-card .wp-block-group:hover {
  box-shadow: 0 4px 16px rgba(4, 54, 115, 0.12);
  transform: translateY(-2px);
}

/* ================================
   ELECTION TIMELINE
   ================================ */
.election-timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-heading {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #b8cdd3;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #b8cdd3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
}

.completed-marker {
  background: #306369;
  border-color: #306369;
}

.current-marker {
  background: #b9262d;
  border-color: #b9262d;
  width: 16px;
  height: 16px;
  left: -36px;
}

.upcoming-marker {
  background: #fff;
  border-color: #b8cdd3;
}

.timeline-content {
  background: #d1e3e8;
  border: 1px solid #b8cdd3;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  flex: 1;
}

.current-content {
  border-color: #b9262d;
  border-width: 2px;
  background: #fff;
}

.timeline-label {
  display: block;
  font-family: "Sofia Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.25rem;
}

.current-label {
  color: #b9262d;
}

.timeline-text {
  font-family: "Sofia Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.timeline-cta {
  text-align: center;
  margin-top: 2rem;
}

.timeline-button {
  display: inline-block;
  font-family: "Sofia Sans", sans-serif;
  padding: 0.65rem 1.5rem;
  border: 2px solid #043673;
  border-radius: 4px;
  color: #043673;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    background 0.2s,
    color 0.2s;
}

.timeline-button:hover {
  background: #043673;
  color: #fff;
}

/* ================================
   EMAIL SIGNUP FORM
   ================================ */
.signup-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  font-family: "Sofia Sans", sans-serif;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 0.95rem;
  width: 300px;
  max-width: 100%;
  background: #fff;
  color: #1a1a1a;
}

.signup-form input[type="email"]::placeholder {
  color: #999;
}

.signup-form button {
  font-family: "Sofia Sans", sans-serif;
  padding: 0.75rem 1.5rem;
  background: #b9262d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.signup-form button:hover {
  background: #961f24;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .countdown-banner .wp-block-group {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .countdown-timer {
    justify-content: center;
  }

  .signup-form {
    flex-direction: column;
    align-items: center;
  }

  .signup-form input[type="email"] {
    width: 100%;
  }

  .timeline {
    padding-left: 35px;
  }
}

.hero-section {
  margin-bottom: 0 !important;
}

.countdown-banner {
  margin-top: 0 !important;
}
/* ================================
   ABOUT SECTION — wider on large screens
   ================================ */
@media (min-width: 1024px) {
  .about-section {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
    max-width: 1400px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1440px) {
  .about-section {
    padding-left: 6rem !important;
    padding-right: 6rem !important;
    max-width: 1600px !important;
  }
}
/* Remove gap between all top-level blocks */
.wp-site-blocks > * + * {
  margin-top: 0 !important;
}

/* Or target specifically the footer template part */
.wp-site-blocks > .wp-block-template-part:last-child {
  margin-top: 0 !important;
}

/* Email signup cover */
.wp-block-cover:has(.signup-form) {
  margin-bottom: 0 !important;
  padding-bottom: 4rem !important;
}

.site-footer {
  margin-top: 0 !important;
  padding-top: 2rem !important;
}
/* ================================
   STICKY HEADER
   ================================ */
.wp-site-blocks > .wp-block-template-part:first-child {
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* ================================
   HEADER SCROLL BAR
   ================================ */
.wp-site-blocks > .wp-block-template-part:first-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  /* background: linear-gradient(90deg, #043673, #b9262d, #306369); */
  background: #00214d;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wp-site-blocks > .wp-block-template-part:first-child {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.wp-site-blocks > .wp-block-template-part:first-child.scrolled::after {
  opacity: 1;
}
