/* ========================================
   ADVERTISING SYSTEM STYLES
   ======================================== */

/* Ads Slider Section */
.ads-slider-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 0;
  margin-bottom: 30px;
  overflow: hidden;
}

.ads-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.ads-slider-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.ads-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.ads-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.ads-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ads-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ads-slide-content {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
  padding: 0 60px;
}

.ads-slide-image {
  flex: 0 0 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ads-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ads-slide-info {
  flex: 1;
  color: #fff;
}

.ads-badge {
  display: inline-block;
  background: rgba(215, 155, 53, 0.2);
  color: #d79b35;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(215, 155, 53, 0.3);
}

.ads-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  line-height: 1.2;
  color: #fff;
}

.ads-description {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0 0 30px 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.ads-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #d79b35;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ads-slide-link:hover .ads-cta {
  background: #b37b1b;
  transform: translateX(5px);
}

/* Navigation Buttons */
.ads-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.ads-nav-btn:hover {
  background: rgba(215, 155, 53, 0.9);
  border-color: #d79b35;
  transform: translateY(-50%) scale(1.1);
}

.ads-prev {
  left: 20px;
}

.ads-next {
  right: 20px;
}

/* Dots Navigation */
.ads-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.ads-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ads-dot.active {
  background: #d79b35;
  width: 30px;
  border-radius: 6px;
}

.ads-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

  /* Unified Top Banner (Ads + Announcements) */
  .unified-top-banner {
    background: linear-gradient(90deg, #d79b35 0%, #b37b1b 100%);
    position: relative;
    overflow: hidden;
    min-height: 40px;
  }

  .banner-slide {
    display: none;
    padding: 10px 20px;
    transition: opacity 0.5s ease;
  }

  .banner-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Announcement Slide */
  .announcement-slide .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .announcement-slide .banner-text {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .announcement-slide .banner-text i {
    font-size: 1.1rem;
  }

  .announcement-slide .banner-controls {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .announcement-slide .contact-info {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .announcement-slide .social-links {
    display: flex;
    gap: 10px;
  }

  .announcement-slide .social-link {
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .announcement-slide .social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
  }

  /* Ad Slide */
  .ad-slide {
    text-align: center;
  }

  .ad-slide a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.3s ease;
  }

  .ad-slide a:hover {
    opacity: 0.9;
  }

  .ad-slide .ads-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* Mobile Responsive */
  @media (max-width: 768px) {
    .unified-top-banner {
      min-height: 36px;
    }

    .banner-slide {
      padding: 8px 15px;
    }

    .announcement-slide .banner-content {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }

    .announcement-slide .banner-text,
    .ad-slide a {
      font-size: 1rem;
    }

    .announcement-slide .contact-info {
      font-size: 1rem;
    }

    .announcement-slide .social-links {
      gap: 8px;
    }

    .announcement-slide .social-link {
      width: 26px;
      height: 26px;
      font-size: 1rem;
    }
  }

  /* --- CONTROLS --- */
/* Ad Card in Grid */
.ad-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.ad-card .ads-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.ad-card h3 {
  font-size: 1.8rem;
  margin: 15px 0;
  font-weight: 700;
}

.ad-card p {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.95;
}

.ad-card .btn {
  background: #fff;
  color: #667eea;
  align-self: flex-start;
}

.ad-card .btn:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

/* Global Banner */
.global-ad-banner {
  background: linear-gradient(90deg, #d79b35 0%, #b37b1b 100%);
  padding: 12px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.global-ad-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.global-ad-banner a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.global-ad-banner .ads-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ads-slider-wrapper {
    height: 350px;
  }

  .ads-slide-content {
    padding: 0 40px;
    gap: 30px;
  }

  .ads-title {
    font-size: 2.5rem;
  }

  .ads-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .ads-slider-wrapper {
    height: auto;
    min-height: 400px;
  }

  .ads-slide-content {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .ads-slide-image {
    flex: 0 0 auto;
    height: 200px;
    width: 100%;
  }

  .ads-title {
    font-size: 2rem;
  }

  .ads-description {
    font-size: 1rem;
  }

  .ads-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .ads-prev {
    left: 10px;
  }

  .ads-next {
    right: 10px;
  }

  .ads-dots {
    bottom: 20px;
  }
}
