:root {
  --bg: #f6f8f7;
  --bg-soft: #edf3f2;
  --surface: #ffffff;
  --text: #17324a;
  --muted: #5c7084;
  --line: rgba(23, 50, 74, 0.12);
  --blue: #1e5d8f;
  --navy2: #17324a;
  --green: #58b947;
  --green-deep: #3f9632;
  --shadow: 0 24px 60px rgba(24, 70, 109, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(88, 185, 71, 0.16),
      transparent 26%
    ),
    radial-gradient(
      circle at top right,
      rgba(30, 93, 143, 0.14),
      transparent 30%
    ),
    linear-gradient(180deg, #fbfdfc 0%, var(--bg) 100%);
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 253, 252, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.blog-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.blog-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy2);
  font-weight: 700;
  font-size: 1.05rem;
}
.blog-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.blog-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}
.blog-nav a {
  color: var(--navy2);
}
.blog-nav .cta {
  background: var(--green-deep);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s;
}
.blog-nav .cta:hover {
  background: #2d7025;
  text-decoration: none;
}

main {
  padding: 48px 0 80px;
}

/* ========== Index page ========== */
.blog-hero {
  text-align: center;
  margin-bottom: 48px;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 12px;
  color: var(--navy2);
}
.blog-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.post-list {
  display: grid;
  gap: 20px;
}
.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(63, 150, 50, 0.4);
  text-decoration: none;
}
.post-card .post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}
.post-card h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: var(--navy2);
}
.post-card p {
  margin: 0;
  color: var(--muted);
}

/* ========== Article page ========== */
.post-meta-row {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 12px;
}
.post-meta-row .dot {
  margin: 0 8px;
  opacity: 0.5;
}

article h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--navy2);
}
article h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
  color: var(--navy2);
}
article h3 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: var(--navy2);
}
article p {
  margin: 0 0 16px;
  font-size: 1.05rem;
}
article ul,
article ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
article li {
  margin-bottom: 8px;
}
article blockquote {
  border-left: 4px solid var(--green-deep);
  background: rgba(63, 150, 50, 0.06);
  padding: 14px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  color: var(--navy2);
  font-style: italic;
}

.cta-box {
  background: linear-gradient(135deg, #16324a 0%, #1e5d8f 100%);
  color: #fff;
  padding: 32px;
  border-radius: 16px;
  margin: 48px 0 24px;
  text-align: center;
}
.cta-box h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
}
.cta-box a {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.15s;
}
.cta-box a:hover {
  background: var(--green-deep);
  text-decoration: none;
}

.back-link {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
  color: var(--blue);
}

.crisis-note {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 32px 0;
  font-size: 0.95rem;
  color: #7f1d1d;
}
.crisis-note strong {
  color: #991b1b;
}

footer.blog-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 64px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.blog-footer a {
  color: var(--navy2);
  font-weight: 600;
}
