/* ========================================================
   FILE: assets/css/style-beranda.css
   TEMA: Fixed Background, Solid White Cards, Responsive
   ======================================================== */

:root { 
    --bs-primary: #6f42c1; 
}

/* --- Tampilan Desktop (Default) --- */
body {
    background: url('../images/background_web_gib.png') no-repeat center center fixed !important;
    background-size: cover !important;
    min-height: 100vh;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow-x: hidden; 
    color: #ffffff;
}

/* Utilitas Global */
.bg-primary { background-color: #6f42c1 !important; }
.text-primary { color: #6f42c1 !important; }
.btn-primary { background-color: #6f42c1 !important; border-color: #6f42c1 !important; }
.btn-outline-primary { border-color: #6f42c1 !important; color: #6f42c1 !important; }
.btn-outline-primary:hover { background-color: #6f42c1 !important; color: white !important; }

/* Judul Utama */
.hero-title { 
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -1.5px; line-height: 1.1; color: #ffffff !important; 
    font-size: clamp(2.8rem, 5.5vw, 4.2rem) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}
.church-name-aesthetic { 
    font-family: 'Playfair Display', serif; font-weight: 700;
    color: #ffffff !important; 
}

/* Judul Section */
h2, h2.text-dark {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Cards (Putih Solid) */
.glass-card {
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    overflow: hidden !important; 
}
.glass-card:hover { transform: translateY(-5px); }

/* Teks di dalam kartu */
.glass-card .text-dark,
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4, .glass-card h5, .glass-card p, .glass-card span { 
    color: #333333 !important; 
    text-shadow: none !important; 
}

.glass-card .mt-auto {
    margin-top: auto !important;
}

.info-section .glass-card {
    padding: 1rem !important; 
}

/* Card Tahapan Pemilihan */
.digital-card-wrapper:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 0 20px rgba(111, 66, 193, 0.4);
    }
    .digital-card-wrapper:hover img {
        transform: scale(1.05);
    }

/* Komponen Lain */
.icon-pulse {
    display: inline-flex; align-items: center; justify-content: center;
    width: 70px; height: 70px; border-radius: 50%;
    background-color: rgba(111, 66, 193, 0.1); color: #6f42c1;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(111, 66, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 66, 193, 0); }
}

.zoom-img:hover { transform: scale(1.1); }
.verse-text { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-style: italic; color: #4a2c85; line-height: 1.6; }

.event-calendar-badge { min-width: 65px; text-align: center; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(111, 66, 193, 0.15); }
.event-calendar-month { background: #6f42c1; color: white; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 4px 0; }
.event-calendar-date { background: white; color: #6f42c1; font-size: 1.5rem; font-weight: 800; padding: 6px 0; line-height: 1; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.object-fit-cover { object-fit: cover; }

/* ========================================================
   OPTIMISASI RESPONSIVE
   ======================================================== */
@media (min-width: 992px) {
    .info-section .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 1.5rem; 
    }
    .info-section .row > div {
        flex: 1 1 33.333% !important;
        max-width: 33.333% !important;
    }
}

/* ========================================================
   MOBILE OPTIMIZATION
   ======================================================== */
@media (max-width: 767px) {
    /* Background */
    body { background: none !important; }
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: url('../images/background_mobile_gib.png') center center/cover no-repeat;
        z-index: -10;
    }

    /* Hero */
    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    
    .church-name-aesthetic {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
        display: block !important;
        margin-top: 8px !important;
        white-space: nowrap !important; 
    }
    
    .hero-section { padding: 40px 0 !important; }

    /* Section */
    section { padding: 40px 0 !important; }
    h2 { font-size: 1.7rem !important; margin-bottom: 2rem !important; }

    /* Card & Image - Pengecualian .warta-cover-img dan .artikel-slider-img agar tidak terpaksa landscape */
    .glass-card { 
        border-radius: 20px !important; 
        margin-bottom: 20px !important; 
        height: auto !important; 
    }
    
    .glass-card img:not(.warta-cover-img):not(.artikel-slider-img) {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .glass-card .card-body { padding: 1.1rem !important; }

    /* Typography & Button */
    .glass-card h4, .glass-card h5 { font-size: 1.2rem !important; }
    .glass-card p { font-size: 0.9rem !important; line-height: 1.5 !important; }
    .glass-card .btn { 
        padding: 10px !important; 
        font-size: 0.9rem !important; 
        width: 100% !important; 
    }

    /* Grid & Spacing */
    .info-section .row { row-gap: 1.5rem !important; }
    .container-fluid { padding-left: 10px !important; padding-right: 10px !important; }
}

/* Memastikan thumbnail gambar artikel warta di beranda tampil rapi */
.informasi-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .informasi-img-wrapper img {
    transform: scale(1.05);
}

/* Penyesuaian tampilan mobile untuk kartu informasi jemaat */
@media (max-width: 767px) {
    .informasi-img-wrapper {
        width: 100% !important;
        height: 160px !important;
    }
}