.slideshow-container {
  padding: 20px;
  position: relative;
  width: 70%;
  height: 30vh;
  margin: 50px auto;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
}

.ad-card {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
}

.slide.active {
  opacity: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: white;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  color: white;
  z-index: 5;
}

.special-tag {
  background: #ff4d4d;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 1px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(255, 77, 77, 0.2);
}

.ad-title {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.ad-description {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 15px;
  max-width: 80%;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  opacity: 0.95;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  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;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.slide-nav:hover {
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .slideshow-container {
    height: 30vh;
    width: 90%;
  }

  .slide-content {
    padding: 15px 50px;
  }

  .ad-title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .ad-description {
    font-size: 14px;
    max-width: 95%;
    margin-bottom: 10px;
  }

  .special-tag {
    padding: 6px 12px;
    font-size: 0.7em;
    margin-bottom: 8px;
  }
}