/* ==========================================================================
   1. GLOBAL VARIABLES & BASE CONFIGURATION
   ========================================================================== */
:root {
    --primary-syariah: #0f5132; 
    --secondary-syariah: #146c43;
    --deep-emerald: #052e1e;
    --dark-emerald: #01140b;
    --luxury-gold: #C5A059; 
    --luxury-gold-light: #D4AF37; 
    --luxury-gold-soft: #e2c283;
    --light-bg: #fafafa;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fafafa;
    color: #333;
}

.serif-title {
    font-family: 'Playfair Display', serif !important;
    letter-spacing: -0.5px;
}

/* Layout Utilities */
.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 20px;
}

/* ==========================================================================
   2. ULTRA-LUXURY GLASSMORPHIC NAVBAR
   ========================================================================== */
.premium-navbar {
    background: rgba(5, 46, 30, 0.82) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-text-gold {
    color: var(--luxury-gold) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.premium-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.premium-navbar .nav-link:hover, 
.premium-navbar .nav-link.active,
.premium-navbar .show > .nav-link {
    color: var(--luxury-gold-soft) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu Glassmorphism */
.premium-navbar .dropdown-menu {
    background: rgba(4, 34, 22, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    margin-top: 10px !important;
    padding: 8px;
}

.premium-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.premium-navbar .dropdown-item:hover {
    background: rgba(197, 160, 89, 0.15) !important;
    color: var(--luxury-gold) !important;
}

.premium-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
}

.premium-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.premium-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* ==========================================================================
   3. HERO ELEMENTS & HEADER BANNERS
   ========================================================================== */
.page-header-banner {
    background: linear-gradient(135deg, #052e1e 0%, #02170d 100%);
    position: relative;
    padding: 140px 0 70px;
    border-bottom: 2px solid rgba(197, 160, 89, 0.2);
    overflow: hidden;
}

.islamic-pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZD0iTTUwIDI1TDc1IDUwTDUwIDc1TDI1IDUwWi BNMCA1MEw1MCAwTDEwMCA1MEw1MCAxMDBaIiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDE1Ii8+PC9zdmc+');
    opacity: 0.12;
    pointer-events: none;
}

.premium-glass-frame {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4) !important;
}
/* Hero Background Image Engine */
/* Hero Background Image Engine - FIX PRESISI */
.hero-bg-img {
    background-image: url('https://images.unsplash.com/photo-1542816417-0983c9c9ad53?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;          /* Memaksa gambar nutupin semua area */
    background-position: center center !important; /* MEMAKSA DI TENGAH, ANTI GESER */
    background-repeat: no-repeat;
    width: 100%;
    min-height: 80vh; /* Kasih tinggi minimal biar gak gepeng */
    position: relative;
}

/* Green Overlay - PENTING: Pakai z-index biar overlay gak nutup gambar */
.hero-bg-img::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(5, 46, 30, 0.90) 0%, rgba(1, 20, 11, 0.92) 100%);
    z-index: 1; /* Overlay di atas gambar, tapi di bawah konten */
}

/* Konten Hero harus di atas overlay */
.hero-bg-img .container {
    z-index: 2;
    position: relative;
}

/* Biar pattern tetep muncul di atas gambar */
.islamic-pattern-overlay {
    z-index: 1; /* Biar nempel di atas overlay hijau */
}

/* ==========================================================================
   4. PREMIUM BUTTONS (LUXURY GOLD & SOCIAL SHARE)
   ========================================================================== */
.btn-luxury-gold {
    background-color: var(--luxury-gold);
    color: #1a1a1a !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-luxury-gold:hover {
    background-color: var(--luxury-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* Floating Share Circles */
.share-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    opacity: 0.9;
}

.btn-wa { background-color: #25D366; }
.btn-fb { background-color: #1877F2; }
.btn-tg { background-color: #0088cc; }
.btn-x { background-color: #000000; border: 1px solid rgba(255,255,255,0.2); }
.btn-threads { background-color: #000000; }

/* ==========================================================================
   5. CARD ARCHITECTURES (CATALOG, DETAIL, GLASS, SIDEBAR)
   ========================================================================== */
/* Standard Grid Cards */
.custom-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.img-zoom-effect {
    transition: transform 0.5s ease;
}

.custom-card:hover .img-zoom-effect {
    transform: scale(1.06);
}

/* Core Main Article & Product Sheet */
.main-article-card, .main-product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 40px;
}

.cta-advisor-box {
    background: linear-gradient(135deg, #fbf7f0 0%, #f4eae0 100%);
    border-left: 4px solid var(--luxury-gold);
    border-radius: 12px;
}

/* Sidebars Boxes */
.sidebar-box, .sidebar-product-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.03);
    border-top: 4px solid var(--luxury-gold) !important;
}

.sidebar-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.sidebar-product-box .sidebar-card {
    border: 0;
    background: linear-gradient(135deg, #052e1e 0%, #011a0e 100%);
    border-bottom: 3px solid transparent;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    border-color: var(--luxury-gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
}

.sidebar-product-box .sidebar-card:hover {
    transform: translateY(-3px);
    border-bottom: 3px solid var(--luxury-gold-light);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.15) !important;
}

/* ==========================================================================
   6. INNER BODY RENDER CONTENT (WORDPRESS OVERRIDES)
   ========================================================================== */
.article-content p, .product-content p {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

.article-content img, .product-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Sanitize WP Data Tables inside Detail Sheet */
.product-content table {
    width: 100% !important;
    margin: 20px 0;
    border-collapse: collapse;
}

.product-content table th, .product-content table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.product-content table th {
    background-color: #f1f3f5;
}

/* ==========================================================================
   7. GALLERY CONTROLLER
   ========================================================================== */
.gallery-img {
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.card-hover-gallery:hover a { 
    opacity: 1 !important; 
}

.card-hover-gallery:hover .transition-effect-gallery { 
    transform: scale(1.08); 
    filter: brightness(0.9); 
}

/* ==========================================================================
   8. TENTANG KAMI PAGE EXTRA CONFIGURATION
   ========================================================================== */
.about-hero {
    background: linear-gradient(135deg, var(--deep-emerald) 0%, var(--dark-emerald) 100%);
    padding: 100px 0 60px 0;
    color: white;
    position: relative;
    border-bottom: 3px solid var(--luxury-gold);
}

.nav-about-tabs {
    border: none;
    gap: 10px;
}

.nav-about-tabs .nav-link {
    color: #777;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border) !important;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-about-tabs .nav-link.active {
    background: var(--deep-emerald) !important;
    color: var(--luxury-gold) !important;
    box-shadow: 0 8px 20px rgba(5, 46, 30, 0.15);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

/* Apple dashed timeline setup */
.timeline-container {
    position: relative;
    padding-left: 35px;
    border-left: 2px dashed rgba(197, 160, 89, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    left: -47px; top: 2px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--luxury-gold);
    z-index: 2;
}

.timeline-year {
    font-weight: 700;
    color: var(--deep-emerald);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.org-badge {
    background: linear-gradient(135deg, var(--deep-emerald) 0%, #0c4d34 100%);
    color: var(--luxury-gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.staff-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.staff-card {
    background: rgba(255,255,255,0.8);
    border-left: 4px solid var(--luxury-gold);
    border-radius: 8px;
    transition: transform 0.2s;
}

.staff-card:hover {
    transform: translateX(4px);
}

/* ==========================================================================
   9. ULTRA-LUXURY FOOTER
   ========================================================================== */
.premium-footer {
    background: linear-gradient(135deg, #052e1e 0%, #01140b 100%);
    color: #e0e0e0;
    border-top: 3px solid var(--luxury-gold);
    font-size: 0.9rem;
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background-color: var(--luxury-gold);
}

.footer-social-link {
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-social-link:hover {
    color: var(--luxury-gold-soft);
    transform: translateY(-3px);
}

.footer-info-text strong {
    color: var(--luxury-gold);
    font-weight: 600;
}

.footer-bottom-link {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: var(--luxury-gold);
}

.fb-widget-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================================================
   10. ADVANCED WORDPRESS CONTENT CLEANER (LAPORAN OVERRIDES)
   ========================================================================== */
/* Hilangkan bullet point bawaan list WP agar tidak mengotori card */
#laporan-body ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

#laporan-body li {
    margin-bottom: 0 !important;
}

/* Premium Laporan PDF Download Card Styling */
.laporan-download-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
}

.laporan-download-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: var(--luxury-gold);
    box-shadow: 0 12px 30px rgba(5, 46, 30, 0.08) !important;
}

/* Elemen Tabel Mengikuti Standar Apple Dashboard */
#laporan-body table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 30px 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
}

#laporan-body table th {
    background: linear-gradient(135deg, var(--deep-emerald) 0%, #0c4d34 100%) !important;
    color: var(--luxury-gold) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.8px !important;
    padding: 16px 20px !important;
    border: none !important;
}

#laporan-body table td {
    padding: 16px 20px !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f2 !important;
    color: #444 !important;
    font-size: 0.9rem !important;
    transition: background-color 0.2s ease;
}

#laporan-body table tr:last-child td {
    border-bottom: none !important;
}

#laporan-body table tr:hover td {
    background-color: #fcfdfe !important;
}

/* Hero Header Premium */
.page-header-banner {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    margin-top: 56px; /* Nyesuain tinggi navbar */
    border-bottom: 2px solid rgba(197, 160, 89, 0.2);
}

.islamic-pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZD0iTTUwIDI1TDc1IDUwTDUwIDc1TDI1IDUwWi BNMCA1MEw1MCAwTDEwMCA1MEw1MCAxMDBaIiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDgiLz48L3N2Zz4=');
    opacity: 0.2;
    pointer-events: none;
}