/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* =============================================== */
/* 1. GAYA DASAR & UTAMA (HTML, BODY)             */
/* =============================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Poppins', sans-serif;
    /* PERBAIKAN: Path gambar menggunakan forward slash '/' dan dibungkus kutip */
    background-image: url('Data gambar/mainbgwebsite.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden; 
}

/* =============================================== */
/* 2. KOMPONEN UTAMA (NAVBAR, HERO, FOOTER)       */
/* =============================================== */

/* Navbar Customization */
.navbar {
    transition: background-color 0.4s ease-in-out;
}

.navbar-scrolled {
    background-color: white !important;
}

.nav-link {
    transition: color 0.3s;
}

.nav-link:hover {
    color: #198754 !important;
    font-weight: 600;
}

/* Hero Section Style */
#hero {
    height: 100vh;
    /* PERBAIKAN: Path gambar diperbaiki */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Data gambar/desamainpng.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Styling */
footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #198754 !important;
    text-decoration: underline;
}

/* =============================================== */
/* 3. ANIMASI (PRELOADER, SCROLL, PAGE ENTRANCE)  */
/* =============================================== */

/* Preloader & Spinner */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease;
}

#preloader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #198754;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animasi Scroll Interaktif */
.animate-on-scroll, .fade-in-section {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-from-left {
    transform: translateX(-80px);
}

.animate-from-right {
    transform: translateX(80px);
}

.fade-in-section {
    transform: translateY(40px);
}

.animate-on-scroll.visible, .fade-in-section.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Animasi Pembuka Halaman (Page Entrance) */
.page-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

body.page-loaded .page-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================== */
/* 4. GAYA KONTEN SPESIFIK & KARTU                */
/* =============================================== */

/* Gambar di Bagian Sejarah */
.sejarah-image-box {
    width: 100%;
    min-height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-size: cover;
    background-position: center;
}
/* PERBAIKAN: Path gambar diperbaiki */
.sejarah-img-1 { background-image: url('Data gambar/gambarkantordesa.png'); }
.sejarah-img-2 { background-image: url('Data gambar/pemandangantiga.jpg'); }
.sejarah-img-3 { background-image: url('Data gambar/pemandangandua.jpg'); }


/* Kartu Visi & Misi */
.vision-mission-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border-left: 5px solid transparent;
    height: 100%;
    transition: all 0.4s ease-in-out; 
}

.vision-mission-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-left-color: #198754;
}

.vision-mission-card i {
    transition: all 0.4s ease-in-out;
}

.vision-mission-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #157347;
}

/* Kartu Umum (Potensi, Pemerintahan, Pasar) */
.team-card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.team-card .card-img-top {
    object-fit: cover;
    height: 400px;
    filter: grayscale(20%);
    transition: filter 0.3s;
    object-position: center; 
}

.team-card:hover .card-img-top {
    filter: grayscale(0%);
}

/* Kartu Pilihan di Halaman Pelayanan */
.service-choice-card {
    display: block;
    padding: 40px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    text-decoration: none;
    color: #212529;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

.service-choice-card:hover {
    transform: translateY(-10px);
    border-color: #198754;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #198754;
}

.service-choice-card i {
    font-size: 50px;
    transition: transform 0.3s ease;
}

.service-choice-card:hover i {
    transform: scale(1.1);
}

/* Kartu Langkah di Halaman Pelayanan */
.step-card {
    padding: 30px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    height: 100%;
    position: relative;
    background-color: #fff;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #198754;
    color: white;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid white;
}

/* =============================================== */
/* 5. ELEMEN INTERAKTIF LAINNYA                   */
/* =============================================== */

/* Grafis Berputar di Halaman Pasar */
#rotating-graphic-container {
    width: 200px;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid #e9ecef;
}

#rotating-graphic {
    font-size: 90px;
    color: #198754;
    transition: transform 0.1s linear; 
}

/* Grafis Berputar di Halaman Pelayanan */
#rotating-pelayanan-graphic {
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid #e9ecef;
}

#rotating-icon-pelayanan {
    font-size: 110px;
    color: #198754;
    transition: transform 0.1s linear; 
}

/* Filter Produk di Halaman Pasar */
.product-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-item.hide {
    transform: scale(0.5);
    opacity: 0;
    
    /* INI BAGIAN PALING PENTING UNTUK MEMBUAT KARTU MERAPAT */
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    overflow: hidden;
    pointer-events: none;
}

