/**
 * News Gallery Slider Styles
 * Immersive slider for news articles in the visa mega menu
 * Consistent with city-hero styling from destinations menu
 */

.news-gallery-container {
  height: 100%;
  min-height: 350px;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #f1f5f9; /* slate-100 */
}

.news-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.news-gallery-slide.active {
  opacity: 1;
  z-index: 10;
}

.news-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-gallery-slide.active img {
  transform: scale(1.1);
}

/* Content Area - Matching city-hero-content */
.news-gallery-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  padding-bottom: 2rem; /* Padding to clear the progress bars */
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

.news-gallery-slide.active .news-gallery-content {
  transform: translateY(0);
  opacity: 1;
}

/* Navigation Controls */
.news-gallery-nav {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.news-gallery-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.news-gallery-btn:hover {
  background-color: white;
  color: #0f172a; /* slate-900 */
}

/* Progress Indicators */
.news-gallery-indicators {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 2px;
  z-index: 20;
  width: 100%;
}

.news-gallery-dot {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}

.news-gallery-dot.active {
  background-color: rgba(255, 255, 255, 0.3);
}

.news-gallery-progress {
  height: 100%;
  background-color: white;
  width: 0;
}

.news-gallery-dot.active .news-gallery-progress {
  width: 100%;
  transition: width 5s linear; /* Duration of slide */
}
