/* ============================================================
   NELSON COUNTY DEMOCRATIC PARTY — Main Stylesheet
   Color scheme: Navy blue primary, white/cream background,
   red used sparingly as accent (less red than navy/white).
   Official Democratic Party flag: Blue (#00AEF3) + White.
   ============================================================ */

:root {
  --navy: #0a2342;
  --navy-light: #1a3a5c;
  --navy-deep: #061a33;
  --blue: #1c5d99;
  --blue-bright: #00aeef;
  --blue-dem: #00aef3;
  --red: #c8102e;
  --red-light: #e63946;
  --red-dark: #9e0b20;
  --cream: #faf8f3;
  --cream-dark: #f0ebe0;
  --white: #ffffff;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: rgba(10,35,66,.12);
  --line-light: rgba(10,35,66,.06);
  --gold: #d4af37;
  --shadow-sm: 0 2px 8px rgba(10,35,66,.08);
  --shadow-md: 0 8px 24px rgba(10,35,66,.12);
  --shadow-lg: 0 20px 60px rgba(10,35,66,.18);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(10,35,66,.3);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10,35,66,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(10,35,66,.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.navbar-brand:hover { color: var(--white); }

.navbar-brand .donkey-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar-brand-text small {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dem);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.navbar-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  font-weight: 700 !important;
}

.navbar-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-blue { background: var(--blue-dem); color: var(--white); }
.btn-blue:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: var(--white); border-color: var(--white); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, rgba(6,26,51,.92) 0%, rgba(10,35,66,.88) 50%, rgba(26,58,92,.85) 100%), url('../images/old_bardstown_village.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(0,174,239,.15) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(200,16,46,.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,.85);
  max-width: 700px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-flags {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, rgba(10,35,66,.92) 0%, rgba(26,58,92,.88) 100%), url('../images/bardstown_whiskey_museum-commons.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  background: var(--cream);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumbs li::after { content: " ›"; color: var(--muted-light); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--blue); font-weight: 600; }
.breadcrumbs li:last-child { color: var(--navy); font-weight: 600; }

/* ============================================================
   KENTUCKY MAP + ANIMATED FLAG
   ============================================================ */
.ky-map-section {
  background: var(--cream);
  padding: 70px 0;
  text-align: center;
}

.ky-map-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.ky-map-section .map-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.ky-map-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.ky-map-svg {
  width: 100%;
  height: auto;
}

.ky-map-svg .county {
  fill: #e8eef5;
  stroke: #c5d3e0;
  stroke-width: 0.5;
  transition: fill var(--transition);
}

.ky-map-svg .county.nelson {
  fill: var(--blue-dem);
  stroke: var(--navy);
  stroke-width: 1.5;
}

/* The animated waving flag button */
.flag-button {
  position: absolute;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  z-index: 10;
  animation: flagPulse 2.5s ease-in-out infinite;
}

.flag-button:hover {
  animation: flagPulseHover 1.5s ease-in-out infinite;
}

.flag-button:focus { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 6px; }

/* The flag pole */
.flag-pole {
  position: absolute;
  width: 3px;
  height: 70px;
  background: linear-gradient(to right, #8b7355, #c9a96e, #8b7355);
  border-radius: 2px;
  left: 0;
  top: 0;
  box-shadow: 1px 0 2px rgba(0,0,0,.3);
}

/* The flag itself — CSS animated waving */
.flag-cloth {
  position: absolute;
  left: 3px;
  top: 0;
  width: 80px;
  height: 50px;
  transform-origin: left center;
  background: linear-gradient(
    to right,
    #b22234 0%, #b22234 18%,
    #ffffff 18%, #ffffff 36%,
    #b22234 36%, #b22234 54%,
    #ffffff 54%, #ffffff 72%,
    #b22234 72%, #b22234 90%,
    #ffffff 90%, #ffffff 100%
  );
  animation: flagWave 2s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  border-radius: 0 2px 2px 0;
}

/* Blue union section (canton) */
.flag-cloth::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 27px;
  background: #3c3b6e;
}

/* Stars on the union */
.flag-cloth::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 27px;
  background-image:
    radial-gradient(circle, #ffffff 1.2px, transparent 1.5px),
    radial-gradient(circle, #ffffff 1.2px, transparent 1.5px);
  background-size: 8px 7px, 8px 7px;
  background-position: 4px 3px, 8px 6px;
  opacity: 0.9;
}

/* Flag label below */
.flag-label {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: labelBounce 2s ease-in-out infinite;
}

.flag-label::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--navy);
}

@keyframes flagWave {
  0% { transform: perspective(100px) rotateY(0deg) skewY(0deg); }
  25% { transform: perspective(100px) rotateY(-12deg) skewY(-2deg); }
  50% { transform: perspective(100px) rotateY(0deg) skewY(0deg); }
  75% { transform: perspective(100px) rotateY(12deg) skewY(2deg); }
  100% { transform: perspective(100px) rotateY(0deg) skewY(0deg); }
}

@keyframes flagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes flagPulseHover {
  0%, 100% { transform: scale(1.12); }
  50% { transform: scale(1.18); }
}

@keyframes labelBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================================
   MODAL (for county bio, candidate bios, exec bios)
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,26,51,.7);
  z-index: 5000;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--red); color: var(--white); }

