/* =========================================================
   Main Site Styles
========================================================= */
:root{
  --border: rgba(0,0,0,0.10);
  --primary-dark: #0b2a4a;
  --primary: #005fa3;
  --shadow-hover: rgba(0,0,0,0.18);
  --ring: rgba(0,95,163,.20);
  --gradient: linear-gradient(135deg,#005fa3,#0a3d6a);
  
  /* Light mode colors */
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
}

/* Dark mode color variables */
body.dark-mode {
  --bg: #1a1a1a;
  --card-bg: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #a0a0a0;
  --border: rgba(255,255,255,0.15);
}

html, body{
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

.hidden { display: none !important; }
#cookie-banner.hidden { display: none !important; }

/* =========================================================
   Back to Top Button
========================================================= */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
}

/* =========================================================
   Search Modal
========================================================= */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.search-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.search-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--primary-dark);
}

.search-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.search-close:hover {
  background: #f0f0f0;
  color: #333;
}

.search-input-wrapper {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-submit {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background: var(--primary-dark);
}

.search-results {
  padding: 20px 24px;
  max-height: 500px;
  overflow-y: auto;
}

.search-hint,
.search-no-results {
  color: #666;
  text-align: center;
  padding: 40px 20px;
  font-size: 15px;
}

.search-count {
  color: #666;
  font-size: 14px;
  margin: 0 0 16px 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-item {
  display: block;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.search-result-item:hover {
  background: #e8f0fe;
  border-color: var(--primary);
  transform: translateX(4px);
}

.search-result-item h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--primary);
}

.search-result-url {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-family: monospace;
}

@media (max-width: 768px) {
  .search-modal {
    padding: 60px 12px 12px;
  }
  
  .search-modal-content {
    border-radius: 8px;
  }
  
  .search-modal-header {
    padding: 16px;
  }
  
  .search-modal-header h2 {
    font-size: 20px;
  }
  
  .search-input-wrapper {
    flex-direction: column;
    padding: 16px;
  }
  
  .search-submit {
    width: 100%;
  }
  
  .search-results {
    padding: 16px;
    max-height: 400px;
  }
}

#back-to-top.show {
  display: flex;
  opacity: 1;
}

#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#back-to-top:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* =========================================================
   Breadcrumb Navigation
========================================================= */
.breadcrumb {
  position: fixed;
  top: 140px; /* Height of header */
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #999;
  user-select: none;
}

.breadcrumb-current {
  color: #333;
  font-weight: 600;
}

@media (max-width: 520px) {
  .breadcrumb {
    top: 100px !important; /* Mobile header (56px) + action bar (44px) */
    font-size: 12px;
    padding: 10px 15px;
    gap: 6px;
  }
}

/* =========================================================
   Header
========================================================= */
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: rgba(255, 255, 255, 1.00);
  z-index: 1001;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 20px;
  box-sizing: border-box;
}

#header-logo{
  display: block;
  height: 120px;
  width: auto;
  object-fit: contain;
  max-width: none;
  min-height: 120px;
}

.header-right{
  display: flex;
  align-items: center;
  padding-right: 20px;
  gap: 10px;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(#fff, #fbfdff);
  border: 1.5px solid #d6e5f4;
  color: var(--primary);
  transition: all 0.2s ease;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12);
}

.social-icon:hover {
  background: #f6fbff;
  transform: translateY(-2px);
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.18);
  color: var(--primary-dark);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

/* Hide social icons on very small screens */
@media (max-width: 420px) {
  .social-icons {
    display: none;
  }
}

/* Ensure all buttons in header align properly */
.header-right .btn,
.header-right button {
  margin: 0;
  vertical-align: middle;
}

/* Buttons */
.donate-button,
.join-button,
.login-button{
  padding: 8px 16px;
  font-size: 0.75rem;
  height: 20px;
  line-height: 1;
  border-radius: 20px;
  font-weight: 800;
  box-shadow: 2px 2px 1px 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
}

