/* ========================================================
   FILE: assets/css/style-beranda.css
   TEMA: Glassmorphism, Clean, Digital Aesthetic
   ======================================================== */

:root { 
    --bs-primary: #6f42c1; 
}

body {
    background-color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow-x: hidden; 
}

/* Utilitas Global Ungu */
.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; }
.border-primary { border-color: #6f42c1 !important; }
.bg-opacity-10 { background-color: rgba(111, 66, 193, 0.1) !important; }

/* Digital Grid */
.digital-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background-image: linear-gradient(rgba(111, 66, 193, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 66, 193, 0.04) 1px, transparent 1px);
    background-size: 40px 40px; pointer-events: none;
}

/* Aurora Blobs */
.aurora-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    overflow: hidden; pointer-events: none;
}
.aurora-blob {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.28;
    animation: floatGlow 15s infinite alternate ease-in-out;
}
.blob-blue { top: -10%; left: 10%; width: 45vw; height: 45vw; background: #6f42c1; }
.blob-soft { bottom: -10%; right: -5%; width: 55vw; height: 55vw; background: #f3effb; animation-delay: -5s; }

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3vw, 5vh) scale(1.1); }
}

/* Hero Section */
.hero-section { min-height: 80vh; display: flex; align-items: center; position: relative; }
.hero-title { 
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -1.5px; line-height: 1.1; color: #0f172a; 
    font-size: clamp(2.8rem, 5.5vw, 4.2rem) !important;
    text-shadow: none !important;
}
.church-name-aesthetic { 
    font-family: 'Playfair Display', serif; font-weight: 700;
    background: linear-gradient(135deg, #6f42c1 0%, #4a2c85 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}

/* Cards & Components */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative; z-index: 2;
}
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(111, 66, 193, 0.15); }

.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 */
.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; letter-spacing: 1px; }
.event-calendar-date { background: white; color: #6f42c1; font-size: 1.5rem; font-weight: 800; padding: 6px 0; line-height: 1; }

/* Merapikan judul berita agar tidak berantakan */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.object-fit-cover {
    object-fit: cover;
}

/* ========================================================
   RESPONSIVE MOBILE ADJUSTMENTS (OPTIMIZED)
   ======================================================== */
@media (max-width: 767px) {
    .hero-title { 
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important; 
        margin-bottom: 1.2rem !important; 
        padding: 0; 
        line-height: 1.2;
    }
    
    /* FIX: Hapus white-space nowrap agar teks membungkus rapi di layar kecil */
    .church-name-aesthetic { 
        font-size: clamp(2rem, 7vw, 2.6rem) !important; 
        white-space: normal !important; 
        display: inline-block; 
        margin-top: 5px; 
        word-break: break-word;
    }
    
    .hero-section { 
        padding-top: 3rem !important; 
        padding-bottom: 3rem !important; 
        min-height: auto;
    }
    
    .row.g-4 > [class*='col-'] { 
        margin-bottom: 1rem; 
    }
    
    .glass-card { 
        padding: 1.25rem !important; 
        border-radius: 16px;
    }
    
    .glass-card [style*="height: 320px"] { 
        height: 220px !important; 
    }
    
    h2 { 
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important; 
    }
    
    .container-fluid { 
        padding-left: 15px !important; 
        padding-right: 15px !important; 
    }
}