/* ── VARIABLES ───────────────────────────────── */
:root {
  --navy:      #012037;
  --navy-mid:  #023456;
  --sky:       #1a7ab8;
  --sky-lt:    #c1e1f0;
  --cream:     #e7f5fd;
  --gold:      #FFE25C;
  --red:       #9D2235;
  --red-lt:    #c0392b;
  --white:     #ffffff;
  --text:      #000000;
  --muted:     #5a7080;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Work Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── NAV ─────────────────────────────────────── */
header {
  position: relative;
  background: var(--cream) url('https://test2.planetbeagle.com/files/statehouse_bg.jpg') center center / cover no-repeat;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1216px;
  margin: 0 auto;
  padding: 12px 40px;
  position: relative;
}
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 200ms;
}
.nav-links a:hover { color: var(--sky); }
.nav-donate {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 3px;
}
.nav-donate:hover { background: var(--red-lt) !important; }
.nav-donate-always { display: inline-block; background: var(--red); color: var(--white) !important; padding: 10px 20px; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-donate-always:hover { background: var(--red-lt) !important; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.burger-wrap { display: none; flex-direction: column; align-items: center; }
.burger-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 300;
}
.nav-dropdown.open { display: block; }
.nav-dropdown ul { list-style: none; }
.nav-dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 200ms;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover { background: var(--cream); }

/* ── BLOG HERO ───────────────────────────────── */
.blog-hero {
  background: var(--navy);
  padding: 56px 40px;
  text-align: center;
}
.blog-hero-hed {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-hero-sub {
  font-size: clamp(14px, 1.5vw, 18px);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* ── POST FEED ───────────────────────────────── */
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1216px;
  margin: 48px auto;
  padding: 0 40px;
}
.post-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 200ms;
}
.post-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.10); }
.post-card-image { width: 100%; height: 200px; object-fit: cover; }
.post-card-content { padding: 24px; }
.post-card-title {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.post-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.post-card-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── PAGINATION ──────────────────────────────── */
.pagination {
  text-align: center;
  padding: 32px 40px 48px;
}
.pagination a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 8px;
}

/* ── POST FULL ───────────────────────────────── */
.post-full { max-width: 740px; margin: 0 auto; padding: 0 40px 64px; }
.post-full-header {
  background: var(--navy);
  margin: 0 -40px 40px;
  padding: 56px 40px;
}
.post-full-title {
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.post-full-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-full-image {
  margin: 0 0 40px;
  border-radius: 6px;
  overflow: hidden;
}
.post-full-image img { width: 100%; max-height: 500px; object-fit: cover; }
.post-full-image figcaption {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
}

/* ── POST CONTENT ────────────────────────────── */
.post-full-content {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--text);
}
.post-full-content h2 { font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; color: var(--navy); margin: 40px 0 16px; }
.post-full-content h3 { font-size: clamp(17px, 2vw, 24px); font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.post-full-content p { margin-bottom: 24px; }
.post-full-content a { color: var(--sky); text-decoration: underline; }
.post-full-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--muted);
}
.post-full-content ul, .post-full-content ol { margin: 0 0 24px 24px; }
.post-full-content li { margin-bottom: 8px; }
.post-full-content img { border-radius: 4px; margin: 32px 0; }
.post-full-content hr { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 40px 0; }

.post-full-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.1); }
.post-back-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ── SUBSCRIBE BOX ───────────────────────────── */
.subscribe-box {
  background: var(--navy);
  padding: 48px 40px;
  margin-top: 64px;
  text-align: center;
}
.subscribe-box-inner { max-width: 520px; margin: 0 auto; }
.subscribe-hed { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: var(--white); margin-bottom: 8px; }
.subscribe-body { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.subscribe-form input {
  padding: 14px 16px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  width: 100%;
  font-family: 'Work Sans', sans-serif;
}
.subscribe-form button {
  padding: 14px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms;
}
.subscribe-form button:hover { background: var(--red-lt); }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 60px 40px 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  max-width: 1216px;
  margin: 0 auto 4px;
}
.footer-col h5 { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 16px; font-weight: 700; color: #000; border: 1.5px solid transparent; padding: 4px 8px; border-radius: 3px; transition: all 200ms; }
.footer-col a:hover { color: var(--red); border-color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  max-width: 1216px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-paid-for {
  display: flex;
  justify-content: center;
  padding: 0 40px 40px;
  background: var(--white);
}
.footer-paid-for-box {
  background: var(--navy);
  border: 1.5px solid var(--white);
  outline: 1.5px solid var(--navy);
  padding: 18px 48px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .burger-wrap { display: flex !important; }
  .nav-burger { display: flex !important; }
  .nav-donate-always { display: inline-block; background: var(--red); color: var(--white) !important; padding: 10px 20px; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-donate-always:hover { background: var(--red-lt) !important; }
  .post-feed { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-inner { padding: 12px 20px; }
  .nav-logo img { width: 40vw !important; }
  .blog-hero { padding: 40px 20px; }
  .post-feed { grid-template-columns: 1fr; padding: 0 20px; margin: 32px auto; }
  .post-full { padding: 0 20px 48px; }
  .post-full-header { margin: 0 -20px 32px; padding: 40px 20px; }
  .subscribe-box { padding: 40px 20px; }
  footer { padding: 40px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ── KOENIG EDITOR CLASSES (required) ────────── */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 40px);
  margin-right: calc(50% - 50vw + 40px);
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.kg-image-card img { width: 100%; border-radius: 4px; }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; width: 100%; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-embed-card { margin: 24px 0; }
.kg-bookmark-card { border: 1px solid rgba(0,0,0,0.1); border-radius: 4px; overflow: hidden; margin: 24px 0; }
