/* ===== WRAP FEATURED ===== */
.wrap-featured {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  padding: 2px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== HERO / MAIN FEATURED POST ===== */
.featured-hero {
  margin-bottom: 2px;
  cursor: pointer;
  background: #000;
}

.featured-hero .img-wrap {
  position: relative;
  overflow: hidden;
}

.featured-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.featured-hero:hover img {
  transform: scale(1.03);
}

.featured-hero .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 60%,
    transparent 100%
  );
}

.featured-hero .overlay h2 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0;
}

.featured-hero .overlay h2 a {
  color: #fff;
  text-decoration: none;
}

.featured-hero .overlay h2 a:hover {
  text-decoration: none;
}

.featured-hero .meta-bar {
  padding: 10px 16px;
  background: #000;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #37474f;
  color: #fff;
  letter-spacing: 0.3px;
}

.meta-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== GRID POSTS (2x2) ===== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.featured-card {
  cursor: pointer;
  background: #000;
}

.featured-card .img-wrap {
  position: relative;
  overflow: hidden;
}

.featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 10px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 60%,
    transparent 100%
  );
}

.featured-card .overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card .overlay h3 a {
  color: #fff;
  text-decoration: none;
}

.featured-card .overlay h3 a:hover {
  text-decoration: underline;
}

.featured-card .meta-bar {
  padding: 8px 12px;
  background: #000;
}

.featured-card .meta-row {
  gap: 2px;
}

.featured-card .badge {
  font-size: 0.62rem;
  padding: 2px 7px;
}

.featured-card .meta-time {
  font-size: 0.65rem;
}

/* ===== RESPONSIVE: Tablet / Small (≤ 480px) ===== */
@media (max-width: 480px) {
  .wrap-featured {
    padding: 2px;
    border-radius: 0;
    margin: 20px 0 0 0 !important;
    overflow: visible !important;
  }

  .badge {
    border-radius: 0;
  }

  .featured-hero img {
    height: 220px;
  }

  .featured-hero .overlay {
    padding: 16px 14px 10px;
  }

  .featured-hero .overlay h2 {
    font-size: 1.05rem;
  }

  .featured-hero .meta-bar {
    padding: 8px 14px;
  }

  .featured-card img {
    height: 220px; /* ✅ Diubah dari 140px menjadi 220px */
  }

  .featured-card .overlay {
    padding: 14px 10px 8px;
  }

  .featured-card .overlay h3 {
    font-size: 0.8rem;
  }

  .featured-card .meta-bar {
    padding: 7px 10px;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* ===== RESPONSIVE: Mobile (≤ 360px) ===== */
@media (max-width: 360px) {
  .wrap-featured {
    padding: 2px;
    border-radius: 0;
    margin: 0 !important;
    overflow: visible !important;
  }

  .badge {
    border-radius: 0;
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .meta-time {
    font-size: 0.62rem;
  }

  .featured-hero {
    margin-bottom: 2px;
  }

  .featured-hero img {
    height: 180px;
  }

  .featured-hero .overlay {
    padding: 12px 10px 8px;
  }

  .featured-hero .overlay h2 {
    font-size: 1.3rem;
  }

  .featured-hero .meta-bar {
    padding: 6px 10px;
  }

  .featured-grid {
    gap: 2px;
  }

  .featured-card img {
    height: 220px; /* ✅ Diubah dari 200px menjadi 220px */
  }

  .featured-card .overlay {
    padding: 10px 8px 6px;
  }

  .featured-card .overlay h3 {
    font-size: 1rem;
    -webkit-line-clamp: 3;
    line-height: 1.3;
  }

  .featured-card .meta-bar {
    padding: 5px 8px;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}