/* public/css/struktur.css */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lora:wght@400;600;700&display=swap');

:root {
    --primary: #1f2f6b;
    --primary-light: #2f468f;
    --accent: #f4b400;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --bg-light: #f8fafc;
}

.public-struktur {
    background: var(--bg-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    padding-bottom: 5rem;
}

/* HERO */
.hero-struktur {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 1.5rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-struktur::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--bg-light);
    clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.hero-struktur h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-struktur p {
    color: rgba(255,255,255,0.85);
    position: relative;
    z-index: 2;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.breadcrumb-custom a,
.breadcrumb-custom span {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

/* CONTAINER */
.struktur-container {
    max-width: 1200px;
    margin: -2rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}

/* HEADER */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.badge-title {
    background: rgba(31,47,107,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.section-header h2 {
    font-family: 'Lora', serif;
    color: var(--primary);
    margin-top: 1rem;
    font-size: 2rem;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 20px;
}

/* CARD */
.card-struktur {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.card-struktur:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(31,47,107,0.12);
}

/* IMAGE */
.avatar-container {
    margin-bottom: 1.5rem;
}

.avatar-container img,
.avatar-placeholder {
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder i {
    font-size: 2rem;
    color: #94a3b8;
}

.img-pimpinan {
    width: 180px;
    height: 180px;
}

.img-sekretariat {
    width: 140px;
    height: 140px;
}

.img-staf {
    width: 110px;
    height: 110px;
}

/* TEXT */
.name-text {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.jabatan-text {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-aktif {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(244,180,0,0.15);
    color: #a16207;
    font-size: 0.75rem;
    font-weight: 700;
}

/* GRID */
.grid-pimpinan {
    display: flex;
    justify-content: center;
    margin-bottom: 5rem;
}

.pimpinan-wrapper {
    max-width: 400px;
    width: 100%;
}

.grid-sekretariat {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.grid-staf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* STAFF */
.staff-card {
    padding: 1.5rem;
}

.staf-jabatan {
    font-size: 0.75rem;
}

/* CONNECTOR */
.hierarki-connector {
    width: 2px;
    height: 40px;
    background: #cbd5e1;
    margin: 0 auto 2rem;
}

/* FOOTER */
.footer-statistik {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 1rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.stat-box small {
    font-weight: 700;
    color: var(--text-muted);
}

.stat-box span {
    margin-left: 0.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* MOBILE */
@media (max-width: 768px) {

    .hero-struktur {
        padding: 4rem 1rem 5rem;
    }

    .grid-sekretariat {
        grid-template-columns: 1fr;
    }

    .img-pimpinan {
        width: 150px;
        height: 150px;
    }
}