:root {
  --primary: #12335c;
  --primary-dark: #081d34;
  --red: #c8102e;
  --red-dark: #9c0d24;
  --blue: #1a4d8f;
  --yellow: #f2b705;
  --bg-alt: #f7f5ef;
  --text: #222;
  --border-light: #e2ddd0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: var(--text); line-height: 1.6; }

/* Header / Hero */
.hero {
  background: linear-gradient(135deg, rgba(18,51,92,0.88), rgba(8,29,52,0.92)), url("assets/731788057_10175272441825434_28009024998517114_n.jpeg");
  background-size: cover;
  background-position: center;
  color: white;
  border-bottom: 4px solid var(--yellow);
}
.flag-stripe {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, var(--red) 0 34%, var(--yellow) 34% 66%, var(--blue) 66% 100%);
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-bottom: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap; gap: 16px; }
.nav-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-social { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-social a { color: white; background: rgba(255,255,255,0.08); border: 1px solid var(--yellow); padding: 6px 12px; border-radius: 20px; text-decoration: none; font-size: 0.8rem; font-weight: 600; transition: background 0.15s ease, color 0.15s ease; }
.nav-social a:hover { background: var(--yellow); color: var(--primary-dark); }
.logo { font-size: 1.15rem; font-weight: bold; letter-spacing: 0.3px; white-space: nowrap; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: white; text-decoration: none; }
.nav-links a:hover { color: var(--yellow); }
.btn-donate { background: var(--red); color: white; padding: 10px 22px; border-radius: 6px; text-decoration: none; border: 2px solid var(--yellow); font-weight: 600; }
.btn-donate:hover { background: var(--red-dark); }
.hero-content { text-align: center; padding: 100px 20px 130px; }
.hero-content h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 90px; opacity: 0.95; }
.btn-primary { background: var(--red); color: white; padding: 14px 32px; border-radius: 6px; text-decoration: none; font-weight: bold; display: inline-block; border: 2px solid var(--yellow); transition: background 0.2s ease; }
.btn-primary:hover { background: var(--red-dark); }

/* Sections */
.section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }
.alt-bg { background: var(--bg-alt); max-width: 100%; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.alt-bg > * { max-width: 1100px; margin: 0 auto; }
h2 { font-size: 2rem; margin-bottom: 30px; color: var(--primary); position: relative; padding-bottom: 14px; }
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--blue));
  border-radius: 2px;
}

/* About */
.about-content { display: flex; gap: 40px; align-items: flex-start; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; font-weight: 600; color: var(--primary); }
.candidate-photo { width: 260px; height: 260px; object-fit: cover; border-radius: 12px; border: 4px solid var(--blue); box-shadow: 0 0 0 4px white, 0 0 0 8px var(--yellow); flex-shrink: 0; }

/* Platform / News cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.platform-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.platform-grid .platform-card { flex: 1 1 300px; max-width: 340px; }
.platform-card, .news-card {
  background: white;
  padding: 26px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  border-top: 5px solid var(--primary);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.platform-card.border-red { border-top-color: var(--red); }
.platform-card.border-blue { border-top-color: var(--blue); }
.platform-card.border-yellow { border-top-color: var(--yellow); }
.news-card.border-yellow { border-top-color: var(--yellow); }

.card-icon { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; height: 56px; }
.card-icon img { height: 56px; width: auto; object-fit: contain; }
.card-icon-pair img { height: 48px; }

.platform-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; }
.platform-card > p { font-weight: 600; margin-bottom: 12px; color: var(--red); }
.platform-card ul { padding-left: 20px; }
.platform-card ul li { margin-bottom: 8px; font-size: 0.95rem; }

/* Get Involved form */
.section-centered { text-align: center; }
.section-centered h2::after { left: 50%; transform: translateX(-50%); }
.section-centered > p { max-width: 640px; margin: 0 auto 10px; }
.section-centered .back-link { margin-left: auto; margin-right: auto; }
.volunteer-form { display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 72px auto 0; padding: 24px; background: white; border: 1px solid var(--border-light); border-left: 5px solid var(--blue); border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.06); text-align: left; }
.volunteer-form input { padding: 12px; border: 1px solid #ccc; border-radius: 6px; }
.volunteer-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.15); }

/* Back to home links */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border: 1px solid var(--blue);
  border-radius: 20px;
  padding: 6px 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.back-link:hover { background: var(--blue); color: white; }
.back-link-light { color: white; border-color: var(--yellow); }
.back-link-light:hover { background: var(--yellow); color: var(--primary-dark); }

/* News */
.news-card.border-red { border-top-color: var(--red); }
.news-card.border-blue { border-top-color: var(--blue); }
.news-card p.news-date { color: var(--blue); font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.news-card ul { padding-left: 20px; }
.news-card ul li { margin-bottom: 8px; font-size: 0.95rem; }
.news-card h3 { color: var(--primary); margin-bottom: 6px; font-size: 1.1rem; }

/* Campaign Docs & Townhalls */
.subsection-title { color: var(--primary); font-size: 1.3rem; margin: 34px 0 18px; padding-left: 12px; border-left: 4px solid var(--red); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.doc-card {
  display: block;
  background: white;
  border: 1px solid var(--border-light);
  border-top: 5px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.doc-card.border-red { border-top-color: var(--red); }
.doc-card.border-blue { border-top-color: var(--blue); }
.doc-card.border-yellow { border-top-color: var(--yellow); }
.doc-card img { width: 100%; height: 160px; object-fit: cover; display: block; border-bottom: 1px solid var(--border-light); }
.doc-card-body { padding: 16px 18px; }
.doc-card-body h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: 6px; }
.doc-card-body p { font-size: 0.9rem; color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
.townhall-table { width: 100%; border-collapse: collapse; background: white; min-width: 480px; }
.townhall-table th, .townhall-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.townhall-table th { background: var(--primary); color: white; font-weight: 600; }
.townhall-table tbody tr:nth-child(odd) { background: var(--bg-alt); }
.townhall-table tbody tr:last-child td { border-bottom: none; }
.townhall-note { margin-top: 14px; font-size: 0.9rem; color: var(--blue); font-style: italic; }

/* Donate */
.donate-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; text-align: center; max-width: 100%; border-top: 4px solid var(--yellow); border-bottom: 4px solid var(--red); }
.donate-section h2 { color: white; }
.donate-section h2::after { background: linear-gradient(90deg, var(--yellow), white, var(--yellow)); left: 50%; transform: translateX(-50%); }
.donate-section p { margin-bottom: 60px; }

/* Contact */
.social-links { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.social-links a { color: white; background: var(--blue); border: 2px solid var(--yellow); padding: 8px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.social-links a:hover { background: var(--red); }

footer { text-align: center; padding: 30px; background: var(--primary-dark); color: white; font-size: 0.85rem; border-top: 4px solid var(--red); }

/* Responsive */
@media (max-width: 720px) {
  .navbar { flex-wrap: wrap; gap: 14px; }
  .nav-links { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .about-content { flex-direction: column; text-align: center; }
  .card-icon { justify-content: center; }
  .logo { white-space: normal; font-size: 1rem; text-align: center; }
}
@media (max-width: 360px) {
  .logo { font-size: 0.9rem; }
}
