:root {
  --primary: #0f4c81;
  --primary-dark: #0b3459;
  --primary-light: #1a7bbd;
  --accent: #d9a441;
  --accent-dark: #b88729;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-alt: #eef3f8;
  --text: #1b2430;
  --text-soft: #4a5566;
  --muted: #7a8696;
  --border: #e2e8f0;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 76, 129, 0.06);
  --shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 76, 129, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--primary-light); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--text); margin-top: 0; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; margin-bottom: .6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4em; }

p { margin: 0 0 1em; color: var(--text-soft); }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 44px; width: auto; }
.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover {
  background: var(--bg-soft);
  color: var(--primary);
  text-decoration: none;
}
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-alt);
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--primary-light); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 6px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  padding: 90px 0 110px;
  background: linear-gradient(135deg, rgba(11, 52, 89, .88), rgba(15, 76, 129, .80)), url('images/hero-community.jpg') center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead {
  color: #e7eef5;
  font-size: 1.15rem;
  max-width: 720px;
  margin-top: 16px;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { box-shadow: var(--shadow); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .85rem;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: "";
  display: block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ===== Section / Cards ===== */
section { padding: 60px 0; }
section.alt { background: var(--bg-soft); }
.section-eyebrow {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
  margin-bottom: 8px;
}
.section-title { max-width: 780px; }
.section-intro { max-width: 780px; color: var(--text-soft); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card .card-body { padding: 22px; }
.card h3 { color: var(--primary-dark); }
.card .card-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}
.card .card-link::after {
  content: " →";
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Stats / KPI */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.stat {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat .label { color: var(--muted); font-size: .95rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cta-banner h2 { color: #fff; margin: 0; }
.cta-banner p { color: #d8e3ee; margin: 0; max-width: 560px; }

/* Article body */
.article-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 60px 0 80px;
}
.article-hero h1 { color: #fff; }
.article-hero p { color: #d8e3ee; max-width: 760px; }
.article-meta { color: #b8c7d6; font-size: .9rem; margin-top: 6px; }

.prose {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: -40px;
  box-shadow: var(--shadow);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.prose h2 { margin-top: 28px; color: var(--primary-dark); }
.prose h3 { margin-top: 20px; color: var(--primary); }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose .callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 18px 0;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-dark);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
}
.faq details[open] summary::after { content: "−"; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { margin: 6px 0; }
.contact-info strong { color: var(--text); }

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
form label { font-weight: 600; font-size: .9rem; color: var(--text); display: block; margin-bottom: 6px; }
form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 1px;
  border-color: var(--primary-light);
}
form .form-row { margin-bottom: 14px; }
form button { width: auto; padding: 14px 28px; font-size: 1rem; }

/* Footer */
.site-footer {
  background: #0b1d2e;
  color: #c9d4de;
  padding: 60px 0 30px;
  margin-top: 60px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9d4de; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #95a5b8; }
.copyright {
  border-top: 1px solid #1a3148;
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  font-size: .9rem;
  color: #8597a8;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.list-checks { list-style: none; padding: 0; }
.list-checks li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.list-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}
