.news-hero .carousel-item {
  position: relative;
  height: 75vh; /* full hero */
  min-height: 450px;
  background-size: cover;
  background-position: center;
}

/* gradient biar teks kebaca */
.news-hero .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
  z-index: 1;
}

.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.carousel-overlay {
  position: absolute;
  bottom: 12%;
  left: 8%;
  right: 8%;
  z-index: 2;
  color: #fff;
  max-width: 60%;
}

.carousel-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0.5rem 0;
  text-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.carousel-date {
  font-size: 1rem;
  opacity: 0.9;
}

.carousel-link:hover .carousel-title {
  color: #ffb703;
}

  .news-thumb {
    height: 140px;          /* seragam semua gambar */
    width: 100%;
    object-fit: cover;      /* biar nggak ketarik */
  }

  .news-card {
    transition: all 0.2s ease-in-out;
  }

  .news-card:hover {
    background: #f9f9f9;    /* efek hover */
    transform: translateY(-2px);
  }

/* seacrh */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 15px 60px 15px 25px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #e55a2b;
    transform: translateY(-50%) scale(1.05);
}

/* sidebar */
.populer-thumb {
    width: 100px;      /* fix lebar */
    height: 80px;      /* fix tinggi */
    object-fit: cover; /* biar gambar ke-crop tapi tetap proporsional */
    border-radius: 6px;
  }
