/* =========================================
   STYLE DASAR & KOMKOMPENEN UMUM
========================================= */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

/* =========================================
   STYLE HEADER (Disamakan dengan Menu Keuangan)
========================================= */
.page-header-premium {
    padding-top: 6rem;
    padding-bottom: 3rem;
    position: relative;
}

.main-title-aesthetic, .head-title-warta {
    font-family: 'Playfair Display', serif !important;
    /* Mengubah batas bawah clamp dari 3rem ke 1.8rem agar fleksibel di layar kecil */
    font-size: clamp(1.8rem, 5vw, 4rem) !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    line-height: 1.2;
}

/* =========================================
   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); 
}

.btn-purple { 
    background: #6f42c1; 
    color: white; 
    border-radius: 50px; 
    transition: 0.3s;
}

.btn-purple:hover { 
    background: #5a369e; 
    color: white; 
    transform: translateY(-2px);
}

.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)
========================================= */
.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;
}

.warta-cover-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f3effb;
    height: 180px; /* Ukuran tinggi cover kartu */
}

.warta-cover-wrapper img {
    transition: transform 0.6s ease;
}

.warta-card-hover:hover .warta-cover-wrapper img {
    transform: scale(1.08);
}

.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 (WARNA, BADGE, TEXT)
========================================= */
.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; 
}

.wrapper-download-btn { 
    border-color: rgba(0,0,0,0.05) !important; 
}

/* =========================================
   OPTIMISASI KHUSUS RESPONSIVE MOBILE (NEW)
========================================= */
@media (max-width: 767.98px) {
    .page-header-premium {
        padding-top: 4rem; /* Mengurangi padding kosong atas di smartphone */
        padding-bottom: 2rem;
    }

    .main-title-aesthetic, .head-title-warta {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important; /* Batas font proposional di HP */
    }

    .glass-card {
        padding: 1.25rem !important; /* Mengoptimalkan ruang padding dalam kartu agar teks luas */
        border-radius: 16px;
    }

    .khadim-img {
        width: 140px; /* Skala ulang gambar khadim agar seimbang di layar portrait */
        height: 190px;
        border-width: 4px;
    }

    .icon-placeholder {
        font-size: 4.5rem;
    }
    
    .warta-cover-wrapper {
        height: 160px; /* Penyesuaian tinggi cover desain majalah di HP */
    }

    /* Penataan spasi vertikal antar kolom grid bootstrap saat menumpuk */
    .row.g-4 > [class*='col-'] {
        margin-bottom: 0.5rem;
    }
}