/* Custom Navbar Styling */
.custom-navbar {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  transition: background 0.3s ease;
}

.navbar-brand {
  color: #fff !important;
}

.navbar-brand h3 {
  font-size: 20px;
  margin: 0;
  font-weight: 300;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    margin-top: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 10px 12px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.open .navbar-toggler-icon {
  transform: rotate(90deg);
  transition: 0.3s;
}

/* Slider / Carousel Container */
#sliderUtama {
  position: relative;
  overflow: hidden;
}

/* Slider Image Sizing - Ensure same size for all images */
.slider-image {
  height: 70vh;
  min-height: 450px;
  max-height: 650px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 10s ease-out;
}

.carousel-item {
  position: relative;
  overflow: hidden;
}

/* Dark Gradient Overlay for better text readability */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

/* Slide Caption styling and alignment */
.carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  z-index: 2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  max-width: 75%;
  left: 12.5%;
}

.carousel-caption h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.carousel-caption p {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.8s ease 0.15s;
}

/* Ken Burns (Zoom) Animation on active slide */
@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.carousel-item.active .slider-image {
  animation: kenBurns 10s ease-out forwards;
}

/* Trigger caption animations on active slide */
.carousel-item.active .carousel-caption h1 {
  opacity: 1;
  transform: translateY(0);
}

.carousel-item.active .carousel-caption p {
  opacity: 1;
  transform: translateY(0);
}

/* Modernized Carousel Indicators (dots) */
.carousel-indicators {
  z-index: 3;
  margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: #fff;
  opacity: 0.4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.carousel-indicators .active {
  width: 26px;
  border-radius: 5px;
  opacity: 1;
  background-color: #ffc107; /* Warning yellow accent */
}

/* Modernized Carousel Prev/Next Buttons */
.carousel-control-prev,
.carousel-control-next {
  width: 8%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

#sliderUtama:hover .carousel-control-prev,
#sliderUtama:hover .carousel-control-next {
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.45);
  padding: 1.25rem;
  border-radius: 50%;
  background-size: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-control-prev:hover .carousel-control-prev-icon {
  transform: translateX(-4px) scale(1.05);
}

.carousel-control-next:hover .carousel-control-next-icon {
  transform: translateX(4px) scale(1.05);
}

/* ==========================================
   Gallery / Activity Feed (Home Page)
   ========================================== */
.header-line {
  height: 2px;
  width: 40px;
  background-color: #ffc107;
}

.section-title-custom {
  font-weight: 800;
  letter-spacing: 2px;
  color: #1a1a1a;
  font-size: 28px;
}

.activity-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.activity-img-wrapper {
  overflow: hidden;
  position: relative;
  height: 400px;
}

.activity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-img {
  transform: scale(1.03);
}

.activity-body {
  padding: 30px 40px;
}

.activity-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #1a1a1a;
}

.activity-snippet {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.btn-readmore {
  display: inline-block;
  background: transparent;
  border: 2px solid #ffc107;
  color: #ffc107;
  padding: 10px 32px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-readmore:hover {
  background: #ffc107;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* ==========================================
   Activity Detail Page
   ========================================== */
.navbar-scrolled {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.detail-container {
  margin-top: 130px;
  margin-bottom: 80px;
}

.detail-header {
  position: relative;
}

.brand-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.brand-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-top: 5px;
}

.header-decor-line {
  position: absolute;
  top: 15px;
  right: 0;
  width: 60px;
  height: 2px;
  background-color: #ffc107;
}

.detail-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  height: 480px;
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffc107;
  letter-spacing: 1px;
}

.detail-title {
  font-size: 32px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}

.meta-row {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-item i {
  font-size: 16px;
}

.back-to-home-btn {
  border: 1px solid #ccc;
  color: #555;
  padding: 6px 18px;
  font-size: 13px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: #fff;
  text-decoration: none;
}

.back-to-home-btn:hover {
  background-color: #555;
  color: #fff !important;
  border-color: #555;
  transform: translateX(-3px);
}

.detail-description {
  font-size: 18px;
  line-height: 1.8;
  color: #333 !important;
  text-align: justify;
}

/* Stacked detail photos */
.detail-photo-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.detail-stacked-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.detail-photo-item:hover .detail-stacked-img {
  transform: scale(1.02);
}

/* ==========================================
   Related Activity Gallery
   ========================================== */
.related-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.related-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.related-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-text {
  font-size: 13px;
  font-weight: 600;
}

.related-img-link:hover .related-img-wrapper {
  transform: scale(1.02);
}

.related-img-link:hover .related-img {
  transform: scale(1.05);
}

.related-img-link:hover .related-overlay {
  opacity: 1;
}

/* ==========================================
   Responsive Styles for Mobile
   ========================================== */
@media (max-width: 768px) {
  /* Slider */
  .slider-image {
    height: 50vh;
    min-height: 350px;
  }
  .carousel-caption {
    width: 85%;
    left: 7.5%;
  }
  .carousel-caption h1 {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .carousel-caption p {
    font-size: 15px;
  }
  .carousel-indicators {
    margin-bottom: 1rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  /* Activity cards */
  .activity-img-wrapper {
    height: 250px;
  }
  .activity-body {
    padding: 20px 15px;
  }
  .activity-title {
    font-size: 18px;
  }
  .activity-snippet {
    font-size: 14px;
  }

  /* Detail Page */
  .detail-container {
    margin-top: 100px;
  }
  .brand-title {
    font-size: 26px;
  }
  .detail-img-wrapper {
    height: 280px;
  }
  .detail-title {
    font-size: 22px;
  }
  .detail-description {
    font-size: 15px;
  }
  .related-img-wrapper {
    height: 100px;
  }
}