.donate-button{ color: rgb(64, 115, 225); margin: 10px; }
.join-button{ color: #8a1717; }
.login-button{ color: #3f934c; }

.donate-button:hover{
  box-shadow: 0 0 0px 0px #fff, 0 0 8px 1px rgb(64, 115, 225), 0 0 0px 0px rgb(255, 255, 255);
}
.join-button:hover{
  box-shadow: 0 0 0px 0px #fff, 0 0 8px 1px rgb(84, 0, 0), 0 0 0px 0px rgb(255, 255, 255);
}
.login-button:hover{
  box-shadow: 0 0 0px 0px #fff, 0 0 8px 1px rgb(8, 103, 11), 0 0 0px 0px rgb(255, 255, 255);
}
.login-button:hover, .join-button:hover, .donate-button:hover{
  transform: translateY(-3px);
}

/* =========================================================
   Navigation
========================================================= */
.nav-links{
  display: flex;
  gap: 30px;
  margin-left: 260px;
  padding-top: 60px;
}

.nav-links a{
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #004aad; }

/* =========================================================
   Hamburger Menu
========================================================= */
.hamburger-menu{
  position: relative;
  margin-left: 20px;
}

.hamburger-icon{
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(#fff,#fbfdff);
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: all 0.2s ease;
}

.hamburger-icon:hover {
  background: linear-gradient(#f8f9fa,#e9ecef);
  border-color: var(--primary);
}

.hamburger-icon.menu-open {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

.hamburger-icon:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hamburger-dropdown{
  display: none; /* JS toggles */
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255,255,255,0.95);
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: 6px;
  overflow: hidden;
}

.hamburger-dropdown a {
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  color: black;
  font-size: 0.80rem;

  /* animation setup */
  transition:
    background-color 0.2s ease,
    transform 0.18s ease,
    font-weight 0.18s ease;
}

.hamburger-dropdown a:hover {
  background-color: #cadee7;
  transform: translateX(3px) scale(1.03); /* pop out */
  font-weight: 600; /* bold */
}


/* =========================================================
   Hero Banner
========================================================= */
.hero-banner{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  width: 100vw;
  height: 60vh;
  min-height: 400px;
  background-image: url('images/picnic-group.webp');
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
}

.hero-banner h1{
  color: white;
  font-size: 2.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Main Content
========================================================= */
main{
  margin-top: 140px; /* Header height */
  padding: 50px 20px 40px; /* Extra padding for breadcrumb */
  font-size: 1.2rem;
  color: #222;
  line-height: 1.6;
}

.vision-statement{
  background-color: #ffffff;
  font-family: sans-serif;
  margin-top: 8vh;
}

.content-wrapper{
  display: block;
  max-width: 90vw;
  margin: 0 auto;
  text-align: left;
}

.vision-statement h2{
  font-size: 2rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

/* =========================================================
   Cookie Banner
========================================================= */
#cookie-banner.cookie-banner{
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);

  width: min(800px, calc(100vw - 32px));
  max-width: 800px;

  display: none; /* Hidden by default to prevent flash */
  flex-direction: column;
  gap: 16px;

  padding: 20px 24px;
  border-radius: 14px;

  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);

  z-index: 99999;
}

#cookie-banner.cookie-banner.show {
  display: flex; /* Only show when cookie doesn't exist */
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#cookie-banner.cookie-banner p{
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

#cookie-banner.cookie-banner a{ 
  text-decoration: underline;
  color: #005fa3;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#cookie-banner.cookie-banner button{
  flex: 1 1 auto;
  min-width: 140px;
  white-space: nowrap;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: #005fa3;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #004a82;
}

.cookie-btn-reject {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd !important;
}

.cookie-btn-reject:hover {
  background: #e8e8e8;
}

/* =========================================================
   Icons / Misc
========================================================= */
.icon{
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  transition: transform 0.2s ease;
}
.icon:hover { transform: scale(1.1); }

.chevron{
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: center;
  font-weight: bold;
  font-size: 16px;
  color: #888;
  margin-left: 8px;
}

/* leadership */
.leadership-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.leader-card{
  text-align: center;
  cursor: pointer;
}
.leader-card img{
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #ccc;
  margin-bottom: 1rem;
}
.leader-name{ font-weight: bold; font-size: 1.1rem; }
.leader-title{ font-size: 0.95rem; color: #666; }

/* =========================================================
   Blog Layout
========================================================= */
.blog-layout{
  margin-left: 230px;
  padding: 1rem;
}

.blog-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  margin-top: 3%;
}

.blog-header h2{ font-size: 2.2rem; margin: 0; }

.archive-link{
  font-size: 1rem;
  text-decoration: none;
  color: #024486;
  font-weight: bold;
  border: 1px solid #024486;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(243, 3, 3, 0.1);
}

.archive-link:hover{
  background-color: #2e6297;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(68, 86, 246, 0.6);
}

.blog-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card{
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(243, 3, 3, 0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.blog-card:hover{
  box-shadow: 0 0 10px rgba(251, 118, 85, 0.6);
  transform: scale(1.05);
}
.blog-card a{
  text-decoration: none;
  color: #222;
  font-size: 1.1rem;
  font-weight: bold;
  display: block;
}

.blog-post-layout{
  margin-left: 230px;
  padding: 0;
}

.blog-article{
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1rem;
  color: #333;
}
.blog-article h2{
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #024486;
}
.blog-article p{ margin-bottom: 1.25rem; }

/* =========================================================
   Contact Page Layout
========================================================= */
.contact-page{
  /* keep it aligned with your blog layout spacing */
  padding: 2rem;
}

/* Full-width intro that spans the available page width */
.contact-intro{
  width: 100%;
  max-width: none;
  margin: 0 auto 1.25rem;
}

.contact-intro p{
  max-width: 1100px;      /* readable line length */
  margin: 0 auto;         /* center text block */
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

/* Centered contact info "card" */
.contact-card{
  width: min(760px, 92vw);
  margin: 0 auto;               /* centers the block */
  padding: 1.75rem 1.75rem 1.25rem;

  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  text-align: center;           /* centers the contact info */
}

.contact-card h2{
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: #024486;
}

.contact-card p{
  margin-bottom: 1rem;
  margin-top: -1rem;
}

.contact-card a{
  font-weight: 800;
  text-decoration: none;
}
.contact-card a:hover{
  text-decoration: underline;
}

.contact-signoff{
  margin-top: 1.25rem;
  font-weight: 700;
}

/* Mobile tighten */
@media (max-width: 700px){
  .contact-page{ padding: 1.25rem; }
  .contact-card{ padding: 1.25rem 1.1rem 1rem; }
  .contact-intro p{ padding: 0 6px; }
}

/* =========================================================
   Carousel (Govern page)
========================================================= */
.card-carousel-wrapper{
  width: 75%;
  position: relative;
  padding-right: 10px;
  padding-bottom: 25px;
  height: 200px;
  margin-left: 10%;
}

.card-carousel{
  display: flex;
  gap: 1%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;

  width: 103%;
  padding: 2rem 0;

  --carousel-side-gap: clamp(12px, 2vw, 24px);
  padding-left: var(--carousel-side-gap);
  padding-right: var(--carousel-side-gap);
  scroll-padding-left: var(--carousel-side-gap);
  scroll-padding-right: var(--carousel-side-gap);
}
.card-carousel::-webkit-scrollbar{ display: none; }

.carousel-controls{
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0 1rem;
}
.carousel-controls .carousel-nav{
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.policy-card{
  flex: 0 0 250px;
  height: 170px;
  scroll-snap-align: center;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 10px rgba(50, 36, 208, 0.15);
  text-align: center;
  margin-left: 3%;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.policy-card h3{
  margin-bottom: 0.3rem;
  line-height: 1.5rem;
}
.policy-card p{ margin-top: 0; }
.policy-card:hover{
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.6);
  transform: scale(1.05);
}

.carousel-arrows-wrapper{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: -2%;
  width: 50%;
  max-width: 150px;
  margin-left: 43%;
  padding-bottom: 3%;
}
.carousel-nav{
  font-size: 2rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* =========================================================
   MODALS (Global overlay + content box)
   IMPORTANT: This is what prevents "modal at bottom"
========================================================= */

/* overlay container */
.modal{
  display: none;                 /* hidden by default */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.55);

    /* centering */
  align-items: center;
  justify-content: center;

  /* safe padding */
  padding: 24px;
}

/* allow your JS to show by setting style.display="block"
   OR by toggling a class; this supports both */
.modal[style*="display: flex"]{
  
  align-items: center;
  justify-content: center;
}
.modal.is-open{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* content box */
.modal .modal-content{
  position: relative;
  width: min(900px, calc(100vw - 32px));
  max-height: min(84vh, 720px);

  background: #fff;
  border-radius: 14px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  overflow: hidden;              /* scroll goes to #modal-policy */
  -webkit-overflow-scrolling: touch;

  /* smooth swipe animation */
  will-change: transform;
}

/* close button */
/* Modal close button: black circle with white X */
.modal .modal-close,
.modal .close{
  position: absolute;
  top: 5px;
  right: 3px;

  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #000;
  color: #fff;

  font-size: 22px;
  font-weight: 700;
  line-height: 1;

  border-radius: 50%;
  cursor: pointer;
  user-select: none;

  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

/* Hover / tap feedback */
.modal .modal-close:hover,
.modal .close:hover{
  background: #111;
  transform: scale(1.08);
}

.modal .close:hover,
.modal .modal-close:hover{
  color: #000;
  background: rgba(0,0,0,0.05);
  transform: scale(1.05);
}

/* hero image in policy modal */
.modal-hero img{
  width: 100%;
  max-height: 260px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* POLICY MODAL: the ONLY scroll container */
#policy-modal #modal-policy{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y; /* keep vertical scroll */
}

/* lock page behind modal (do NOT set touch-action here) */
body.modal-open{ overflow: hidden; }
#policy-modal { overflow: hidden; }
/* =========================================================
   Leader Modal (layout only; uses global overlay rules above)
========================================================= */
.leader-modal .modal-content{
  display: flex;
  align-items: flex-start;
  gap: 20px;

  max-width: 960px;
  width: min(960px, calc(100vw - 32px));
  padding: 24px 24px 16px 24px;

  max-height: min(84vh, 760px);
  overflow: hidden;
}

.leader-modal .modal-content > img{
  flex: 0 0 260px;
  width: 260px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 70vh;
  margin: 0;
}

.leader-modal .modal-text{
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   Misc Typography / Helpers
========================================================= */
.small-text{
  font-size: 1.0rem;
  line-height: 1.3;
}

.trademark-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  padding-bottom: 30px;
}

.founder-message{
  margin-left: 5%;
  margin-right: 5%;
}

.btn{
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  transition:transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  background:#fff;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px var(--shadow-hover);
  border-color:#d6deea;
}
.btn:focus{ outline:none; box-shadow:0 0 0 4px var(--ring); }
.btn.primary{
  background:var(--gradient);
  color:#fff;
  border-color:transparent;
  box-shadow:0 22px 26px rgba(0,95,163,.18);
}
.btn.ghost{
  background:linear-gradient(#fff,#fbfdff);
  border:1.5px solid #d6e5f4;
  color:var(--primary);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12);
}
.btn.ghost:hover{ 
  background:#f6fbff;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
}

/* Search button alignment */
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  vertical-align: middle;
  line-height: 1;
}

/* =========================================================
   Social Sharing Buttons (Blog Posts)
========================================================= */
.social-share-container {
  margin: 40px 0;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.social-share-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 600;
}

.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.share-twitter {
  background: #1DA1F2;
  color: white;
}

.share-twitter:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-facebook {
  background: #1877F2;
  color: white;
}

.share-facebook:hover {
  background: #1565d8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-linkedin {
  background: #0A66C2;
  color: white;
}

.share-linkedin:hover {
  background: #095196;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.share-email {
  background: #EA4335;
  color: white;
}

.share-email:hover {
  background: #d33426;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.share-copy {
  background: #6c757d;
  color: white;
}

.share-copy:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-success {
  margin: 12px 0 0 0;
  color: #28a745;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .social-share-buttons {
    flex-direction: column;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Print Styles
========================================================= */
@media print {
  /* Hide non-essential elements */
  .header,
  .hamburger-menu,
  .social-share-container,
  .social-icons,
  #back-to-top,
  #searchModal,
  .search-modal,
  .breadcrumb,
  .cookie-banner,
  .btn,
  .dark-mode-toggle {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000 !important;
    background: #fff !important;
    margin: 0;
    padding: 0;
  }
  
  main {
    padding: 20px !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  .policy-content,
  .blog-article {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  a {
    text-decoration: underline;
    color: #000 !important;
  }
  
  /* Show URLs after links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
  
  /* Don't show URLs for internal navigation */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  
  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  p, li {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  /* Ensure text is readable */
  h1, h2, h3, h4, h5, h6, p, li, td, th {
    color: #000 !important;
  }
  
  /* Ensure content fits */
  .policy-content,
  .blog-article {
    max-width: 100%;
  }
  
  /* Remove shadows and effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

#what-is-ingenova-title{
  font-size: 2.0rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0;
  margin-top: -1.5rem;
  margin-bottom: -1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;   /* ← space between the buttons */
  margin-top: 2rem;
  margin-left: 3vw;
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 1.25rem;
}


.nowrap { white-space: nowrap; }

/* =========================================================
   Polls/Feedback Layout
========================================================= */
.polls-feedback-layout{
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  margin-top: 15%;
  color: #004aad;
  margin-left: 27%;
}
.polls-feedback-layout h2{ margin-top: 2rem; }

.feedback-text{
  color:#000000;
  margin-left: 10%;
  width: 70%;
  margin-top: 5%;
  line-height: 1.45rem;
}

textarea{
  width: 100%;
  height: 150px;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

button{
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.polls-section, .feedback-section{ margin-bottom: 3rem; }

/* =========================================================
   Legend
========================================================= */
.map-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto; /* Center the map wrapper */
}

.legend{
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column; /* Stack vertically */
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  max-width: 180px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
}

/* Mobile: move legend below map */
@media (max-width: 768px) {
  .legend {
    position: static;
    transform: none;
    max-width: 100%;
    margin: 20px auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.legend-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.legend-color{
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12) inset;
}

/* =========================================================
   Responsive
========================================================= */

/* Cookie banner: mobile stack */
@media (max-width: 520px){
  #cookie-banner.cookie-banner{
    width: calc(100vw - 24px);
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
  }
  
  #cookie-banner.cookie-banner button{ 
    width: 100%;
    min-width: unset;
  }
}

/* Mobile header fix */
@media (max-width: 520px){
  .header{
    height: 56px !important;
    padding: 6px 6px !important;
    align-items: flex-start !important;
  }

  header.header > a.brand{
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-left: 25px;
  }

  #header-logo{
    height: 80px !important;
    width: auto !important;
    max-height: 80px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    margin-top: -10px !important;
    margin-left: 10px;
  }

  #logo-link{
    margin-left: -6px !important;
    transform: translateX(-6px) !important;
  }

  main{ 
    margin-top: 100px !important; /* Mobile header (56px) + action bar (44px) */
    padding-top: 50px !important; /* Extra padding for breadcrumb */
  }
}

/* Blog/policy layouts on mobile */
@media (max-width: 700px){
  .blog-post-layout,
  .blog-layout,
  .policy-content
  .policy-layout{
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Hero banner on mobile */
@media (max-width: 700px){
  .hero-banner{
    height: 32vh !important;
    min-height: 220px;
    margin-top: 10px;
  }
}

/* Feedback text on mobile */
@media (max-width: 700px){
  .feedback-text{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 16px !important;
  }
}

/* Leader modal stack on small screens */
@media (max-width: 700px){
  .leader-modal .modal-content{ flex-direction: column; }
  .leader-modal .modal-content > img{
    width: 100%;
    max-height: 40vh;
    flex: 0 0 auto;
    object-fit: contain;
  }
}

/* Modal sizing on mobile */
@media (max-width: 700px){
  .modal{
    padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  }
  .modal .modal-content{
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }
  .modal-hero img{ max-height: 200px; }
}

/* Mobile: nudge map slightly left */
@media (max-width: 480px){
  #us-map{ 
    transform: translateX(-12px);
    max-width: 100%; /* Allow map to use full width on mobile */
  }
}

/* Tablet: slightly larger map */
@media (max-width: 768px) and (min-width: 481px) {
  #us-map {
    max-width: 100%; /* Allow map to use full width on tablet */
  }
}

/* ===== US MAP: state outlines ===== */
#us-map path{
 stroke: rgba(255,255,255,0.5); /* brighter edge for more definition */
  stroke-width: 2;              /* thicker outline for more depth */
  stroke-linejoin: round;
  stroke-linecap: round;
 
   paint-order: stroke fill;  
    cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
  transform-box: fill-box;          /* make transform origin use the path box */
  transform-origin: center;         /* center of each state */
  vector-effect: non-scaling-stroke;/* keep borders consistent if you scale */
  /* Add base 3D effect to all states */
  filter: url(#bevel) drop-shadow(0 4px 8px rgba(0,0,0,0.25)) drop-shadow(0 2px 4px rgba(0,0,0,0.15));
   }

/* Optional: if you have fills, keep them from overpowering the lines */
#tooltip {
  position: fixed;           /* changed from absolute */
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: none;
  z-index: 10000;
  transform: translate(12px, -50%);  /* keeps it offset from cursor, vertically centered */
}
  

/* --- US MAP 3D HOVER --- */
#us-map {
  width: 100%;
  max-width: 950px; /* Limit the maximum size */
  height: auto;
  display: block;
  overflow: visible;
  isolation: isolate; /* helps hovered state appear above neighbors */
  margin: 0 auto; /* Center the map */
  /* Add subtle ambient shadow to the entire map */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}





/* 3D "pop" on hover with enhanced animation */
#us-map path:hover,
#us-map path:focus,
#us-map path:focus-visible {
  transform: translateY(-12px) scale(1.08) !important;
  transform-origin: center !important;
  fill: #6b9bd1 !important;
  stroke: rgba(255,255,255,0.9) !important;
  stroke-width: 3.5 !important;
  opacity: 1 !important;
  /* Enhanced multi-layer shadow for more dramatic 3D effect */
  filter: url(#bevel) 
          drop-shadow(0 12px 24px rgba(0,0,0,0.4))
          drop-shadow(0 6px 12px rgba(0,0,0,0.3))
          drop-shadow(0 3px 6px rgba(0,0,0,0.2)) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  animation: statePulse 0.6s ease-out;
  outline: none !important; /* Remove default focus outline since we have custom styling */
}

@keyframes statePulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.1);
  }
  100% {
    transform: translateY(-12px) scale(1.08);
  }
}

/* Optional: make non-hovered states slightly fade when hovering the map */
#us-map:hover path,
#us-map:focus-within path {
  opacity: 0.85;
}

#us-map path:hover,
#us-map path:focus,
#us-map path:focus-visible {
  opacity: 1 !important;
}

/* Keyboard accessibility */
#us-map path:focus-visible {
  outline: 3px solid #6b9bd1 !important;
  outline-offset: 2px;
}
.map-wrap { overflow: visible; }
svg { overflow: visible; }
/* Make state names smaller */
#us-map text{
  font-size: 9px;          /* try 8–10px */
  font-weight: 600;
 
  pointer-events: none;    /* prevents hover interference */
}

/* Small screens legend tighten */
@media (max-width: 520px){
  .legend{
    justify-content: flex-start;
    gap: 8px 10px;
    padding: 10px;
  }
  .legend-item{
    font-size: 13px;
    padding: 7px 9px;
  }
}

/* =========================================================
   POLICY MODAL: SCROLL + TYPOGRAPHY FIX (PASTE AT BOTTOM)
========================================================= */

/* Make the modal content itself the scroll container (most reliable) */
#policy-modal .modal-content{
  max-height: calc(100vh - 120px);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* If #modal-policy exists, don't make it a competing scroll container */
#policy-modal #modal-policy{
  overflow: visible !important;
  max-height: none !important;
}