/* =============================================== */
/* Gaya Halaman Profil Desa Baru                  */
/* =============================================== */

/* Hero Section Halaman Profil dengan Parallax */
#profil-hero {
    height: 60vh; /* Tinggi hero section */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('Data gambar/pemandangan-desa.jpg');
    background-attachment: fixed; /* Kunci efek parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Statistik Counter */
#statistik h3 {
    font-size: 3rem;
    font-weight: 700;
}

/* Container untuk Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Garis SVG di tengah */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100%;
}

/* Setiap item di timeline */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
}

/* Posisi item di kiri */
.timeline-item.animate-from-left {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

/* Posisi item di kanan */
.timeline-item.animate-from-right {
    left: 50%;
    padding-left: 60px;
}

/* Titik bulat di tengah garis */
.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px; /* Posisi untuk item kiri */
    background-color: white;
    border: 4px solid #198754;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.animate-from-right .timeline-dot {
    left: -10px; /* Posisi untuk item kanan */
}

/* Konten di dalam item timeline */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

/* Kelas untuk memberi jarak atas pada konten utama di halaman tertentu */
.page-content {
    padding-top: 80px; /* Sesuaikan jarak ini jika perlu */
}

/* Gaya untuk Logo Desa di Navbar via CSS */
.navbar-logo {
    width: 35px;  /* Sesuaikan lebar logo */
    height: 35px; /* Sesuaikan tinggi logo */

    /* Path ke file logo Anda */
    background-image: url('Data\ gambar/LOGODESA.png');
    
    /* Pastikan logo pas dan tidak terpotong */
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
}

/* =============================================== */
/* Gaya untuk Dropdown Navbar Hover (Diperbaiki)  */
/* =============================================== */

/* Aturan default untuk semua ukuran layar */
.dropdown-menu {
    margin-top: 0; /* Menghapus jarak atas default */
}

/* Terapkan efek hover HANYA untuk layar desktop (lebar > 991px) */
@media (min-width: 992px) {
    
    /* Sembunyikan dropdown dan siapkan animasi */
    .dropdown-menu {
        display: block; /* 'block' diperlukan agar transisi transform berfungsi */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none; /* Cegah interaksi saat tersembunyi */
    }

    /* Tampilkan dropdown saat parent (.dropdown) di-hover */
    .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto; /* Izinkan interaksi saat terlihat */
    }
}

/* =============================================== */
/* Gaya untuk Kartu Potensi Desa Interaktif       */
/* =============================================== */

.potensi-card {
    position: relative; /* Diperlukan untuk menempatkan overlay */
    border-radius: 15px;
    overflow: hidden; /* Memastikan overlay tidak keluar dari kartu */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 280px; /* Atur tinggi kartu agar seragam */
}

.potensi-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Membuat gambar menutupi kartu tanpa distorsi */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay yang berisi teks */
.potensi-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px 20px 20px 20px;
    
    /* Kondisi awal: sedikit di bawah dan transparan */
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efek saat kursor diarahkan ke kartu */
.potensi-card:hover .potensi-overlay {
    transform: translateY(0); /* Overlay akan meluncur naik */
    opacity: 1;
}

.potensi-card:hover .potensi-img {
    transform: scale(1.1); /* Gambar akan sedikit membesar */
}

.potensi-title {
    font-weight: bold;
}

.potensi-text {
    font-size: 0.9rem;
}

/* =============================================== */
/* Efek Latar Belakang Modal Blur                 */
/* =============================================== */

