/* Riverbend Community Center — theme.css
   Civic nonprofit community center: white ground, navy + leaf green +
   light-blue tints, sturdy bookish serif display, friendly sans body,
   circular landscape logo. */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- Tokens ---------- */

:root {
  /* Two-part lockup: "RIVERBEND" over "COMMUNITY CENTER" */
  --brand-name: "Riverbend Community Center";
  --brand-name-1: "Riverbend";
  --brand-name-2: "Community Center";

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #edf3f9;
  --color-ink: #1d3a5f;
  --color-ink-muted: #55708c;
  --color-brand: #16406e;
  --color-brand-deep: #0f2f53;
  --color-on-brand: #ffffff;
  --color-accent: #4f8b2f;
  --color-accent-deep: #3f7024;
  --color-border: #d8e3ee;
  --color-link: #1f5a9e;

  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Merriweather", Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 8px;
  --shadow-sm: 0 1px 3px rgba(22, 64, 110, 0.08);
  --shadow-md: 0 10px 28px rgba(22, 64, 110, 0.12);

  --container-max: 1120px;
  --section-pad: 4.5rem;

  /* Library glyphs used from pseudo-elements (shared HTML can't carry inline
     SVG). Paths are verbatim lucide-static v1.28.0; they are painted as
     currentColor masks so color follows the surrounding text. */
  --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --icon-map-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --icon-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-brand);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: var(--color-link); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding-block: 0.9rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

/* Circular landscape emblem, extracted from the mockup (opaque crop — the
   header field is white, which is what the crop's ground matches). */
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: url(../../assets/img/riverbend/brand-mark.png) center / contain no-repeat;
}

.brand-name {
  display: inline-block;
  line-height: 1.05;
}

.brand-name::before {
  content: var(--brand-name-1);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--color-brand);
  text-transform: uppercase;
}

.brand-name::after {
  content: var(--brand-name-2);
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--color-accent-deep);
  text-transform: uppercase;
  margin-top: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover { color: var(--color-link); }

.nav-link.is-active { border-bottom-color: var(--color-accent); }

.nav-cta { margin-left: 0.4rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-color: var(--color-brand);
}

.btn-primary:hover {
  background: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-secondary:hover { background: var(--color-surface-alt); }

.btn-small {
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }

.section-alt { background: var(--color-surface-alt); }

.section-head { margin-bottom: 2rem; }

.eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 0.35em;
}

.section-sub {
  color: var(--color-ink-muted);
  max-width: 44rem;
  margin: 0;
}

/* ---------- Cards & media ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-media { flex: none; }

.card-media .media-ph { border-radius: 0; }

.card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  margin: 0;
}

.card-text {
  color: var(--color-ink-muted);
  font-size: 0.97rem;
  margin: 0;
  flex: 1;
}

/* Text links are blue everywhere; green is reserved for solid CTAs and chips. */
.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-link);
  text-decoration: none;
  margin-top: 0.5rem;
}

/* lucide:arrow-right */
.card-link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.4em;
  vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat;
  mask: var(--icon-arrow-right) center / contain no-repeat;
}

.card-link:hover { text-decoration: underline; }

