
/* Blog Hero Overlay for better readability */
.blog-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: #fff;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 80, 0.55); /* dark overlay */
  z-index: 0;
}

.blog-hero > .container,
.blog-hero * {
  position: relative;
  z-index: 1;
}

.blog-hero h1,
.blog-hero h2,
.blog-hero h3 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25), 0 1px 0 #222;
}

.blog-hero-image {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.blog-feature-img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  object-fit: cover;
}

/* --- Fix modal overflow on small screens --- */
@media (max-width: 600px) {
  .modal-container {
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 16px 6px;
  }
  .modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-bottom: 0.5rem;
  }
  .modal-navigation {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
  }
}
