/* STYLING DASAR */
:root {
    --color-primary: #1A73E9;
    --color-background: #f5f6fa;
    --color-white: #fff;
    --color-grey: #dcdcdc;
    --color-very-lite-blue: #f0f8ff;
    --color-lite-blue: rgb(26, 115, 233, 0.3);
    --color-abu-bg: #f3f3f3;
    --gradasi-abu-halus: linear-gradient(to bottom, #f5f5f5, #a9a9a9);
    --gradasi-biru-halus: linear-gradient(to right, #0062ff, #008cff);
    --gradasi-biru-sosmed: linear-gradient(to bottom, #569fff, #3a8fde);
}
body {
    margin: 0;
    background-color: var(--color-background);
    font-family: 'Public Sans', sans-serif;
}
.container {
    background-color: var(--color-white);
    position: relative;
}
.text-blue {
    color: var(--color-primary);
}
* {
    -webkit-tap-highlight-color: transparent;
}
/* Animasi agar ikon spinner berputar */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* SECTION 1 */
#section-1 {
    background-image: url('../pict/sec_1_a.webp');
    background-size: cover; 
    background-position: center;
    height: 800px;
}
#section-1 .title {
    font-size: 1.9rem;
    font-weight: bold;
    padding: 40px 40px 20px 40px;
}
#section-1 .title-italic {
    padding: 0 40px 30px 40px;
    font-size: 0.85rem;
    font-style: italic;
}
#section-1 .btn-daftar {
    display: inline-block;
    margin: 0 40px;
    border: none;
    background: var(--gradasi-biru-halus);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 450;
    text-decoration: none;
}

/* SECTION 2 */
#section-2 {
    background-color: var(--color-abu-bg);
    padding-bottom: 35px;
}
#section-2 .title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: bold;
    padding: 40px 30px 60px 30px;
}
#section-2 .gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
#section-2 .gallery-container::-webkit-scrollbar {
    display: none;
}
#section-2 .gallery-item {
    height: 450px;
    margin: 0 15px 40px 15px;
    flex: 0 0 70%;
    border-radius: 35px;
    border: 17px solid var(--color-white);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
    opacity: 0.5;
    transform: scale(0.90);
    transition: transform 0.4 cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
    
    /* Mencegah teks terblokir saat mouse ditarik */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;      /* IE 10 dan 11 */
    user-select: none;          /* Standard */
    
    /* Tambahan agar gambar juga tidak ikut ter-drag keluar */
    -webkit-user-drag: none;
    outline: none;
}
#section-2 .gallery-item.active {
    opacity: 1;
    transform: scale(1);
    cursor: grabbing;
}
#section-2 .bg-video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
#section-2 video {
    outline: none;
}
#section-2 video:focus {
    outline: none;
}
#section-2 .video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: opacity 0.5s ease;
}
#section-2 .video-controls.hide {
    opacity: 0;
    pointer-events: none;
}
#section-2 .play-pause-btn {
    background: var(--gradasi-biru-halus);
    border: none;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
#section-2 .play-pause-btn i {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--color-white);
}
#section-2 .video-loader {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    z-index: 6;
}
#section-2 .video-loader.hidden {
    display: none;
}

#section-2 .video-teks-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
    padding: 0 20px 30px 20px;
}
#section-2 .video-teks-overlay .nama {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.05rem;
}
#section-2 .video-teks-overlay .info {
    padding-top: 2px;
    font-size: 0.8rem;
    color: #737373;
    letter-spacing: -0.05rem;
}
#section-2 .video-teks-overlay .surah {
    background-color: var(--color-white);
    border-radius: 22px;
    margin-top: 10px;
    padding: 5px 15px;
    font-size: 1rem;
    letter-spacing: -0.05rem;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    width: max-content;
    gap: 5px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
}
#section-2 .video-teks-overlay .surah img {
    width: 18px;
}

/* SECTION 3 */
#section-3 {
    background-color: var(--color-abu-bg);
}
#section-3 .title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 35px 20px 20px 20px;
}
#section-3 .title-for-mini {
    display: none;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 35px 20px 20px 20px;
}
#section-3 .faq {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 40px 80px 40px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
#section-3 .faq-box {
    position: relative; 
}
#section-3 .faq-question {
    background-color: var(--color-white);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 35px;
    font-weight: bold;
    padding: 22px 60px 22px 25px;
    font-size: 1.1rem;
    box-sizing: border-box;
    z-index: 2;
}
#section-3 .rounded-minus {
    height: 35px;
    width: 35px;
    background-color: #ddf2ff;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 18px;
}
#section-3 .rounded-minus i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--color-white);
}
#section-3 .faq-answer {
    margin-top: 50px;
    background-color: #ddf2ff;
    border-radius: 30px;
    position: relative;
    padding: 40px 60px 30px 25px;
    font-weight: 500;
    line-height: 1.5;
}
#section-3 .rounded-plus {
    height: 35px;
    width: 35px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    top: 32px;
    right: 18px;
}
#section-3 .rounded-plus i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: var(--color-white);
}

