:root {
  --white: #ffffff;
  --gray: #f0f0f0;
  --dot-active: #333;
  --dot-inactive: #bbb;
  --border-color: rgba(0, 0, 0, 0.1); /* Border color soft */
}

.flyer {
  background-color: var(--white);
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 50px 0;
}

.flyer .container {
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.slider {
  position: relative;
  display: flex;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  transition: height 0.5s ease-in-out;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px; /* Match border-radius for image */
}

.dots {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--dot-inactive);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--dot-active);
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: background 0.3s ease;
}

.nav:hover {
  background: rgba(0, 0, 0, 0.3);
  color: white;
}

.nav.prev {
  left: 10px;
}

.nav.next {
  right: 10px;
}

@media (max-width: 768px) {
  .slider-wrapper {
    width: 100%;
  }

  .nav {
    font-size: 18px;
  }
}
