/* ============================================
   STRUKTUR ORGANISASI - CSS
   ============================================ */

/* ---- RESET & BASE ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fc;
    color: #1a2a3a;
    min-height: 100vh;
}

/* ---- HEADER SECTION ---- */
.struktur-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.struktur-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.struktur-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.struktur-header h1 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.struktur-header h1 i {
    margin-right: 14px;
    color: #ffd700;
}

.struktur-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.struktur-header .breadcrumb-custom {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.struktur-header .breadcrumb-custom a {
    color: #ffd700;
    text-decoration: none;
}

.struktur-header .breadcrumb-custom a:hover {
    text-decoration: underline;
}

/* ---- CONTAINER ---- */
.struktur-container {
    max-width: 1200px;
    margin: -30px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ---- KEPALA SEKOLAH (CARD UTAMA) ---- */
.kepala-sekolah-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    border-left: 6px solid #2d6a9f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kepala-sekolah-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.12);
}

.kepala-sekolah-foto {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #2d6a9f;
    box-shadow: 0 8px 24px rgba(45, 106, 159, 0.25);
    background: #e8edf5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kepala-sekolah-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kepala-sekolah-foto .placeholder-icon {
    font-size: 64px;
    color: #8a9aa8;
}

.kepala-sekolah-info {
    flex: 1;
}

.kepala-sekolah-info .badge-role {
    display: inline-block;
    background: #2d6a9f;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.kepala-sekolah-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 4px;
}

.kepala-sekolah-info .jabatan {
    font-size: 16px;
    color: #2d6a9f;
    font-weight: 500;
    margin-bottom: 10px;
}

.kepala-sekolah-info .deskripsi {
    font-size: 15px;
    color: #5a6a7a;
    line-height: 1.6;
}

/* ---- DIVIDER ---- */
.divider-section {
    text-align: center;
    margin: 40px 0 30px;
}

.divider-section h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a3a;
    position: relative;
    display: inline-block;
}

.divider-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2d6a9f;
    border-radius: 4px;
}

.divider-section .subtitle {
    font-size: 15px;
    color: #6b7a8f;
    margin-top: 16px;
}

/* ---- GRID GURU & STAFF ---- */
.guru-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.guru-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #e8edf5;
}

.guru-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    border-bottom-color: #2d6a9f;
}

.guru-card .foto-guru {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
    background: #e8edf5;
    border: 3px solid #e8edf5;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guru-card:hover .foto-guru {
    border-color: #2d6a9f;
}

.guru-card .foto-guru img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guru-card .foto-guru .placeholder-icon {
    font-size: 40px;
    color: #8a9aa8;
}

.guru-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 2px;
}

.guru-card .mapel {
    font-size: 13px;
    color: #2d6a9f;
    font-weight: 500;
}

.guru-card .divider-line {
    width: 30px;
    height: 2px;
    background: #d5dde5;
    margin: 8px auto;
    border-radius: 4px;
}

.guru-card .nip {
    font-size: 12px;
    color: #8a9aa8;
}

/* ---- FOOTER ---- */
.struktur-footer {
    text-align: center;
    padding: 30px 20px;
    color: #8a9aa8;
    font-size: 14px;
    border-top: 1px solid #e8edf5;
    margin-top: 40px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .kepala-sekolah-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }

    .kepala-sekolah-foto {
        width: 120px;
        height: 120px;
    }

    .kepala-sekolah-info h2 {
        font-size: 22px;
    }

    .struktur-header h1 {
        font-size: 28px;
    }

    .struktur-header p {
        font-size: 15px;
    }

    .guru-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .guru-card {
        padding: 16px 12px;
    }

    .guru-card .foto-guru {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .guru-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .struktur-header {
        padding: 40px 16px 30px;
    }

    .struktur-header h1 {
        font-size: 22px;
    }

    .kepala-sekolah-card {
        padding: 20px 16px;
    }

    .kepala-sekolah-foto {
        width: 100px;
        height: 100px;
    }
}