/* --- 0. RESET & KONTROL SCROLL (VERSI FIX) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    /* overflow-x di html kadang bikin masalah di iOS, biarkan default */
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    font-size: 1.1rem;
    font-family: sans-serif;
    width: 100%;
    min-height: 100dvh;
    position: relative;
    /* Kunci overflow-x di body saja */
    overflow-x: hidden; 
    /* Mencegah tarikan refresh di Chrome HP */
    overscroll-behavior-y: none; 
}

/* LOCK SCROLL: Dipakai JS saat cover masih nutup */
body.no-scroll {
    overflow: hidden !important;
    height: 100dvh !important;
    /* Kita hapus position: fixed agar tidak mental ke atas saat dibuka */
}

/* KONTEN UTAMA: Pastikan siap menerima scroll setelah terbuka */
#main-content {
    display: none; 
    opacity: 0;
    width: 100%;
    /* Jangan pakai visibility: hidden di sini agar tidak konflik dengan AOS */
}

#main-content.show-content {
    display: block !important;
    opacity: 1 !important;
    overflow: visible !important;
}



/* --- ANIMASI EFEK CAHAYA (Lens Flare) --- */
.light-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    filter: blur(40px);
    pointer-events: none;
    animation: shine 10s infinite alternate ease-in-out;
    z-index: 11;
}

@keyframes shine {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(200px, 150px) scale(1.3); opacity: 0.5; }
    100% { transform: translate(100px, 300px) scale(1.1); opacity: 0.3; }
}

/* =========================================
   --- 1. TAMPILAN DEFAULT (MOBILE/HP) ---
   ========================================= */

/* Sembunyikan panel kiri di HP */
.left-panel {
    display: none;
}



/* Pastikan main-wrapper tidak nendang ke samping di HP */
.main-wrapper {
    width: 100%;
    max-width: 500px; /* Jaga agar konten tetap ramping di HP */
    margin: 0 auto;
}

/* =========================================
   PERBAIKAN TOTAL: COVER HARUS PENUH LAYAR
   ========================================= */

/* 1. Container Cover - WAJIB full screen */
.container-cover {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important; /* Full viewport width */
    height: 100dvh !important;
    background-color: #000 !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    /* Jangan ada transform di sini - nanti ditambah JS */
}

/* 2. Carousel Covawal - Harus full juga */
.carousel-covawal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* HAPUS left: 60% dan width: 40% yang bikin bolong */
}

/* 3. Content Area & Dear Tamu - Tetap di posisi */
.content-area,
.dear-tamu {
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    z-index: 10 !important;
}



/* 5. Saat Slide Up - Pastikan tetap full width */
.container-cover.slide-up {
    transform: translateY(-100%) !important;
    /* Tambah transition smooth */
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) !important;
}

/* =========================================
   KHUSUS LAPTOP (>= 992px)
   ========================================= */
@media (min-width: 992px) {
    .container-cover {
        position: fixed !important; /* Ganti dari absolute ke fixed */
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 100% !important; /* Full width panel kanan */
        height: 100vh !important;
    }
    
    .carousel-covawal {
        left: 0 !important; /* Hapus left: 60% */
        width: 100% !important; /* Full width */
    }
}

/* =========================================
   KHUSUS HP (<= 991px)
   ========================================= */
@media (max-width: 991px) {
    .container-cover {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
    }
    
    .carousel-covawal {
        left: 0 !important;
        width: 100% !important;
    }
}



/* ============================================================
   2. TAMPILAN LAPTOP/DESKTOP (>= 992px)
   ============================================================ */
@media (min-width: 992px) {
    /* Layout Split Screen */
    .split-container {
        display: flex;
        height: 100vh;
        width: 100%;
    }

    /* --- PANEL KIRI (Gambar Statis) --- */
    .left-panel {
        display: flex; 
        flex: 1.9;
        background: url('Split.jpeg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center 20%;
        position: relative;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
        height: 100vh;
        z-index: 112;
        overflow: hidden;
    }

    .left-panel::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            45deg, 
            rgba(255, 255, 255, 0),
            rgba(30, 10, 50, 0.3),
            rgba(10, 40, 60, 0.3),
            rgba(255, 255, 255, 0)
        );
        background-size: 200% 200%;
        animation: gradientTwinkle 3s ease infinite;
        z-index: 1;
    }

    .left-panel-content {
        position: absolute;
        bottom: 80px;
        left: 40px;
        z-index: 10;
        text-align: left;
    }


/* Pastikan tulisan ALEX & PUTRItidak punya margin berlebih */
.left-panel-content h1 {
   
    line-height: 1.2;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color:whitesmoke

}

.left-panel-content h4 {
    font-family: sans-serif;
    color: rgb(240, 241, 242);
    font-size: 16px;
}


.left-panel-content p {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    color: white
}



    /* PANEL KANAN: Area Scroll utama di Laptop */
    .right-panel {
        flex: 1;
        height: 100vh;
        /* Biarkan auto/scroll dari awal agar AOS bisa kalkulasi posisi, 
           tapi kita kunci pakai 'body.no-scroll' di JS supaya user gak curi start */
        overflow-y: auto; 
        overflow-x: hidden;
        position: relative;
        background: transparent;
        scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
        -ms-overflow-style: none; /* Sembunyikan scrollbar IE/Edge */
    }

    .right-panel::-webkit-scrollbar {
        display: none; /* Sembunyikan scrollbar Chrome/Safari */
    }

    /* PEMBUNGKUS KONTEN */
    .main-wrapper {
        /* KUNCI 2: Hapus max-width 500px agar bisa selebar panel kanan */
        width: 100% !important;
        max-width: 100% !important; 
        
        /* KUNCI 3: Nol-kan margin
        margin: 0 !important;   
        
    /* HAPUS PADDING untuk hilangkan ruang kosong */
    padding-left: 12px !important;  /* ✅ DIUBAH KE 0 */
    padding-right: 12px !important; /* ✅ DIUBAH KE 0 */

        box-sizing: border-box;
        /* KUNCI AOS: min-height harus lebih besar dari layar (100vh) 
           agar ada jarak scroll untuk memicu animasi pertama */
        min-height: 102vh; 
        background: transparent !important;
        position: relative;
    }
    /* Memaksa transisi AOS di laptop */
    [data-aos] {
        transition-property: transform, opacity !important;
    }
/* Agar semua section di dalamnya ikut melebar penuh */
    .container-isi,
    .container-love, 
    .container-galeri, 
    .container-komen,
    .newspaper-container,
    .event-card,
    .kartu-ucapan,
    
/*ini untuk NGATUR tulisan awal sebelum BUKA UNDANGAN*/

    /* --- KHUSUS PENUTUP: MELOMPAT KELUAR PADDING --- */
    #Penutupcover {
        position: relative;
        /* KUNCI: Lebar dihitung 100% ditambah kompensasi padding kiri+kanan (50+50) */
        width: calc(100% + 100px) !important; 
        
        /* KUNCI: Ditarik ke kiri dan kanan sejauh padding parent-nya */
        margin-left: -50px !important; 
        margin-right: -50px !important; 
        
        min-height: 100vh;
        overflow: hidden;
        max-width: none !important; /* Pastikan tidak terbentur max-width apa pun */
    }
    .container-penutup {
        max-width: 100% !important; 
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    /* Khusus untuk teks di dalam section agar tidak mepet layar, 
       beri padding pada isi kontennya, BUKAN pada containernya */
    .container-isi > *:not(img), 
    .overlay-content {
        padding-left: 40px;
        padding-right: 40px;
    }


} /* <--- TUTUP MEDIA QUERY LAPTOP DI SINI */


/* ============================================================
   3. LOGIKA GLOBAL AOS & ANIMASI (DI LUAR MEDIA QUERY)
   ============================================================ */

/* Cegah klik elemen sebelum muncul */
[data-aos] {
    pointer-events: auto;
}

/* Aktifkan klik saat animasi selesai */
[data-aos].aos-animate {
    pointer-events: auto !important;
    /* Tambahan agar tidak flicker saat scroll cepat */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes gradientTwinkle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* kenapa AWAL DAN CONTAINER ISI TAK BUAT TRANSPARANT supaya carouselnya kelihatan */
#awal {
    position: relative;
    z-index: 1; /* Pastikan section awal berada di atas background */
    background: transparent !important; /* Agar background carousel kelihatan */
}



/* Pastikan section tidak tumpang tindih */
section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Minimal satu layar */
    height: auto;      /* Biarkan memanjang jika konten banyak */
    display: flex;
    flex-direction: column;
    
}

