/* ============================================== */ 
/* PERBAIKAN GLOBAL BOX MODEL */ 
/* ============================================== */ 
* { 
    /* FIX: Memastikan padding dan border TIDAK menambah lebar elemen */ 
    box-sizing: border-box;  
} 

/* ============================================== */ 
/* CSS TEMA DASAR & STRUKTUR (MENGGUNAKAN VARIABEL) */ 
/* ============================================== */ 

/* Variabel CSS Default & Fallback */ 
:root { 
    --primary-color: #004a8b;     
    --secondary-color: #ffcc00;   
    --background-color: #f4f4f4; 
    --text-color: #333; 
    --light-bg: white; 
    --dark-bg: #222; 
    --box-bg-color: var(--light-bg); /* Default box background */

    /* Variabel Default untuk Marquee (Fallback) */ 
    --marquee-font-weight: normal; 
    --marquee-font-size: 1em; 
    --marquee-shadow: none; 
    --marquee-border-color: transparent; 
    --marquee-text-color: var(--text-color); /* Default mengikuti warna teks umum */ 
} 

body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    color: var(--text-color); 
    background-color: var(--background-color); 
    transition: background-color 0.5s; 
} 

header { 
    background-color: var(--primary-color);  
    color: white; 
    padding: 10px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    font-size: 0.7em;   
    transition: background-color 0.5s; 
} 

h1, h2, h3, h4 { 
    color: var(--primary-color); 
    transition: color 0.5s; 
} 
.logo { 
    display: flex;  
    align-items: center;  
    gap: 10px;  
    /* NEW: Atur agar kontainer logo bisa memanjang jika perlu */ 
    flex-wrap: nowrap; 
} 

.header-logo { 
    height: 40px;   
    width: auto;   
    /* NEW: Pastikan logo tidak menyusut */ 
    flex-shrink: 0; 
} 
header h1 { 
    color: white; 
} 

/* ============================================== */ 
/* RESTRUKTURISASI HEADER UNTUK DESKTOP & MOBILE */ 
/* ============================================== */ 
.navbar-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex;   
    justify-content: space-between;   
    align-items: center; 
    padding: 0 20px; 
    flex-wrap: wrap;   
} 

.header-brand { 
    flex-shrink: 0; 
} 

.header-menu-wrapper { 
    flex-grow: 1;   
    text-align: right;   
} 

.logo h1 { 
    margin: 0; 
    font-size: 1.8em;   
    color: white;   
} 

.menu ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    gap: 10px;   
    align-items: center;   
    justify-content: flex-end;   
} 

.menu ul li { 
    position: relative; 
} 

.menu ul li a { 
    color: white; 
    text-decoration: none; 
    padding: 5px 8px;     
    transition: background-color 0.3s; 
    border-radius: 4px; 
    font-size: 1.2em; 
} 

.menu ul li:nth-child(-n+6) a { 
    font-size: 1em;     
} 

.menu ul li a:hover { 
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
} 

/* --- TOMBOL GANTI TEMA SATU KLIK --- */ 
#theme-toggle-button { 
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    padding: 5px 10px; 
    border: none; 
    cursor: pointer; 
    font-size: 1em;     
    font-weight: bold; 
    border-radius: 4px; 
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s; 
} 

#theme-toggle-button:hover { 
    background-color: white; 
    color: var(--primary-color); 
} 

/* Running Text (Marquee) - Menerapkan variabel spesifik tema */ 
.running-text { 
    background-color: var(--secondary-color);     
    color: var(--marquee-text-color, var(--text-color));  
    padding: 5px 0; 
    overflow: hidden; 
    white-space: nowrap; 
    transition: background-color 0.5s, color 0.5s; 
      
    /* Variabel visual dari blok tema: */ 
    font-weight: var(--marquee-font-weight); 
    font-size: var(--marquee-font-size);    
    box-shadow: var(--marquee-shadow); 
    border-bottom: 2px solid var(--marquee-border-color);     
} 

/* ATURAN BARU: Perataan Visi, Misi, Spiritualitas */ 
.three-boxes .box-description { 
    text-align: left; 
    padding-left: 0;    
    padding-right: 0;    
    font-size: 0.95em;    
    line-height: 1.6;    
} 
.three-boxes .box-description ul { 
    padding-left: 20px; 
    margin-top: 10px;    
    text-align: left; 
} 
.three-boxes .box-description ul li { 
    margin-bottom: 5px;    
} 
/* Akhir Aturan Baru */ 

