.blog-section {
  padding: 4.5rem 1.5rem 5rem;
  background: #edf0f5;
  color: var(--usa-navy, #0a1a3c);
  scroll-margin-top: 120px;
}

.blog-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-intro {
  max-width: 700px;
  margin-bottom: 2rem;
}

.blog-eyebrow {
  margin-bottom: 0.65rem;
  color: #465575;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.blog-intro > p:last-child {
  color: #475569;
  line-height: 1.7;
}

.blog-posts {
  display: grid;
  gap: 2rem;
}

.blog-post {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dce2ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 26, 60, 0.04);
  scroll-margin-top: 120px;
}

.blog-post-content {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.blog-date {
  display: block;
  margin-bottom: 0.7rem;
  color: #52617a;
  font-size: 0.85rem;
}

.blog-post h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.blog-body {
  max-width: 80ch;
  color: #374151;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.blog-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.blog-photo {
  margin: 0;
  min-width: 0;
}

.blog-photo:first-child {
  grid-column: 1 / -1;
}

.blog-photo a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #edf0f5;
}

.blog-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-photo:first-child img {
  max-height: 650px;
  aspect-ratio: auto;
  object-fit: contain;
}

.blog-empty {
  padding: 2rem;
  border: 1px solid #dce2ec;
  border-radius: 14px;
  background: #fff;
  color: #475569;
  line-height: 1.7;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.blog-pagination a {
  padding: 0.7rem 1rem;
  border: 1px solid #0a1a3c;
  border-radius: 999px;
  background: #0a1a3c;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
}

.blog-pagination a:hover {
  background: #21355a;
  opacity: 1;
}

.blog-section a:focus-visible {
  outline: 3px solid #5072a7;
  outline-offset: 4px;
}

@media (max-width: 1200px) {
  body > header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.5rem;
    padding: 0.75rem 1rem;
  }

  body > header img {
    height: 60px;
  }

  body > header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  body > header img {
    height: 50px;
  }

  body > header nav ul {
    gap: 0.4rem 0.8rem;
  }

  body > header nav a {
    font-size: 0.75rem;
  }

  .blog-section {
    padding: 3rem 1rem;
    scroll-margin-top: 160px;
  }

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

  .blog-post {
    scroll-margin-top: 160px;
  }
}
