/* =========================================
   STYLE DASAR & KOMPONEN UMUM
========================================= */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

/* =========================================
   STYLE HEADER (SERAGAM ESTETIS)
========================================= */
.page-header-premium {
    padding-top: 6rem;
    padding-bottom: 3rem;
    position: relative;
}

.main-title-aesthetic, .head-title-warta {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2rem, 6vw, 4.5rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -1px !important;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.sub-title-aesthetic {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.church-highlight { color: #ffffff; font-weight: 800; }

.premium-divider {
    display: flex; align-items: center; justify-content: center;
    margin-top: 1.5rem; margin-bottom: 1.5rem;
}
.premium-divider .line {
    height: 1px; width: 80px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}
.premium-divider .dot {
    width: 6px; height: 6px; background-color: #ffffff;
    border-radius: 50%; margin: 0 10px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* =========================================
   STYLE CARD & GLASSMORPHISM
========================================= */
.glass-card { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(111, 66, 193, 0.15); 
    border-radius: 20px; 
    box-shadow: 0 8px 32px rgba(111, 66, 193, 0.08); 
}

.auth-box {
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.btn-purple { 
    background: #6f42c1; color: white; border-radius: 50px; transition: 0.3s;
}
.btn-purple:hover { background: #5a369e; color: white; transform: translateY(-2px); }

/* =========================================
   STYLE TEXT & TOMBOL KHUSUS
========================================= */
.text-white-shadow {
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
.btn-outline-white {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
}
.btn-outline-white:hover {
    background: #ffffff !important;
    color: #6f42c1 !important;
}

.list-group-item { border: none; transition: 0.3s; }
.list-group-item:hover { transform: translateX(5px); background: rgba(111, 66, 193, 0.05); border-radius: 10px; }

/* =========================================
   STYLE FOTO KHADIM & TAMPILAN DETAIL
========================================= */
.khadim-img { 
    width: 180px; height: 240px; object-fit: cover; border-radius: 16px; 
    border: 5px solid #f3effb; box-shadow: 0 8px 20px rgba(111, 66, 193, 0.15);
}
.icon-placeholder { font-size: 6rem; color: #adb5bd; }

/* =========================================
   STYLE KARTU GALERI WARTA (GRID) - FINAL FIX
========================================= */
.warta-card-hover { transition: transform 0.4s ease, box-shadow 0.4s ease; border: none; }
.warta-card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(111, 66, 193, 0.15) !important; }

/* Wrapper cover warta disesuaikan agar gambar tampil penuh tanpa ruang hitam */
.warta-cover-wrapper {
    position: relative; 
    overflow: hidden; 
    background-color: #f8f9fa; 
    width: 100%;
    aspect-ratio: 1 / 1.414; /* Rasio standar poster portrait */
    display: flex;
    align-items: center;
    justify-content: center;
}

.warta-cover-wrapper img { 
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Memastikan seluruh isi gambar tampil proporsional tanpa terpotong */
    display: block;
    transition: transform 0.6s ease; 
}

.warta-card-hover:hover .warta-cover-wrapper img { transform: scale(1.03); }

.warta-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(111, 66, 193, 0.1), rgba(111, 66, 193, 0.8));
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease;
}
.warta-card-hover:hover .warta-overlay { opacity: 1; }

/* =========================================
   UTILITY CLASSES
========================================= */
.bg-purple-soft { background-color: rgba(111, 66, 193, 0.1); }
.text-purple { color: #6f42c1 !important; }
.label-badge-purple { letter-spacing: 2px; background-color: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.divider-line { opacity: 0.1; }
.wrapper-bottom-card { border-radius: 0 0 20px 20px; }

/* =========================================
   OPTIMISASI RESPONSIVE MOBILE
========================================= */
@media (max-width: 767.98px) {
    .page-header-premium { padding-top: 4rem; padding-bottom: 2rem; }
    .main-title-aesthetic, .head-title-warta { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
    .glass-card { padding: 1.25rem !important; border-radius: 16px; }
    .khadim-img { width: 140px; height: 190px; border-width: 4px; }
}