/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0b0b0b;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

.dark-slider-section {
  background-color: #0b0b0b;
  padding: 100px 20px;
}

.slider-container {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

/* Slides */
.card-slide {
  position: relative;
  background-color: #181818;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.card-slide:hover {
  transform: translateY(-5px);
}

.i {
  width: 550px;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* --- Overlay Styles Updated --- */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  padding: 10px;
}

.card-slide:hover .card-overlay {
  opacity: 1;
}

/* Centered Content in Overlay */
.card-overlay-content {
  text-align: center;
}
.card-overlay-date {
  display: flex;
  flex-direction: column;
  
  height: 100%; /* Take full height of overlay-content */
  padding-top: 26px; /* Adjust as needed */
}

.card-overlay-date .news-date {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.9;
  
}

.card-overlay-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 6px;
  font-size: 16px;
}

.card-overlay-icons span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  color: #fff;
}

.card-overlay-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  max-width: 85%;
  margin: 0 auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* Instagram Icon Top Right */
.overlay-insta-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  color: white;
  opacity: 0.9;
}

.slider-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 20px;
}

.custom-nav {
  width: 50px;
  height: 50px;
  background-color: #2b2b2b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.custom-nav svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.custom-nav:hover {
  background-color: #444;
  transform: scale(1.05);
}

/* Disable Swiper's default arrows */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .slider-navigation {
    display: none;
  }

  .card-slide img {
    height: 220px;
  }
}
