body {
  background: #ffffff;
}

.site-footer .container {
  width: min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 100%;
}

.site-footer .footer-main .footer-brand-block,
.site-footer .footer-main .footer-links-block,
.site-footer .footer-main .footer-contact-block {
  min-width: 0;
}

.blog-hero {
  min-height: 320px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(rgba(8, 20, 48, 0.58), rgba(8, 20, 48, 0.52)),
    url("https://images.pexels.com/photos/6238297/pexels-photo-6238297.jpeg?auto=compress&cs=tinysrgb&w=1920")
      center / cover no-repeat;
}

.hero-overlay {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #fff;
  padding: 1.8rem 3%;
}

.hero-overlay .crumb {
  margin: 0;
  color: #dce8ff;
  font-weight: 600;
}

.hero-overlay h1 {
  margin: 0.45rem 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero-overlay p {
  margin: 0;
  max-width: 66ch;
  line-height: 1.6;
}

.blog-tabs-section {
  width: 100%;
  max-width: none;
  margin: 1.4rem 0 2rem;
  padding: 0 3%;
}

.blog-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-tab {
  border: 1px solid #d9e4ff;
  background: #f5f8ff;
  color: #1d345d;
  border-radius: 999px;
  padding: 0.58rem 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.blog-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.blog-grid-full {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.post-card {
  background: #fff;
  border: 1px solid #e5ecff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(20, 39, 75, 0.08);
}

.post-thumb {
  position: relative;
  padding: 0.72rem 0.72rem 0;
}

.post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.post-badge {
  position: absolute;
  right: 1rem;
  bottom: -0.35rem;
  background: #fff;
  border: 1px solid #e2eaff;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #243a62;
}

.post-body {
  padding: 0.92rem 0.95rem 1rem;
}

.post-meta {
  margin: 0 0 0.55rem;
  display: flex;
  gap: 0.58rem;
  flex-wrap: wrap;
  color: #677f9f;
  font-size: 0.8rem;
}

.post-line {
  display: block;
  width: 52px;
  height: 2px;
  background: #4f46e5;
  margin-bottom: 0.55rem;
}

.post-title {
  margin: 0 0 0.42rem;
  font-size: 1.35rem;
  color: #1d345d;
  line-height: 1.2;
}

.post-excerpt {
  margin: 0 0 0.9rem;
  color: #4f688f;
  line-height: 1.45;
}

.post-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 0.88rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.post-btn span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0b1022;
}

@media (max-width: 1100px) {
  .blog-grid-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .blog-grid-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-grid-full {
    grid-template-columns: 1fr;
  }
}