.modal-content h2 { margin-bottom: 16px; padding-right: 40px; }
.modal-content .modal-subtitle { color: var(--muted); font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.modal-content p { margin-bottom: 16px; }
.modal-content .modal-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.modal-headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* ============================================================
   CHATBOT — "Ask About Our Candidates"
   ============================================================ */
.chatbot-section {
  background: var(--white);
  padding: 70px 0;
}

.chatbot-section .section-title {
  text-align: center;
  margin-bottom: 12px;
}

.chatbot-section .section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.chatbot-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.chatbot-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chatbot-avatar {
  width: 48px;
  height: 48px;
  background: var(--blue-dem);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.chatbot-header-info h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.chatbot-header-info .status {
  font-size: 0.8rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-header-info .status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
}

.chatbot-messages {
  height: 380px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: msgFade 0.3s ease;
}

@keyframes msgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.chat-msg.bot {
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.chat-msg.user {
  background: var(--blue-dem);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-msg.bot a { color: var(--blue); font-weight: 600; }

.chat-typing {
  display: none;
  align-self: flex-start;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-typing span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--muted-light);
  border-radius: 50%;
  margin: 0 2px;
  animation: typingDot 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-6px); }
}

.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border var(--transition);
}

.chatbot-input:focus { border-color: var(--blue-dem); }

.chatbot-send {
  background: var(--blue-dem);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition);
  flex-shrink: 0;
}

.chatbot-send:hover { background: var(--blue); }

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
  background: var(--white);
}

.chat-suggestion-btn {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.chat-suggestion-btn:hover {
  background: var(--blue-dem);
  color: var(--white);
  border-color: var(--blue-dem);
}

/* ============================================================
   CHAIR'S MESSAGE
   ============================================================ */
.chair-message {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0;
}

.chair-message-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.chair-message h2 { color: var(--white); text-align: center; margin-bottom: 8px; }
.chair-message .chair-subtitle { text-align: center; color: rgba(255,255,255,.6); margin-bottom: 36px; }

.chair-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
}

.chair-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--blue-dem);
  flex-shrink: 0;
}

.chair-text { flex: 1; }
.chair-text .chair-name { font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 700; color: var(--white); }
.chair-text .chair-title { color: var(--blue-dem); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.chair-text p { color: rgba(255,255,255,.85); margin-bottom: 14px; font-size: 1.05rem; }

/* ============================================================
   EVENTS + CALENDAR
   ============================================================ */
.events-section { background: var(--cream); padding: 70px 0; }

.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 16px;
}

.event-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.event-card .event-time { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; font-weight: 600; }
.event-card p { color: var(--ink); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }

.event-card .event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--blue);
  margin-bottom: 16px;
}

/* ============================================================
   DONATION SECTION
   ============================================================ */
.donate-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 70px 0;
}

.donate-section h2 { color: var(--white); }

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 24px;
}

.donate-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}

.donate-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }

.donate-card .donate-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.donate-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; font-family: "Inter", sans-serif; }
.donate-card p { color: rgba(255,255,255,.75); font-size: 0.9rem; margin-bottom: 18px; }

.donate-qr {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: var(--white);
  padding: 8px;
}

.donate-assurance {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0 24px;
  text-align: center;
}

.donate-assurance p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  background: rgba(0,174,239,.15);
  border: 1px solid rgba(0,174,239,.3);
  border-radius: var(--radius);
  padding: 20px;
}

/* ============================================================
   LEADERSHIP PAGE
   ============================================================ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-light);
  transition: all var(--transition);
  text-align: center;
}

.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.leader-photo-wrapper {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.9);
  border: 3px solid rgba(255,255,255,.3);
}

.leader-card-body { padding: 24px; }

.leader-card-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.leader-card-body .leader-role {
  color: var(--blue-dem);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.leader-card-body .leader-bio-preview {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.leader-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.leader-card-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

/* Non-exec members list */
.non-exec-section { background: var(--cream); padding: 50px 0; }

.non-exec-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.non-exec-item {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--line-light);
  font-size: 1rem;
  transition: all var(--transition);
}

.non-exec-item:hover { border-color: var(--blue-dem); color: var(--blue); }

/* ============================================================
   CANDIDATES PAGE
   ============================================================ */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.candidate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-light);
  transition: all var(--transition);
}

.candidate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.candidate-card.featured {
  border: 3px solid var(--blue-dem);
  position: relative;
}