/* --- 1. TAMPILAN UNTUK HP (Penuh 1 Layar) --- */
@media (max-width: 991px) {
    .container-cover {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: #000;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Konten di bawah */
        align-items: center;       /* Konten di tengah horizontal */
        overflow: hidden;          /* KUNCI: Mencegah elemen dalam cover bikin scroll */
        transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    }

    /* Saat Undangan Dibuka */
    .container-cover.slide-up {
        transform: translateY(-100%);
        pointer-events: none;
        visibility: hidden;
        z-index: -1;
        /* Delay sedikit agar animasi naik selesai baru visibility hilang */
        transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), 
                    visibility 0s 1.2s, 
                    z-index 0s 1.2s;
    }

    /* Carousel Background yang nempel di HP */
    .CAROUSEL-FIXED {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        z-index: -1;
        overflow: hidden;
    }

    .CAROUSEL-FIXED .carousel,
    .CAROUSEL-FIXED .carousel-inner,
    .CAROUSEL-FIXED .carousel-item {
        height: 100dvh;
        width: 100%;
    }

    .CAROUSEL-FIXED img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Agar foto tidak gepeng di HP */
    }

/* INI UNTUK CAROUSEL COVER AWAL*/

    .carousel-covawal {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        
    
    }

    .carousel-covawal .carousel,
    .carousel-covawal .carousel-inner,
    .carousel-covawal .carousel-item {
        height: 100dvh;
        width: 100%;
    }

    .carousel-covawalimg {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Agar foto tidak gepeng di HP */
    }
}

/* --- 2. TAMPILAN UNTUK LAPTOP (Mepet Pojok Kanan) --- */
@media (min-width: 992px) {
    .container-cover {
        position: absolute; /* Nempel ke .right-panel */
        top: 0;
        right: 0;          /* KUNCI: Paksa nempel kanan */
        left: auto !important;
        width: 100%;       /* Memenuhi area kanan layar */
        height: 100vh;
        background-color: black;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Konten di bawah */
        align-items: flex-end;     /* Konten di KANAN */
        padding: 60px;             /* Jarak dari tepi layar */
        transform: none !important;
        transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
    }

    /* Animasi buka undangan di laptop (naik ke atas) */
    .container-cover.slide-up {
        transform: translateY(-100%) !important;
    }


 /*ini tampilan caroousel di laptop*/   
   .CAROUSEL-FIXED {
        position: fixed;
        top: 0;
        /* Jika panel kiri kamu lebarnya 50%, maka left harus 50% */
        /* Jika panel kiri kamu lebarnya 400px, maka left harus 400px */
        left: 60%; 
        
        /* Lebar carousel harus sisa dari panel kiri */
        width: 40%; 
        
        height: 100vh;
        z-index: -1;
        overflow: hidden;
    }

    .CAROUSEL-FIXED img {
        width: 100%;
        height: 100%;
        /* object-fit: cover akan memastikan gambar tetap proporsional 
           meski wadahnya (kanan saja) lebih sempit dari layar penuh */
        object-fit: cover; 
    }


    /*ini tampilan caroousel COVER AWAL di laptop*/   
   .carousel-covawal {
        position: relative;
        top: 0;
        /* Jika panel kiri kamu lebarnya 50%, maka left harus 50% */
        /* Jika panel kiri kamu lebarnya 400px, maka left harus 400px */
        left: 60%; 
        
        /* Lebar carousel harus sisa dari panel kiri */
        width: 40%; 
        
        height: 100vh;
        z-index: -1;
        overflow: hidden;
    }

    .carousel-covawal img {
        width: 100%;
        height: 100%;
        /* object-fit: cover akan memastikan gambar tetap proporsional 
           meski wadahnya (kanan saja) lebih sempit dari layar penuh */
        object-fit: cover; 
    }


    /* ini CAROUSEL BERFUNGSI SEBAGAI COVER */
/* Pastikan section penutup bisa menampung elemen yang meluap */

/* Kita buat section penutupnya selebar panel kanan (50% layar) */
   /* --- PERBAIKAN CAROUSEL PENUTUP --- */

    #Penutupcover {
        position: relative;
        /* Karena berada di panel kanan yang lebarnya 40%, width 100% akan otomatis 40% layar */
        width: 100%; 
        min-height: 100vh;
        overflow: hidden;
        background-color: #000;
    }


    .overlay-content {
        position: relative;
        z-index: 2;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Gradasi sedikit lebih gelap agar tulisan putih tajam di area sempit */
        background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8)); 
        padding: 40px; 
        text-align: center;
    }

    .container-penutup {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* --- VERSI HP (DI LUAR MEDIA QUERY LAPTOP) --- */
@media (max-width: 991px) {
    #Penutupcover {
        width: 100%;
        min-height: 100vh;
    }
    /* Di HP biarkan default selebar layar */
}



/* --- CSS TAMBAHAN AGAR GAMBAR & ISI RAPI di Hp --- */
.CAROUSEL-FIXED .carousel,
.CAROUSEL-FIXED .carousel-inner,
.CAROUSEL-FIXED .carousel-item {
    height: 100vh;
}

.CAROUSEL-FIXED img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INI CAROUSEL UNTUK COVER AWAL */
.carousel-covawal .carousel,
.carousel-covawal .carousel-inner,
.carousel-covawal .carousel-item {
    height: 100vh;
}

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

/* Reset tombol agar tidak ke tengah lagi */
.btnATAS {
    position: relative !important;
    left: 50% !important;
    
    margin-top: 20px;
    display: inline-flex;
}

/* 2. CONTAINER UNTUK ISI (Bisa memanjang/scroll) */
.container-isi {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh; /* Minimal satu layar, tapi BISA LEBIH */
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Jangan pakai overflow: hidden di sini */

    background: transparent !important;
}

.container-isi h3{
font-size: 20px;
}

.isi-awal {
    line-height: 1.2rem;
    color: #ffffff;
    
}




/* Foto jadi latar belakang penuh */
.photo-container {
    position: absolute; /* Kunci: Membuat foto di balik tulisan */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Angka kecil berarti di bawah */
    overflow: hidden; /* Tambahkan ini agar aman */
}

/* Tambahkan pseudo-element ini untuk membuat gradasi gelap di bawah foto */
.photo-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Menutupi separuh bawah foto dengan gradasi */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
}

/* Foto utama dengan efek gradasi transparan di bawah */
.img-mempelai {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8); /* Sedikit lebih terang agar foto prewed tetap terlihat premium */
    
    object-position: 45% center;

    /* Membuat foto perlahan menghilang ke arah bawah (Transparent Fade) */
    -webkit-mask-image: linear-gradient(to bottom, 
        black 50%, 
        rgba(0, 0, 0, 0.4) 80%, 
        transparent 100%
    );
    mask-image: linear-gradient(to bottom, 
        black 50%, 
        rgba(0, 0, 0, 0.4) 80%, 
        transparent 100%
    );
}

/* =========================================
   --- COVER AWAL: STRUKTUR LENGKAP & FINAL ---
   ========================================= */

/* 1. Container Utama */
.carousel-covawal {
    position: relative !important;
    width: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

/* 2. Background Carousel */
#bgCarousel, 
#bgCarousel .carousel-inner, 
#bgCarousel .carousel-item {
    height: 100% !important;
    width: 100% !important;
}
#bgCarousel .carousel-item img {
    width: 100%; height: 100%; object-fit: cover;
}

/* 3. Judul Pernikahan */
.content-area {
    position: absolute !important;
    top: 12% !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 50 !important;
    margin: 0 !important;
    color: white !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8) !important;
    pointer-events: none ; 
}

/* 4. Container Dear Tamu & Tombol (INI YANG SEBELUMNYA HILANG) */
.dear-tamu {
    position: absolute !important;
    bottom: 8% !important;       /* Posisi di bawah layar */
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 60 !important;
    margin: 0 !important;
    color: white !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8) !important;
}

/* Wrapper tombol (agar AOS tidak memblokir klik) */
.dear-tamu .mt-3 {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 12px !important;
}

/* 5. Tombol Open Invitation */
#btn-open {
    position: relative !important; /* Lebih aman di dalam flex parent */
    left: auto !important;
    transform: none !important;
    
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    z-index: 100 !important;
    
    padding: 6px 14px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50px !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    backdrop-filter: blur(6px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-open:hover, 
#btn-open:active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.05) !important;
    color: white !important;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.15) !important;
}




/* Pastikan tulisan ALEX & PUTRItidak punya margin berlebih */
.content-area h1 {
   
    line-height: 1.2;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    color:whitesmoke

}

.content-area h4 {
    font-family: sans-serif;
    color: rgb(240, 241, 242);
    font-size: 14px;
}

.content-area a { font-family: 'Roboto Slab', serif;
    color: white;

}
.content-area p {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    color: white;
   
}


/* Tombol Open harus punya z-index lebih tinggi dari tulisan agar bisa diklik */
.btn-open-container {
    position: relative;
    z-index: 100; /* Lebih tinggi dari bunga agar bisa diklik */
    border: none;
    background: none;
}
.btnATAS {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* INI YANG BIKIN PAS DI TENGAH */
    
    border-radius: 50px;
    font-size: 14px;
    padding: 6px 15px;
    background-color: rgba(206, 217, 239, 0.1);
    border: 1px solid white;
    color: white !important;
    text-decoration: none;
    white-space: nowrap;
    
    
    display: inline-flex;
    align-items: center;

    z-index: 99; /* Biar gak ketutup elemen lain */
}

