/* =====================================================
   Politicly Theme — main stylesheet
   Color system taken from the supplied design:
   --navy    : hero / issues section background
   --purple  : icon strip background
   --red     : accent / buttons / badges
   ===================================================== */

:root {
	--navy: #150a45;
	--navy-2: #1c1156;
	--purple: #4b3bf0;
	--red: #e8262f;
	--red-dark: #c81e26;
	--brand-gradient: linear-gradient(90deg, #170a3d 0%, #591a48 45%, #a91f3a 75%, #d21f36 100%);
	--accent-blue: #1a56c4;
	--ink: #171326;
	--muted: #6b6a80;
	--line: #ececf3;
	--cream: #f7f6fb;
	--white: #ffffff;
	--radius: 14px;
	--radius-sm: 8px;
	--font-head: 'Oswald', sans-serif;
	--font-body: 'Poppins', sans-serif;
	--container: 1220px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.7;
	background: var(--white);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); text-transform: uppercase; line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
p { margin: 0 0 16px; color: var(--muted); }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

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

/* ---------- Scroll-reveal animation utility ---------- */
/* Elements tagged .reveal fade + slide up into place the first time they
   enter the viewport (see initScrollReveal() in main.js). Respects
   prefers-reduced-motion. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.25,.8,.25,1), transform .7s cubic-bezier(.25,.8,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons / badges ---------- */
/* The navy-to-red brand gradient (see --brand-gradient) is used across every
   primary accent element — top bar, buttons, badges — so the look is
   consistent site-wide, not just in the header. */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 15px; transition: .25s; border: 2px solid transparent; }
.btn-primary { background: var(--brand-gradient); color: #fff; background-size: 160% 100%; background-position: left; }
.btn-primary:hover { background-position: right; }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline i { background: #fff; color: var(--red); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.btn-outline:hover { border-color: #fff; }

.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-gradient); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 18px; border-radius: 50px; margin-bottom: 18px; }
.badge-pill-dark { background: var(--navy); }

.round-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-gradient); color: #fff; width: fit-content; padding: 14px 26px; border-radius: 50px; font-weight: 600; white-space: nowrap; transition: .25s; background-size: 160% 100%; background-position: left; }
.round-btn:hover { background-position: right; }

/* ===================================================
   HEADER
   =================================================== */
.site-header { position: relative; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }

/* Top contact bar — same navy-to-red brand gradient used on buttons/badges,
   with a solid-color Donate block flush against the far right edge. */
/* Background stays full-bleed/fluid (edge to edge on .header-topbar);
   the content row is constrained to the same .container max-width as the
   rest of the site so it lines up with the nav row, hero, sections, etc. */
