/* ==========================================================================
   BantuPeduli.com - Hero Photo Carousel Styling (Vanilla CSS)
   ========================================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background-color: #0f172a;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(19, 88, 61, 0.15);
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 380px;
        border-radius: 0.75rem;
    }
}

.carousel-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

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

/* Scrim Gradient Overlay agar teks selalu terbaca kontras & elegan */
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(19, 88, 61, 0.75) 70%, rgba(11, 58, 40, 0.95) 100%);
    z-index: 2;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2.5rem;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 2rem 1.25rem;
    }
}

.carousel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #b58c30;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .carousel-title {
        font-size: 1.35rem;
    }
}

.carousel-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f1f5f9;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tombol Navigasi Panah Kiri & Kanan */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background-color: #13583d;
    color: #ffffff;
    border-color: #b58c30;
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: 1.25rem; }
.carousel-next { right: 1.25rem; }

@media (max-width: 640px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    .carousel-prev { left: 0.5rem; }
    .carousel-next { right: 0.5rem; }
}

/* Indikator Titik (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 1.25rem;
    right: 2.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

@media (max-width: 768px) {
    .carousel-dots {
        right: 1.25rem;
        bottom: 1rem;
    }
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 28px;
    background-color: #b58c30;
    box-shadow: 0 0 8px rgba(181, 140, 48, 0.8);
}
