@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================================
   1. VARIABEL WARNA (ROOT)
   ========================================= */
:root {
    --primary-green: #4CAF50; 
    --dark-green: #0ab448;    
    --light-green: #E8F5E9;   
    --text-color: #333;
    --white: #FFF;
    --border-color: #EEE;
}

/* =========================================
   2. GLOBAL STYLE & BODY BACKGROUND
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);

    /* BACKGROUND GAMBAR SEKOLAH (TRANSPARAN) */
    /* Gambar ditimpa lapisan putih 85% agar teks terbaca jelas */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
        url('../img/foto/sekolah.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* =========================================
   3. HEADER & NAVIGASI
   ========================================= */
.main-header {
    background-color: var(--white);
    padding: 10px 5%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.school-info h1 {
    font-size: 1.4em;
    color: var(--primary-green);
}

.school-info .tagline {
    font-size: 0.75em;
    color: #666;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-green);
}

/* Dropdown Menu */
.main-nav li { position: relative; }

.dropdown-menu {
    display: none !important; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 9999;
    padding: 0;
    flex-direction: column !important; 
    border-top: 3px solid #4CAF50;
}

.dropdown-menu li { display: block; width: 100%; margin: 0; }

.dropdown-menu li a {
    padding: 12px 20px; 
    color: #333 !important; 
    display: block;
    text-align: left; 
    border-bottom: 1px solid #eee; 
    font-size: 14px; 
    font-weight: normal;
}

.dropdown-menu li a:hover { 
    background-color: #f5f5f5; 
    color: #4CAF50 !important; 
}

.main-nav li:hover .dropdown-menu { 
    display: block !important; 
}


/* =========================================
   4. LAYOUT HALAMAN PROFIL
   ========================================= */
.profil-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- BAGIAN ATAS (SEJARAH & ID CARD) --- */
.row-atas {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 50px;
}

/* Kolom Kiri: Sejarah */
.kolom-sejarah {
    flex: 1;
}

.kolom-sejarah h2 {
    color: var(--primary-green); /* Menggunakan warna solid standar */
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.sejarah-text p {
    text-align: justify;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Kolom Kanan: ID Card */
.kolom-foto {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desain ID Card */
.id-card {
    width: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    position: relative;
    border: 1px solid #e0e0e0;
    background-image: repeating-linear-gradient(45deg, #fff 0, #fff 10px, #fdfdfd 10px, #fdfdfd 20px);
}

.card-header-deco {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--primary-green); 
    padding-bottom: 10px;
}

.card-logo { width: 40px; height: auto; }
.card-school-name { font-size: 14px; font-weight: bold; color: #333; text-transform: uppercase; }

.photo-frame {
    width: 180px; height: 220px; margin: 0 auto 15px auto;
    border: 3px solid var(--primary-green); border-radius: 10px; padding: 5px; background: #fff;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }

.card-name { font-size: 18px; font-weight: 800; color: #333; margin: 5px 0 0 0; }
.card-role { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.card-footer-deco { height: 5px; background: var(--primary-green); border-radius: 10px; width: 50%; margin: 0 auto; }
.label-kepsek-luar { margin-top: 15px; font-weight: bold; color: #333; font-size: 16px; }


/* --- BAGIAN TABEL PROFIL --- */
.profil-singkat {
    margin-top: 40px;
    /* Background Putih Transparan (Glass Effect) */
    background: rgba(255, 255, 255, 0.6); 
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.profil-singkat h3 {
    color: var(--primary-green); /* Warna solid standar */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-top: 0;
}

.profil-singkat table { width: 100%; border-collapse: collapse; }
.profil-singkat td { padding: 10px 15px; border-bottom: 1px solid rgba(0,0,0,0.05); vertical-align: top; color: #333; }

/* Warna belang-belang tabel (Sangat tipis biar background sekolah kelihatan) */
.profil-singkat tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.5); }


/* --- BAGIAN VISI & MISI --- */
.visi-misi-section {
    margin: 60px auto;
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visi-misi-section h3 {
    color: var(--primary-green); /* Warna solid standar */
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 20px;
}

.visi-misi-card {
    /* Background Putih Transparan */
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    width: 100%;
    margin: 0 auto;
    border-top: 5px solid var(--primary-green);
    text-align: center;
}

.visi-misi-card p {
    font-style: italic;
    line-height: 2.0;
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* =========================================
   5. FOOTER
   ========================================= */
.footer {
    background-color: var(--dark-green);
    color: var(--white);
    text-align: center;
    padding: 20px 5%;
    margin-top: 50px;
    font-size: 0.9em;
}

/* =========================================
   6. RESPONSIVE (HP)
   ========================================= */
@media (max-width: 900px) {
    .row-atas {
        flex-direction: column;
        align-items: center;
    }
    .kolom-foto {
        width: 100%;
        max-width: 350px;
        margin-bottom: 30px;
    }
    .profil-singkat td {
        display: block;
        width: 100%;
        padding-left: 0;
    }
}