/* SECTION 4 */
#section-4 {
    background-image: url('../pict/sec_4_a.webp');
    background-size: cover; 
    background-position: center;
    position: relative;
    height: 1000px;
}
#section-4 .title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: bold;
    color: var(--color-white);
    padding: 60px 20px 20px 20px;
}
#section-4 .title-second {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-white);
    padding: 10px 20px 20px 20px;
}
#section-4 .btn-daftar {
    display: inline-block;
    border: none;
    background: var(--gradasi-biru-halus);
    color: var(--color-white);
    padding: 15px 70px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 450;
    text-decoration: none;
    position: absolute;
    bottom: 210px;
    left: 50%;
    transform: translate(-50%, 0);
}
#section-4 .container-sosmed {
    width: 100%;
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    gap: 15px;
    justify-content: center;
}
#section-4 .container-sosmed .sosmed-item {
    width: 40px; 
    height: 40px;
    background: var(--gradasi-biru-sosmed);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}
#section-4 .footer-text {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
}
#section-4 .sosmed-item:nth-child(1) i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: var(--color-white);
}
#section-4 .sosmed-item:nth-child(2) i {
    position: absolute;
    top: 35%;
    left: 40%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: var(--color-white);
    display: inline-block;
    transform: scaleY(1.4);
}
#section-4 .sosmed-item:nth-child(3) i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--color-white);
}
#section-4 .sosmed-item:nth-child(4) i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: var(--color-white);
}

/* Floating WA */
.wa-floating {
    position: fixed;
    bottom: 30px; /* Jarak dari bawah */
    right: 30px;  /* Jarak dari kanan */
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Hijau WA resmi */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    
    /* Menggunakan teknik shadow tipis yang kita bahas tadi */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-floating:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
/* Tooltip (Muncul saat di-hover) */
.wa-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.wa-floating:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}
/* Animasi Pulse (Opsional, agar lebih 'hidup') */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-floating {
    animation: pulse-wa 2s infinite;
}

/* MINI VERSION */
@media screen and (max-width: 376px) {
    /* SECTION 1 MINI */
    #section-1 .title {
        font-size: 1.4rem;
        padding: 50px 40px 15px 40px;
    }
    #section-1 .title-italic {
        padding: 0 40px 30px 40px;
        font-size: 0.8rem;
    }
    #section-1 .btn-daftar {
        padding: 12px 20px;
        border-radius: 30px;
        font-size: 1.0rem;
    }

    /* SECTION 2 MINI */
    #section-2 .title {
        font-size: 1.5rem;
        padding: 50px 30px 60px 30px;
    }
    #section-2 .gallery-item {
        height: 400px;
    }
    #section-2 .video-teks-overlay .nama {
        font-size: 1.2rem;
    }
    #section-2 .video-teks-overlay .info {
        padding-top: 2px;
        font-size: 0.7rem;
    }
    #section-2 .video-teks-overlay .surah {
        font-size: 0.7rem;
    }
    #section-2 .video-teks-overlay .surah img {
        width: 12px;
    }

    /* SECTION 3 MINI */
    #section-3 .title {
        display: none;
        font-size: 1.2rem;
        padding: 50px 20px 20px 20px;
    }
    #section-3 .title-for-mini {
        display: block;
        font-size: 1.5rem;
        padding: 50px 20px 20px 20px;
    }
    #section-3 .faq-question {
        padding: 22px 60px 22px 25px;
        font-size: 0.9rem;
    }
    #section-3 .faq-answer {
        padding: 40px 60px 30px 25px;
        font-size: 0.8rem;
    }

    /* SECTION 4 MINI */
    #section-4 .title {
        font-size: 2.1rem;
        padding: 70px 20px 13px 20px;
    }
    #section-4 .title-second {
        font-size: 1.5rem;
        padding: 10px 20px 20px 20px;
    }
} 

/* DESKTOP VERSION */
@media screen and (min-width: 768px) {
    .container {
        max-width: 500px;
        margin: auto;
    }
    
    /* SECTION 1 DESKTOP */
    #section-1 .title {
        font-size: 2.4rem;
        padding: 50px 50px 15px 50px;
    }
    #section-1 .title-italic {
        padding: 0 50px 30px 50px;
        font-size: 1.1rem;
    }
    #section-1 .btn-daftar {
        margin: 0 50px;
        font-size: 1.5rem;
    }

    /* SECTION 2 DESKTOP */
    #section-2 .title {
        font-size: 2.3rem;
        padding: 50px 30px 60px 30px;
    }
    #section-2 .gallery-item {
        height: 550px;
    }

    /* SECTION 3 DESKTOP */
    #section-3 .title {
        font-size: 1.9rem;
        padding: 50px 20px 20px 20px;
    }

    /* SECTION 4 DESKTOP */
    #section-4 .title {
        font-size: 2.7rem;
        padding: 70px 20px 13px 20px;
    }
    #section-4 .title-second {
        font-size: 1.7rem;
        padding: 10px 20px 20px 20px;
    }
    .wa-floating {
        /* Hitung: 50% layar + setengah lebar container - jarak tombol */
        left: calc(50% + 250px - 80px); 
        z-index: 1000;
    }
}