:root {
  --blog-bg: #f8fafc;
  --blog-surface: #ffffff;
  --blog-surface-alt: #eef6ff;
  --blog-border: #dbe7f5;
  --blog-text: #1f2937;
  --blog-muted: #5b6472;
  --blog-heading: #16325b;
  --blog-brand: #2563eb;
  --blog-brand-dark: #1d4ed8;
  --blog-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
  color: var(--blog-text);
}

.blog-page {
  color: var(--blog-text);
}

.blog-page * {
  box-sizing: border-box;
}

.blog-page a {
  color: var(--blog-brand);
  text-decoration: none;
}

.blog-page a:hover {
  text-decoration: underline;
}

.blog-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 58%, #3b82f6 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 4rem;
}

.blog-hero-inner,
.blog-shell,
.blog-hub-shell {
  max-width: 1140px;
  margin: 0 auto;
}

.blog-breadcrumb {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 0.85rem;
}

.blog-breadcrumb a {
  color: #dbeafe;
}

.blog-meta {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #dbeafe;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #eff6ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-hero h1,
.blog-hub-hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 850px;
}

.blog-hero p,
.blog-hub-hero p {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.blog-shell {
  margin-top: -2.4rem;
  padding: 0 1.5rem 4rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}

.blog-main,
.blog-hub-card,
.blog-hub-feature {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
}

.blog-main {
  border-radius: 28px;
  overflow: hidden;
}

.blog-figure {
  padding: 1.25rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--blog-border);
}

.blog-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.blog-figure figcaption {
  margin-top: 0.85rem;
  color: var(--blog-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-content-wrap {
  padding: 2rem 2rem 2.35rem;
}

.article h2,
.article h3,
.article h4 {
  color: var(--blog-heading);
  line-height: 1.25;
}

.article h2 {
  font-size: 1.52rem;
  margin: 2rem 0 0.8rem;
}

.article h3 {
  font-size: 1.08rem;
  margin: 1.45rem 0 0.55rem;
}

.article h4 {
  font-size: 0.92rem;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article p,
.article li,
.blog-sidebar-card li,
.blog-sidebar-card p {
  font-size: 1rem;
  line-height: 1.76;
  color: var(--blog-text);
}

.article p,
.article ul,
.article ol,
.article table,
.article .callout,
.article .warning,
.article .grant-box,
.article .green-box,
.article .tip-list,
.article .checklist-card,
.article .restriction-grid,
.article .phase-card,
.article .stat-row {
  margin-bottom: 1.15rem;
}

.article ul,
.article ol,
.article .restriction-box ul,
.article .green-box ul,
.article .grant-box ul,
.article .tip-list ol {
  padding-left: 1.35rem;
}

.article li {
  margin-bottom: 0.45rem;
}

.callout,
.warning,
.checklist-card,
.grant-box,
.green-box,
.tip-list,
.phase-card,
.restriction-box,
.sidebar-card,
.sidebar-cta {
  border-radius: 20px;
}

.callout {
  background: #eff6ff;
  border-left: 5px solid #2563eb;
  padding: 1.15rem 1.25rem;
}

.callout strong,
.warning strong {
  display: block;
  margin-bottom: 0.3rem;
}

.warning {
  background: #fffbeb;
  border-left: 5px solid #f59e0b;
  padding: 1.15rem 1.25rem;
}

.checklist-card {
  border: 1px solid var(--blog-border);
  background: #ffffff;
  padding: 1.35rem 1.4rem;
}

.checklist-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.checklist-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #eef2f7;
}

.checklist-card li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.checklist-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.grant-box,
.green-box,
.tip-list,
.phase-card,
.restriction-box.green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1.3rem 1.4rem;
}

.grant-box h3,
.green-box h3,
.tip-list h3,
.phase-card h3,
.restriction-box.green h4 {
  color: #166534;
}

.grant-box p,
.grant-box li,
.green-box p,
.green-box li,
.tip-list li,
.phase-card p,
.phase-card li {
  color: #14532d;
}

.step-list {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
}

.step-list li {
  counter-increment: step-counter;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.step-list li::before {
  content: counter(step-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--blog-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.stat-row,
.restriction-grid,
.blog-hub-grid {
  display: grid;
  gap: 1rem;
}

.stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-box {
  border: 1px solid var(--blog-border);
  border-radius: 18px;
  background: #f8fbff;
  padding: 1.1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  color: var(--blog-brand);
  line-height: 1.1;
}

.stat-box span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--blog-muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.topic-tag {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  color: var(--blog-text);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--blog-border);
}

.cost-table th {
  background: var(--blog-heading);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
}

.cost-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5edf6;
}

.cost-table tr:nth-child(even) td {
  background: #f8fbff;
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.phase-card {
  margin-top: 1rem;
}

.phase-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.restriction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.restriction-box.red {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 1.3rem 1.4rem;
}

.restriction-box.red h4 {
  color: #9f1239;
}

.blog-sidebar {
  position: sticky;
  top: 5.5rem;
}

.blog-sidebar-card {
  display: grid;
  gap: 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.sidebar-card,
.sidebar-cta {
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
  padding: 1.25rem 1.3rem;
}

.sidebar-card h4,
.sidebar-cta h4 {
  font-size: 1rem;
  color: var(--blog-heading);
  margin: 0 0 0.7rem;
}

.sidebar-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-card li {
  margin-bottom: 0.55rem;
}

.sidebar-card li:last-child {
  margin-bottom: 0;
}

.sidebar-cta {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
}

.sidebar-cta h4,
.sidebar-cta p,
.sidebar-cta a {
  color: inherit;
}

.sidebar-cta p {
  opacity: 0.9;
}

.sidebar-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.95rem;
  padding: 0.75rem 1rem;
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.sidebar-cta a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
}

.blog-hub-page {
  padding: 2.25rem 1.5rem 4rem;
}

.blog-hub-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 56%, #2563eb 100%);
  color: #fff;
  border-radius: 30px;
  padding: 2.6rem;
  box-shadow: var(--blog-shadow);
  margin-bottom: 2rem;
}

.blog-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.blog-hub-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
}

.blog-hub-actions a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
}

.blog-hub-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.blog-hub-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-hub-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.blog-hub-feature-content {
  padding: 2rem;
}

.blog-card-kicker,
.blog-feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blog-brand-dark);
  background: #dbeafe;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.blog-hub-feature h2,
.blog-hub-card h3 {
  color: var(--blog-heading);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.blog-hub-feature p,
.blog-hub-card p {
  color: var(--blog-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.blog-card-meta {
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-hub-card {
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-hub-card-content {
  padding: 1.4rem;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-sidebar {
    position: static;
  }

  .blog-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-hero,
  .blog-page,
  .blog-shell,
  .blog-hub-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .blog-hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .blog-shell {
    margin-top: -1.5rem;
    padding-bottom: 3rem;
  }

  .blog-content-wrap,
  .blog-hub-feature-content,
  .blog-hub-hero {
    padding: 1.35rem;
  }

  .blog-figure {
    padding: 0.9rem;
  }

  .stat-row,
  .topic-grid,
  .restriction-grid,
  .blog-hub-grid,
  .blog-hub-feature {
    grid-template-columns: 1fr;
  }

  .cost-table,
  .cost-table tbody,
  .cost-table tr,
  .cost-table td,
  .cost-table th {
    display: block;
    width: 100%;
  }

  .cost-table thead {
    display: none;
  }

  .cost-table tr {
    border-bottom: 1px solid #dbe7f5;
  }

  .cost-table td {
    border-bottom: none;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}