/* Photography mood: sunlit park greens with sky-blue haze */
.media-ph {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 244, 214, 0.75) 0%, transparent 42%),
    radial-gradient(ellipse 60% 42% at 18% 96%, rgba(63, 112, 36, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 80% 45% at 82% 102%, rgba(79, 139, 47, 0.4) 0%, transparent 72%),
    linear-gradient(180deg, #aecfe9 0%, #cfe4d8 55%, #8fb478 100%);
}

.media-ph--wide { aspect-ratio: 16 / 9; }
.media-ph--square { aspect-ratio: 1 / 1; }
.media-ph--tall { aspect-ratio: 3 / 4; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section-pad);
  background: var(--color-brand);
  color: #cfe0ef;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.25rem 2.25rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }

/* The emblem crop is opaque, so on the navy footer it gets an explicit
   white chip to sit on rather than a ragged white rectangle. */
.footer-about .brand-mark {
  width: 56px;
  height: 50px;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.footer-about .brand-name::before { color: #ffffff; }

.footer-about .brand-name::after { color: #a9d18a; }

.footer-tagline {
  color: #a8c4de;
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.footer-link {
  color: #cfe0ef;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-link:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1.25rem;
  font-size: 0.88rem;
  color: #a8c4de;
}

/* ---------- Dashboard ---------- */

.dash-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2.5rem;
}

.dash-sidebar {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  position: sticky;
  top: 1.5rem;
}

.dash-nav { display: flex; flex-direction: column; gap: 0.2rem; }

.dash-nav-link {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--color-ink);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.dash-nav-link:hover { background: #dfeaf4; }

.dash-nav-link.is-active {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-left-color: var(--color-accent);
}

.dash-main { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }

.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.page-title { font-size: 1.75rem; margin: 0 0 0.2em; }

.page-sub { color: var(--color-ink-muted); margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--color-brand);
  line-height: 1.1;
}

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

.stat-delta {
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-delta.is-up { color: var(--color-accent-deep); }
.stat-delta.is-down { color: #b0532a; }
.stat-delta.is-info { color: var(--color-link); }

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.panel-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin: 0;
}

.panel-body { padding: 1.35rem; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.table tbody tr:nth-child(even) { background: #f6f9fc; }

.table tbody tr:hover { background: var(--color-surface-alt); }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-ink-muted);
}

.badge.is-success { background: #e3f0da; color: #33611c; }
.badge.is-warning { background: #fbeedd; color: #8f5312; }
.badge.is-info { background: #ddeafa; color: #1f5a9e; }

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.activity-item:last-child { border-bottom: none; }

.activity-time {
  margin-left: auto;
  flex: none;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.form-input,
.form-select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  max-width: 26rem;
}

.form-input:focus,
.form-select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-actions { margin-bottom: 0; align-items: flex-start; }

/* ---------- Blog post ---------- */

.post { padding-top: 2.75rem; }

.post-header {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2rem;
}

.tag-list {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.post-header .tag-list { justify-content: center; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  background: #e3f0da;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.7rem;
  text-decoration: none;
}

.tag:hover { background: #d4e7c6; }

.post-title {
  font-size: 2.35rem;
  line-height: 1.2;
  margin-bottom: 0.4em;
}

.post-excerpt {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--color-ink-muted);
}

.post-meta .avatar { width: 34px; height: 34px; font-size: 0.75rem; }

.post-meta-author { font-weight: 700; color: var(--color-ink); }

.post-hero {
  max-width: 58rem;
  margin: 0 auto 2.5rem;
}

.prose {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.prose a { color: var(--color-link); }

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2em;
}

.prose li { margin-bottom: 0.4em; }

.prose li::marker { color: var(--color-accent); }

.prose blockquote {
  margin: 1.75em 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--color-brand);
}

.prose figure { margin: 2em 0; }

.prose figcaption {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  text-align: center;
  margin-top: 0.6rem;
}

.prose code {
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.12em 0.4em;
  color: var(--color-brand);
}

.prose pre {
  background: var(--color-brand-deep);
  color: #dcebf7;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.97rem;
}

.prose table th {
  text-align: left;
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 0.85rem;
}

.prose table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.prose table tbody tr:nth-child(even) { background: #f6f9fc; }

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

.prose .media-ph { border-radius: var(--radius-md); }

.author-card {
  max-width: 44rem;
  margin: 3rem auto 0;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.author-card .avatar { width: 52px; height: 52px; font-size: 1rem; }

.author-card-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--color-brand);
  margin-bottom: 0.25rem;
}

.author-card-bio {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}

.related-posts .section-head { text-align: center; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Blog photography (layered over the painted fallback, graded toward the
   navy/green palette with a faint brand tint + gentle desaturation) */

.post-hero .media-ph,
.prose figure .media-ph,
.related-grid .card:nth-child(1) .media-ph,
.related-grid .card:nth-child(2) .media-ph,
.related-grid .card:nth-child(3) .media-ph {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9);
}

.post-hero .media-ph {
  background-image:
    linear-gradient(rgba(22, 64, 110, 0.08), rgba(22, 64, 110, 0.08)),
    url(../../assets/img/pack/blog-hero.webp),
    radial-gradient(circle at 78% 18%, rgba(255, 244, 214, 0.75) 0%, transparent 42%),
    radial-gradient(ellipse 60% 42% at 18% 96%, rgba(63, 112, 36, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, #aecfe9 0%, #cfe4d8 55%, #8fb478 100%);
}

.prose figure .media-ph {
  background-image:
    linear-gradient(rgba(22, 64, 110, 0.08), rgba(22, 64, 110, 0.08)),
    url(../../assets/img/pack/blog-figure.webp),
    radial-gradient(circle at 78% 18%, rgba(255, 244, 214, 0.75) 0%, transparent 42%),
    radial-gradient(ellipse 60% 42% at 18% 96%, rgba(63, 112, 36, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, #aecfe9 0%, #cfe4d8 55%, #8fb478 100%);
}

.related-grid .card:nth-child(1) .media-ph {
  background-image:
    linear-gradient(rgba(22, 64, 110, 0.08), rgba(22, 64, 110, 0.08)),
    url(../../assets/img/pack/blog-rel-1.webp),
    linear-gradient(180deg, #aecfe9 0%, #cfe4d8 55%, #8fb478 100%);
}

.related-grid .card:nth-child(2) .media-ph {
  background-image:
    linear-gradient(rgba(22, 64, 110, 0.08), rgba(22, 64, 110, 0.08)),
    url(../../assets/img/pack/blog-rel-2.webp),
    linear-gradient(180deg, #aecfe9 0%, #cfe4d8 55%, #8fb478 100%);
}

.related-grid .card:nth-child(3) .media-ph {
  background-image:
    linear-gradient(rgba(22, 64, 110, 0.08), rgba(22, 64, 110, 0.08)),
    url(../../assets/img/pack/blog-rel-3.webp),
    linear-gradient(180deg, #aecfe9 0%, #cfe4d8 55%, #8fb478 100%);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .dash-sidebar { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  :root { --section-pad: 3rem; }
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 0.5rem 1rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .post-title { font-size: 1.8rem; }
  .dash-header { align-items: flex-start; }
  .activity-item { flex-wrap: wrap; }
  .activity-time { margin-left: 56px; width: 100%; }
}
