/* Styling futuristik untuk Berita Terkini */
.news-grid-container {
  position: relative;
  padding: 20px 0;
}

.news-grid-container h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.news-grid-container h4:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  border-radius: 2px;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  border: none;
}

.news-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  transition: height 0.3s ease;
}

.news-card:hover::before {
  height: 6px;
}

.news-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.news-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image-container img {
  transform: scale(1.1);
}

.news-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(44, 62, 80, 0.9);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.news-content {
  padding: 25px 20px;
}

.news-title {
  margin: 0 0 15px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.news-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: block;
}

.news-title a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.3s ease;
}

.news-card:hover .news-title a::after {
  width: 100%;
}

.news-title a:hover {
  color: #3498db;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7f8c8d;
}

.news-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-meta-item a {
  color: #7f8c8d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-meta-item a:hover {
  color: #3498db;
}

.view-more-btn {
  display: inline-block;
  background: linear-gradient(45deg, #3498db, #2c3e50);
  color: white;
  padding: 12px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.4);
  text-decoration: none;
  color: white;
}

.view-more-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20px;
  height: 200%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(25deg);
  transition: all 0.6s;
}

.view-more-btn:hover::after {
  left: 120%;
}

/* Efek shimmer untuk tampilan futuristik */
.news-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20px;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(25deg);
  transition: all 0.8s;
  z-index: 1;
}

.news-card:hover::after {
  left: 120%;
}

/* Animasi untuk judul */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-title {
  animation: fadeInUp 0.6s ease;
}

/* Responsive */
@media (max-width: 992px) {
  .news-image-container {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .news-image-container {
    height: 160px;
  }
  
  .news-title {
    font-size: 1rem;
  }
  
  .news-meta {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
}