.blog-page {
  --blog-ink: #17365c;
  --blog-muted: #61758f;
  --blog-line: #dbe5f0;
  background: #f4f7fb;
  color: var(--blog-ink);
  font: 16px/1.5 'Inter', Arial, sans-serif;
}

.blog-page *, .blog-page *::before, .blog-page *::after { box-sizing: border-box; }
.blog-page [hidden] { display: none !important; }
.blog-page a:focus-visible, .blog-page input:focus-visible { outline: 3px solid #ffbd20; outline-offset: 3px; }
.blog-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.blog-banner-modern {
  background: radial-gradient(circle at 86% 0%, #24578d 0%, transparent 38%), linear-gradient(112deg, #0d2648, #173c6d);
  border-bottom: 4px solid #ffbd20;
  color: #fff;
}
.blog-banner-content {
  width: min(1280px, calc(100% - 48px));
  min-height: 174px;
  margin: 0 auto;
  padding: 25px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-banner-chip { color: #ffce59; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.blog-banner-content h1 { margin: 5px 0 0; color: #fff; font: 800 clamp(28px, 3.1vw, 42px)/1.14 'Poppins', 'Inter', Arial, sans-serif; letter-spacing: -.035em; }
.blog-banner-content p { margin: 8px 0 0; color: #d0dff0; font-size: 15px; }

.blog-page .blog-section { max-width: none; margin: 0; padding: 22px 0 48px; background: transparent; }
.blog-layout { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.blog-toolbar p { margin: 0; color: var(--blog-muted); font-size: 14px; }
.blog-toolbar strong { color: var(--blog-ink); }
.blog-search { position: relative; display: block; width: min(100%, 320px); }
.blog-search i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #6c83a0; font-size: 14px; pointer-events: none; }
.blog-search input { width: 100%; height: 42px; padding: 0 14px 0 39px; border: 1px solid #ccd9e8; border-radius: 10px; background: #fff; color: var(--blog-ink); font: 500 14px 'Inter', Arial, sans-serif; }
.blog-search input::placeholder { color: #8192a6; }
.blog-empty { margin: 16px 0; padding: 20px; border: 1px solid var(--blog-line); border-radius: 12px; background: #fff; color: var(--blog-muted); }
.blog-main { display: flex; flex-direction: column; gap: 18px; }

.post-featured { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--blog-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(18, 48, 87, .06); }
.post-featured-media { position: relative; min-height: 290px; background: #e5edf6; }
.post-featured-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-badge-featured { position: absolute; top: 14px; left: 14px; padding: 7px 11px; border-radius: 7px; background: #ffbd20; color: #102e52; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.post-featured-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; color: var(--blog-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-category { color: #1c65a4; }
.post-date { color: var(--blog-muted); }
.post-featured-title { margin: 0 0 12px; color: var(--blog-ink); font: 800 clamp(23px, 2.4vw, 32px)/1.2 'Poppins', 'Inter', Arial, sans-serif; }
.post-featured-excerpt { margin: 0 0 16px; color: var(--blog-muted); font-size: 14px; line-height: 1.6; }
.post-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: #174e85; font-size: 13px; font-weight: 800; text-decoration: none; }
.post-link:hover { color: #0b75b0; text-decoration: underline; text-underline-offset: 4px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--blog-line); border-radius: 15px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); border-color: #bbcee4; box-shadow: 0 18px 38px rgba(18, 48, 87, .1); }
.post-media { position: relative; height: 180px; margin: 11px 11px 0; overflow: hidden; border-radius: 10px; background: #e5edf6; }
.post-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-badge { position: absolute; top: 10px; right: 10px; padding: 6px 9px; border-radius: 6px; background: #fff; color: #174e85; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.post-title { margin: 0 0 10px; color: var(--blog-ink); font: 800 18px/1.35 'Poppins', 'Inter', Arial, sans-serif; }
.post-excerpt { flex: 1; margin: 0 0 16px; color: var(--blog-muted); font-size: 13px; line-height: 1.6; }
.post-body .post-link { padding-top: 12px; border-top: 1px solid var(--blog-line); width: 100%; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-media { min-height: 0; height: 260px; }
}
@media (max-width: 640px) {
  .blog-banner-content, .blog-layout { width: calc(100% - 28px); }
  .blog-banner-content { min-height: 0; padding: 22px 0; }
  .blog-banner-content p { font-size: 13px; }
  .blog-page .blog-section { padding: 14px 0 32px; }
  .blog-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .blog-search { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-featured-media { height: 210px; }
  .post-featured-body { padding: 18px; }
  .post-media { height: 205px; }
}
