/* ==========================================================================
   TAMBAHAN CSS KHUSUS HALAMAN UTAMA (SPLASH SCREEN & SLIDER)
   ========================================================================== */

/* 1. Halaman Sambutan (Splash Screen) */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Latar belakang foto untuk splash screen */
    background-image: url('../../berkas/SQT.jpg'); /* Ganti dengan path foto yang sesuai */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

/* Overlay Hijau Islami Transparan di Atas Foto Background */
.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.808); /* Warna Hijau Islami dengan opacity 90% */
    z-index: 1;
}

.splash-content {
    text-align: center;
    position: relative;
    z-index: 2; /* Berada di atas overlay */
}

/* Animasi Logo Muncul */
.splash-logo {
    width: 120px; /* Ukuran logo splash screen */
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 3.5s forwards ease-in-out;
}

.splash-text {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #358018;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpFadeOut 3.5s forwards ease-in-out;
}
.splash-text span {
    color: #D95D39; /* Aksen Orange Bata */
}

/* Animasi Keyframes */
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8) translateY(10px); filter: blur(5px); }
    20% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
    80% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
    100% { opacity: 0; transform: scale(0.9) translateY(-20px); filter: blur(5px); }
}

@keyframes fadeInUpFadeOut {
    0% { opacity: 0; transform: translateY(30px); filter: blur(5px); }
    20% { opacity: 1; transform: translateY(0); filter: blur(0); }
    80% { opacity: 1; transform: translateY(0); filter: blur(0); }
    100% { opacity: 0; transform: translateY(-30px); filter: blur(5px); }
}

/* Styling Logo di Navbar Header */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px; /* Jarak antara gambar logo dan teks */
}
.nav-logo {
    height: 45px; /* Tinggi logo di navbar */
    width: auto;
}
.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0D5C3A;
    font-family: 'Cinzel', serif;
}
.logo span i {
    color: #D95D39;
    font-style: normal;
}

/* 2. Hero Slider Section */
.hero-slider {
    width: 100%;
    height: 75vh;
    position: relative;
}
.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    position: relative;
    background-position: center;
    background-size: cover;
}
/* Overlay Gelap Sinematik di Atas Foto */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(13, 92, 58, 0.7));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}
.slide-caption h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}
.slide-caption p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}
/* Memicu animasi teks saat slide aktif */
.swiper-slide-active .slide-caption h2,
.swiper-slide-active .slide-caption p {
    transform: translateY(0);
    opacity: 1;
}

/* Kustomisasi Navigasi Swiper */
.swiper-button-next, .swiper-button-prev {
    color: #D95D39 !important;
}
.swiper-pagination-bullet-active {
    background: #D95D39 !important;
}

/* 3. Animasi Hover Tambahan untuk Fitur Utama */
.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(13, 92, 58, 0.1);
}
.feature-box i {
    font-size: 2.5rem;
    color: #0D5C3A;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.feature-box:hover i {
    color: #D95D39;
    transform: scale(1.2) rotate(10deg);
}
 /* Style Tambahan Khusus Section Unggulan di Halaman Utama */
        .reason-card-main {
            background: #ffffff;
            border-radius: 16px;
            padding: 1.8rem 1.5rem;
            border: 1px solid rgba(13, 92, 58, 0.1);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            text-align: left;
        }

        .reason-card-main:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(13, 92, 58, 0.12);
            border-color: #D95D39;
        }

        .reason-icon {
            width: 50px;
            height: 50px;
            background: rgba(13, 92, 58, 0.08);
            color: #0D5C3A;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        .reason-card-main h3 {
            color: #0D5C3A;
            font-size: 1.2rem;
            margin-bottom: 0.6rem;
            line-height: 1.4;
        }

        .reason-card-main p {
            color: #475569;
            font-size: 0.93rem;
            line-height: 1.6;
        }

        .targets-box {
            background: #F8FAFC;
            border-radius: 10px;
            padding: 1rem;
            margin-top: 1rem;
            border-left: 4px solid #0D5C3A;
        }

        .target-item { margin-bottom: 0.6rem; }
        .target-item:last-child { margin-bottom: 0; }
        .target-item strong { color: #0D5C3A; display: block; font-size: 0.88rem; }
        .target-item span { font-size: 0.83rem; color: #64748B; }

        .renungan-banner {
            background: linear-gradient(135deg, #0D5C3A 0%, #083B25 100%);
            border-radius: 20px;
            color: #ffffff;
            padding: 3.5rem 2rem;
            margin: 3rem 0;
            text-align: center;
        }

        .renungan-banner h2 { font-size: 1.8rem; margin-bottom: 1rem; color: #ffffff; }
        .renungan-banner p { max-width: 800px; margin: 0 auto 1.5rem auto; font-size: 1rem; line-height: 1.7; opacity: 0.9; }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 1.5rem;
        }

        .btn-wa-main {
            background: #25D366;
            color: #ffffff;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: 0.3s;
            font-size: 0.95rem;
        }

        .btn-wa-main:hover {
            background: #1ebc57;
            transform: scale(1.03);
        }
/* Responsive khusus Slider & Splash Screen */
@media (max-width: 768px) {
    .splash-text { font-size: 1.8rem; letter-spacing: 1px; }
    .splash-logo { width: 90px; }
    .hero-slider { height: 50vh; }
    .slide-caption h2 { font-size: 1.8rem; }
    .slide-caption p { font-size: 0.9rem; }
    .logo span { font-size: 1.1rem; }
    .nav-logo { height: 35px; }
    /* ==========================================================================
   PENYESUAIAN MOBILE (RESPONSIVE FOR H2 & HEADINGS)
   ========================================================================== */
    .main h2, 
    .renungan-banner h2 {
        font-size: 1.4rem !important; /* Diperkecil agar muat 2-3 baris rapi */
        line-height: 1.35 !important;
        margin-bottom: 0.6rem !important;
    }

    /* Judul pada Hero Slider Banner */
    .slide-caption h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Judul Card Unggulan (H3) */
    .reason-card-main h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    /* Padding Container Supaya Tidak Terlalu Renggang di HP */
    main.container {
        padding-top: 2.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Menjaga Margin Judul Section Utama */
    main > div[style*="text-align: center"] {
        margin-bottom: 2rem !important;
    }
       main h2, 
            .renungan-banner h2 {
                font-size: 1.4rem !important;
                line-height: 1.35 !important;
                margin-bottom: 0.6rem !important;
            }

            .slide-caption h2 {
                font-size: 1.4rem !important;
                line-height: 1.3 !important;
                margin-bottom: 0.5rem !important;
            }

            .reason-card-main h3 {
                font-size: 1.1rem !important;
                line-height: 1.3 !important;
            }

            .renungan-banner {
                padding: 2.2rem 1.2rem;
                margin: 2rem 0;
            }

            main.container {
                padding-top: 2.5rem !important;
                padding-bottom: 1.5rem !important;
            }

            .main-title-box {
                margin-bottom: 2rem !important;
            }
}
