/* ============================ */
/* 1. RESET & VARIABEL UTAMA    */
/* ============================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-maroon: #800000;
    --color-gold: #FFD700;
    --color-bg-main: #121212;
    --color-bg-card: #1e1e1e;
    --color-bg-section: #2c2c2c;
    --text-primary: #e0e0e0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ============================ */
/* 2. HEADER & NAVIGASI         */
/* ============================ */
header {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('wqeqwe.gif');
    background-size: cover;
    background-position: center;
    padding: 100px 20px 60px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 15px;
    border-radius: 4px;
    transition: 0.3s ease;
}

nav a:hover {
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================ */
/* 3. LOGO & TEKS               */
/* ============================ */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-org {
    height: clamp(100px, 15vw, 160px); 
    width: auto;
    margin-right: 20px;
    margin-left: 20px;
}

.logo-sekolah {
    height: clamp(60px, 10vw, 90px);
    width: auto;
    margin-right: -30px;
    margin-left: 20px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2em, 6vw, 3.5em);
    letter-spacing: 2px;
}

header p {
    color: var(--color-gold);
}

/* ============================ */
/* 4. MAIN & SECTIONS           */
/* ============================ */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--color-bg-section);
    border-radius: 12px;
    border-left: 6px solid var(--color-gold);
}

section h2 {
    color: var(--color-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.struktur-list li {
    background: #333;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid var(--color-maroon);
    list-style: none;
}

/* ============================ */
/* 5. DIVISI & TOMBOL           */
/* ============================ */
.divisi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.divisi-box {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    border-top: 5px solid var(--color-gold);
}

/* PERBAIKAN TOMBOL MAROON */
.toggle-anggota {
    background-color: var(--color-maroon) !important;
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin: 15px 0;
    transition: 0.3s;
    display: block;
}

.toggle-anggota:hover {
    background-color: #a00000 !important;
    transform: scale(1.03);
}

.anggota-list {
    margin-top: 10px;
    padding-left: 20px;
    /* Default sembunyi jika script.js aktif, atau hapus jika ingin selalu tampil */
}

/* ============================ */
/* 6. GALERI                    */
/* ============================ */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* ============================ */
/* 7. RESPONSIF MOBILE          */
/* ============================ */
@media (max-width: 768px) {
    header { padding: 80px 15px 40px 15px; }

    nav {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }

    .logo-container { gap: 10px; }
}

footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 0.8em;
}











