/* ============================================================
   Related Websites — Matched with Hero Section (Elegant Glow)
   ============================================================ */

#related-websites.related-sites {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #4a008a 0%, #2b004d 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 10px 30px rgba(255, 255, 255, 0.05);
}

/* Subtle ambient glow (like hero section) */
#related-websites.related-sites::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top center,
    rgba(255, 0, 255, 0.1),
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 0;
  opacity: 0.5;
}

/* === Section Title === */
#related-websites.related-sites h2,
#related-websites.related-sites .section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 25px; /* tighter spacing to carousel */
  color: #fff;
  position: relative;
  z-index: 1;
  letter-spacing: 0.6px;
  text-shadow: 0 0 20px rgba(255, 215, 255, 0.4);
  animation: titleFadeIn 1.4s ease forwards;
}

#related-websites.related-sites h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #ffb6ff, #ffd700);
  margin: 12px auto 0;
  border-radius: 4px;
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(255, 215, 255, 0.6);
}

/* === Carousel Layout === */
.related-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 0; /* ensure tight to title */
  padding-top: 0;
}

.carousel-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1150px;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

/* ============================================================
   Site Card Styling
   ============================================================ */
.site-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
              0 0 25px rgba(255, 0, 255, 0.08);
  width: 300px;
  padding: 45px 25px 40px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.site-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55),
              0 0 40px rgba(255, 105, 255, 0.35);
}

/* === Site Icon === */
.site-card .site-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.site-card .site-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: all 0.4s ease;
}

.site-card:hover .site-icon img {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(255, 215, 255, 0.4);
}

/* === Title & Description === */
.site-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 15px 0 8px;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.site-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

/* === Visit Button === */
.visit-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ffb6ff, #ffd700);
  color: #2b004d;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 215, 255, 0.3);
}

.visit-btn:hover {
  background: #fff;
  color: #4b0082;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* === Fade Animation for Section Title === */
@keyframes titleFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive Layout
   ============================================================ */
@media (max-width: 992px) {
  .carousel-track {
    gap: 30px;
  }
  .site-card {
    width: 45%;
    min-width: 260px;
  }
}

@media (max-width: 768px) {
  .carousel-track {
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }
  .site-card {
    width: 85%;
    max-width: 360px;
  }
  #related-websites.related-sites {
    padding: 60px 0 70px;
  }
  #related-websites.related-sites h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .site-card {
    width: 90%;
    padding: 30px 18px;
  }
  .site-card .site-icon {
    width: 90px;
    height: 90px;
  }
}