.btnATAS:hover {
    transform: scale(1.05);
    background-color:black !important;
}


/* --- PERBAIKAN AREA PHOTO WRAPPER --- */
/* =========================================
   SECTION AWAL - WEDDING COVER DESIGN
   ========================================= */

#awal {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* =========================================
   CAROUSEL STYLES
   ========================================= */

#coverCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 100;
}

#coverCarousel .carousel-inner,
#coverCarousel .carousel-item {
    height: 100dvh;
    width: 100%;
}

#coverCarousel .carousel-item img {
    height: 100dvh;
    object-fit: cover;
    object-position: center;
}

/* OVERLAY GRADIENT - black and white TONE */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,    /* Hitam di atas */
        rgba(50, 50, 50, 0.3) 50%, /* Abu-abu tipis di tengah */
        rgba(0, 0, 0, 0.8) 100%   /* Hitam pekat di bawah agar teks terbaca */
    );
    z-index: 1;
    pointer-events: none;
}

#coverCarousel .carousel-item img {
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    
    /* Tambahan ini agar foto menjadi Hitam Putih */
    filter: grayscale(100%) contrast(1.1); 
}

/*ini untuk efek filter carousel bg-UTAMA NYA*/
#bgCarousel .carousel-item img {
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    
    /* Tambahan ini agar foto menjadi Hitam Putih */
    filter: grayscale(100%) contrast(1.1); 
}

/* Hide carousel controls */
#coverCarousel .carousel-control-prev,
#coverCarousel .carousel-control-next {
    display: none;
}

/* =========================================
   CONTAINER & CONTENT
   ========================================= */

.container-isi {
    position: relative;
    z-index: 102;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: transparent !important;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    padding: 60px 30px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* =========================================
   WEDDING HEADER
   ========================================= */

.wedding-header {
    text-align: center;
    margin-top: -10%;
    margin-bottom: 50px;
    animation: fadeInDown 1.5s ease;
}

.the-wedding-of {
    font-family: 'Sacramento', cursive;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 0 5px 0;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 2 rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 15px 0;
    letter-spacing: 6px;
    
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    line-height: 1.3;
}

.wedding-date-simple {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 4px;
    font-weight: 300;
}

/* =========================================
   QUOTE SECTION
   ========================================= */

.quote-section {
    text-align: center;
    margin: 0;
    margin-top: 45%;
    padding: 0 5px;
    animation: fadeInUp 1.5s ease 0.5s both;
}

.quote-latin {
    font-family: 'Sacramento', cursive;
    font-size: 1.5rem;
    color: #fff;
    line-height: 2;
    margin: 0 0 25px 0;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    font-style: italic;
    letter-spacing: 1px;
}

.quran-reference {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

/* =========================================
   SCROLL INDICATOR (SWIPE UP)
   ========================================= */

.swipe-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    padding-bottom: 10px;
    color: #fff;
    animation: fadeInUp 1.5s ease 1s both, bounceUp 2s ease-in-out infinite 2s;
}

.swipe-up span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: lowercase;
    font-weight: 300;
}

