/* Berkas: src/css/hadist.css (Kode Lengkap & Sudah Diperbaiki) */

.hadist {
    width: 100%;
    margin-top: 4rem; /* MENAMBAHKAN JARAK DARI ATAS */
    /* MENAMBAHKAN RUANG ATAS & BAWAH UNTUK ORNAMEN */
    padding: 13rem 1.5rem 8rem ; 
    text-align: center;
    background-image: url('../assets/images/sample/bg-hadist.png');
    background-size: cover;
    background-position: center;
    color: var(--main-text-color);
    position: relative;
    overflow: hidden;
    border-radius: 20px; /* Sudut melengkung */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Efek bayangan */
}

/* Ornamen ATAS (Lampion Gantung) */
.hadist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url('../assets/images/sample/ornamen-top-hadist.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0.8;
    will-change: transform;
    z-index: 3;
}

/* Ornamen BAWAH (Siluet Masjid) */
.hadist::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('../assets/images/sample/ornamen-bot-hadist.png');
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* Kontainer untuk teks hadist */
.hadist-card {
    background: rgba(255, 255, 255, 0.1);
    /* Latar transparan */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Pengaturan Layout & Jarak */
    padding: 1rem 2rem;
    position: relative;
    /* Diperlukan agar tidak tumpang tindih aneh */
    z-index: 2;
    /* Pastikan di atas Lottie jika ada */
}

.hadist-card h2 {
   font-size: 2rem;
   font-family: var(--sacramento);
   font-weight: 600;
   margin-bottom: 1.5rem;
   color: var(--heading-text-color);
   text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.hadist-card p {
   line-height: 1.5;
   text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.hadist-card p span {
   display: block;
   margin-top: 1.5rem;
   font-size: 1.1rem;
   font-style: italic;
}

.lottie-bawah {
    position: absolute;
    bottom: -150px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
}

/* Lottie di sisi KIRI bawah */
.lottie-bawah.lottie-bawah-kiri {
    left: 20%; /* Posisikan di sebelah kiri tengah */
    transform: translateX(-50%); /* Koreksi posisi */
}

/* Lottie di sisi KANAN bawah */
.lottie-bawah.lottie-bawah-kanan {
    left: 80%; /* Posisikan di sebelah kanan tengah */
    transform: translateX(-50%) scaleX(-1); /* Koreksi posisi dan DIBALIK */
}