.header-topbar { position: relative; background: var(--brand-gradient); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 24px; flex-wrap: wrap; }
.topbar-contact { display: flex; align-items: center; gap: 26px; }
.topbar-contact a { color: #fff; opacity: .92; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-contact a:hover { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right .social-icons { display: flex; gap: 8px; }
.topbar-right .social-icon { width: 26px; height: 26px; font-size: 12px; border-color: rgba(255,255,255,.35); color: #fff; }
.topbar-right .social-icon:hover { background: #fff; color: var(--ink); border-color: #fff; }
.topbar-divider { width: 1px; height: 16px; background: rgba(255,255,255,.35); }
.topbar-contact-link { color: #fff; font-weight: 500; white-space: nowrap; }
.topbar-contact-link:hover { text-decoration: underline; }
.topbar-donate { display: inline-flex; align-items: center; padding: 9px 22px; background: var(--accent-blue); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; border-radius: 4px; white-space: nowrap; transition: background .2s ease; }
.topbar-donate:hover { background: #16469e; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 5px 5px; }
.site-branding .site-title-link { display: flex; align-items: center; gap: 10px; }
.logo-mark { color: var(--red); font-size: 26px; }
.site-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--ink); }
.custom-logo { max-height: 100px; width: auto; }

.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { font-family: var(--font-head); font-weight: 400; font-size: 17px; text-transform: uppercase; letter-spacing: .01em; padding: 10px 2px; color: var(--ink); }
.primary-menu > li > a:hover, .primary-menu > li.current-menu-item > a { color: var(--accent-blue); }
.primary-menu ul { position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: 0 20px 40px rgba(20,10,60,.15); border-radius: var(--radius-sm); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; z-index: 60; }
.primary-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu ul li a { font-family: var(--font-head); display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.primary-menu ul li a:hover { background: var(--cream); color: var(--red); }
.primary-menu li.menu-item-has-children > a::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; margin-left: 6px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.search-toggle { background: none; border: none; font-size: 18px; color: var(--ink); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.menu-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }

.header-search-panel { max-height: 0; overflow: hidden; background: var(--navy); transition: max-height .3s ease; }
.header-search-panel.is-open { max-height: 120px; }
.header-search-panel .container { display: flex; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.header-search-panel .search-form { flex: 1; display: flex; }
.header-search-panel .search-field { flex: 1; padding: 14px 18px; border-radius: 50px 0 0 50px; border: none; font-size: 15px; }
.header-search-panel .search-submit { background: var(--red); color: #fff; border: none; padding: 0 22px; border-radius: 0 50px 50px 0; }
.search-close { background: none; border: none; color: #fff; font-size: 28px; line-height: 1; }

/* Page header strip (non-front-page) */
.page-header-strip { background: var(--navy); padding: 60px 0 40px; color: #fff; position: relative; background-size: cover; background-position: center; overflow: hidden; }
/* Optional Capitol-photo-style background image (Customize → Inner Pages),
   used by About Us / County Parties / Contact / Blog page templates. A
   navy-to-red gradient overlay keeps the title readable over any photo. */
.page-header-strip.has-bg-image { padding: 120px 0 76px; }
.page-header-strip.has-bg-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(21,10,69,.90) 10%, rgba(169,31,58,.72) 100%); }
.page-header-strip .container { position: relative; z-index: 2; }
.page-header-title { color: #fff; margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb span { color: rgba(255,255,255,.4); margin: 0 6px; }
.breadcrumb :last-child { color: #fff; }

/* ===================================================
   HERO SLIDER
   =================================================== */
.hero-slider { position: relative; background: var(--navy); overflow: hidden; }
.hero-slider-track { position: relative; }
.hero-slide { display: none; background-size: cover; background-position: center; position: relative; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,5,40,.94) 30%, rgba(10,5,40,.55) 100%); }
.hero-slide.is-active { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slide-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 100px 24px; min-height: 560px; }
.hero-slide-text .badge-pill { background: var(--red); }
.hero-slide-text h1 { color: #fff; font-size: 52px; font-weight: 700; margin-bottom: 20px; }
.hero-slide-text h1 mark, .hero-slide-text h1 .hl { background: #f6a623; color: var(--navy); padding: 0 8px; box-decoration-break: clone; }
.hero-slide-text p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 480px; }
.hero-slide-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.hero-slide-image { position: relative; display: flex; justify-content: center; }
.hero-slide-image img { border-radius: var(--radius); max-height: 460px; object-fit: cover; }

.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,.15); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .2s; }
.hero-nav:hover { background: var(--red); }
.hero-nav-prev { left: 24px; }
.hero-nav-next { right: 24px; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); }
.hero-dot.is-active { background: var(--red); width: 26px; border-radius: 6px; }

/* ===================================================
   FEATURE STRIP (4 icon columns)
   =================================================== */
.feature-strip { background: linear-gradient(90deg, var(--purple), #6f3bf0); }
.feature-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-box { border-right: 1px solid rgba(255,255,255,.18); transition: background .25s ease; }
.feature-box:last-child { border-right: none; }
.feature-box:hover { background: rgba(255,255,255,.06); }
.feature-box-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 20px; color: #fff; }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 30px; margin-bottom: 10px; transition: transform .3s ease, background .3s ease; }
.feature-box:hover .feature-icon { transform: scale(1.08) rotate(-4deg); background: var(--brand-gradient); border-color: transparent; }
.feature-title { font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: 17px; letter-spacing: .04em; }
.feature-text { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.78); }

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-section { padding: 90px 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-image img, .about-image-placeholder { border-radius: var(--radius); width: 100%; }
.about-image-placeholder { aspect-ratio: 4/5; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); }
.about-content h2 { font-size: 36px; max-width: 520px; }
.checklist-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.checklist-item:last-child { border-bottom: 1px solid var(--line); }
.check-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.checklist-item h4 { font-family: var(--font-body); text-transform: none; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.checklist-item p { margin: 0; font-size: 19px; color: var(--ink); line-height: 1.6; }

/* ===================================================
   ISSUES / ACCORDION SECTION
   =================================================== */
.issues-section { background: var(--navy); padding: 90px 0; color: #fff; }
.issues-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.issues-intro h2 { color: #fff; font-size: 34px; }
.issues-intro p { color: rgba(255,255,255,.65); }

.accordion-item { border-bottom: 1px solid rgba(255,255,255,.15); }
.accordion-trigger { width: 100%; background: none; border: none; display: flex; align-items: center; justify-content: space-between; padding: 22px 4px; color: #fff; text-align: left; }
.accordion-trigger-left { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); text-transform: uppercase; font-weight: 600; font-size: 16px; }
.accordion-trigger-left i { color: var(--red); }
.accordion-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 12px; transition: .25s; flex-shrink: 0; }
.accordion-item.is-open .accordion-icon { background: var(--red); border-color: var(--red); transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-item.is-open .accordion-panel { max-height: 300px; }
.accordion-panel-inner { padding: 0 4px 22px 4px; color: rgba(255,255,255,.65); font-size: 14px; }
.accordion-panel-inner p:last-child { margin-bottom: 0; }

/* ===================================================
   CTA BANNER (centered navy quote/mission banner)
   =================================================== */
.cta-banner { background: var(--navy); padding: 70px 0; text-align: center; overflow: hidden; position: relative; }
.cta-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% 20%, rgba(233,38,47,.18), transparent 45%), radial-gradient(circle at 85% 80%, rgba(75,59,240,.22), transparent 45%);
	pointer-events: none;
}
.cta-banner-inner { position: relative; max-width: 880px; margin: 0 auto; }
.cta-banner-label { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 15px; font-weight: 500; margin-bottom: 26px; }
.cta-banner-label::after { content: ''; width: 46px; height: 2px; background: var(--red); }
.cta-banner-heading { color: #fff; font-size: 30px; font-weight: 700; line-height: 1.45; text-transform: uppercase; margin: 0; }

/* ===================================================
   ORG INTRO ("Know More About / [Your Org]")
   =================================================== */
.org-intro { padding: 40px 0; overflow: hidden; }
.org-intro-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 60px; align-items: center; }
.org-intro-text h2 { font-size: 32px; max-width: 520px; }
.org-intro-text p { font-size: 16px; }
.org-intro-media { position: relative; }
.org-intro-media img, .org-intro-placeholder { position: relative; z-index: 2; border-radius: var(--radius); width: 100%; display: block; box-shadow: 0 30px 60px rgba(20,10,60,.18); }
.org-intro-placeholder { aspect-ratio: 4/3; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); }
.org-intro-decor { position: absolute; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; opacity: .9; z-index: 1; }
/* Abstract patriotic stripe motif (not a literal flag graphic) echoing the
   reference design's flag-accent behind the photo. */


/* ===================================================
   HOMEPAGE SIGNUP SECTION ("Stay Informed")
   =================================================== */
/* Section background = full-width brand (navy → red) gradient; the form
   card sitting on top stays a plain WHITE box for contrast (per explicit
   request: "full backgroujnd red blue gradient and form within box need to
   show as white background"). */
.signup-section { background: var(--brand-gradient); padding: 90px 0; }
/* Full-width layout: intro is a centered header, the form card sits below
   it spanning 10 of the container's 12 columns (83.333%), centered. */
.signup-grid { display: block; }
.signup-intro { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.signup-intro .badge-pill { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); }
.signup-intro h2 { font-size: 32px; color: #fff; }
.signup-intro p { max-width: 600px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.82); }

.signup-form-card {
	width: 83.333%;
	max-width: 83.333%;
	margin: 0 auto;
}
/* .contact-form-card already renders a white card by default — no color
   override needed here now that the GRADIENT lives on the section instead
   of the card. Compound selector kept (instead of relying on source order)
   only for the signup-specific shadow tweak, so it can't silently regress
   into the wrong look again if .contact-form-card changes later. */
.contact-form-card.signup-form-card { box-shadow: 0 30px 80px rgba(10,5,30,.35); }

/* ===================================================
   TEAM / AUTO-SCROLL MARQUEE (unused — the homepage "Meet Our Responsible
   Party Member" section was removed per request; CSS kept in case the
   "Party Members" CPT/gallery is re-enabled on a template later)
   =================================================== */
.team-section { padding: 90px 0 100px; overflow: hidden; }
.team-intro { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.team-intro .badge-pill { }
.team-intro h2 { font-size: 34px; }

.team-marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.team-marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee 34s linear infinite; }
.team-marquee:hover .team-marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Pure photo gallery: no visible text/color by default. On hover the photo
   zooms OUT to its true scale (it sits slightly zoomed-in at rest), a
   brand-color gradient wash fades in over the image, and the name/role
   fades up from a dark gradient at the bottom — nothing is duplicated in
   two places, it simply appears on interaction. */
.team-card { width: 260px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: #e2e2e8; position: relative; }
.team-card-photo { aspect-ratio: 4/4.5; overflow: hidden; position: relative; }
.team-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(65%);
	transform: scale(1.18);
	transition: transform .6s cubic-bezier(.25,.8,.25,1), filter .5s ease;
}
.team-card:hover .team-card-photo img { transform: scale(1); filter: grayscale(0%); }

.team-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); background: #e2e2e8; }

/* Brand-color gradient wash — hidden until hover */
.team-card-photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(140deg, rgba(232,38,47,.38), rgba(21,10,69,.55));
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}
.team-card:hover .team-card-photo::after { opacity: 1; }

/* Name / role — only revealed on hover via a bottom-up gradient + fade */
.team-card-info {
	position: absolute;
	inset: auto 0 0 0;
	padding: 34px 18px 16px;
	background: linear-gradient(to top, rgba(10,5,40,.95) 0%, rgba(10,5,40,.65) 55%, transparent 100%);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .35s ease, transform .35s ease;
	pointer-events: none;
}
.team-card:hover .team-card-info { opacity: 1; transform: translateY(0); }
.team-card-info h4 { color: #fff; font-size: 15px; margin: 0 0 2px; text-transform: none; font-family: var(--font-body); font-weight: 600; }
.team-card-info p { color: rgba(255,255,255,.75); font-size: 12px; margin: 0; }

/* ===================================================
   NEWS SECTION
   =================================================== */
.news-section { background: var(--cream); padding: 90px 0; }
.news-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.news-header h2 { font-size: 32px; margin-bottom: 0; max-width: 560px; }
/* Carousel: exactly 3 cards visible per view (2 on tablet, 1 on mobile —
   see RESPONSIVE section), sliding one card at a time via JS transform. */
.news-carousel { position: relative; }
.news-carousel-viewport { overflow: hidden; }
.news-grid.news-carousel-track { display: flex; gap: 28px; transition: transform .45s cubic-bezier(.25,.8,.25,1); }
.news-carousel-track .news-card { flex: 0 0 calc( ( 100% - 56px ) / 3 ); }
.news-carousel-nav { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.news-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: .2s; }
.news-nav:hover { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.news-nav:disabled { opacity: .35; cursor: default; background: #fff; color: var(--ink); border-color: var(--line); }
.news-card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(20,10,60,.06);
	display: flex;
	flex-direction: column;
	transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(20,10,60,.14); }
.news-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.news-card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--muted); font-size: 34px; }
.news-card:hover .news-card-thumb img { transform: scale(1.05); }
.news-card-body { padding: 22px 24px 26px; position: relative; }
.news-meta { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.news-meta i, .posted-by i, .posted-on i, .posted-cat i { margin-right: 5px; color: var(--red); }
.news-card-title { font-size: 18px; margin-bottom: 0; padding-right: 50px; }
.news-card-title a:hover { color: var(--red); }
.news-card-arrow { position: absolute; right: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; transition: .2s; }
.news-card-arrow:hover { background: var(--red); }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); margin-top: auto; }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 60px 24px; }
.footer-cta-title { color: #fff; font-size: 40px; margin: 0; max-width: 420px; }
.footer-cta-email { display: flex; align-items: center; gap: 16px; color: #fff; font-size: 18px; font-weight: 500; }
.footer-cta-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; }

.footer-widgets { padding: 60px 0 30px; }
.footer-widgets-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-widget-title { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo .site-title { color: #fff; }
.footer-col p { font-size: 14px; }
.newsletter-form { display: flex; margin: 14px 0 10px; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #fff; border-radius: 50px 0 0 50px; font-size: 13px; }
.newsletter-form button { background: var(--red); border: none; color: #fff; padding: 0 18px; border-radius: 0 50px 50px 0; }
.newsletter-agree { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.footer-menu li { margin-bottom: 12px; }
.footer-menu a:hover { color: var(--red); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-list i { color: var(--red); margin-top: 3px; }
.widget-hint { font-size: 11px; opacity: .5; margin-top: 14px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0; font-size: 13px; }
.social-icons { display: flex; gap: 10px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; transition: .2s; }
.social-icon:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a:hover { color: #fff; }

.back-to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; z-index: 80; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===================================================
   BLOG / SINGLE / PAGE / 404
   =================================================== */
.content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; padding: 70px 24px; }
.no-sidebar .content-layout { grid-template-columns: 1fr; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.no-sidebar .blog-grid { grid-template-columns: repeat(2, 1fr); }
.content-sidebar .widget { background: var(--cream); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }

/* Single post template: full container width, no sidebar. */
.single-post-wrap { padding: 70px 24px; }
.widget-title { font-size: 16px; margin-bottom: 16px; }

.single-post-thumb, .single-page .single-post-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.single-post-title { font-size: 34px; margin-bottom: 14px; }
.single-post-meta { margin-bottom: 26px; }
.single-post-content { font-size: 16px; color: var(--ink); }
.single-post-content p { color: #444; }
.single-post-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.single-post-content h2, .single-post-content h3 { text-transform: none; margin-top: 34px; }
.single-post-tags { margin-top: 20px; font-size: 13px; }
.single-post-tags i { color: var(--red); margin-right: 8px; }
.page-links { margin-top: 20px; font-size: 13px; }

.author-box { display: flex; gap: 18px; align-items: center; background: var(--cream); padding: 24px; border-radius: var(--radius); margin: 40px 0; }
.author-box img { border-radius: 50%; }
.author-box h4 { margin-bottom: 4px; text-transform: none; }
.author-box p { margin: 0; font-size: 13px; }

.nav-links { display: flex; justify-content: space-between; gap: 20px; margin: 30px 0; }
.nav-links .nav-subtitle { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.nav-links .nav-title { font-weight: 600; }
.nav-links .nav-next { text-align: right; margin-left: auto; }

.comments-area { margin-top: 50px; }
.comments-title { font-size: 22px; margin-bottom: 24px; }
.comment-list { margin: 0 0 30px; }
.comment-list li { margin-bottom: 24px; }
.comment-list .children { margin-left: 40px; margin-top: 20px; }
.comment-body { display: flex; gap: 14px; }
.comment-meta { margin-bottom: 6px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-style: normal; }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 16px; font-family: inherit; }
.comment-form label { font-size: 13px; display: block; margin-bottom: 6px; }

.error-404-content { text-align: center; padding: 100px 24px; max-width: 560px; margin: 0 auto; }
.error-code { font-family: var(--font-head); font-size: 110px; font-weight: 700; color: var(--red); line-height: 1; }
.error-404-content .search-form { display: flex; margin: 26px 0; }
.error-404-content .search-field { flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: 50px 0 0 50px; }
.error-404-content .search-submit { background: var(--navy); color: #fff; border: none; padding: 0 22px; border-radius: 0 50px 50px 0; }

.no-results { text-align: center; padding: 60px 0; }

/* ===================================================
   CONTACT FORM (page template: "Contact Page")
   =================================================== */
.contact-page-hero { background: var(--navy); padding: 70px 0; color: #fff; text-align: center; }
.contact-page-hero .badge-pill { margin-bottom: 18px; }
.contact-page-hero h1 { color: #fff; margin-bottom: 14px; }
.contact-page-hero p { color: rgba(255,255,255,.75); max-width: 620px; margin: 0 auto; }

/* Section background = same full-width brand gradient as the homepage
   signup section, form card = white box on top ("same form that is show
   on homepage"). Sidebar contact-details text is switched to light colors
   since it now sits directly on the gradient instead of a plain background. */
.contact-page-wrap { padding: 80px 24px; background: var(--brand-gradient); }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; max-width: 1100px; margin: 0 auto; align-items: start; }

.contact-info-list { display: flex; flex-direction: column; gap: 26px; margin-bottom: 34px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.contact-info-text h4 { font-size: 16px; margin-bottom: 4px; text-transform: none; color: #fff; }
.contact-info-text p, .contact-info-text a { margin: 0; color: rgba(255,255,255,.82); font-size: 14.5px; }
.contact-info-text a:hover { color: #fff; }
.contact-page-social { display: flex; gap: 10px; }
.contact-page-social .social-icon { border-color: rgba(255,255,255,.4); color: #fff; }
.contact-page-social .social-icon:hover { background: #fff; border-color: #fff; color: var(--navy); }

.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; box-shadow: 0 30px 70px rgba(20,10,60,.08); }
/* Contact page template: form-only layout (no title hero / no sidebar —
   the default page-header-strip already shows the page title). Card is
   centered within the gradient section, matching the homepage pattern. */
.contact-page-wrap-form-only { padding-top: 90px; padding-bottom: 90px; }
.contact-form-card-solo { max-width: 720px; margin: 0 auto; }
.page-template-contact  .contact-form-card-solo{max-width: 100% !important}
.contact-form-card h2 { font-size: 24px; margin-bottom: 8px; }
.contact-form-card > p { margin-bottom: 28px; }
.contact-form-card .badge-pill { margin-bottom: 14px; }

.contact-form-notice { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 26px; font-size: 14.5px; font-weight: 500; }
.contact-form-notice.is-success { background: #e9f8ef; color: #1c6b3a; border: 1px solid #b9ecc9; }
.contact-form-notice.is-error { background: #fdecec; color: #b3261e; border: 1px solid #f6c4c1; }

.politicly-contact-form fieldset { border: none; margin: 0 0 22px; padding: 0; }
.politicly-contact-form legend { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: 14px; padding: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.form-row-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-field label .required { color: var(--red); margin-left: 3px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 14.5px;
	color: var(--ink);
	background: var(--cream);
	transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus, .form-field textarea:focus {
	outline: none;
	border-color: var(--accent-blue);
	background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.form-consent input[type="checkbox"] { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--accent-blue); }
.form-consent label { font-size: 13px; color: var(--muted); line-height: 1.6; }

.gform_button.button{background: linear-gradient(90deg, #170a3d 0%, #591a48 45%, #a91f3a 75%, #d21f36 100%);
  width: 100%;
  padding: 13px 0;
  color: #fff;
  font-size: 20px;
  border-radius: 100px;}

.contact-form-card .btn-primary { width: 100%; justify-content: center; border: none; font-size: 15px; }

/* honeypot — hidden from real visitors, catches simple bots */
.politicly-contact-form .form-hp { position: absolute; left: -9999px; top: -9999px; }

/* ===================================================
   ABOUT US PAGE TEMPLATE (page-templates/about-us.php)
   =================================================== */
.about-mission { padding: 80px 0 76px; }
.about-mission h2 { font-size: 30px; margin-bottom: 22px; }
.about-mission-text p { color: #000; font-size: 16px; line-height: 1.8; margin-bottom: 18px; }

.about-officers { background: var(--cream); padding: 80px 0; text-align: center; }
.about-officers .section-eyebrow { display: block; font-family: var(--font-head); font-size: 34px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 40px; font-weight: 700; }
.officers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.officer-card { background: var(--brand-gradient); border-radius: var(--radius); padding: 34px 20px 30px; color: #fff; transition: transform .25s ease; }
.officer-card:hover { transform: translateY(-6px); }
.officer-photo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 4px solid rgba(255,255,255,.35); background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.officer-photo img { width: 100%; height: 100%; object-fit: cover; }
.officer-card h3 { font-size: 17px; margin-bottom: 6px; color: #fff; text-transform: none; }
.officer-card .officer-role { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.officer-card a { color: rgba(255,255,255,.9); font-size: 13.5px; word-break: break-word; }
.officer-card a:hover { color: #fff; text-decoration: underline; }

.about-columns { padding: 80px 0 90px; }
.about-columns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-columns-grid h3 { font-size: 24px; margin-bottom: 20px; color: #000}
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 18px; color: #000; }
.about-list li:last-child { border-bottom: 1px solid var(--line); }
.about-list li a { color: var(--accent-blue); font-weight: 600; }
.about-list li a:hover { color: var(--red); }

.about-divider { height: 6px; background: var(--brand-gradient); }

/* ===================================================
   COUNTY PARTIES PAGE TEMPLATE (page-templates/county-parties.php)
   =================================================== */
.county-parties-section { padding: 80px 0 90px; }
.county-parties-section .county-parties-heading { text-align: center; font-size: 30px; margin-bottom: 44px; }
.county-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.county-card { background: #fdf3ea; border: 1px solid #f1ddc8; border-radius: var(--radius); padding: 32px 34px; }
.county-card h3 { font-size: 21px; margin-bottom: 14px; color: var(--navy); text-transform: none; }
.county-card p { margin: 0 0 6px; font-size: 14.5px; color: var(--ink); }
.county-card p strong { color: var(--muted); font-weight: 600; margin-right: 6px; }
.county-card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.county-card-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 50px; background: #fff; border: 1px solid #f1ddc8; color: var(--navy); font-size: 13px; font-weight: 600; transition: .2s; }
.county-card-links a:hover { background: var(--brand-gradient); border-color: transparent; color: #fff; }

/* ===================================================
   BLOG / EVENTS PAGE TEMPLATE (page-templates/blog.php)
   =================================================== */
.blog-page-header { text-align: center; padding: 74px 0 6px; }
.blog-page-header .badge-pill { margin-bottom: 16px; }
.blog-page-header h2 { font-size: 30px; margin-bottom: 10px; }
.blog-page-header p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.blog-page-wrap { padding: 50px 0 90px; }
/* Full container width, 3 posts per row (no sidebar on this template).
   Scoped + compound selector so it reliably beats ".no-sidebar .blog-grid"
   (2-class specificity) regardless of source order — the same class of bug
   fixed earlier for the signup form card background. */
.blog-page-wrap .blog-grid.blog-grid-3col { grid-template-columns: repeat(3, 1fr); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
	.main-navigation { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: #fff; flex-direction: column; padding: 90px 24px 24px; box-shadow: -10px 0 30px rgba(0,0,0,.1); transition: right .3s ease; z-index: 90; justify-content: flex-start; overflow-y: auto; }
	.main-navigation.is-open { right: 0; }
	.primary-menu { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
	.primary-menu > li { width: 100%; }
	.primary-menu ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 14px; }
	.primary-menu li.is-open > ul { display: block; }
	.menu-toggle { display: flex; }
	.hero-slide-inner { grid-template-columns: 1fr; padding: 60px 24px; text-align: center; }
	.hero-slide-buttons { justify-content: center; }
	.hero-slide-image { order: -1; }
	.feature-strip-grid { grid-template-columns: repeat(2, 1fr); }
	.feature-box:nth-child(2) { border-right: none; }
	.feature-box { border-bottom: 1px solid rgba(255,255,255,.18); }
	.about-grid, .issues-grid, .org-intro-grid { grid-template-columns: 1fr; }
	.org-intro-media { order: -1; margin-bottom: 10px; }
	.content-layout { grid-template-columns: 1fr; }
	.footer-widgets-grid { grid-template-columns: 1fr 1fr; }
	.topbar-contact { display: none; }
	.topbar-inner { justify-content: flex-end; }
	.contact-page-grid { grid-template-columns: 1fr; }
	.contact-form-card { padding: 30px; }
	.cta-banner-heading { font-size: 26px; }
	.news-carousel-track .news-card { flex: 0 0 calc( ( 100% - 28px ) / 2 ); }
	.signup-form-card { width: 92%; max-width: 92%; }
	.officers-grid { grid-template-columns: repeat(2, 1fr); }
	.about-columns-grid { grid-template-columns: 1fr; }
	.county-grid { grid-template-columns: 1fr; }
	.blog-page-wrap .blog-grid.blog-grid-3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.hero-slide-text h1 { font-size: 34px; }
	.feature-strip-grid, .blog-grid { grid-template-columns: 1fr; }
	.blog-page-wrap .blog-grid.blog-grid-3col { grid-template-columns: 1fr; }
	.footer-widgets-grid { grid-template-columns: 1fr; }
	.footer-cta-inner { flex-direction: column; align-items: flex-start; }
	.news-header { flex-direction: column; align-items: flex-start; }
	.error-code { font-size: 70px; }
	.topbar-right .topbar-contact-link { display: none; }
	.topbar-donate { padding: 8px 16px; font-size: 11px; }
	.topbar-inner { gap: 10px; padding: 8px 20px; }
	.form-row, .form-row.form-row-3 { grid-template-columns: 1fr; gap: 0; }
	.contact-form-card { padding: 22px; }
	.cta-banner-heading { font-size: 22px; }
	.org-intro-text h2, .signup-intro h2 { font-size: 26px; }
	.news-carousel-track .news-card { flex: 0 0 100%; }
	.signup-form-card { width: 100%; max-width: 100%; }
	.officers-grid { grid-template-columns: 1fr; }
}
