/* Wrapper for entire slider */
.modern-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* Flex container for slides */
.modern-slider {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

/* Each individual slide */
.modern-slide {
  position: relative;
  flex: 0 0 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Full translucent overlay on the slide */
.modern-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.1)
  );
  z-index: 1;
  pointer-events: none;
}

/* Image background or fallback */
.slider-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Overlay content container */
.modern-slide-overlay {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 800px;
  margin-left: 13vw;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

/* Title with highlighted background */
.slider-title {
  font-size: 4rem; /* Increased from 3.5rem */
  font-weight: bold;
  color: white;
  line-height: 1.2;
  display: inline;
  padding: 0 0.2em; /* slight padding for better highlight */
}

/* Description */
.slider-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
  word-wrap: break-word;
}

/* Button styling */
.slider-button {
  background-color: #ff7f50;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

.slider-button:hover {
  background-color: #037b90;
  color: white;
}

/* Dots navigation */
.slider-indicators {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #ff7f50;
}

/*clicking*/
/* Navigation areas (left & right) */
.slider-nav-left,
.slider-nav-right {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 5;
  cursor: pointer;
}

/* Smaller left clickable area */
.slider-nav-left {
  left: 0;
  width: 12%;  /* reduced width */
}

/* Right side stays wider */
.slider-nav-right {
  right: 0;
  width: 20%;  /* you can adjust this too if needed */
}

/* Responsive */
@media (max-width: 768px) {
  .modern-slide {
    height: 400px;
  }

  .modern-slide-overlay {
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .slider-title {
    font-size: 1.8rem;
  }

  .slider-description {
    font-size: 1rem;
  }

  .slider-button {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}


/*Adverts*/

.ad-modern-slider-wrapper {
  width: 100%;
  margin: 40px auto;
  position: relative;
}

.ad-modern-slider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.ad-modern-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.ad-modern-slide.ad-active {
  opacity: 1;
  z-index: 1;
}

.ad-slider-media {
  height: 100px; /* Keep or adjust as needed */
  background-size: contain; /* Makes the full image visible */
  background-repeat: no-repeat; /* Prevents tiling */
  background-position: center; /* Centers the image */
  background-color: #fff; /* Fallback background */
}

/* Controls now below the image */
.ad-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.ad-slider-media:hover {
  filter: grayscale(100%);
}

.ad-slider-nav-left,
.ad-slider-nav-right {
  background-color: #FF7F50;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.ad-slider-nav-left:hover,
.ad-slider-nav-right:hover {
  background-color: #037b90;
}