.modal-backdrop.show {
    /* Membuat latar belakang lebih gelap */
    opacity: 0.8; 

    /* Menambahkan efek blur pada elemen di belakang modal */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* =============================================== */
/* Gaya untuk Peta via CSS                        */
/* =============================================== */

/* Gaya untuk thumbnail peta */
.map-thumbnail {
    width: 600px;  /* Sesuaikan lebar thumbnail */
    height: 400px; /* Sesuaikan tinggi thumbnail */
    background-image: url(Data\ gambar/petaarealkadongdong.png);
    background-size: cover;
    background-position: center;
}

/* Gaya untuk peta versi besar di dalam modal */
.map-large {
    width: 100%;
    /* Gunakan aspect-ratio agar tinggi menyesuaikan lebar secara proporsional */
    background-image: url(Data\ gambar/petaarealkadongdong.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0.5rem; /* Menambahkan sudut tumpul */
}

/* =============================================== */
/* Gaya Responsif untuk Tampilan Mobile           */
/* =============================================== */

/* Terapkan gaya ini hanya untuk layar dengan lebar maks 767px (ukuran mobile) */
@media (max-width: 767px) {

    /* --- Perbaikan untuk Timeline di Mobile --- */

    /* Pindahkan garis timeline ke sisi kiri */
    .timeline-container .timeline-line {
        left: 20px;
        transform: translateX(0);
    }

    /* Jadikan semua item timeline full-width dan berada di satu sisi */
    .timeline-container .timeline-item {
        width: 100%;
        left: 0 !important; /* Paksa semua item ke kiri */
        padding-left: 50px; /* Beri ruang dari garis timeline */
        padding-right: 15px;
        text-align: left !important; /* Paksa semua teks rata kiri */
    }

    /* Posisikan semua titik dot di garis sebelah kiri */
    .timeline-container .timeline-item .timeline-dot {
        left: 10px;
    }
}

/* =============================================== */
/* Gaya untuk Peta Interaktif (Zoom & Pan)        */
/* =============================================== */

#map-interactive-container {
    position: relative; /* Kunci untuk menempatkan tombol kontrol */
    height: 500px;
    border-radius: 15px;
    overflow: hidden; /* Sangat penting agar gambar tidak keluar saat digeser */
    background-color: #e9ecef; /* Warna latar jika gambar gagal dimuat */
}

#map-image {
    width: 100%;
    height: 100%;
    background-image: url(Data\ gambar/petaarealkadongdong.png); /* Ganti dengan path peta resolusi tinggi Anda */
    background-position: center;
    background-size: cover; /* Awalnya menutupi kontainer */
    
    /* Animasi halus untuk zoom dan geser */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab; /* Menandakan bisa digeser */
}

#map-image.is-dragging {
    cursor: grabbing; /* Mengubah kursor saat sedang digeser */
}

/* Tombol Kontrol Zoom */
.zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0; /* Sembunyi secara default */
    transition: opacity 0.3s ease;
}

#map-interactive-container:hover .zoom-controls {
    opacity: 1; /* Tampil saat kontainer di-hover */
}

.zoom-controls button {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    border-radius: 50%;
}

/* =============================================== */
/* Gaya Unik Halaman Kelompok Tani Hutan (KTH)    */
/* =============================================== */

/* Hero Section dengan Latar Gradasi Animasi */
#kth-hero-new {
    height: 60vh;
    padding: 4rem 0;
    /* Perpaduan gradasi hijau dan kuning tipis */
    background: linear-gradient(-45deg, #28a745, #93c572, #fffbd5, #6b8e23);
    background-size: 400% 400%;
    animation: gradient-flow 18s ease infinite;
}

/* Animasi untuk latar gradasi */
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Kartu Program Unggulan */
.program-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease-in-out;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: #ffc107; /* Aksen warna kuning saat hover */
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #198754;
    transition: transform 0.4s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.2) rotate(-15deg);
}

/* Kustomisasi Akordeon Struktur Organisasi */
.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #198754; /* Warna hijau saat aktif */
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.accordion-button::after {
    /* Mengubah ikon panah default bootstrap */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* =============================================== */
/* Gaya Tambahan untuk Logo KTH di Hero Section   */
/* =============================================== */
.kth-logo {
    max-width: 300px; /* Sesuaikan ukuran maksimal logo */
    height: auto;
}

/* =============================================== */
/* Gaya Unik Halaman Posyandu                     */
/* =============================================== */

#posyandu-hero-new {
    height: 60vh;
    background-image: linear-gradient(to top, rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0)), url('Data gambar/posyandu-hero.jpg');
    background-size: cover;
    background-position: center 70%;
}

#service-display-card {
    border: none;
    border-radius: 15px;
    transition: all 0.4s ease;
}

#service-display-card img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 300px;
    object-fit: cover;
}

/* Kartu Pilihan Ikon Layanan */
.service-icon-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-radius: 10px !important;
    margin-bottom: 1rem;
    border-width: 2px;
    transition: all 0.3s ease;
}

