
.banner-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;        /* Kích thước font cho desktop */
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #1a1a1a;
}

/* Kiểu mặc định cho banner (màn hình ≥ 992px hoặc khi không có media query) */
.banner-header {
  position: relative;
  background-image: url("/static/imgs/banner.png"); /* đường dẫn so với css folder */
  background-size: cover;
  background-position: center center;
  margin-top: -60px; 
}

/* Cho tablet (≥768px và ≤991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .banner-header {
    margin-top: -80px; 
  }
}

/* Cho mobile (≤767px) */
@media (max-width: 767.98px) {
  .banner-header {
    margin-top: 0px; /* ví dụ “nhiều hơn” so với -60px */
  }
}

.banner{
    padding-top: 100px;
    padding-bottom: 50px;
}

/* Cho tablet (≥768px và ≤991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .banner {
    padding-top: 150px; 
  }
}

/* Cho mobile (≤767px) */
@media (max-width: 767.98px) {
  .banner {
    padding-top: 30px; /* ví dụ “nhiều hơn” so với -60px */
  }
}


/* Chỉ cần vài rule nhỏ để bo góc + overlay gradient + positioning text */

.card-news {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}
.card-news:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Bo góc cho phần ảnh trên card */
.card-news .card-img-top {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

/* Overlay gradient phía dưới ảnh để chữ trắng nổi rõ */
.card-news .overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* 50% chiều cao ảnh */
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  z-index: 1;
}

/* Nội dung text (title + date) đặt lên trên overlay */
.card-news .news-text {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  color: #fff;
  padding: 0;
}
.card-news .news-text h5 {
  font-size: 1.125rem; /* ~18px */
  line-height: 1.3;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.card-news .news-text p {
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive: ẩn Hero cạnh ở dưới 992px và bo góc ảnh full width */
@media (max-width: 991.98px) {
  .col-lg-4.hero-secondary {
    display: none;
  }
}
@media (max-width: 767.98px) {
  /* Ẩn overlay ở mobile nếu không cần */
  .card-news .overlay-gradient {
    height: 60%;
  }
}