/* Konten Utama */ 
.box, .news-item, .video-container, .testimony-item, .faq-item { 
    background-color: var(--light-bg); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    transition: background-color 0.5s; 
} 

/* ============================================== */ 
/* PERUBAHAN TATA LETAK VISI, MISI, SPIRITUALITAS (FLOAT) */ 
/* ============================================== */ 
.three-boxes { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
    /* Hapus display: flex; */ 
} 
/* Clearfix untuk menampung float */ 
.three-boxes::after { 
    content: ""; 
    display: table; 
    clear: both; 
} 

.box { 
    /* Mengatur lebar agar 3 kotak muat dalam 1 baris */ 
    width: calc(33.333% - 14px); /* (100% / 3) - Margin/Padding */ 
    float: left; /* Menggunakan Float */ 
    margin: 0 7px 20px 7px; /* Margin horizontal 7px untuk jarak antar kotak */ 
      
    padding: 30px;    
    border-radius: 12px;    
    background-color: var(--box-bg-color);    
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);    
    text-align: center;      
    border: 2px solid var(--primary-color);    
    transition: all 0.3s ease;    
} 

.box h3 { 
    color: var(--primary-color);    
    margin-top: 0; 
    margin-bottom: 20px; 
    font-size: 1.5em;    
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);    
} 

.box:hover { 
    transform: translateY(-5px);    
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);    
    border-color: var(--secondary-color);    
} 
/* ============================================== */ 
/* AKHIR PERUBAHAN FLOAT */ 
/* ============================================== */ 

.achievement-section { 
    background-image: url('./uploadw/pencapaian.webp');      
    background-size: cover; 
    background-position: center; 
    color: white; 
    padding: 80px 20px; 
    margin: 40px 0; 
    text-align: center; 
    position: relative; 
} 

.achievement-overlay { 
    background-color: rgba(0, 0, 0, 0.6); 
    transition: background-color 0.5s; 
} 

.content-section h2 { 
    color: var(--primary-color); 
    border-bottom: 2px solid var(--secondary-color); 
} 

.stat-item i { 
    font-size: 3em; 
    color: var(--secondary-color); 
    margin-bottom: 10px; 
} 

.testimony-item .item-body img { 
    border: 3px solid var(--secondary-color); 
    transition: border-color 0.5s; 
} 

.faq-question { 
    background-color: var(--light-bg); 
    color: var(--primary-color); 
    border-bottom: 1px solid #ddd; 
} 

.faq-answer { 
    color: var(--text-color);     
} 

.contact-section { 
    padding: 15px 20px; 
    text-align: center; 
    margin-top: 20px; 
    background-color: var(--primary-color); 
    color: white; 
    transition: background-color 0.5s; 
} 

.contact-section h2, 
.contact-section p { 
    color: white; /* Secara eksplisit atur warna teks menjadi putih */
}

/* Ikon Media Sosial di Footer/Contact Section (Menggunakan Warna Tema) */ 
.social-icons a { 
    color: white; /* Warna ikon normal di background primer (contact section) */ 
    font-size: 1.3em; /* Ukuran besar */ 
    margin: 0 15px; 
    transition: color 0.3s; 
} 
.social-icons a:hover { 
    color: var(--secondary-color); /* Warna hover sesuai tema sekunder */ 
} 

footer { 
    background-color: var(--dark-bg); 
    color: #ccc; 
    transition: background-color 0.5s; 
    padding: 15px 0; 
    text-align: center; 
    font-size: 0.9em; 
} 


/* ============================================== */ 
/* CSS TEMA DINAMIS (8 TEMA) - DENGAN ATURAN MARQUEE SPESIFIK */ 
/* ============================================== */ 
.theme-bright { 
    --primary-color: #3f72af;       
    --secondary-color: #fce473;     
    --background-color: #fcfcfc;    
    --text-color: #494949;          
    --light-bg: white; 
    --dark-bg: #364f6b; 
    --box-bg-color: #f7f7f7;    
    --marquee-font-weight: bold; 
    --marquee-font-size: 1.1em; 
    --marquee-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    --marquee-border-color: var(--primary-color); 
} 

