/* ===== Base (mobile-first) ===== */
.hero-blog-section{
  position: relative;
  border-radius: 10px;
  overflow: hidden;

  /* background image comes from inline style */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;   /* text at the bottom */
}

/* Gradient above the image, below the text */
.hero-blog-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,80,142,0.9) 55%, rgba(0,0,0,0) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Text container */
.hero-overlay{
  position: relative;
  z-index: 1;
  width: 100%;
  color: #fff;
}

.featured-heading {
        font-size: 30px;
        margin-top: 16px;
        margin-bottom: -16px;
        font-weight: 600;
}

.hero-content{ max-width: 720px; }

.hero-date{
  font-size: 14px;
  color: #f7d14c;
  margin-bottom: 10px;
}

.hero-title{
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
}
.hero-title a{ color:#fff; text-decoration:none; }
.hero-title a:hover{ text-decoration:none; }

.hero-summary{
  font-size: 16px;
  margin-bottom: 10px;
}

/* ===== Small screens: content decides height (already working) ===== */
@media (max-width: 640px){
  .hero-blog-section{
    min-height: 450px;
  }
  .hero-title{ font-size: 22px; }
  .hero-summary{ font-size: 15px; }
  
}

/* ===== Desktop layout (make it tall like your first screenshot) ===== */
@media (min-width: 641px){
  /* Choose either min-height or aspect-ratio (kept both; use what you prefer) */
  .hero-blog-section{
    min-height: 470px;              /* makes it tall */
  }
  
  }

  /* Smooth, taller fade like your desktop example */
  .hero-blog-section::before{
    background: linear-gradient(
      to top,
      rgba(11,80,142,0.90) 40%,
      rgba(11,80,142,0.65) 60%,
      rgba(0,0,0,0) 92%
    );
  }

  .hero-overlay{ padding: 10px 30px; }
  .hero-title{ font-size: 34px; }
}


