/* ============================================== */ 
/* 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; 
    transition: background-color 0.3s, color 0.3s; 
    white-space: nowrap; 
} 

#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-item, .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; 
    --secondary-color: #ffeb3b; 
    --background-color: #ebfaeb; 
    --text-color: #214d2e; 
    --light-bg: white; 
    --dark-bg: #196f33; 
    --box-bg-color: #f0fff0;   
    --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, 
.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, .video-item, .testimony-item { 
        width: 100%; 
        min-width: unset; 
    } 
    .achievement-stats { 
        flex-direction: column; 
    } 
    
    .contact-section {
        padding: 20px 10px; /* Mengurangi padding vertikal di mobile */
    }
    
    footer {
        padding: 8px 0; /* Mengurangi padding vertikal di mobile */
    }
} 
/* ============================================== */ 
/* 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; 
} 

.testimony-item { 
    width: calc(25% - 15px); 
} 
.news-item img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
} 

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

/* ============================================== */
/* VIDEO & OVERLAY (AUTOPLAY ON HOVER & MUTE TOGGLE) */
/* ============================================== */

.video-item {
    /* Menentukan ukuran dasar item video */
    width: calc(25% - 15px); 
    min-width: 250px; 
    flex-grow: 1;
    
    position: relative; /* Penting untuk memposisikan overlay */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.video-item video {
    width: 100%; 
    height: 500px; /* Tinggi yang konsisten untuk semua video */
    object-fit: cover; 
    display: block; 
    border-radius: 8px 8px 0 0; 
    border: none;
}

/* Efek hover untuk video */ 
.video-item:hover video { 
    transform: scale(1.02); 
    transition: transform 0.3s ease; 
} 

/* OVERLAY (ICON SPEAKER) - Ditempatkan di tengah, besar, dan muncul saat hover */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Sedikit gelap saat ikon muncul */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* PENTING: ICON TERSEMBUNYI SECARA DEFAULT */
    opacity: 0; 
    transition: opacity 0.3s ease;
    
    /* Pastikan overlay berada di atas video */
    z-index: 10; 
}

/* ICON SPEAKER */
.speaker-icon {
    color: white; /* Warna ikon putih */
    font-size: 3.5em; /* Ukuran ikon besar */
    /* Untuk ikon Mute, tambahkan sedikit shadow agar lebih terlihat */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); 
}

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

/* LOGIKA TAMBAHAN: Ketika di-unmute, sembunyikan ikon agar tidak mengganggu, 
   kecuali saat di-hover (untuk memberikan feedback visual) */
.video-overlay:not(.muted) {
    /* Ikon volume up/unmute akan memiliki opacity 0 secara default */
    opacity: 0; 
}
.video-item:hover .video-overlay:not(.muted) {
    /* Saat di-hover dan sudah di-unmute, biarkan overlay tetap transparan */
    opacity: 0;
}


/* Styling untuk tombol play default browser (Opsional, mungkin tidak selalu bekerja) */ 
.video-item video::-webkit-media-controls-play-button { 
    background-color: var(--secondary-color); 
    border-radius: 50%; 
    padding: 10px; 
} 
/* ============================================== */ 
/* 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; 
} 

/* ============================================== */ 
/* RESPONSIVE UNTUK VIDEO DI MOBILE */ 
/* ============================================== */ 
@media (max-width: 768px) { 
    .video-item video { 
        height: 400px; /* Tinggi lebih besar di mobile */ 
    } 
      
    .video-item { 
        width: 100%; 
        min-width: unset; 
    }
	.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; 
    }	
}