.theme-dark { 
    --primary-color: #92b4d4;       
    --secondary-color: #5d8aa8;     
    --background-color: #2c3e50;    
    --text-color: #ecf0f1;          
    --light-bg: #34495e;        
    --dark-bg: #1a252e;             
    --box-bg-color: var(--light-bg);    
    --marquee-font-weight: normal;      
    --marquee-font-size: 1.05em; 
    --marquee-shadow: 0 0 8px rgba(255, 255, 255, 0.1);      
    --marquee-border-color: var(--primary-color); 
} 

.theme-blue { 
    --primary-color: #007bff; 
    --secondary-color: #ffc107; 
    --background-color: #e9f0f5; 
    --text-color: #2a3a4c; 
    --light-bg: white; 
    --dark-bg: #113c6e; 
    --box-bg-color: #f0f8ff;    
    --marquee-font-weight: bold; 
    --marquee-font-size: 1.1em; 
    --marquee-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    --marquee-border-color: var(--primary-color); 
} 

.theme-green {
    --primary-color: #28a745; /* Hijau Utama (Sedang) */
    --secondary-color: #00bcd4; /* Aksen Cyan/Teal (Segar) */
    --background-color: #ebfaeb; /* Latar Belakang Sangat Pucat */
    --text-color: #214d2e; /* Teks Hijau Tua */
    --light-bg: white; /* Latar Belakang Terang */
    --dark-bg: #196f33; /* Latar Belakang Gelap */
    --box-bg-color: #f0fff0; /* Latar Belakang Kotak Pucat */
    
    /* Properti Marquee Tetap Sama */
    --marquee-font-weight: bold;
    --marquee-font-size: 1.1em;
    --marquee-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --marquee-border-color: var(--primary-color);
}

.theme-yellow { 
    --primary-color: #f7b731;       
    --secondary-color: #fcd343;     
    --background-color: #fffaf0;    
    --text-color: #6d4c41;          
    --light-bg: white; 
    --dark-bg: #e69138;             
    --box-bg-color: #fff9e6;    
    --marquee-text-color: white;      
    --marquee-font-weight: bold; 
    --marquee-font-size: 1.2em;       
    --marquee-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);      
    --marquee-border-color: var(--primary-color); 
} 

.theme-violet { 
    --primary-color: #a361e2;       
    --secondary-color: #64ddbe;     
    --background-color: #f7f3ff;    
    --text-color: #3b2c58;          
    --light-bg: white; 
    --dark-bg: #7f52b8;             
    --box-bg-color: #fbf8ff;    
    --marquee-text-color: #3b2c58;      
    --marquee-font-weight: bold; 
    --marquee-font-size: 1.1em; 
    --marquee-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    --marquee-border-color: var(--primary-color); 
} 

.theme-orange { 
    --primary-color: #ff8c00;       
    --secondary-color: #ffe0b2;     
    --background-color: #fff8e1;    
    --text-color: #8b4513;          
    --light-bg: white; 
    --dark-bg: #e65100;             
    --box-bg-color: #fffbf5;    
    --marquee-font-weight: bold; 
    --marquee-font-size: 1.1em; 
    --marquee-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    --marquee-border-color: var(--text-color);      
} 

.theme-purple { 
    --primary-color: #9c27b0; 
    --secondary-color: #ff9800; 
    --background-color: #f3e5f5; 
    --text-color: #591664; 
    --light-bg: white; 
    --dark-bg: #6a1b9a; 
    --box-bg-color: #fbf5fc;    
    --marquee-font-weight: bold; 
    --marquee-font-size: 1.1em; 
    --marquee-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    --marquee-border-color: var(--primary-color); 
} 

/* Penyesuaian teks untuk Dark Mode agar terbaca */ 

.theme-dark h1 { 
    color: white; 
}  ,
.theme-dark h2, 
.theme-dark h3, 
.theme-dark h4 { 
    color: var(--primary-color); 
} 
.theme-dark .contact-section, 
.theme-dark footer { 
    color: var(--text-color); 
} 