.service-icon-card i {
    font-size: 2rem;
    margin-right: 1.25rem;
    color: #0d6efd; /* Warna biru primary */
    transition: transform 0.3s ease;
}

.service-icon-card.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.service-icon-card.active i {
    color: white;
}

.service-icon-card:not(.active):hover {
    transform: translateX(5px);
    border-color: #0d6efd;
}

.service-icon-card.active:hover i {
    transform: scale(1.1);
}

/* Animasi fade untuk konten yang berubah */
.service-content-fade {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.service-content-fade.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* =============================================== */
/* Gaya Unik Halaman Karang Taruna (KT)           */
/* =============================================== */

/* Hero Section dengan Gradasi Animasi Enerjik */
#kt-hero-new {
    min-height: 50vh;
    padding: 4rem 0;
    background: linear-gradient(-45deg, #f857a6, #ff5858, #f5af19, #f2994a);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
}

/* Marquee Slider Wrapper */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Konten yang bergerak di dalam marquee */
.marquee-content {
    display: flex;
    width: fit-content;
    /* Menerapkan animasi marquee */
    animation: marquee-scroll 35s linear infinite;
}

/* INTI INTERAKSI: Jeda animasi saat hover */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Animasi Keyframes untuk marquee */
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Bergerak sejauh setengah lebar total */
}

/* Kartu Heksagon */
/* Kartu Program Karang Taruna (Bentuk Kotak) */
.kt-program-card {
    flex-shrink: 0;
    width: 180px;
    height: 180px; /* Lebar dan tinggi disamakan agar menjadi kotak */
    background-color: #198754;
    color: white;
    border-radius: 15px; /* Menambahkan sudut tumpul */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 15px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.kt-program-card i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.kt-program-card span {
    font-weight: 600;
}

.kt-program-card:hover {
    transform: scale(1.1);
    background-color: #157347;
}

/* =============================================== */
/* Gaya Unik Halaman BUMDes                       */
/* =============================================== */

/* Hero Section dengan Video Background */
#bumdes-hero-new {
    position: relative;
    height: 70vh;
    overflow: hidden;
}
#hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
    filter: brightness(0.5);
}

/* 3D Card Flip (sama seperti sebelumnya, pastikan ada) */
.flip-card {
    background-color: transparent;
    height: 280px;
    perspective: 1000px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.flip-card-front {
    background-size: cover;
    background-position: center;
    color: white;
}
.flip-card-back {
    background-color: white;
    color: black;
    transform: rotateY(180deg);
    padding: 20px;
}

/* Spotlight Anggota */
#spotlight-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

#member-thumbnails {
    flex-wrap: wrap; /* Agar responsif di mobile */
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-img:hover {
    transform: scale(1.1);
    border-color: #dee2e6;
}

.thumbnail-img.active {
    border-color: #198754; /* Warna hijau untuk yang aktif */
    transform: scale(1.1);
}

/* =============================================== */
/* Efek Latar Belakang (Highlight) untuk Judul    */
/* =============================================== */

.title-highlight-bg {
    position: relative; /* Diperlukan untuk elemen ::after */
    display: inline-block; /* Membuat background pas dengan lebar teks */
    color: white; /* Pastikan warna teks tetap putih */
}

/* Ini adalah elemen background 'sapuan kuas' */
.title-highlight-bg::after {
    content: ''; /* Wajib ada untuk pseudo-element */
    position: absolute;
    width: 100%;
    height: 60%; /* Ketinggian latar highlight */
    left: 0;
    bottom: 5px; /* Posisi dari bawah */
    
    /* Gradasi warna emas yang kita inginkan */
    background: linear-gradient(45deg, #ffd700, #daa520);
    
    /* Kunci utama: letakkan di belakang teks */
    z-index: -1; 
    
    /* Efek miring seperti sapuan kuas */
    transform: skew(-15deg);
    border-radius: 5px;
}

/* =============================================== */
/* Gaya untuk Tampilan PDF yang Disematkan        */
/* =============================================== */

.pdf-embed-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Tinggi area PDF, 70% dari tinggi layar */
    border-radius: 15px;
    overflow: hidden; /* Penting agar iframe mengikuti sudut tumpul */
}

.pdf-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