.swipe-up i {
    font-size: 1.2rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 576px) {
    .the-wedding-of {
        font-size: 1.8rem;
    }
    
    .couple-names {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .wedding-date-simple {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    
    .quote-latin {
        font-size: 1.3rem;
        line-height: 1.9;
    }
    
    .quran-reference {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .swipe-up span {
        font-size: 0.75rem;
    }
    
    .swipe-up i {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .the-wedding-of {
        font-size: 2.2rem;
    }
    
    .couple-names {
        font-size: 1.8rem;
        letter-spacing: 8px;
    }
    
    .wedding-date-simple {
        font-size: 0.75rem;
    }
    
.quote-section {
    margin-top: 60%;
    margin-bottom: -20%;
    }

    .swipe-up {
        margin-top: 30%;
    }

    .quote-latin {
        font-size: 1.5rem;
        line-height: 2;
        
    }
    
    .quran-reference {
        font-size: 1.2rem;
    }
}

.pembuka {
    margin: 0 auto;
    background-color: rgba(255, 253, 253, 0.7);
    width: 100%;
    max-width: 500px;
    
    display: flex;
    position: relative;
    /* Ubah ini: Agar konten berurutan dari atas, bukan dipaksa ke tengah layar */
    justify-content: flex-start; 
    align-items: center;
    flex-direction: column;
    /* Tambahkan padding agar tidak benar-benar menempel garis layar */
    padding-top: 40px;
    line-height: 1.8; 
}

.pembuka img {
    /* HAPUS transform: translateY(-100%) karena ini yang bikin gambarnya lari */
    width: 200px;
    height: auto;
    margin-bottom: 20px; /* Jarak ke huruf A */
}

/* Container Utama agar presisi */
.monogram-logo {
    display: block; /* Bukan flex, agar position absolute bekerja dengan baik */
    position: relative; /* Patokan bagi absolute di dalamnya */
    width: 200px; /* Atur lebar container agar di tengah */
    height: 150px; /* Atur tinggi container agar tulisan tidak tabrakan */
    margin: 20px auto; /* Ketengahkan container di layar */
    text-align: center; /* Jaga agar base text di tengah */
}

/* Pengaturan Huruf A (Mempelai Pria) */
.huruf-a {
    font-family: 'Cinzel', serif; /* Font klasik & elegan */
    font-size: 5rem;
    color: #000000;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}


/* Pengaturan Huruf P (Mempelai Wanita) */
.huruf-p {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    color: #000000;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    
    /* GANTI INI: Paksa baris baru dan P harus mepet di bawah garis miring */
    position: relative;
    top: -30px; /* Tarik P ke atas mendekati kaki slash */
    left: 30px; /* GESER P KE KANAN agar menjauh dari A */
}


/* Container untuk kutipan ayat */
.quote-container {
    max-width: 80%; /* Jangan biarkan teks melebar sampai pinggir */
    margin: 40px auto;
    text-align: center;
    color: #333333; /* Warna abu gelap lebih elegan dibanding hitam pekat */
}

/* Pengaturan Teks Utama */
.quote-text {
    font-family: 'Lora', serif; /* Font dengan lekukan halus */
    font-size: 16px;
    line-height: 1.5; /* Jarak antar baris lebih lebar agar tidak sesak */
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Pengaturan Sumber Ayat (Q.S Ar-Rum) */
.quote-source {
    font-family: 'Cinzel', serif; /* Samakan dengan monogram agar konsisten */
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 3px; /* Jarak antar huruf diperlebar */
    text-transform: uppercase;
    border-top: 1px solid #ccc; /* Garis tipis pemisah */
    display: inline-block;
    padding-top: 10px;
    margin-top: 10px;
}


/* Penyesuaian Responsif HP agar tidak terlalu besar */
@media (max-width: 576px) {
    .monogram-logo {
        width: 150px;
        height: 120px;
    }
    .huruf-a, .huruf-p {
        font-size: 4rem;
    }

    .huruf-p {
        top: -25px;
        left: 20px;
    }
}



:root {
    --pink: #f14e95;
    --cream: #F5E6AD;
    --bg-dark: #0a0a0a;
    --theme-color: #5d757d;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --bg-sidebar: #333333;
    --bgcard: #ffffff;

}

/* --- SECTION 3 Kedua mempelai --- */
.kedua-mempelai {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    /* UBAH: dari 100dvh ke auto agar tidak memaksa tinggi satu layar penuh */
    min-height: auto; 
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    overflow: hidden;
    
    /* PASTIKAN: padding atas benar-benar 0 */
    padding-top: 0 !important; 
    padding-bottom: 50px; /* Beri jarak bawah saja */
    justify-content: flex-start;
}

/* Container Monogram */
.monogram-mempelai {
    display: block;
    position: relative;
    width: 100%; /* Gunakan 100% agar text-align center bekerja */
    /* UBAH: perkecil height agar tidak memakan ruang kosong di atas */
    height: auto; 
    /* UBAH: margin atas 0 agar mepet ke section sebelumnya */
    margin: 0 auto 10px auto; 
    text-align: center;
}
/* Tulisan "Kedua" */
.m-kedua {
    font-family: 'Cormorant Garamond', cursive;
    font-size: 3rem;
    color: white;
    /* PASTIKAN: margin 0 */
    margin: 0 !important;
    /* UBAH: line-height kecilkan agar tidak ada ruang kosong di atas huruf */
    line-height: 1; 
}

/* Tulisan "Mempelai" */
.m-mempelai {
    font-family: "Beau Rivage", cursive;
    font-size: 2.5rem; /* Sedikit diperbesar agar proporsional */
    color: white;
    margin: 0;
    line-height: 1;
    position: relative;
    /* Tarik ke atas untuk menumpuk sedikit (estetika) */
    top: -15px; 
    /* Sesuaikan left jika ingin agak ke kanan */
    left: 40px; 
}

.kedua-mempelai h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
    /* Kurangi margin agar tidak terlalu jauh dari nama */
    margin-top: 10px;
    margin-bottom: 20px;
}

.kedua-mempelai p {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    
    letter-spacing: 1px;       /* Memberi rongga agar elegan */
    font-weight: 400;          /* Membuatnya sedikit tebal */
    margin-bottom: 10px;
    color: white;
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto;
    margin-bottom: 30px;
    opacity: 1;

    width: 500px;
    
}

.story-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: justify;
    margin-top: 8px;
    color: #333;
}



/* Quote Container (Elemen SEBELUM Mempelai) */
/* Pastikan elemen di atasnya tidak "mendorong" */
.quote-container {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}



/* Jika quote-container di atasnya punya margin bawah yang besar, kecilkan juga */
.quote-container {
    margin-bottom: 10px !important; /* Sesuaikan nilainya */
}


/* --- PERBAIKAN TOTAL UNTUK CAROUSEL FOTO --- */

/* 1. Container Utama Foto Alex (Tetap sama) */
.Photo-wrapper {
    position: relative;
    display: inline-block;
    width: 200px; /* Pertahankan lebar wadah di HP */
    margin: 0 auto;
    z-index: 1;
    transform: translateX(17%);
}

/* 2. Memaksa Wadah Carousel Memiliki Tinggi Kaku */
/* KUNCI: Supaya wadah slide TIDAK BERUBAH UKURAN saat ganti gambar */
.Photo-wrapper .carousel,
.Photo-wrapper .carousel-inner,
.Photo-wrapper .carousel-item {
    height: 280px; /* Tentukan tinggi kaku wadah slide di sini */
    overflow: hidden;
}

/* 3. Memaksa Gambar di Dalam Wadah Mengikuti Ukuran Kaku Wadah */
.Photo-wrapper .carousel-item img {
    width: 100%;
    height: 100%; /* Wajib 100% mengikuti tinggi wadah .carousel-item */
    
    /* KUNCI UTAMA: Gambar akan dipotong (crop) agar memenuhi wadah */
    /* tanpa merubah proporsi asli gambar (tidak gepeng) */
    object-fit: cover; 
    
    /* Fokuskan pemotongan di bagian tengah gambar */
    object-position: center; 
    
    position: relative;
    z-index: 2; /* Foto tetap di atas kotak bingkai */
    display: block;
}

/* --- (Sisa CSS di bawah ini dipertahankan karena sudah benar) --- */

/* KOTAK BINGKAI ABU-ABU (Pseudo-element) */
.Photo-wrapper::after {
    content: "";
    position: absolute;
    top: 15px; 
    left: 15px; 
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcdc;
    background-color: rgba(247, 246, 246, 0.3);

    /* KUNCI: Kasih z-index paling rendah atau negatif */
    z-index: -1 !important;
    pointer-events: none;
}

/* Teks Vertikal "Alex" */
.vertical-name {
    position: absolute;
    right: -20px; 
    top: 50%;
    transform: translateY(-20%) rotate(90deg); 
    font-family: 'sacramento', cursive;
    font-size: 1.8rem;
    color: white;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* PERBAIKAN KETERBACAAN TEKS MEMPELAI */
.mempelai-info-container {
    position: relative;
    width: 250px;
    z-index: 10;
    /* Tambahkan background gelap semi-transparan */
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    margin-top: 30px !important;
}

.mempelai-info-container-filzah {
    position: relative;
    width: 250px;
    z-index: 10;
    /* Tambahkan background gelap semi-transparan */
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    
    /* ✅ PERBAIKAN DI SINI: Pisahkan margin atas dan kiri-kanan */
    margin-top: 30px !important; /* Ubah angka ini untuk geser ke bawah */
    margin-left: auto !important;
    margin-right: auto !important;
    
    transform: translateX(-63%) !important;
}


/* Perkuat text shadow agar lebih terbaca */
.mempelai-name,
.parent-name,
.role-text,
.btn-instagram-profile {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    position: relative;
    z-index: 11;
}

/* Garis accent lebih terlihat */
.accent-line {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Gaya Nama */
.mempelai-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-wrap: nowrap;
}

/* Garis dekoratif kecil */
.accent-line {
    width: 40px;
    height: 2px;
    background: #dcdcdc;
    margin-bottom: 15px;
}

/* Teks Keterangan */
.role-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;

    margin: 0 auto;
    padding-bottom: 0px;
}

.parents-box {
    font-family: 'Bodoni Moda', serif;
    font-size: 0.75rem;
    margin-top: -10%;
    color: #fff;
}

.parents-box .and-symbol {
    display: block;
    font-family: 'Sacramento', cursive;
    font-size: 1.2rem;
    margin: 2px 0;
    color: #dcdcdc;
}

/* Tombol Follow Modern */
.btn-instagram-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-instagram-profile:hover {
    background: #fff;
    color: #000;
}


/* sekarang SECTION NYA PUTRI */


.Photo-wrapper-putri {
    position: relative;
    display: inline-block;
    width: 200px; /* Pertahankan lebar wadah di HP */
    margin: 0 auto;
    z-index: 1;
    transform: translateX(-70%);
}
/* 2. Memaksa Wadah Carousel Memiliki Tinggi Kaku */
/* KUNCI: Supaya wadah slide TIDAK BERUBAH UKURAN saat ganti gambar */
.Photo-wrapper-putri .carousel,
.Photo-wrapper-putri .carousel-inner,
.Photo-wrapper-putri .carousel-item {
    height: 280px; /* Tentukan tinggi kaku wadah slide di sini */
    overflow: hidden;
}

/* 3. Memaksa Gambar di Dalam Wadah Mengikuti Ukuran Kaku Wadah */
.Photo-wrapper-putri .carousel-item img {
    width: 100%;
    height: 100%; /* Wajib 100% mengikuti tinggi wadah .carousel-item */
    
    /* KUNCI UTAMA: Gambar akan dipotong (crop) agar memenuhi wadah */
    /* tanpa merubah proporsi asli gambar (tidak gepeng) */
    object-fit: cover; 
    
    /* Fokuskan pemotongan di bagian tengah gambar */
    object-position: center; 
    
    position: relative;
    z-index: 2; /* Foto tetap di atas kotak bingkai */
    display: block;
}


/* KOTAK BINGKAI ABU-ABU (Pseudo-element) */
.Photo-wrapper-putri::after {
    content: "";
    position: absolute;
    top: 15px; 
    right: 15px; 
    width: 100%;
    height: 100%;
    border: 1px solid #dcdcdc;
    background-color: rgba(247, 246, 246, 0.3);

    /* KUNCI: Kasih z-index paling rendah atau negatif */
    z-index: -1 !important;
    pointer-events: none;
}

.vertical-name-putri {
    position: absolute;
    left: -20px; 
    top: 50%;
    transform: translateY(-20%) rotate(270deg); 
    font-family: 'sacramento', cursive;
    font-size: 1.8rem;
    color: white;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- ANIMASI KHUSUS PUTRI: SLIDE KE KANAN --- */

/* --- FIX TOTAL CAROUSEL PUTRI GESER KANAN --- */
/* --- FIX ABSOLUT CAROUSEL PUTRI GESER KANAN --- */

/* 1. Balikkan posisi elemen yang akan masuk */
#carouselPutri .carousel-item-next:not(.carousel-item-start),
#carouselPutri .active.carousel-item-end {
    /* Memaksa elemen muncul dari KIRI layar */
    transform: translateX(-100%) !important;
}

/* 2. Balikkan posisi elemen yang akan keluar */
#carouselPutri .carousel-item-prev:not(.carousel-item-end),
#carouselPutri .active.carousel-item-start {
    /* Memaksa elemen keluar ke arah KANAN layar */
    transform: translateX(100%) !important;
}

/* 3. Reset transisi agar tidak ada tumpang tindih aneh */
#carouselPutri .carousel-item-next.carousel-item-start,
#carouselPutri .carousel-item-prev.carousel-item-end {
    transform: translateX(0) !important;
}

/* 4. Kecepatan transisi */
#carouselPutri .carousel-item {
    transition: transform 0.6s ease-in-out !important;
}

/* =========================================
   SECTION AGENDA - WITH CAROUSEL COUNTDOWN
   ========================================= */

#agenda {
    background-color: transparent !important;
    padding: 60px 20px !important;
    min-height: auto;
    position: relative;
}

.container-isi {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* =========================================
   WEDDING DAY HEADER WITH ORNAMENT
   ========================================= */

.wedding-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
}

.wedding-day-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 1px;
    z-index: 2;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(255,255,255,0.8) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0.8) 100%);
    margin: 0 15px;
    position: relative;
}

.bell-icon {
    color: #fff;
    font-size: 1.3rem;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bell-icon:hover {
    transform: rotate(15deg);
}

/* =========================================
   CAROUSEL WRAPPER WITH COUNTDOWN
   ========================================= */

.countdown-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

#countdownCarousel,
#countdownCarousel .carousel-inner,
#countdownCarousel .carousel-item {
    height: 100%;
    width: 100%;
}

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