/* ============================================== */ 
/* MEDIA QUERY UNTUK LAYOUT HANDPHONE */ 
/* ============================================== */ 
@media (max-width: 768px) { 
    header { 
        font-size: 0.9em;    
    } 
     .logo { 
    justify-content: center;    
    flex-wrap: wrap; /* Penting: Memastikan h1 bisa turun baris */ 
} 

/* PERUBAHAN INTI: Logo 60px di mode HP */ 
.header-logo { 
    height: 60px; /* Diperbesar menjadi 60px (Sesuai permintaan) */ 
    flex-shrink: 0; 
} 

header h1 { 
    /* FIX: Ukuran font H1 yang lebih kecil untuk memberi ruang, 
           tetapi biarkan ia menggunakan baris penuh di bawah logo 
           jika teks terlalu panjang */ 
    font-size: 1.2em;    
    white-space: normal;    
    text-align: center; 
    width: 100%; /* Agar teks pasti berada di tengah setelah logo */ 
    margin-top: 5px; /* Tambahkan sedikit jarak antara logo dan teks */ 
} 
    .navbar-container { 
        flex-direction: column; 
        justify-content: center; 
        padding: 0 10px;    
    } 

    .header-brand, .header-menu-wrapper { 
        width: 100%; 
        padding: 5px 0; 
        text-align: center;    
    } 
      
    .header-menu-wrapper { 
        order: 2;    
        text-align: center;    
        padding-top: 0; 
    } 

    .menu ul { 
        justify-content: center;    
        flex-wrap: wrap;    
    } 
      
    /* Sembunyikan ikon sosial di menu utama pada mode HP */ 
    .menu ul li:nth-child(7),    
    .menu ul li:nth-child(8),    
    .menu ul li:nth-child(9),    
    .menu ul li:nth-child(10) { 
        display: none; 
    } 
      
    /* FIX: Aturan Three Boxes (Visi, Misi, Spiritual) untuk Mode HP */ 
    .three-boxes { 
        padding: 0 15px; /* Jarak dari tepi layar */ 
    } 
      
    .box { 
        float: none; /* Batalkan float */ 
        width: 100%; /* Lebar penuh */ 
        margin: 10px 0; /* Margin vertikal antar kotak */ 
    } 
    /* Akhir FIX Three Boxes */ 
      
    .news-item, .testimony-item { 
        width: 100%; 
        min-width: unset; 
    } 
    
    /* FIX VIDEO: Atur .video-container agar lebar penuh di mobile */
    .video-container {
        width: 100%; 
        min-width: unset; 
        height: 300px; /* TINGGI BARU untuk mobile (misalnya 200px) */
    }
      
    .achievement-stats { 
        flex-direction: column; 
    } 
    
    .contact-section {
        padding: 20px 10px; /* Mengurangi padding vertikal di mobile */
    }
    
    footer {
        padding: 8px 0; /* Mengurangi padding vertikal di mobile */
    }
    
    .three-boxes {
        /* Menggunakan lebar penuh (atau mendekati penuh) di mobile */
        width: 100%;
        max-width: 100%; 
        padding: 0 10px; 
        margin: 20px auto;
    }
    .visi-misi-image-full {
        width: 100%; 
        height: auto;  
    }

    header {
        position: static; 
    }     
}


/* ============================================== */ 
/* AKHIR MEDIA QUERY */ 
/* ============================================== */ 

/* ============================================== */ 
/* CSS LAYOUT LANJUTAN */ 
/* ============================================== */ 
.logo h1 { font-size: 1.8em; } 
.hero-slider { 
    width: 80%; 
    margin: 20px auto; 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
} 
.slide { 
    display: none; 
    width: 100%; 
    height: 450px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    color: white; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); 
} 
.slide-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.4); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 20px; 
} 
.slide-overlay h1 { 
    margin-bottom: 5px; 
    font-size: 2.5em; 
} 
.slide-overlay h2 { 
    margin-top: 0; 
    font-size: 1.2em; 
    max-width: 80%; 
} 
.post-info { 
    position: absolute; 
    bottom: 10px; 
    right: 10px; 
    background-color: rgba(255, 255, 255, 0.2); 
    padding: 5px 10px; 
    border-radius: 4px; 
    font-size: 0.8em; 
} 
/* ============================================== */ 
/* CSS LAYOUT LANJUTAN (Bagian Konten Lain) */ 
/* ============================================== */ 

