@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

/* --- MARQUEE STYLES START --- */

/* 1. Make the main carousel container the positioning reference */
.hero-carousel {
  position: relative;
}

/* 2. Ensure Swiper images fill the slide */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. The main band: centered and transparent */
.watermark-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  background-color: rgba(128, 128, 128, 0.255);
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 5; /* Sits above images (z-index: 1) but below controls (z-index: 10) */
  pointer-events: none; /* Allows you to click/drag the slides underneath */
}

/* The track that holds the text and animates */
.marquee-track {
  display: flex;
  width: fit-content;
  animation: marquee 15s linear infinite;
}

/* The text itself */
.marquee-track span {
  display: inline-block;
  color: white;
  padding: 8px 0;
  margin-right: 20vw; /* Distance between text items */
  font-family: "Raleway", sans-serif;
  font-size: 1.2em;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 10px; /* <-- Add this line */
}

/* The seamless loop animation */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 4. Ensure Swiper controls are on top of the marquee */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee-track span {
    padding: 5px 0;
    margin-right: 40px;
    font-size: 1em;
  }
}
/* --- MARQUEE STYLES END --- */