/* Overlay Gradient - Beige/Vintage Tone */
.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(139, 119, 101, 0.3) 0%, 
        rgba(160, 140, 120, 0.4) 50%, 
        rgba(139, 119, 101, 0.6) 100%);
    z-index: 1;
}

/* =========================================
   COUNTDOWN TIMER OVERLAY
   ========================================= */

.countdown-timer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(139, 119, 101, 0.9) 0%, 
        rgba(160, 140, 120, 0.7) 70%, 
        transparent 100%);
    padding: 40px 20px 30px;
    z-index: 2;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.countdown-box {
    text-align: center;
    flex: 1;
    max-width: 90px;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

/* =========================================
   GLASS CARD (AKAD & RESEPSI)
   ========================================= */

.agenda-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agenda-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(139, 119, 101, 0.9) 0%, 
        rgba(160, 140, 120, 0.7) 70%, 
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.card-header {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.script-title {
    font-family: 'Sacramento', cursive;
    font-size: 3rem;
    color: #fff;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.title-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    margin: 10px auto 0;
}

.card-content {
    position: relative;
    z-index: 1;
}

.day-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.full-date {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.time {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.location-section {
    margin-bottom: 25px;
}

.location-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.location-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.btn-view-maps {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-view-maps:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: #fff;
}

/* Hide carousel controls for cleaner look */
#countdownCarousel .carousel-control-prev,
#countdownCarousel .carousel-control-next {
    display: none;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 576px) {
    .wedding-day-text {
        font-size: 1.2rem;
    }
    
    .bell-icon {
        font-size: 1.1rem;
    }
    
    .countdown-carousel-wrapper {
        height: 500px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-container {
        gap: 12px;
    }
    
    .countdown-box {
        max-width: 70px;
    }
    
    .agenda-card {
        padding: 30px 20px;
    }
    
    .script-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .countdown-carousel-wrapper {
        height: 700px;
        max-width: 550px;
    }
    
    .countdown-number {
        font-size: 3.5rem;
    }
    
    .wedding-day-text {
        font-size: 1.8rem;
    }
    
    .bell-icon {
        font-size: 1.5rem;
    }
    
    .agenda-card {
        padding: 40px 30px;
        max-width: 500px;
    }
    
    .script-title {
        font-size: 3.5rem;
    }
}

/* SECTION LOVESTORY */
/* =========================================
   SECTION LOVESTORY - FINAL REVISION
   ========================================= */

/* 1. Container Utama Koran */
.newspaper-container {
    background-color: transparent !important; /* Tetap transparan */
    color: #fff; /* Default teks putih */
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Border tipis transparan */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 20px auto;
    max-width: 450px;
    font-family: 'Times New Roman', Times, serif; /* Font Family SAMA */
    backdrop-filter: blur(3px); /* Efek kaca tipis agar teks lebih aman */
}

/* 2. Header Koran */
.newspaper-header {
    text-align: center;
    border-bottom: 3px double rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.newspaper-title {
    font-family: "Abril Fatface", serif !important;
    font-size: 1.3rem !important;
    margin: 5px 0;
    letter-spacing: 1px !important;
    font-style: italic;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9); /* Shadow tebal */
}

.newspaper-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: bold;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.4);
    color: #eee;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* 3. Isi Berita (Headline & Paragraf) */
.headline-news {
    font-family: 'Playfair Display', serif; /* Font Family SAMA */
    font-size: 0.9rem; /* Font Size SAMA */
    font-weight: bold;
    text-align: left;
    margin-top: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 3px;
    color: #fff;
    
    /* Text Shadow untuk keterbacaan maksimal */
    text-shadow: 
        2px 2px 0px #000,
        -1px -1px 0px #000,  
        1px -1px 0px #000,
        -1px 1px 0px #000,
        1px 1px 0px #000,
        0px 3px 5px rgba(0,0,0,0.9);
}

.story-section p {
    font-size: 0.95rem; /* Font Size SAMA */
    line-height: 1.5;   /* Line Height SAMA */
    text-align: justify;
    margin-top: 8px;
    color: #fff;
    
    /* Text Shadow */
    text-shadow: 
        1px 1px 2px #000,
        0px 2px 5px rgba(0,0,0,0.9);
}

/* 4. Drop Cap (Huruf Besar) */
.story-section p::first-letter {
    float: left;
    font-size: 2.5rem; /* Font Size SAMA */
    line-height: 1;
    font-weight: bold;
    padding-right: 8px;
    color: #fff;
    text-shadow: 2px 2px 4px #000, 0px 4px 8px rgba(0,0,0,0.8);
}

/* 5. Footer */
.newspaper-footer {
    margin-top: 20px;
    font-size: 0.6rem; /* Font Size SAMA */
    font-style: italic;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 10px;
    color: #eee;
    text-shadow: 1px 1px 3px #000;
}

/* =========================================
   FOTO CAROUSEL LOVESTORY
   ========================================= */

.Photo-lovestory {
    position: relative;
    display: inline-block;
    width: 100%; /* Full width dalam container */
    max-width: 400px;
    height: 500px; /* Tinggi container */
    margin: 0 auto 25px auto;
    z-index: 1;
    overflow: hidden; /* Penting agar gradasi tidak keluar */
    border-radius: 4px; /* Sedikit melengkung agar rapi */
}


.Photo-lovestory .carousel,
.Photo-lovestory .carousel-inner,
.Photo-lovestory .carousel-item {
    height: 100%; /* Ikut tinggi container 500px */
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.Photo-lovestory .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
    display: block;
    
    /* Sedikit gelap agar menyatu dengan gradasi */
    filter: brightness(0.85) contrast(1.1); 
}

/* =========================================
   CONTAINER LOVE & TEXT TAMBAHAN
   ========================================= */

.container-love {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent !important;
}

.text-love p {
    font-family: 'Roboto Slab', serif; /* Font Family SAMA */
    font-size: 14px; /* Font Size SAMA */
    line-height: 1.8;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    text-align: center;
    margin-bottom: 25px;
    word-spacing: 1px;
}

.text-love h4 {
    font-family: "sacramento", cursive; /* Font Family SAMA */
    font-size: 36px; /* Font Size SAMA */
    padding-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.title-story {
    font-family: 'Bodoni Moda', serif; /* Font Family SAMA */
    font-size: 1.6rem; /* Font Size SAMA */
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

/* =========================================
   MEDIA QUERY LAPTOP
   ========================================= */
@media (min-width: 992px) {
    .row-love-story {
        max-width: 100% !important; 
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: 5% !important;
    }

    .row-love-story .newspaper-container {
        width: 95% !important;
        max-width: 600px !important;
        margin-left: auto !important; 
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .row-love-story {
        justify-content: flex-end !important; 
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Galleri FOTO */

/* Container Utama Galeri */
.container-galeri {
    max-width: 500px; /* Pertahankan lebar kontainer koran Anda */
    margin: 0 auto;
    background-color: rgb(235, 232, 232);
    overflow: hidden;
}
.gallery-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden; /* Mencegah layar goyang jika garis kepanjangan */
}

.huruf-G {
    font-family: "Playfair Display", serif !important;
    font-size: 35px;
    font-style: italic;
    font-weight: 900;
    margin: 0;
    align-self: flex-end; /* Geser Gallery ke kanan */
    padding-right: 50px; /* Jarak dari tepi kanan */
}

.line-with-text {
    display: flex;
    align-items: center; /* Garis dan teks sejajar secara vertikal */
    margin-top: -10px; /* Tarik ke atas agar mepet dengan Gallery */
}

.gallery-divider {
    height: 2px;
    background-color: #333;
    flex: 1; /* Garis akan memanjang otomatis dari kiri */
    margin-right: 15px; /* Jarak antara ujung garis dengan huruf O */
}

.huruf-O {
    font-family: "Mea Culpa", cursive;
    font-size: 40px;
    color: #000;
    margin: 0;
    padding-right: 20px; /* Jarak tulisan dari tepi kanan */
    text-wrap: nowrap;
}

/* Wadah Galeri Utama */
.gallery-wrapper {
    background-color: #000;
    width: auto; /* Ubah dari 100% ke auto agar margin bekerja */
    max-width: 500px;
    margin: 0 15px; /* Memberi jarak 15px di kiri dan kanan */

    
}

/* Pengaturan Foto Besar */
.gallery-main .carousel-item {
    height: 450x; /* Sesuaikan tinggi kaku wadah slide */
    background-color: #000;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar utuh tanpa terpotong (seperti contoh Anda) */
    object-position: center;
}

/* Pengaturan Thumbnail (Foto Kecil) */
.gallery-thumbs-wrapper {
    padding: 10px;
    border-top: 1px solid #dcdcdc;
    z-index: 5;
}

.gallery-thumbs {
    gap: 8px; /* Jarak antar thumbnail */
    padding-left: 30px; /* Beri ruang untuk ikon Down */
}

.thumb-item {
    width: 65px; /* Lebar thumbnail */
    height: 65px; /* Tinggi thumbnail */
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px; /* Opsional: Sedikit membulat */
    transition: all 0.2s ease;
    border: 2px solid transparent; /* Bingkai transparan default */
    opacity: 0.6; /* Buat buram saat tidak aktif */
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Thumbnail dipotong kotak sempurna */
    object-position: center;
}

/* GAYA KETIKA THUMBNAIL AKTIF */
.thumb-item.active {
    opacity: 1; /* Terang sempurna */
    border-color: #5d757d; /* Bingkai warna biru navy Anda */
    transform: scale(1.05); /* Sedikit membesar */
}

/* Sembunyikan scrollbar thumbnail di browser modern */
.gallery-thumbs::-webkit-scrollbar {
    display: none;
}
.gallery-thumbs {
    -ms-overflow-style: none;  /* IE dan Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Khusus tampilan laptop/layar lebar */
@media (min-width: 992px) {
    .container-galeri {
        background-color: rgb(235, 232, 232) !important;
        max-width: 500px !important; 
        
        /* 1. Paksa posisi menjadi relatif agar bisa kita geser manual */
        position: relative !important;
        
        /* 2. Geser ke kiri. Semakin besar angkanya (minus), semakin ke kiri dia jalan */
        /* Coba ganti -50px, -100px, atau -150px sampai posisinya pas di tengah area kosong */
        left: -20px !important; 
        
        /* 3. Reset margin agar tidak bentrok dengan sistem grid */
        margin-left: 0 !important;
        margin-right: auto !important;
        
        margin-top: 30px !important;
        margin-bottom: 50px !important;
        
        padding: 20px !important;
        border-radius: 20px; 
        
        /* 4. Pastikan dia tidak terbungkus overflow yang memotong */
        overflow: visible !important; 
    }

    .gallery-header {
        padding-top: 10px !important;
    }

    .gallery-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

/* ============================================================
   FITUR FULLSCREEN (OPTIMASI FINAL IPHONE, ANDROID, LAPTOP)
   ============================================================ */

/* 1. Fullscreen Standar (Android & Laptop) */
.gallery-wrapper:fullscreen {
    background-color: #000 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

/* 2. Fullscreen Khusus iPhone (Fake Fullscreen) */
.gallery-wrapper.fake-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    
    /* Gunakan dvh (Dynamic Viewport Height) agar pas di Safari iPhone */
    width: 100% !important; 
    height: 100dvh !important; 
    
    background-color: #000 !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    margin: 0 !important;
    /* Mencegah konten tertutup poni/home bar iPhone */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important;
}

/* Kunci Scroll khusus iPhone (Update agar sinkron dengan JS & Anti-Lompat) */
body.no-scroll-iphone {
    overflow: hidden !important;
    position: fixed !important; 
    width: 100% !important;
    height: 100% !important;
    /* Jangan kasih top: 0; karena posisi 'top' akan diatur otomatis oleh JS */
    touch-action: none; 
}

/* 3. Atur Gambar Saat Fullscreen (Semua Perangkat) */
.gallery-wrapper:fullscreen .carousel-item img,
.gallery-wrapper.fake-fullscreen .carousel-item img {
    height: 80dvh !important; /* Tinggi gambar menyesuaikan layar dinamis */
    width: 100% !important;
    object-fit: contain !important;
}

/* 4. Kontrol Navigasi & Thumbnail */
.gallery-wrapper:fullscreen .gallery-main,
.gallery-wrapper.fake-fullscreen .gallery-main {
    width: 100%;
}

/* Sembunyikan thumbnail saat fullscreen */
.gallery-wrapper:fullscreen .gallery-thumbs,
.gallery-wrapper.fake-fullscreen .gallery-thumbs {
    display: none !important;
}

/*INI YOUTUBE*/
/* --- SECTION VIDEO (REVISI TOTAL) --- */
/* --- 1. SECTION VIDEO --- */
/* === 6. SECTION VIDEO - RATIO 4:3 (MAN IN BLACK STYLE) === */

/* Container utama section - background transparan dipertahankan */
#video-prewed {
    width: 100%;
    padding: 40px 15px !important;
    background-color: transparent !important; /* ✅ Dipertahankan */
    display: block !important;
    position: relative;
    z-index: 10;
    margin: 0 !important;
}

/* Wrapper konten */
#video-prewed .container-galeri {
    max-width: 640px; /* Optimal untuk 4:3 */
    margin: 0 auto;
    background: transparent !important; /* ✅ Dipertahankan */
}

/* Ratio 4:3 - dengan background transparan & MIB style */
#video-prewed .ratio-4x3 {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* ✅ 3 ÷ 4 × 100% = 75% untuk ratio 4:3 */
    height: 0;
    background-color: transparent !important; /* ✅ Dipertahankan */
    
    /* Bingkai tipis putih (Simple & Bold) */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0; /* Siku tajam ala MIB */
    
    /* Shadow dalam agar video terlihat menonjol */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    overflow: hidden !important;
}

/* Iframe video - menutup penuh area ratio */
#video-prewed .ratio-4x3 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: transparent !important; /* ✅ Dipertahankan */
}

/* --- ✅ MEDIA QUERY KHUSUS LAPTOP (DIPERTAHANKAN) --- */
@media (min-width: 992px) {
    #video-prewed {
        min-height: auto;
        background: transparent !important; /* ✅ Dipertahankan */
    }
    #video-prewed .container-galeri {
        max-width: 720px; /* Lebih lebar di desktop */
    }
}

/* --- ✅ MEDIA QUERY KHUSUS HP (DIPERTAHANKAN) --- */
@media (max-width: 767px) {
    #video-prewed {
        padding: 20px 10px !important;
    }
    #video-prewed .container-galeri {
        max-width: 100%;
    }
}

/* Section Gift Styles */
.section-kado {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.section-kado::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.container-WG {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Typography */
.wedding-script-title {
  font-family: 'Great Vibes', 'Brush Script MT', cursive;
  font-size: 3rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 2px;
}

.divider-line-wg {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1a1a1a, transparent);
  margin: 20px auto 40px;
}

.gift-description {
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
}

/* Button Amplop */
.btn-amplop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  color: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-bottom: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-amplop:hover {
  background: transparent;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-amplop i {
  font-size: 1.3rem;
}

/* Bank Card */
.gift-info {
  margin: 40px 0;
}

.bank-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.bank-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.bank-header i {
  font-size: 1.5rem;
  color: #1a1a1a;
}

.bank-header span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.bank-item {
  margin-bottom: 25px;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  border-left: 4px solid #1a1a1a;
}

.bank-item:last-child {
  margin-bottom: 0;
}

.bank-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.bank-name i {
  color: #333;
}

.bank-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.bank-account span {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.btn-copy {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: #333;
  transform: scale(1.05);
}

.account-holder {
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
}

/* Physical Gift Section */
.physical-gift {
  margin-top: 50px;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.gift-subtitle {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.gift-address-text {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.address-box {
  background: #fafafa;
  padding: 25px;
  border-radius: 12px;
  border: 2px dashed #ddd;
  position: relative;
}

.address-box i {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  display: block;
}

.address-box p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
}

.address-box .phone {
  display: inline-block;
  margin-top: 10px;
  color: #555;
}

.btn-copy-address {
  background: transparent;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  padding: 5px 10px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-copy-address:hover {
  background: #1a1a1a;
  color: #fff;
}


.custom-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1a1a1a;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

/* =============================================
   6UNIFIED CARD — UCAPAN & RSVP GABUNG
   ============================================= */

/* Dekorasi Bunga Pojok Section */
.floral-decor {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 0;
    opacity: 0.15;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.floral-tl {
    top: 0;
    left: 0;
    background-image: url('bunga-dekorasi.png');
}

.floral-br {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
    background-image: url('bunga-dekorasi.png');
}

/* Kartu Utama Gabung */
.unified-card {
    background: linear-gradient(145deg, #ffffff 0%, #fefefe 50%, #fdf8f0 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    padding: 35px 28px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Overlay bunga di pojok */
.unified-flower-top-right,
.unified-flower-bottom-left {
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.unified-flower-top-right {
    top: -40px;
    right: -40px;
    background-image: url('bunga-putih.png');
}

.unified-flower-bottom-left {
    bottom: -40px;
    left: -40px;
    transform: rotate(180deg);
    background-image: url('bunga-putih.png');
}

/* Header */
.unified-title {
    font-family: 'Sacramento', cursive;
    font-size: 3rem;
    color: var(--theme-color);
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.unified-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Input Form Unified */
.form-unified {
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 0.95rem;
    background: #fafafa;
    transition: all 0.3s ease;
}

.form-unified:focus {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background: #fff;
    outline: none;
}

/* Pilihan Kehadiran (Radio Buttons Custom) */
.kehadiran-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kehadiran-option {
    flex: 1;
    min-width: 110px;
    
}

.kehadiran-radio {
    display: none;
}

.kehadiran-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 102px;
    padding: 2px 3px;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: #fafafa;
}

/* Hadir - Hijau Emas */
.label-hadir {
    color: #2e7d32;
    font-size: 9px !important ;
}

.kehadiran-radio:checked + .label-hadir {
    background: linear-gradient(135deg, #d4af37 0%, #c9a84c 100%);
    color: #fff;
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* Tidak Hadir - Abu */
.label-tidak-hadir {
    color: #6c757d;
    font-size: 9px !important ;
}

.kehadiran-radio:checked + .label-tidak-hadir {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    border-color: #6c757d;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* Masih Ragu - Kuning */
.label-ragu {
    color: #f57f17;
    font-size: 9px !important ;
}

.kehadiran-radio:checked + .label-ragu {
    background: linear-gradient(135deg, #ffb300 0%, #ffca28 100%);
    color: #fff;
    border-color: #ffb300;
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
    transform: translateY(-2px) scale(1.02);
}


/*font kehadiran*/
.kehadiran-label i {
    font-size: 15px;
}


/* Hover effect untuk label */
.kehadiran-label:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

/* Tombol Kirim Unified (SATU TOMBOL) */
.btn-kirim-unified {
    background: linear-gradient(135deg, #d4af37 0%, #c9a84c 50%, #b8942f 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 45px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35),
                0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-kirim-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-kirim-unified:hover {
    background: linear-gradient(135deg, #c9a84c 0%, #b8942f 50%, #a68324 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5),
                0 4px 10px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.btn-kirim-unified:hover::before {
    left: 100%;
}

.btn-kirim-unified:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* =============================================
   DAFTAR UCAPAN (Tetap sama)
   ============================================= */
.ucapan-list {
    background: linear-gradient(145deg, #ffffff, #fefefe);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ucapan-item {
    background: #fafafa;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ucapan-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d4af37, #f0d878);
    border-radius: 0 2px 2px 0;
}

.ucapan-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.08);
    transform: translateX(3px);
}

.ucapan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.ucapan-nama {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--theme-color);
}

.ucapan-teks {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.ucapan-tanggal {
    font-size: 0.75rem;
    color: #bbb;
}

/* Badge Kehadiran */
.ucapan-kehadiran {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ucapan-kehadiran.hadir {
    background: linear-gradient(135deg, #d4af37, #c9a84c);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.ucapan-kehadiran.ragu {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #f57f17;
    border: 1px solid #ffe082;
}

.ucapan-kehadiran.tidak-hadir {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #6c757d;
    border: 1px solid #bdbdbd;
}

/* =============================================
   RESPONSIVE (GABUNGAN & DIOPTIMALKAN)
   ============================================= */
@media (max-width: 576px) {
    .unified-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .unified-title {
        font-size: 2.3rem;
    }

    .kehadiran-option {
        min-width: 95px;
    }

    .kehadiran-label {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .btn-kirim-unified {
        padding: 12px 35px;
        font-size: 0.95rem;
    }

    .floral-decor {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 992px) {
    /* Kontainer putih lebih lega & luas */
    .unified-card,
    .ucapan-list {
        max-width: 100%;
        padding: 50px 42px; /* Ruang napas diperbesar */
        border-radius: 26px;
    }

    /* Input & Textarea lebih proporsional */
    .form-unified {
        padding: 14px 20px;
        font-size: 1rem;
    }
    textarea.form-unified {
        min-height: 140px;
    }

    /* KUNCI: 3 Tombol Kehadiran Wajib 1 Baris */
    .kehadiran-options {
        flex-wrap: nowrap !important;
        gap: 14px;
    }
    .kehadiran-option {
        flex: 1 1 0%; /* Bagi rata lebar 3 tombol */
        min-width: 0; /* Izinkan mengecil proporsional */
    }
    .kehadiran-label {
        white-space: nowrap; /* Cegah teks "Masih Ragu" turun */
        padding: 14px 12px;
        font-size: 0.95rem;
        line-height: 1.3;
    }

    /* Tombol kirim lebih premium */
    .btn-kirim-unified {
        padding: 16px 55px;
        font-size: 1.1rem;
    }

    /* Tipografi lebih jelas di layar besar */
    .unified-title {
        font-size: 3.2rem;
        margin-bottom: 5px;
    }
    .unified-subtitle {
        font-size: 0.95rem;
    }
    .form-label {
        font-size: 1.05rem;
    }
}


/* --- 8. SECTION PENUTUP (FIX LAYERING - FONT TETAP) --- */

#Penutupcover {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #000;
    overflow: hidden;
}

/* FIX 1: Paksa gambar jadi background di layer paling bawah */
#Penutupcover > div:first-child {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Gambar di bawah */
    pointer-events: none; /* Agar gambar tidak menghalangi klik */
}

#Penutupcover > div:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    /* Gelapkan gambar otomatis agar teks putih terbaca */
    filter: brightness(0.4) contrast(1.1) !important; 
}

/* FIX 2: Overlay content di atas gambar */
.overlay-content {
    position: relative;
    z-index: 10; /* Teks di atas gambar */
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.95) 100%);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    text-align: center;
    color: white;
    padding: 30px 20px 20px 20px; 
    box-sizing: border-box;
}

/* --- SEMUA FONT & UKURAN TETAP SAMA PERSIS SEPERTI ASLI --- */

.cover-penutup {
    width: 100%;
}

.bagian-bawah h1 {
    font-family: "Great Vibes", cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.bagian-bawah {
    margin-top: 20px;
}

.bagian-bawah h4 {
    font-size: clamp(8px, 2vw, 10px);
    letter-spacing: 3px;
    margin-bottom: 5px;
    opacity: 0.7;
}

.bagian-bawah h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 5px;
}

.Identity-pembuat {
    width: 100%;
    padding-bottom: 50px; 
    position: relative;
    z-index: 20;
}

.Identity-pembuat p {
    font-size: 8px;
    letter-spacing: 3px;
    margin-bottom: 2px;
    opacity: 0.6;
}

.Identity-pembuat h2 {
    font-family: serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 15px !important;
}

.hubungi-kami {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative; 
    margin-top: 10px; 
    z-index: 999; 
}

.btn-hub {
    color: white !important;
    font-size: 1.3rem;
    width: 40px; 
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.4s;
}

.btn-hub:hover {
    background: white;
    color: black !important;
}

/* LAPTOP FULL WIDTH */
@media (min-width: 992px) {
    #Penutupcover {
        margin: 0 -50px;
        width: calc(100% + 100px);
    }
    .overlay-content {
        padding: 60px 40px 30px 40px;
    }
}

/* --- 9. STICKY FOOTER NAV (VERTICAL MODE) --- */
.container-footer {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100dvh; /* Minimal satu layar, tapi BISA LEBIH */
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Jangan pakai overflow: hidden di sini */
}

/* --- TAMPILAN DESKTOP (Kanan Kontainer) --- */
.sticky-footer {
    position: fixed;
    top: 50%;
    left: 49%;
    /* Menggeser menu ke kanan dari titik tengah layar */
    /* 225px (setengah kontainer) + 15px (jarak aman) = 240px */
    margin-left: 240px; 
    
    transform: translateY(-50%); /* Menjaga agar tetap di tengah secara vertikal */
    width: fit-content;
    height: auto;
    padding: 10px 6px;
    
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 15px;
    
    z-index: 9999999 !important;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    
    /* Logika Sembunyi di Awal */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

/* Muncul saat body memiliki class 'active' */
body.active .sticky-footer {
    opacity: 1;
    visibility: visible;
}

.nav-btn {
    text-decoration: none;
    color: white !important;
    font-size: 1.1rem; 
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15px; 
    height: 15px;
}

.nav-btn:hover {
    color: #ffd700 !important; 
    transform: scale(1.2);
}

/* --- TAMPILAN HP (Mepet Kanan Layar) --- */
@media (max-width: 576px) {
    .sticky-footer {
        left: auto;        /* Mematikan patokan tengah desktop */
        right: 4px;       /* Jarak 15px dari tepi kanan layar HP */
        margin-left: 0;    /* Menghapus margin desktop */
        padding: 10px 5px;
        width: 20px;
    }

    .nav-btn {
    text-decoration: none;
    color: white !important;
    font-size: 0.7rem; 
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10px; 
    height: 5px;
    gap: 5px;   
    }

.nav-btn:hover {
    color: #ffd700 !important; 
    transform: scale(1.2);
    }
}





/* Gabungan Mode Fullscreen Asli (Android/Laptop) & Fake Fullscreen (iPhone) */
.gallery-wrapper:fullscreen,
.gallery-wrapper.is-fake-fullscreen {
    background-color: #000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    position: fixed !important; /* Penting untuk iPhone */
    top: 0;
    left: 0;
}

/* Memastikan gambar CAROUSEL jadi FULL saat fullscreen */
.gallery-wrapper:fullscreen .carousel-item,
.gallery-wrapper:fullscreen .carousel-item img,
.is-fake-fullscreen .carousel-item,
.is-fake-fullscreen .carousel-item img {
    height: 100vh !important; /* Paksa tinggi jadi seukuran layar */
    width: 100vw !important;
    object-fit: contain !important; /* Foto utuh tidak terpotong */
}

/* Sembunyikan thumbnail & elemen lain yang mengganggu saat fullscreen */
.gallery-wrapper:fullscreen .gallery-thumbs-wrapper,
.is-fake-fullscreen .gallery-thumbs-wrapper {
    display: none !important;
}

/* --- 8. RESPONSIVE MOBILE --- */
@media (max-width: 576px) {
    
    .container-awal h4 { font-size: 3.5rem; }
    .carosel-bawah h2 { font-size: 4rem; }
    
    .profile-img {
        width: 150px !important; /* Menyesuaikan ukuran profil di HP */
        height: 230px !important;
        object-fit: cover;
            border-radius: 150px; /* Bentuk Kapsul/Oval */
            border: 6px solid white;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            position: relative;
            z-index: 2; /* Di atas bunga latar */
    }
}

/* Global No Scroll */
.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* =========================================
   SOLUSI FINAL: ANGKAT Z-INDEX & PAKSA KLIK
   ========================================= */

/* 1. KUNCI UTAMA: Angkat container utama agar tidak tenggelam */
/* Ini menimpa aturan z-index: -1 yang ada di media query kamu */
.carousel-covawal {
    z-index: 100 !important; 
    position: relative !important;
}

/* 2. MATIKAN SEMUA HALANGAN KLIK DI DALAM AREA INI */
.dear-tamu, 
.dear-tamu *, 
.mt-3,
.mt-3 * {
    pointer-events: auto !important;
    touch-action: manipulation !important; /* Penting untuk HP */
}



/* 4. POSISI TOMBOL PALING ATAS (Z-INDEX GILA) */
#btn-open {
    z-index: 999999 !important; /* Pastikan paling atas dari segalanya */
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important; /* Biar tidak ke-blok teks saat diklik */
    
    /* Visual Debug (Opsional: Hapus baris bawah ini kalau sudah bisa diklik) */
    outline: 2px solid rgba(82, 81, 81, 0.5); 
}

/* =========================================
   FINAL GUARANTEE: MAIN-CONTENT MUNCUL
   ========================================= */

/* Pastikan .show-content benar-benar visible */
#main-content.show-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 20 !important;
    position: relative !important;
}

/* Pastikan cover yang slide-up tidak menumpuk */
.container-cover.slide-up {
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Pastikan right-panel mengizinkan scroll */
.right-panel {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}



/*INI UNTUK UCAPAN TAMU PAGE OF 5 COMMENTS*/
/* ========================================
   SECTION UCAPAN TAMU - REVISI LENGKAP
   ======================================== */

/* Container Ucapan Tamu */
.ucapan-list {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  margin-top: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.ucapan-list h5 {
  font-family: 'Sacramento', cursive;
  color: #5a6c7d;
  margin-bottom: 25px;
  font-size: 2rem;
  text-align: center;
}

/* Item Komentar */
.ucapan-item {
  background: linear-gradient(135deg, #fffef5 0%, #fff9e6 100%);
  border-left: 4px solid #d4af37;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ucapan-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="90" cy="10" r="40" fill="rgba(212,175,55,0.03)"/></svg>');
  background-size: 100px 100px;
  pointer-events: none;
}

.ucapan-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

/* Header Komentar (Nama & Badge) */
.ucapan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.ucapan-nama {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c3e50;
  font-family: 'Playfair Display', serif;
}

/* Badge Status Kehadiran */
.ucapan-kehadiran {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* Badge Hadir - Warna Kuning/Orange */
.ucapan-kehadiran.hadir {
  background: linear-gradient(135deg, #ffe082 0%, #ffecb3 100%) !important;
  color: #e65100 !important;
  border: 2px solid #ffc107 !important;
  font-weight: 700 !important;
}

/* Badge Tidak Hadir */
.ucapan-kehadiran.tidak-hadir {
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #666;
  border: 2px solid #bdbdbd;
}

/* Badge Ragu */
.ucapan-kehadiran.ragu {
  background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
  color: #fff;
  border: 2px solid #f57c00;
}

/* Teks Ucapan */
.ucapan-teks {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 12px 0;
  font-style: italic;
  text-align: justify;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.ucapan-teks::before,
.ucapan-teks::after {
  font-size: 2rem;
  color: #d4af37;
  opacity: 0.3;
  position: absolute;
  font-family: Georgia, serif;
  line-height: 1;
}

.ucapan-teks::before {
  content: '"';
  top: -10px;
  left: 0;
}

.ucapan-teks::after {
  content: '"';
  bottom: -20px;
  right: 0;
}

/* Timestamp */
.ucapan-tanggal {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.ucapan-tanggal::before {
  content: '🕐';
  font-size: 0.9rem;
}

/* ========================================
   PAGINATION CONTROLS - UPDATED
   ======================================== */
#pagination-controls {
  margin: 20px 0;
}

#pagination-controls .pagination {
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

/* Style dasar untuk semua tombol pagination */
#pagination-controls .page-link {
  border-radius: 8px !important;
  padding: 8px 14px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

/* Tombol Prev dan Next - WARNA ORANGE/KUNING */
#pagination-controls .page-item:first-child .page-link,
#pagination-controls .page-item:last-child .page-link {
  color: #e65100 !important;
  font-weight: 700 !important;
  border: 2px solid #ffc107 !important;
  background: linear-gradient(135deg, #fff8e1, #ffecb3) !important;
}

/* Hover untuk Prev dan Next */
#pagination-controls .page-item:first-child .page-link:hover:not(:disabled),
#pagination-controls .page-item:last-child .page-link:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffe082, #ffd54f) !important;
  color: #d84315 !important;
  border-color: #ffb300 !important;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4) !important;
  transform: translateY(-1px);
}

/* Disabled untuk Prev dan Next */
#pagination-controls .page-item:first-child .page-link:disabled,
#pagination-controls .page-item:last-child .page-link:disabled {
  background: #f5f5f5 !important;
  color: #bdbdbd !important;
  border-color: #e0e0e0 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* Ikon panah di Prev/Next */
#pagination-controls .page-item:first-child .page-link i,
#pagination-controls .page-item:last-child .page-link i {
  color: inherit;
  font-weight: 900;
  margin: 0 2px;
}

/* Tombol angka halaman (bukan Prev/Next) */
#pagination-controls .page-item:not(:first-child):not(:last-child) .page-link {
  color: #666 !important;
  font-weight: 500;
}

#pagination-controls .page-item:not(:first-child):not(:last-child) .page-link:hover:not(:disabled) {
  background: #fff3cd !important;
  border-color: #ffc107 !important;
  color: #e65100 !important;
}

/* Active state untuk halaman aktif */
#pagination-controls .page-item.active .page-link {
  background: linear-gradient(135deg, #ffe082, #ffecb3) !important;
  border: 2px solid #ffc107 !important;
  color: #e65100 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* Text "Halaman X dari Y" */
#pagination-controls .text-center.small {
  margin-top: 10px;
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .ucapan-list {
    padding: 20px 15px;
    margin-top: 20px;
    border-radius: 15px;
  }
  
  .ucapan-list h5 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .ucapan-item {
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .ucapan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .ucapan-nama {
    font-size: 1rem;
  }
  
  .ucapan-teks {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
  }
  
  .ucapan-kehadiran {
    padding: 4px 12px;
    font-size: 0.75rem;
  }
  
  .ucapan-tanggal {
    font-size: 0.75rem;
  }
  
  #pagination-controls .page-link {
    padding: 6px 10px !important;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .ucapan-item {
    padding: 12px 10px;
  }
  
  .ucapan-nama {
    font-size: 0.95rem;
  }
  
  .ucapan-teks {
    font-size: 0.85rem;
  }
  
  .ucapan-teks::before,
  .ucapan-teks::after {
    font-size: 1.5rem;
  }
}

/* ========================================
   ANIMASI
   ======================================== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ucapan-item {
  animation: slideIn 0.5s ease-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.ucapan-item.new-comment {
  animation: slideIn 0.5s ease-out, pulse 1s ease-in-out;
}

/* ========================================
   EMPTY STATE & LOADING
   ======================================== */
.ucapan-empty {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
}

.ucapan-empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
  opacity: 0.5;
}

.ucapan-loading {
  text-align: center;
  padding: 30px;
  color: #999;
}

.ucapan-loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #d4af37;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ========================================
   FIX: FULL WIDTH + BLACK SIDES (LAPTOP)
   ======================================== */

@media (min-width: 992px) {
    /* Section #awal - Full viewport width */
    #awal {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        background-color: #000 !important;
        padding: 0 !important;
    }
    
    /* Carousel wrapper - Full width */
    #awal .carousel-covawal {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* CoverCarousel - Full width & height */
    #coverCarousel,
    #coverCarousel .carousel-inner,
    #coverCarousel .carousel-item {
        width: 100% !important;
        height: 100dvh !important;
        background-color: #000 !important;
    }
    
    /* Image - Proportional, centered, with black sides */
    #coverCarousel .carousel-item img {
        width: auto !important;
        height: 100dvh !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Content container - Centered */
    #awal .container-isi {
        max-width: 600px !important;
        margin: 0 auto !important;
        position: relative;
        z-index: 102;
    }
}
