/* Swiper base */
.hero-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-slide {
  position: relative;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption (reuse your styles) */
.carousel-caption {
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translateY(-35%);
  color: #fff;
  /* max-width: 600px; */
  text-align: left !important;
  z-index: 2;
}
.carousel-caption h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  /* letter-spacing: -0.5px; */
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.carousel-caption p {
  font-size: 1.5vw !important;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  font-family: "Roboto", Arial, sans-serif;
  margin: 30px 0px;
}

.carousel-caption .line {
  width: 74px;
  height: 7px;
  background: #0370bd;
  margin: 12px 0;
}

/* Buttons */
.carousel-caption-button {
  display: inline-block;
  padding: 8px 40px;
  border: 1px solid #fff;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
}

.carousel-caption-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffd700;
  transform: translateX(-100%);
  color: #fff !important;
  transition: 0.3s;
}

.carousel-caption-button:hover::before {
  transform: translateX(0);
  color: #fff !important;
}

.carousel-caption-button span {
  position: relative;
  z-index: 1;
}

/* ===== Foster-style pagination ===== */

/* ===== Foster-style pagination (clean & centered) ===== */

/* ===== Custom Pagination ===== */

/* ===== Custom Pagination ===== */
/* ===== Custom Pagination ===== */

/* Pagination container */
.custom-pagination {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px !important;
}

/* Bullet */
.custom-pagination .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  opacity: 1;
  background: none;
}

/* SVG */
.spinner {
  transform: rotate(-90deg);
}

/* Outer ring */
/* .spinner .outer {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 75.4; 2π × 12
  stroke-dashoffset: 75.4;
  opacity: 0.9;
} */

.spinner .outer {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6; /* ⬅ thicker ring */
  stroke-dasharray: 75.4;
  stroke-dashoffset: 75.4;
  opacity: 1;
}

/* Inner dot */
.spinner .inner {
  fill: rgba(255, 255, 255, 0.35);
}

/* Active state */
.swiper-pagination-bullet-active .inner {
  fill: #fff;
}

.swiper-pagination-bullet-active .outer {
  animation: progress 5s linear forwards;
}

/* Animation */
@keyframes progress {
  from {
    stroke-dashoffset: 75.4;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Carouse prev and next button */
/* .swiper-button-next,
.swiper-button-prev {
  color: white !important;
  height: 50px !important;
  width: 50px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 50px !important;
} */

.swiper-button-prev,
.swiper-button-next {
  width: 264px !important;
  height: 100% !important;
  top: 0;
  margin-top: 0;
  color: #ffffff80 !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  top: 0% !important;
}

/* Position left & right */
.swiper-button-prev {
  left: 0;
  justify-content: left !important;
}

.swiper-button-next {
  right: 0;
  justify-content: right !important;
}

/* Arrow icon size */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 50px;
  /* color: white; */
}
/* Remove focus outline from Swiper arrows */
.swiper-button-prev,
.swiper-button-next {
  outline: none;
}

.swiper-button-prev:focus,
.swiper-button-next:focus,
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
  outline: none;
  box-shadow: none;
}
/* Disable text selection / copy on swiper pagination */
.custom-pagination,
.custom-pagination * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Experiment */

.carousel-caption-button-1 {
  position: relative;
  display: inline-block;
  font-weight: bold;
  /* text-transform: uppercase; */
  color: white !important;
  background-color: rgba(0, 112, 192, 0.7);
  /* border: 1px solid white; */
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease;
}
.carousel-caption-button-1 {
  padding: 8px 46px;
  font-size: 14px;
}
.carousel-caption-button-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #ffd700;
  transition: left 0.3s ease;
  z-index: 0;
}
.carousel-caption-button-1:hover::before {
  left: 0;
}

.carousel-caption-button-1 span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: bold;
}

/* ===== Slide Dark Gradient Overlay (FINAL) ===== */
/* ===== Bottom Dark Gradient Only ===== */
.hero-swiper .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 25%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.1) 65%,
    rgba(0, 0, 0, 0) 100%
  ); */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.1) 25%,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