/* Reduce big default margins inside modal */
#policy-modal .modal-content h1,
#policy-modal .modal-content h2,
#policy-modal .modal-content h3{
  margin: 10px 0 6px !important;
  line-height: 1.15;
}

#policy-modal .modal-content p{
  margin: 6px 0 10px !important;
  line-height: 1.45;
}

#policy-modal .modal-content strong{
  display: inline-block;
  margin-bottom: 2px;
}

/* Slightly tighten section spacing if you have wrappers */
#policy-modal .modal-content .modal-body,
#policy-modal .modal-content .section,
#policy-modal .modal-content .block{
  margin: 10px 0 !important;
}

/* Keep swipe animations smooth */
@media (max-width: 700px){
  #policy-modal .modal-content{
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y; /* allow vertical scroll */
}
}

#policy-modal .modal-content h3{
  margin: 8px 0 2px !important;
  line-height: 1.15;
}

#policy-modal .modal-content p{
  margin: 0 0 2px !important;
  line-height: 1.25;
}
/* Fix "Our Policy" gap: h3 followed by #modal-policy (div) */
#policy-modal .modal-content h3{
  margin: 10px 0 4px !important;   /* bottom margin smaller */
}

/* If a heading is immediately followed by the policy div, remove extra space */
#policy-modal .modal-content h3 + #modal-policy{
  margin-top: 0 !important;
}

