/* Hover scale image */
.service-carousel .item img {
  transition: transform 0.4s ease;
}

.service-carousel .item:hover img {
  transform: scale(1.05);
}

/* Button style match your example */
.carousel-btn {
  opacity: 0.7;
  transition: all 0.3s ease;
  border: none;
}

.carousel-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.review-carousel .item img {
  aspect-ratio: 16/6;
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.review-notes {
  max-width: 60%;
  margin: 0 auto;
  text-align: center;
  line-height: 1.4;
}

.background-image {
  aspect-ratio: 16/6;
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .review-notes {
    max-width: 80%;
    /* lebih lebar di layar kecil */
    font-size: 1rem;
    /* perkecil sedikit teks */
  }

  .review-carousel .item img {
    aspect-ratio: 16/9;
  }

  .background-image {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .review-notes {
    max-width: 90%;
    font-size: 12px;
  }

  .review-name {
    font-size: 10px;
  }

  .background-image {
    aspect-ratio: 16/9;
  }
}

.poster-wrapper {
  width: 100%;
  /* kecilin ukuran poster */
  aspect-ratio: 21 / 9;
  /* jaga rasio gambar */
  border-radius: 20px;
  overflow: hidden;
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge status (pojok kanan atas) */
.event-status {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #198754;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: capitalize;
  z-index: 2;
  width: auto !important;
  height: auto !important;
}

.event-status.upcoming {
  background-color: rgba(13, 110, 253, 0.9);
  color: white;
}

.event-status.ongoing {
  background-color: rgba(25, 135, 84, 0.9);
  color: white;
}

.event-status.finished {
  background-color: rgba(108, 117, 125, 0.9);
  color: white;
}

/* Badge countdown (pojok kiri bawah) */
.event-countdown {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  z-index: 2;
  width: auto !important;
  height: auto !important;
  backdrop-filter: blur(10px);
}

.event-countdown.upcoming {
  background-color: rgba(13, 110, 253, 0.95);
  color: white;
}

.event-countdown.ongoing {
  background-color: rgba(255, 193, 7, 0.95);
  color: #000;
}

.event-countdown.finished {
  background-color: rgba(220, 53, 69, 0.95);
  color: white;
}

.lang-toggle-wrapper {
  display: inline-block;
}

.lang-toggle-btn {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 3px;
  width: 90px;
  height: 36px;
  overflow: hidden;
  /* Penting! Prevent slider overflow */
}

.lang-option {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: #6c757d;
  transition: color 0.25s ease;
  z-index: 2;
  cursor: pointer;
}

.lang-option.active {
  color: #fff;
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 6px);
  /* Fixed: 50% minus total horizontal padding (3px * 2) */
  height: calc(100% - 6px);
  background: #05402B;
  border-radius: 17px;
  transition: transform 0.25s ease;
  z-index: 1;
}

.lang-slider.slide-right {
  transform: translateX(calc(100% + 6px));
  /* Fixed: translate by 100% of slider width + gap between */
}

/* Gallery — eye-catching landscape style */
.gallery-grid .gallery-item {
  display: block;
  background: #000;
  cursor: pointer;
  padding: 0;
  border: none;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Make images landscape with consistent ratio */
.gallery-grid .ratio-box {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* modern browsers */
  overflow: hidden;
  position: relative;
  background: #111;
}

.gallery-grid .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .9, .3, 1), filter .3s ease;
  transform-origin: center center;
}

/* Hover effects */
.gallery-grid .gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  z-index: 5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.gallery-grid .gallery-item:hover .gallery-img {
  transform: scale(1.08);
  filter: brightness(.92) saturate(1.05);
}

/* Overlay */
.gallery-overlay {
  pointer-events: none;
  /* allow clicking the button itself */
  transition: opacity .3s ease;
  opacity: 0;
  color: #fff;
}

.gallery-item:focus .gallery-overlay,
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .overlay-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  border-radius: 0 0 .5rem .5rem;
}

/* overlay text container */
.overlay-text {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 600;
}

/* small badge top-left */
.overlay-top .badge {
  opacity: .95;
}

/* responsive tuning */
@media (max-width: 767px) {
  .gallery-grid .ratio-box {
    aspect-ratio: 4 / 3;
  }
}

/* Badge positioning untuk desktop - DI TENGAH */
@media (min-width: 992px) {
  .badge-wrapper-desktop {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 0 !important;
    z-index: 10 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .badge-wrapper-desktop .badge-circle {
    width: 60px;
    height: 60px;
    background-color: #05402B;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(5, 64, 43, 0.5);
    position: relative;
    z-index: 2;
  }

  .badge-wrapper-desktop .badge-line {
    width: 3px;
    height: calc(100% - 30px);
    /* Sesuaikan dengan tinggi circle */
    background-color: #05402B;
    position: absolute;
    top: 60px;
    /* Mulai dari bawah circle */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  /* Tambahan untuk memastikan content tidak tertutup */
  .content-row {
    position: relative;
    padding-top: 30px !important;
    min-height: 250px;
    /* Tinggi minimum yang konsisten */
  }
}

/* Badge positioning untuk mobile - DI KIRI */
@media (max-width: 991.98px) {
  .badge-wrapper-mobile {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 10 !important;
    height: 100%;
    width: 40px;
    /* Sesuai dengan lebar circle */
  }

  .badge-wrapper-mobile .badge-circle {
    width: 40px;
    height: 40px;
    background-color: #05402B;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 3px 8px rgba(5, 64, 43, 0.4);
    position: relative;
    z-index: 2;
    /* Pastikan circle tidak punya margin/padding yang mengganggu */
    margin: 0;
    padding: 0;
  }

  .badge-wrapper-mobile .badge-line {
    width: 2px;
    height: calc(100% - 20px);
    /* Tinggi penuh minus setengah circle */
    background-color: #05402B;
    position: absolute;
    top: 40px;
    /* Mulai dari bawah circle */
    left: 31px;
    /* (40px / 2) - 1px = 19px (tengah circle) */
    z-index: 1;
    margin: 0;
    transform: none !important;
  }

  .content-row {
    padding-left: 55px !important;
    padding-top: 20px !important;
    min-height: 200px;
  }
}

/* Hide badge line pada point terakhir */
.no-line .badge-line {
  display: none !important;
}

/* Pastikan container badge memiliki height yang cukup */
.badge-wrapper-desktop,
.badge-wrapper-mobile {
  height: 100%;
}

/* Konsistensi tinggi untuk semua row */
.content-row {
  display: flex;
  align-items: center;
}