/* Styling modern untuk Berita Unggulan slideshow */
.featured-news-container {
  margin: 2rem 0;
  position: relative;
}

.featured-news-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.featured-news-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.featured-news-header h4:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3498db;
  border-radius: 3px;
}

/* Slideshow container */
.featured-news-slideshow {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  height: 540px;
  width: 100%;
  max-width: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.featured-news-slideshow:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-5px);
}

/* Gambar di dalam slideshow */
.featured-news-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

/* Individual slide */
.featured-news-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.featured-news-slide.active {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}

.featured-news-slide.active {
  opacity: 1;
}

.featured-news-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

/* Content overlay */
.featured-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transition: all 0.3s ease;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 40%;
  height: auto;
}

.featured-news-content-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-news-slide:hover .featured-news-content {
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(-5px);
}

.featured-news-category {
  background: linear-gradient(45deg, #3498db, #2c3e50);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  animation: fadeInDown 0.5s ease;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  white-space: nowrap;
  width: fit-content;
}

.featured-news-category: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.4s;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-news-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  animation: slideInUp 0.5s ease;
  display: block;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  flex: 0 0 auto;
  max-height: none;
}

.featured-news-title a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1rem;
  opacity: 0.9;
  flex: 0 0 auto;
  min-height: 2rem;
}

.featured-news-meta li {
  display: flex;
  align-items: center;
  list-style: none;
}

.featured-news-meta i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.featured-news-meta a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.featured-news-meta a:hover {
  color: white;
}

/* Navigation buttons */
.slideshow-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  z-index: 10;
}

.slideshow-nav .nav-btn {
  background: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  color: #333;
  font-size: 1rem;
  position: relative;
  z-index: 20;
}

.slideshow-nav .nav-btn i {
  font-size: 1.2rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-nav .nav-btn:hover {
  background: white;
  transform: scale(1.05);
  color: #333;
}

.slideshow-nav .nav-btn:hover i {
  color: #333;
}

/* Dots indicator */
.slideshow-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.3);
}

.slideshow-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slideshow-dots button.active {
  background: #3498db;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-news-slideshow {
    height: 350px;
  }
  
  .featured-news-title {
    font-size: 1.2rem;
  }
  
  .featured-news-content {
    padding: 1.5rem 1rem 1rem;
    height: 45%;
  }
  
  .featured-news-slide img {
    object-fit: cover;
    object-position: center;
  }
  
  .slideshow-nav .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .slideshow-nav .nav-btn i {
    font-size: 1rem;
  }
}