/* The REAL culprit: default list margins inside the policy HTML */
#policy-modal #modal-policy ul,
#policy-modal #modal-policy ol{
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding-left: 1.2rem;            /* keeps indentation consistent */
}

/* Also normalize paragraph spacing inside policy content if any */
#policy-modal #modal-policy p{
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
/* =========================================================
   Policy modal: guaranteed bottom breathing room
   (works whether .modal-content OR #modal-policy is scrolling)
========================================================= */

/* If .modal-content is the scroll container */
#policy-modal .modal-content{
  padding-bottom: 44px !important;
}

/* If #modal-policy is the scroll container */
#policy-modal #modal-policy{
  padding-bottom: 24px !important;
}

/* Absolute guarantee: add a spacer after the policy content */
#policy-modal #modal-policy::after{
  content: "";
  display: block;
  height: 18px;          /* adjust to taste */
}

/* ===== Fix carousel arrows centering on mobile ===== */
@media (max-width: 700px){
  .carousel-arrows-wrapper{
    width: 100%;
    max-width: none;

    margin: 12px auto 0;
    padding: 0 16px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .carousel-nav{
    font-size: 2.2rem;
    padding: 6px 12px;
  }
}
/* ===== Fix carousel arrows centering on mobile ===== */
@media (max-width: 700px){
  .carousel-arrows-wrapper{
    width: 100%;
    max-width: none;
    

    margin: 12px auto 0;
    padding: 0 16px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .carousel-nav{
    font-size: 2.2rem;
    padding: 6px 12px;
  }
}

/* ===== Mobile-only swipe hint under policy carousel ===== */
.carousel-hint{ display: none; }

@media (max-width: 700px){
  .carousel-hint{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    margin: 6px auto 12px;
    padding: 6px 10px;

    font-size: 0.9rem;
    color: rgba(0,0,0,0.65);
    user-select: none;
    -webkit-user-select: none;
  }

  .carousel-hint .hint-arrow{
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: rgba(0,0,0,0.85);
    color: #fff;

    font-size: 18px;
    line-height: 1;
  }

  .carousel-hint .hint-text{
    font-weight: 800;
    letter-spacing: 0.2px;
  }
}
/* ===============================
   Mobile: hide carousel arrows
   Use swipe hint instead
================================ */
@media (max-width: 700px) {
  .carousel-arrows-wrapper,
  .carousel-controls,
  .carousel-nav {
    display: none !important;
  }
}
/* ===============================
   Hamburger hint animation
   - pulse pulse ... pause ... pulse pulse
   - subtle blue ring
================================ */

/* two pulses, pause, two pulses — consistent timing */
@keyframes burgerHint4 {
  /* baseline */
  0%   { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(135, 206, 250, 0); }

  /* pulse 1 */
  8%   { transform: translateY(-1px) scale(1.03); box-shadow: 0 0 0 6px rgba(135, 206, 250, 0.6); }
  16%  { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(135, 206, 250, 0); }

  /* pulse 2 */
  24%  { transform: translateY(-1px) scale(1.03); box-shadow: 0 0 0 6px rgba(135, 206, 250, 0.6); }
  32%  { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(135, 206, 250, 0); }

  /* pause */
  32%, 68% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(135, 206, 250, 0); }

  /* pulse 3 */
  76%  { transform: translateY(-1px) scale(1.03); box-shadow: 0 0 0 6px rgba(135, 206, 250, 0.6); }
  84%  { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(135, 206, 250, 0); }

  /* pulse 4 */
  92%  { transform: translateY(-1px) scale(1.03); box-shadow: 0 0 0 6px rgba(135, 206, 250, 0.6); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(135, 206, 250, 0); }
}

.hamburger-icon.hint-pulse {
  animation: burgerHint4 5.6s ease-in-out 0s 1 both;
  will-change: transform, box-shadow;
}

@media (prefers-reduced-motion: reduce) {
  .hamburger-icon.hint-pulse { animation: none !important; }
}

/* ===== LEADERS SECTION LAYOUT ===== */
.leaders-section {
  max-width: 900px;
  margin: 2rem 0;              /* left-aligned, no auto-centering */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== LEADER CARD ===== */
.leader-card-horizontal {
  position: relative;
  width: 100%;
  max-width: 520px;            /* keeps cards compact */
  padding: 0;
}

/* Remove oversized background effects */
.leader-card-horizontal .card-background {
  display: none;
}

/* Card content layout */
.leader-card-horizontal .card-content {
  display: flex;
  align-items: center;
  gap: 1rem;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 1rem;

  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Leader image */
.leader-card-horizontal img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Name + title */
.leader-info {
  display: flex;
  flex-direction: column;
}

.leader-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.leader-title {
  font-size: 0.85rem;
  color: #555;
}

/* ===== MOBILE FRIENDLY ===== */
@media (max-width: 600px) {
  .leader-card-horizontal {
    max-width: 100%;
  }

  .leader-card-horizontal img {
    width: 56px;
    height: 56px;
  }
}
.state-motto{
  position: absolute;
  bottom: clamp(16px, 3vw, 36px);
  right: clamp(16px, 4vw, 48px);
  text-align: right;
  color: #ffffff;
  pointer-events: none;
  z-index: 2;
}

/* subtle readability assist */
.state-motto::before{
  content: "";
  position: absolute;
  inset: -12px -14px;
  background: transparent;
  border-radius: 8px;
  z-index: -1;
}

.state-name{
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.95;

  text-shadow:
    -0.5px -0.5px 0 rgba(0,0,0,0.8),
     0.5px -0.5px 0 rgba(0,0,0,0.8),
    -0.5px  0.5px 0 rgba(0,0,0,0.8),
     0.5px  0.5px 0 rgba(0,0,0,0.8);
}

.motto-text{
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;

  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.9),
     1px -1px 0 rgba(0,0,0,0.9),
    -1px  1px 0 rgba(0,0,0,0.9),
     1px  1px 0 rgba(0,0,0,0.9),
     0 6px 24px rgba(0,0,0,0.45);
}


/* =========================================================
   Contact Form Styles
========================================================= */
.contact-form {
  max-width: 600px;
  margin: 30px auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.required {
  color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 163, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 95, 163, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 0 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}


/* Checkbox group styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
  color: #555;
  transition: color 0.2s ease;
}

.checkbox-label:hover {
  color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* =========================================================
   Print Styles
========================================================= */
@media print {
  /* Hide non-essential elements */
  .header,
  .hamburger-menu,
  .social-share-container,
  .social-icons,
  #back-to-top,
  #searchModal,
  .search-modal,
  .breadcrumb,
  .cookie-banner,
  .btn {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  main {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  /* Show URLs after links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
  
  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
  
  /* Ensure content fits */
  .policy-content,
  .blog-article {
    max-width: 100%;
  }
}


/* =========================================================
   Dark Mode Toggle
========================================================= */
.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(#fff, #fbfdff);
  border: 1.5px solid #d6e5f4;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.12);
  margin: 0;
  vertical-align: middle;
  line-height: 1;
}

.dark-mode-toggle:hover {
  background: #f6fbff;
  transform: translateY(-2px);
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.18);
}

/* Dark mode styles */
body.dark-mode {
  background: #1a1a1a;
  color: #e0e0e0;
}

/* Dark mode logo swap - same size as light mode */
body.dark-mode #header-logo {
  /* Slightly larger than light mode logo */
  height: 130px !important;
  width: auto !important;
  max-height: 130px !important;
  min-height: 130px !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
  margin-left: 0 !important;
}

body.dark-mode .header {
  background: rgba(30, 30, 30, 0.98);
  border-bottom: 1px solid #333;
}

body.dark-mode .breadcrumb {
  background: #2a2a2a;
  border-bottom: 1px solid #444;
  color: #ccc;
}

body.dark-mode .breadcrumb a {
  color: #6b9bd1;
}

body.dark-mode .breadcrumb-current {
  color: #e0e0e0;
}

body.dark-mode .btn.ghost {
  background: linear-gradient(#2a2a2a, #333);
  border-color: #444;
  color: #6b9bd1;
}

body.dark-mode .btn.ghost:hover {
  background: linear-gradient(#333, #3a3a3a);
  border-color: #555;
}

body.dark-mode .hamburger-icon {
  background: linear-gradient(#2a2a2a, #333);
  border-color: #444;
  color: #6b9bd1;
}

body.dark-mode .hamburger-dropdown {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode .hamburger-dropdown a {
  color: #ccc;
  border-bottom-color: #444;
}

body.dark-mode .hamburger-dropdown a:hover {
  background: #333;
  color: #6b9bd1;
}

body.dark-mode .social-icon {
  background: linear-gradient(#2a2a2a, #333);
  border-color: #444;
  color: #6b9bd1;
}

body.dark-mode .social-icon:hover {
  background: linear-gradient(#333, #3a3a3a);
}

body.dark-mode .dark-mode-toggle {
  background: linear-gradient(#2a2a2a, #333);
  border-color: #444;
  color: #ffd700;
}

body.dark-mode main {
  background: #1a1a1a;
}

body.dark-mode .policy-content,
body.dark-mode .blog-article {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .policy-content p,
body.dark-mode .blog-article p,
body.dark-mode main p {
  color: #e8e8e8;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f5f5f5;
}

body.dark-mode strong {
  color: #ffffff;
}

body.dark-mode li {
  color: #e8e8e8;
}

body.dark-mode a {
  color: #6b9bd1;
}

body.dark-mode a:hover {
  color: #8bb4e0;
}


/* =========================================================
   Related Content (Blog Posts)
========================================================= */
.related-content {
  margin: 40px 0;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
}

body.dark-mode .related-content {
  background: #2a2a2a;
}

.related-content h3 {
  margin: 0 0 20px 0;
  color: var(--primary-dark);
}

body.dark-mode .related-content h3 {
  color: #6b9bd1;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.related-card {
  padding: 16px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

body.dark-mode .related-card {
  background: #2a2a2a;
  border-color: #444;
  color: #e8e8e8;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

body.dark-mode .related-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.related-card h4 {
  margin: 0 0 8px 0;
  color: var(--primary);
}

body.dark-mode .related-card h4 {
  color: #8bb4e0;
}

.related-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

body.dark-mode .related-card p {
  color: #d0d0d0;
}

/* Dark mode for home page vision statement */
body.dark-mode .vision-statement {
  background: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .vision-statement h2 {
  color: #f0f0f0;
}

body.dark-mode .vision-statement p {
  color: #d0d0d0;
}

body.dark-mode .content-wrapper {
  background: #2a2a2a;
}

/* Dark mode for hero banner */
body.dark-mode .hero-banner {
  /* Keep the background image, just add a dark overlay */
  position: relative;
}

body.dark-mode .hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay to make it fit dark mode */
  pointer-events: none;
  z-index: 1;
}

body.dark-mode .hero-banner * {
  position: relative;
  z-index: 2;
}

body.dark-mode .hero-text {
  color: #e0e0e0;
}

/* Dark mode for cookie banner */
body.dark-mode .cookie-banner {
  background: rgba(42, 42, 42, 0.96);
  border: 1px solid #444;
  color: #e0e0e0;
}

body.dark-mode .cookie-banner p {
  color: #e0e0e0;
}

body.dark-mode .cookie-banner a {
  color: #6b9bd1;
}

body.dark-mode .cookie-btn-accept {
  background: #6b9bd1;
  color: #fff;
}

body.dark-mode .cookie-btn-accept:hover {
  background: #5a8bc0;
}

body.dark-mode .cookie-btn-reject {
  background: #3a3a3a;
  color: #e0e0e0;
  border: 1px solid #555 !important;
}

body.dark-mode .cookie-btn-reject:hover {
  background: #4a4a4a;
}

/* Dark mode for policy layout and content areas */
body.dark-mode .policy-layout {
  background: #1a1a1a;
  color: #e8e8e8;
}

body.dark-mode .policy-layout h1,
body.dark-mode .policy-layout h2,
body.dark-mode .policy-layout h3 {
  color: #f5f5f5;
}

body.dark-mode .policy-layout p,
body.dark-mode .policy-layout li {
  color: #e8e8e8;
}

/* Dark mode for any content sections */
body.dark-mode section {
  color: #e8e8e8;
}

body.dark-mode section h1,
body.dark-mode section h2,
body.dark-mode section h3 {
  color: #f5f5f5;
}

/* Dark mode for all card types */
body.dark-mode .blog-card {
  background: #2a2a2a;
  border: 1px solid #444;
}

body.dark-mode .blog-card a {
  color: #e8e8e8;
}

body.dark-mode .blog-card h3,
body.dark-mode .blog-card h4 {
  color: #f5f5f5;
}

body.dark-mode .blog-card p {
  color: #d0d0d0;
}

body.dark-mode .policy-card {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #e8e8e8;
}

body.dark-mode .policy-card h3 {
  color: #f5f5f5;
}

body.dark-mode .policy-card p {
  color: #d0d0d0;
}

body.dark-mode .policy-card:hover {
  box-shadow: 0 0 20px rgba(107, 155, 209, 0.4);
}

body.dark-mode .leader-card,
body.dark-mode .leader-card-horizontal {
  background: #2a2a2a;
  border: 1px solid #444;
}

body.dark-mode .leader-card-horizontal .card-content {
  background: #2a2a2a !important;
  border: 1px solid #444 !important;
}

body.dark-mode .leader-card h3,
body.dark-mode .leader-card h4,
body.dark-mode .leader-card-horizontal h3,
body.dark-mode .leader-card-horizontal h4 {
  color: #f5f5f5;
}

body.dark-mode .leader-card p,
body.dark-mode .leader-card-horizontal p {
  color: #d0d0d0;
}

body.dark-mode .leader-name {
  color: #f5f5f5;
}

body.dark-mode .leader-title {
  color: #b0b0b0;
}

/* Dark mode for contact page */
body.dark-mode .contact-page {
  background: #1a1a1a;
  color: #e8e8e8;
}

body.dark-mode .contact-intro {
  color: #e8e8e8;
}

body.dark-mode .contact-card {
  background: #2a2a2a;
  color: #e8e8e8;
}

body.dark-mode .contact-card h2 {
  color: #f5f5f5;
}

body.dark-mode .contact-card p {
  color: #e8e8e8;
}

body.dark-mode .contact-card a {
  color: #6b9bd1;
}

/* Force dark mode on all form inputs and textareas */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #2a2a2a !important;
  border-color: #555 !important;
  color: #e8e8e8 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #888 !important;
}

/* Dark mode for search modal */
body.dark-mode .search-modal {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .search-modal-content {
  background: #2a2a2a;
  color: #e8e8e8;
}

body.dark-mode .search-modal-header h2 {
  color: #f5f5f5;
}

body.dark-mode .search-close {
  color: #e8e8e8;
  background: #444;
}

body.dark-mode .search-close:hover {
  background: #555;
  color: #fff;
}

body.dark-mode .search-input {
  background: #333;
  border-color: #555;
  color: #e8e8e8;
}

body.dark-mode .search-input:focus {
  border-color: #6b9bd1;
  background: #3a3a3a;
}

body.dark-mode .search-submit {
  background: #6b9bd1;
  color: #fff;
}

body.dark-mode .search-submit:hover {
  background: #5a8bc0;
}

body.dark-mode .search-results {
  background: #2a2a2a;
  color: #e8e8e8;
}

body.dark-mode .search-hint,
body.dark-mode .search-no-results,
body.dark-mode .search-count {
  color: #b0b0b0;
}

body.dark-mode .search-result-item {
  background: #333;
  border-color: #444;
}

body.dark-mode .search-result-item:hover {
  background: #3a3a3a;
  border-color: #6b9bd1;
}

body.dark-mode .search-result-item h3 {
  color: #8bb4e0;
}

body.dark-mode .search-result-url {
  color: #888;
}

/* Dark mode for carousel navigation buttons */
body.dark-mode .carousel-controls .carousel-nav {
  color: #e8e8e8;
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid #555;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .carousel-controls .carousel-nav:hover {
  background: rgba(60, 60, 60, 0.9);
  color: #6b9bd1;
  border-color: #6b9bd1;
}

body.dark-mode .carousel-nav {
  color: #e8e8e8 !important;
}

body.dark-mode .carousel-nav:hover {
  color: #6b9bd1 !important;
  background: rgba(60, 60, 60, 0.3);
  border-radius: 8px;
}

body.dark-mode .carousel-arrows-wrapper .carousel-nav {
  color: #e8e8e8;
}

body.dark-mode .carousel-hint .hint-arrow {
  color: #e8e8e8;
}

/* Dark mode for forms */
body.dark-mode .form-group label {
  color: #f5f5f5;
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #2a2a2a;
  border-color: #555;
  color: #e8e8e8;
}

body.dark-mode textarea {
  background: #2a2a2a !important;
  border-color: #555 !important;
  color: #e8e8e8 !important;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="tel"],
body.dark-mode select {
  background: #2a2a2a !important;
  border-color: #555 !important;
  color: #e8e8e8 !important;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
  color: #888;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #6b9bd1;
  background: #333;
}

body.dark-mode .required {
  color: #ff6b6b;
}

body.dark-mode .form-status {
  color: #e8e8e8;
}

body.dark-mode .form-status.success {
  background: #2d5016;
  color: #90ee90;
  border-color: #4a7c2c;
}

body.dark-mode .form-status.error {
  background: #5c1a1a;
  color: #ff6b6b;
  border-color: #8b2c2c;
}

/* Dark mode for modals */
body.dark-mode .modal {
  background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .modal .modal-content,
body.dark-mode .modal-content {
  background: #2a2a2a;
  color: #e8e8e8;
}

body.dark-mode .modal h1,
body.dark-mode .modal h2,
body.dark-mode .modal h3,
body.dark-mode .modal h4 {
  color: #f5f5f5;
}

body.dark-mode .modal p,
body.dark-mode .modal li {
  color: #e8e8e8;
}

body.dark-mode .modal strong {
  color: #ffffff;
}

body.dark-mode .modal .close,
body.dark-mode .modal .modal-close {
  background: #444;
  color: #e8e8e8;
}

body.dark-mode .modal .close:hover,
body.dark-mode .modal .modal-close:hover {
  background: #555;
  color: #fff;
}

body.dark-mode #policy-modal .modal-content,
body.dark-mode #modal-policy {
  background: #2a2a2a;
  color: #e8e8e8;
}

body.dark-mode .leader-modal .modal-content {
  background: #2a2a2a;
}

/* Ballot Access Section Styles */
.ballot-access-section {
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.ballot-access-section h2 {
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.ballot-access-section > p {
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.requirement-card {
  background-color: #ffffff;
  border-left: 4px solid #0066cc;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.requirement-card h3 {
  color: #0066cc;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.requirement-card p {
  color: #333;
  margin: 0;
  line-height: 1.6;
}

.source-attribution {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.source-attribution a {
  color: #0066cc;
  text-decoration: none;
}

.source-attribution a:hover {
  text-decoration: underline;
}

/* Dark Mode Styles for Ballot Access Section */
body.dark-mode .ballot-access-section {
  background-color: #1a1a1a !important;
}

body.dark-mode .ballot-access-section h2 {
  color: #f5f5f5 !important;
}

body.dark-mode .ballot-access-section > p {
  color: #e8e8e8 !important;
}

body.dark-mode .requirement-card {
  background-color: #2a2a2a !important;
  border-left-color: #4d94ff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .requirement-card h3 {
  color: #4d94ff !important;
}

body.dark-mode .requirement-card p {
  color: #e8e8e8 !important;
}

body.dark-mode .source-attribution {
  border-top-color: #444 !important;
  color: #aaa !important;
}

body.dark-mode .source-attribution a {
  color: #4d94ff !important;
}

/* Dark Mode for State Pages - Policy Layout */
body.dark-mode .policy-layout {
  background-color: #1a1a1a !important;
}

body.dark-mode .policy-layout h1 {
  color: #f5f5f5 !important;
}

body.dark-mode .policy-layout p {
  color: #e8e8e8 !important;
}

body.dark-mode .policy-layout .state-motto {
  background-color: transparent !important;
}

body.dark-mode .policy-layout .state-name {
  color: #ffffff !important;
}

body.dark-mode .policy-layout .motto-text {
  color: #e8e8e8 !important;
}

/* Hero banner positioning in policy layout (state pages) */
.policy-layout .hero-banner {
  position: relative;
  margin-top: -50px;
  margin-bottom: 2rem;
}

.policy-layout .hero-banner .state-motto {
  position: absolute !important;
  bottom: 20px !important;
  right: 30px !important;
  top: auto !important;
  z-index: 10;
}

/* State motto positioning for hero banners outside policy-layout */
.hero-banner .state-motto {
  position: absolute !important;
  bottom: 20px !important;
  right: 30px !important;
  top: auto !important;
  z-index: 10;
}

/* Dark mode for legend */
body.dark-mode .legend {
  background: rgba(42, 42, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .legend-item {
  background: rgba(26, 26, 26, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e8e8e8 !important;
}

body.dark-mode .legend-color {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Mobile responsive header buttons */
@media (max-width: 768px) {
  .header-right {
    gap: 4px !important;
    padding-right: 6px !important;
  }
  
  .header-right .donate-button,
  .header-right .join-button,
  .header-right .login-button,
  .header-right .search-btn {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    height: auto !important;
    line-height: 1.1 !important;
    border-radius: 10px !important;
  }
  
  .header-right .donate-button {
    margin: 3px !important;
  }
}

@media (max-width: 520px) {
  .header-right {
    gap: 3px !important;
    padding-right: 4px !important;
  }
  
  .header-right .donate-button,
  .header-right .join-button,
  .header-right .login-button,
  .header-right .search-btn {
    padding: 3px 6px !important;
    font-size: 0.55rem !important;
    height: auto !important;
    line-height: 1.1 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
  }
  
  .header-right .donate-button {
    margin: 2px !important;
  }
  
  .header-right .search-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (max-width: 420px) {
  .header-right {
    gap: 2px !important;
    padding-right: 2px !important;
  }
  
  .header-right .donate-button,
  .header-right .join-button,
  .header-right .login-button,
  .header-right .search-btn {
    padding: 2px 5px !important;
    font-size: 0.5rem !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 6px !important;
  }
  
  .header-right .donate-button {
    margin: 1px !important;
  }
  
  .header-right .search-btn svg {
    width: 12px !important;
    height: 12px !important;
  }
}

@media (max-width: 360px) {
  .header-right {
    gap: 1px !important;
  }
  
  .header-right .donate-button,
  .header-right .join-button,
  .header-right .login-button,
  .header-right .search-btn {
    padding: 2px 4px !important;
    font-size: 0.45rem !important;
    height: auto !important;
    line-height: 1 !important;
  }
}

/* Utility bar - appears below hero image on all screen sizes */
.utility-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.utility-bar .social-icons {
  display: flex;
  gap: 8px;
}

.utility-bar .search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.utility-bar .dark-mode-toggle {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.utility-bar .dark-mode-toggle:hover {
  background: #f9fafb;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.utility-bar .social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d1d5db;
  transition: all 0.2s;
  color: var(--primary);
}

.utility-bar .social-icon:hover {
  background: #f9fafb;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode for utility bar */
body.dark-mode .utility-bar {
  background: rgba(26, 26, 26, 0.95);
  border-bottom-color: #444;
}

body.dark-mode .utility-bar .search-btn,
body.dark-mode .utility-bar .dark-mode-toggle,
body.dark-mode .utility-bar .social-icon {
  background: #2a2a2a;
  border-color: #444;
  color: #e8e8e8;
}

body.dark-mode .utility-bar .search-btn:hover,
body.dark-mode .utility-bar .dark-mode-toggle:hover,
body.dark-mode .utility-bar .social-icon:hover {
  border-color: #4d94ff;
}

/* Mobile adjustments */
@media (max-width: 520px) {
  .utility-bar {
    padding: 12px 15px;
    gap: 8px;
  }
  
  .utility-bar .search-btn {
    font-size: 12px;
  }
  
  .utility-bar .dark-mode-toggle,
  .utility-bar .social-icon {
    width: 32px;
    height: 32px;
  }
}

.hero-banner-ak {
  
  background-image: url('/images/states/ak.webp');
   position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* =========================================================
   State-specific Hero Banners
========================================================= */
.hero-banner-ak {background-image: url('/images/states/ak.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-al {background-image: url('/images/states/al.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ar {background-image: url('/images/states/ar.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-az {background-image: url('/images/states/az.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ca {background-image: url('/images/states/ca.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-co {background-image: url('/images/states/co.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ct {background-image: url('/images/states/ct.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-dc {background-image: url('/images/states/dc.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-de {background-image: url('/images/states/de.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-fl {background-image: url('/images/states/fl.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ga {background-image: url('/images/states/ga.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-hi {background-image: url('/images/states/hi.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ia {background-image: url('/images/states/ia.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-id {background-image: url('/images/states/id.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-il {background-image: url('/images/states/il.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-in {background-image: url('/images/states/in.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ks {background-image: url('/images/states/ks.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ky {background-image: url('/images/states/ky.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-la {background-image: url('/images/states/la.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ma {background-image: url('/images/states/ma.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-md {background-image: url('/images/states/md.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-me {background-image: url('/images/states/me.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-mi {background-image: url('/images/states/mi.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-mn {background-image: url('/images/states/mn.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-mo {background-image: url('/images/states/mo.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ms {background-image: url('/images/states/ms.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-mt {background-image: url('/images/states/mt.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-nc {background-image: url('/images/states/nc.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-nd {background-image: url('/images/states/nd.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ne {background-image: url('/images/states/ne.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-nh {background-image: url('/images/states/nh.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-nj {background-image: url('/images/states/nj.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-nm {background-image: url('/images/states/nm.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-nv {background-image: url('/images/states/nv.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center 30%;background-repeat: no-repeat;}
.hero-banner-ny {background-image: url('/images/states/ny.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-oh {background-image: url('/images/states/oh.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ok {background-image: url('/images/states/ok.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-or {background-image: url('/images/states/or.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-pa {background-image: url('/images/states/pa.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ri {background-image: url('/images/states/ri.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-sc {background-image: url('/images/states/sc.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-sd {background-image: url('/images/states/sd.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-tn {background-image: url('/images/states/tn.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-tx {background-image: url('/images/states/tx.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-ut {background-image: url('/images/states/ut.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-va {background-image: url('/images/states/va.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-vt {background-image: url('/images/states/vt.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-wa {background-image: url('/images/states/wa.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-wi {background-image: url('/images/states/wi.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-wv {background-image: url('/images/states/wv.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
.hero-banner-wy {background-image: url('/images/states/wy.webp');position: relative;left: 50%;right: 50%;margin-left: -50vw;margin-right: -50vw;width: 100vw;height: 50vh;background-size: cover;background-position: center;background-repeat: no-repeat;}