.candidate-card.featured::before {
  content: "★ Featured Candidate";
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}

.candidate-photo-wrapper {
  height: 240px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.candidate-card-body { padding: 24px; }
.candidate-card-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.candidate-card-body .candidate-race {
  color: var(--blue-dem);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.candidate-card-body .candidate-bio-preview { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.candidate-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.candidate-card-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

/* ============================================================
   PLATFORM PAGE — Expandable Category Buttons
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.platform-button {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.platform-button:hover { border-color: var(--blue-dem); box-shadow: var(--shadow-md); }
.platform-button.expanded { border-color: var(--blue-dem); box-shadow: var(--shadow-md); }

.platform-button-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.platform-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.platform-button-header h3 { flex: 1; font-size: 1.25rem; margin: 0; }

.platform-chevron {
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.platform-button.expanded .platform-chevron { transform: rotate(180deg); }

.platform-button-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.platform-button.expanded .platform-button-content { max-height: 600px; }

.platform-button-content-inner { padding: 0 24px 24px; color: var(--ink); font-size: 1rem; }
.platform-button-content-inner p { margin-bottom: 12px; }
.platform-button-content-inner ul { padding-left: 20px; margin-bottom: 12px; }
.platform-button-content-inner li { margin-bottom: 6px; }

/* ============================================================
   GET INVOLVED PAGE
   ============================================================ */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.involve-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-light);
  transition: all var(--transition);
  text-align: center;
}

.involve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.involve-card .involve-icon { font-size: 3rem; margin-bottom: 16px; }
.involve-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.involve-card p { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }

.contact-info {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 700px;
  margin: 50px auto 0;
}

.contact-info h3 { text-align: center; margin-bottom: 24px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .ci-icon { font-size: 1.3rem; width: 24px; text-align: center; }
.contact-info-item .ci-label { font-weight: 700; color: var(--navy); min-width: 90px; }
.contact-info-item .ci-value { color: var(--ink); }

/* ============================================================
   FAQ PAGE — Accordion
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.active { border-color: var(--blue-dem); box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--blue-dem);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 800px; }

.faq-answer-inner { padding: 0 24px 24px; color: var(--ink); font-size: 1rem; }
.faq-answer-inner p { margin-bottom: 12px; }

.faq-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.faq-tab {
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.faq-tab:hover { border-color: var(--blue-dem); }
.faq-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ============================================================
   ABOUT NELSON COUNTY PAGE
   ============================================================ */
.about-content { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.about-content h2 { font-size: 1.6rem; margin: 32px 0 16px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { margin-bottom: 18px; font-size: 1.05rem; }
.about-content .pull-quote {
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
}

.stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px 0;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  min-width: 160px;
  flex: 1;
  max-width: 220px;
}

.stat-box .stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-dem);
  display: block;
}

.stat-box .stat-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.8);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-col h4 { color: var(--white); font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--blue-dem); }

.footer-col .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-col .footer-brand .donkey-icon { width: 32px; height: 32px; }
.footer-col .footer-brand span { color: var(--white); font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.1rem; }

.footer-col p { font-size: 0.88rem; color: rgba(255,255,255,.6); }

.footer-bottom {
  text-align: center;
  padding: 20px 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer-social a:hover { background: var(--blue-dem); color: var(--white); }

/* ============================================================
   UTILITY & RESPONSIVE
   ============================================================ */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.divider { height: 1px; background: var(--line); margin: 50px 0; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-blue { background: var(--blue-dem); color: var(--white); }
.badge-red { background: var(--red); color: var(--white); }
.badge-navy { background: var(--navy); color: var(--white); }

@media (max-width: 900px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 14px; border-radius: 8px; width: 100%; }
  .navbar-toggle { display: block; }
  .chair-card { flex-direction: column; text-align: center; }
  .chair-photo { margin: 0 auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 50px 0; }
  .container, .events-grid, .leadership-grid, .candidates-grid, .platform-grid, .involve-grid, .donate-grid, .footer-grid { padding-left: 16px; padding-right: 16px; }
  .modal-content { padding: 24px; }
  .hero { padding: 50px 0 40px; }
  .flag-cloth { width: 64px; height: 42px; }
  .flag-cloth::before, .flag-cloth::after { width: 26px; height: 23px; }
  .stats-row { gap: 12px; }
  .stat-box { min-width: 130px; padding: 20px; }
  .image-grid-2 { grid-template-columns: 1fr; }
  .bio-inline-image { height: 240px; }
}

/* Image styles for content pages */
.bio-inline-image {
  display: block;
  width: 100%;
  max-width: 800px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 24px auto 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.image-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.image-grid-2 img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.image-grid-2 img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Kentucky map section enhancement */
.ky-map-svg {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
}

/* Candidate and leadership photo styles */
.person-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--blue-dem);
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.person-photo-large {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--blue-dem);
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

