/* ========== PICK UP CAROUSEL ========== */

.carousel {
  width: 100%;
  padding: 0;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1000px;
  box-sizing: border-box;
}

.carousel-wrapper {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

/* Space at both ends so the first and last slides can be centered */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  flex: 0 0 25%;
}

/* Individual slides */
.carousel-slide {
  position: relative;
  flex: 0 0 50%;
  scroll-snap-align: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform, opacity;
}

/* Slide images */
.carousel-slide img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 30px;
  backface-visibility: hidden;
}

/* PICK UP badge */
.carousel-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 16px;
  background: #f08300;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Text overlay */
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 26px 24px;
  color: #fff;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Date and category */
.carousel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.carousel-date {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.carousel-tag {
  padding: 1px 9px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

/* Slide title */
.carousel-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Navigation arrows */
.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: #000;
  border: none;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-button-prev {
  left: 22.5%;
}

.carousel-button-next {
  right: 22.5%;
}

/* Arrow icons */
.carousel-button::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.carousel-button-prev::after {
  border-width: 10px 14px 10px 0;
  border-color: transparent #fff transparent transparent;
  margin-right: 4px;
}

.carousel-button-next::after {
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* Dot navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 4px 0;
}

.carousel-dots .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  padding: 0;
  background: #d9dde2;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.carousel-dots .dot.active {
  background: #9e1b32;
  transform: scale(1.3);
}

/* Tablet */
@media (max-width: 900px) {
  .carousel-slide img {
    height: 240px;
  }

  .carousel-button-prev {
    left: 8%;
  }

  .carousel-button-next {
    right: 8%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .carousel-slide {
    flex: 0 0 86%;
  }

  .carousel-wrapper::before,
  .carousel-wrapper::after {
    flex-basis: 7%;
  }

  .carousel-slide img {
    height: 200px;
    border-radius: 18px;
  }

  .carousel-caption {
    padding: 40px 16px 16px;
    border-radius: 0 0 18px 18px;
  }

  .carousel-title {
    font-size: 16px;
    line-height: 1.4;
  }

  .carousel-badge {
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    font-size: 12px;
  }

  .carousel-meta {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .carousel-button-prev {
    left: 2%;
  }

  .carousel-button-next {
    right: 2%;
  }
}


