/* --- 1. RESET & UMUM --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Font lebih modern */
}

body {
    background-color: #f4f4f4; /* Latar belakang abu muda agar konten menonjol */
    color: #333;
}

/* --- 2. HEADER & NAVIGASI --- */
.top-header {
    background-color: #800000;
    color: white;
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 1100px; /* Lebar maksimum ideal */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 15px; }
.logo { height: 65px; border-radius: 50%; border: 0px solid #000000; }
.text-brand h1 { font-size: 22px; color: #FFD700; text-transform: uppercase; letter-spacing: 1px; }
.text-brand p { font-size: 13px; opacity: 0.9; font-style: italic; }

/* Kontak Header */
.contact-info { display: flex; gap: 25px; font-size: 13px; }
.contact-info .item { display: flex; align-items: center; gap: 8px; color: #eee; }
.contact-info .item i { color: #FFD700; }

/* Navbar */
.navbar {
    background-color: #a00000; /* Sedikit lebih terang dari header */
    border-bottom: 0px solid #FFD700; /* Aksen emas di bawah menu */
    position: sticky; top: 0; z-index: 100; /* Menu menempel saat scroll */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none; display: flex; width: 100%; padding: 0;
}

.navbar ul li a {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 15px 18px;
    transition: all 0.3s;
}

.navbar ul li a:hover {
    background-color: #800000;
    color: #FFD700;
}

/* --- 3. LAYOUT UTAMA --- */
.main-content {
    margin-top: 30px;
    margin-bottom: 60px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.left-column { flex: 3; }
.right-column { flex: 1; }

/* --- 4. STYLING KARTU (CARD) --- */
.card {
    background: white;
    border-radius: 8px; /* Sudut melengkung halus */
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Bayangan lembut */
    border: none; /* Hilangkan border garis kasar */
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px); /* Efek naik sedikit saat di-hover */
}

.card h2, .card h3 {
    color: #800000;
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Garis hiasan kecil di bawah judul */
.line-bar-small {
    width: 50px; height: 3px; background: #FFD700; margin-bottom: 20px;
}

.content-text p, .card p {
    font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 15px; text-align: justify;
}

/* List Custom untuk Kurikulum */
.custom-list { margin-left: 20px; margin-bottom: 20px; }
.custom-list li { margin-bottom: 8px; color: #555; font-weight: 500; }

.card-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}

.read-icon {
    color: #800000; font-weight: bold; text-decoration: none;
}

/* --- 5. TRAINER SECTION --- */
.trainer-layout { display: flex; gap: 20px; align-items: flex-start; }
.trainer-photo img { width: 100%; border-radius: 6px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.trainer-info h4 { font-size: 18px; color: #333; margin-bottom: 10px; }
.cert-list { list-style: none; }
.cert-list li { font-size: 13px; color: #666; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.cert-list li i { color: #FFD700; }

/* --- 6. SLIDER GALERI (DIPERBAIKI) --- */
.gallery-slider-section .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.slider-track { display: flex; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }

.slide {
    min-width: 100%; position: relative; cursor: zoom-in; /* Menunjukkan bisa diklik */
}

.slide img { width: 100%; height: 350px; object-fit: cover; display: block; }
.slide:hover img { filter: brightness(90%); transition: 0.3s; }

.slide-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white; padding: 20px;
    font-size: 16px; font-weight: 600;
}

/* --- 7. SIDEBAR KEPALA SEKOLAH --- */
.profile-card { padding: 0; text-align: center; overflow: hidden; }
.profile-card .kepsek-img { width: 100%; height: auto; transition: 0.3s; }
.profile-card:hover .kepsek-img { transform: scale(1.05); }

.profile-text { padding: 20px; }
.profile-text h4 { font-size: 16px; color: #800000; font-weight: bold; margin-bottom: 5px; }
.role { font-size: 12px; color: #888; display: block; margin-bottom: 15px; letter-spacing: 1px; }

.profile-action button {
    width: 100%; padding: 15px; background: #800000; color: white;
    border: none; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.profile-action button:hover { background: #500000; }

/* --- 8. FOOTER --- */
footer { background: #222; color: #ccc; margin-top: 50px; padding-top: 50px; border-top: 5px solid #800000; }
.footer-content { display: flex; gap: 50px; padding-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 15px; font-size: 16px; }
.yellow-line { width: 40px; height: 3px; background: #FFD700; margin-bottom: 20px; }

.tag-btn { 
    display: inline-block; border: 1px solid #555; padding: 5px 12px; 
    font-size: 11px; margin: 0 5px 5px 0; color: #aaa; text-decoration: none; border-radius: 3px; 
}
.tag-btn:hover { border-color: #FFD700; color: #FFD700; }

.soc-btn { 
    width: 35px; height: 35px; background: #333; display: flex; justify-content: center; 
    align-items: center; border-radius: 50%; color: white; text-decoration: none; transition: 0.3s;
}
.soc-btn:hover { background: #FFD700; color: #000; transform: rotate(360deg); }

.copyright-bar { background: #111; padding: 20px 0; font-size: 12px; color: #666; }

/* --- 9. LIGHTBOX (MODAL POPUP) --- */
.lightbox {
    display: none; /* Tersembunyi default */
    position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); /* Latar hitam transparan */
    justify-content: center; align-items: center;
}

.lightbox-content {
    max-width: 90%; max-height: 80%;
    border: 5px solid white; border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute; top: 20px; right: 35px;
    color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer;
}
.close-btn:hover { color: #FFD700; }

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* --- RESPONSIF MOBILE --- */
@media (max-width: 768px) {
    .container { flex-direction: column; text-align: center; }
    .navbar ul { flex-direction: column; }
    .main-content { flex-direction: column; }
    .left-column, .right-column { width: 100%; }
    .footer-content { flex-direction: column; gap: 30px; }
    .contact-info { margin-top: 15px; }
}