:root {
  --blog-navy: #102a43;
  --blog-blue: #1769aa;
  --blog-red: #d52b1e;
  --blog-ink: #243b53;
  --blog-muted: #627d98;
  --blog-line: #d9e2ec;
  --blog-soft: #f3f7fa;
}

.blog-page {
  flex: 1 0 auto;
  min-height: 65vh;
  background: linear-gradient(180deg, #f5f9fc 0, #fff 320px);
  color: var(--blog-ink);
  font-family: Inter, Arial, sans-serif;
  padding: 64px 20px 80px;
}

.blog-container { max-width: 1080px; margin: 0 auto; }
.blog-container--article { max-width: 780px; }

.blog-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(213, 43, 30, .13), transparent 25%),
    linear-gradient(135deg, #0b2942 0%, #123f63 60%, #1769aa 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(16, 42, 67, .18);
  display: flex;
  justify-content: space-between;
  margin-bottom: 42px;
  overflow: hidden;
  padding: clamp(32px, 6vw, 58px);
  position: relative;
}

.blog-hero::after {
  background: var(--blog-red);
  bottom: 0;
  content: '';
  height: 5px;
  left: 0;
  position: absolute;
  width: 34%;
}

.blog-hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.blog-eyebrow {
  align-items: center;
  color: #b9dcf7;
  display: flex;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.blog-eyebrow span {
  background: #ef4444;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, .16);
  height: 8px;
  margin-right: 12px;
  width: 8px;
}

.blog-title {
  color: var(--blog-navy);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0;
}

.blog-hero .blog-title { color: #fff; font-size: clamp(2.35rem, 5vw, 4rem); max-width: 780px; }
.blog-intro { color: var(--blog-muted); font-size: 1.15rem; line-height: 1.7; margin: 16px 0 0; }
.blog-hero .blog-intro { color: #d8e8f5; max-width: 680px; }

.blog-topics { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.blog-topics span,
.blog-topics a {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 12px;
  text-decoration: none;
}
.blog-topics a:hover { background: rgba(255, 255, 255, .2); }

.blog-hero-mark {
  align-items: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: rgba(255, 255, 255, .9);
  display: flex;
  flex: 0 0 118px;
  font-size: 3rem;
  height: 118px;
  justify-content: center;
  margin-left: 32px;
  position: relative;
  transform: rotate(-6deg);
  z-index: 1;
}
.blog-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.blog-card {
  background: #fff;
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(16, 42, 67, .07);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.blog-card-body { padding: 28px; }
.blog-card-image { display: block; height: 230px; overflow: hidden; }
.blog-card-image img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.blog-card:hover .blog-card-image img { transform: scale(1.035); }

.blog-card:hover { box-shadow: 0 14px 36px rgba(16, 42, 67, .13); transform: translateY(-3px); }
.blog-date { color: var(--blog-muted); display: block; font-size: .875rem; margin-bottom: 10px; }
.blog-card-title { font-size: 1.5rem; line-height: 1.3; margin: 0; }
.blog-card-title a { color: var(--blog-navy); text-decoration: none; }
.blog-card-title a:hover { color: var(--blog-blue); }
.blog-excerpt { color: var(--blog-muted); line-height: 1.75; margin: 14px 0 0; }
.blog-read-more, .blog-back { color: var(--blog-blue); display: inline-block; font-weight: 700; margin-top: 22px; text-decoration: none; }
.blog-read-more:hover, .blog-back:hover { text-decoration: underline; }

.blog-empty { background: var(--blog-soft); border: 1px solid var(--blog-line); border-radius: 14px; padding: 32px; }
.blog-article { background: #fff; border: 1px solid var(--blog-line); border-radius: 18px; box-shadow: 0 10px 35px rgba(16,42,67,.08); margin-top: 28px; padding: clamp(28px, 6vw, 58px); }
.blog-article .blog-title { font-size: clamp(2rem, 5vw, 3.25rem); margin-top: 8px; }
.blog-article-image { border-radius: 14px; display: block; margin-top: 30px; max-height: 480px; object-fit: cover; width: 100%; }
.blog-content { color: #334e68; font-size: 1.1rem; line-height: 1.9; margin-top: 32px; overflow-wrap: anywhere; white-space: pre-line; }
.blog-content a { color: var(--blog-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--blog-navy); }
.blog-content .blog-cta-link {
  background: #15803d;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(21, 128, 61, .25);
  color: #fff;
  display: inline-block;
  margin: 10px 0;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.blog-content .blog-cta-link:hover {
  background: #166534;
  box-shadow: 0 10px 24px rgba(21, 128, 61, .32);
  color: #fff;
  transform: translateY(-1px);
}
.blog-content .blog-cta-link:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.blog-related {
  margin: 64px 50% 0;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 40px));
}

.blog-related-heading { margin-bottom: 24px; }
.blog-related-eyebrow {
  color: var(--blog-red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0 0 7px;
  text-transform: uppercase;
}
.blog-related h2 {
  color: var(--blog-navy);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -.025em;
  margin: 0;
}
.blog-related-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.blog-related-card {
  background: #fff;
  border: 1px solid var(--blog-line);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(16, 42, 67, .07);
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-related-card:hover {
  box-shadow: 0 15px 36px rgba(16, 42, 67, .13);
  transform: translateY(-3px);
}
.blog-related-visual {
  align-items: center;
  background: linear-gradient(145deg, #0f4168, #1e75b6);
  color: rgba(255, 255, 255, .94);
  display: flex;
  font-size: 2.8rem;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.blog-related-visual img { height: 100%; object-fit: cover; position: relative; width: 100%; z-index: 1; }
.blog-related-visual::before,
.blog-related-visual::after {
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  content: '';
  position: absolute;
}
.blog-related-visual::before { height: 130px; right: -55px; top: -35px; width: 130px; }
.blog-related-visual::after { bottom: -40px; height: 100px; left: -35px; width: 100px; }
.blog-related-card--2 .blog-related-visual { background: linear-gradient(145deg, #176046, #2d9470); }
.blog-related-card--3 .blog-related-visual { background: linear-gradient(145deg, #6b3fa0, #9470bf); }
.blog-related-card--4 .blog-related-visual { background: linear-gradient(145deg, #9d342a, #d45a49); }
.blog-related-copy {
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.blog-related-meta {
  color: var(--blog-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.blog-related-copy h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.blog-related-copy h3 a { color: var(--blog-navy); text-decoration: none; }
.blog-related-copy h3 a:hover { color: var(--blog-blue); }
.blog-related-link {
  color: var(--blog-blue);
  font-size: .9rem;
  font-weight: 800;
  margin-top: auto;
  padding-top: 18px;
  text-decoration: none;
}
.blog-related-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .blog-page { padding: 42px 16px 60px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { border-radius: 18px; padding: 30px 24px 34px; }
  .blog-hero-mark { display: none; }
  .blog-hero::after { width: 52%; }
  .blog-related { margin-top: 48px; width: calc(100vw - 32px); }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-related-card { grid-template-columns: 105px minmax(0, 1fr); min-height: 190px; }
  .blog-related-copy { padding: 20px; }
  .blog-related-visual { font-size: 2.2rem; }
}