.achievement-overlay { 
    padding: 40px 20px; 
    border-radius: 8px; 
    max-width: 1200px; 
    margin: 0 auto; 
} 

.achievement-title h1 { 
    margin-top: 0; 
    font-size: 2.5em; 
    margin-bottom: 40px; 
} 
.achievement-stats { 
    display: flex; 
    justify-content: space-around; 
    gap: 20px; 
} 
.stat-item h2 { 
    margin: 5px 0 0; 
    font-size: 1.5em; 
} 
.content-section { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
} 
.content-section h2 { 
    text-align: center; 
    margin-bottom: 30px; 
    display: inline-block; 
    padding-bottom: 5px; 
} 
.grid-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
} 

.news-item img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
} 

/* Aturan sizing untuk .news-item dan .testimony-item */ 
.news-item, .testimony-item { 
    border-radius: 8px; 
    overflow: hidden; 
    width: calc(25% - 15px);    
    min-width: 250px; 
    flex-grow: 1; 
} 

/* ============================================== */
/* VIDEO & OVERLAY - PERBAIKAN STRUKTUR CSS BARU */
/* ============================================== */

.video-container {
    /* Properti Sizing */
    width: calc(25% - 15px);
    min-width: 250px;
    flex-grow: 1;

    /* Perbaikan KRITIS: Sekarang menggunakan tinggi tetap yang diatur secara manual */
    position: relative;
    /* padding-bottom: 56.25%; <--- BARIS INI DIHAPUS/DIKOMENTARI */
    height: 450px; /* TINGGI TETAP BARU (Ubah nilai ini sesuai keinginan Anda) */
    overflow: hidden;

    /* Properti Visual */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Efek hover untuk kontainer */ 
.video-container:hover { 
    transform: scale(1.02); 
} 

/* Stacking dan Sizing untuk Thumbnail & Video */
.video-thumbnail, 
.video-element {
    /* Harus Absolute agar menumpuk dan mengisi 100% dari tinggi container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.5s ease-in-out; 
    border-radius: 8px; 
}

/* Aturan Stacking */
.video-thumbnail {
    z-index: 10; /* Thumbnail di atas video */
}

.video-element {
    z-index: 5; /* Video di bawah thumbnail */
}

/* OVERLAY (ICON SPEAKER) */
.video-overlay {
    z-index: 20; /* Overlay paling atas */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0; /* Ikon tersembunyi secara default */
    transition: opacity 0.3s ease;
}

/* ICON SPEAKER */
.speaker-icon {
    color: white; 
    font-size: 3.5em; 
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); 
}

/* LOGIKA VISIBILITAS: Tampilkan overlay saat mouse berada di atas .video-container */
.video-container:hover .video-overlay {
    opacity: 1;
}

/* LOGIKA TAMBAHAN: Ketika di-unmute, sembunyikan ikon kecuali saat di-hover */
.video-overlay:not(.muted) {
    opacity: 0; 
}
.video-container:hover .video-overlay:not(.muted) {
    opacity: 0;
}
/* ============================================== */ 
/* AKHIR VIDEO & OVERLAY */
/* ============================================== */ 

.item-body { 
    padding: 15px; 
} 
.item-body h4 { 
    margin-top: 0; 
} 
.item-body p { 
    font-size: 0.9em; 
    color: var(--text-color); 
} 
.item-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.8em; 
    color: #999; 
    margin-top: 10px; 
} 
.testimony-item .item-body { 
    text-align: center; 
} 
.testimony-item .item-body img { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 10px; 
} 
.testimony-item .item-body .testimony-text { 
    font-style: italic; 
    margin: 10px 0; 
    font-size: 0.95em; 
} 
.faq-section h1 { 
    text-align: center; 
    margin-bottom: 30px; 
    font-size: 2em; 
} 
.faq-item { 
    margin-bottom: 15px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
} 
.faq-question { 
    padding: 15px; 
    font-size: 1.1em; 
    font-weight: bold; 
    cursor: pointer; 
    display: block; 
    border-bottom: 1px solid #ddd; 
} 
.faq-answer { 
    padding: 15px; 
    display: none; 
    font-size: 1.1em; 
}	