:root {
  --blue: #263b88;
  --blue2: #1b2d73;
  --orange: #ff8a1d;
  --dark: #1d2440;
  --muted: #63708a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Nunito", sans-serif; color: var(--dark); background: #fff; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.container { width: min(1120px, 92%); margin: auto; }
h1, h2, h3 { font-family: "Baloo 2", cursive; line-height: 1.12; }
.section { padding: 76px 0; }

header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(23, 38, 84, 0.08); }
.nav { height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { width: 120px; height: auto; }
.menu { display: flex; align-items: center; gap: 22px; font-weight: 800; color: #3b4668; font-size: 15px; }
.menu-toggle { display: none; font-size: 26px; color: var(--blue); cursor: pointer; }

.blog-hero {
  background: linear-gradient(135deg, #253989 0%, #243477 55%, #172457 100%);
  color: #fff;
  padding: 90px 0 70px;
}

.blog-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  margin-bottom: 12px;
}

.blog-hero p {
  font-size: 19px;
  max-width: 720px;
  color: #e8efff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e9eef8;
  box-shadow: 0 12px 28px rgba(38, 59, 136, 0.08);
  background: #fff;
}

.post-thumb {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #eef2ff;
}

.post-body { padding: 18px; }
.post-date { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.post-title { font-size: 28px; color: var(--blue); margin-bottom: 10px; line-height: 1.15; }
.post-excerpt { color: #405174; font-size: 16px; margin-bottom: 16px; }
.post-link { color: var(--orange); font-weight: 800; }

.blog-empty {
  background: #f7fbff;
  border: 1px dashed #cad7ef;
  border-radius: 22px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.article-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.article-title {
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--blue);
  margin-bottom: 8px;
}

.article-date {
  color: var(--muted);
  margin-bottom: 22px;
}

.article-cover {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 26px;
  max-height: 420px;
  object-fit: cover;
}

.article-content {
  font-size: 18px;
  color: #263b68;
}

.article-content h2,
.article-content h3 {
  color: var(--blue2);
  margin: 22px 0 10px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  padding-left: 20px;
}

.article-content img {
  max-width: 100%;
  border-radius: 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.pagination-wrap {
  margin-top: 28px;
}

footer { background: #172457; color: #fff; padding: 34px 0; text-align: center; margin-top: 40px; }
.footer-logo { width: 170px; margin: 0 auto 14px; }
.social { display: flex; justify-content: center; gap: 12px; margin: 18px 0; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }

@media (max-width: 1000px) {
  .post-grid,
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 6%;
    box-shadow: 0 18px 30px rgba(23, 38, 84, 0.12);
  }

  .menu.show { display: flex; }
  .menu-toggle { display: block; }
}

@media (max-width: 560px) {
  .nav { height: 82px; }
  .brand-logo { width: 76px; }
  .menu { top: 82px; }
  .section { padding: 54px 0; }
  .post-grid,
  .related-grid { grid-template-columns: 1fr; }
}
