@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&display=swap');

/* =========================
   RESET & BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background: #e3ecff; /* biru sangat muda sebagai background global */
    color: #0f172a;
}

/* =========================
   LAYOUT UTAMA
========================= */

.gs-main {
    min-height: 100vh;
    padding: 24px 5vw 40px;
    background: radial-gradient(circle at top left, #e0f2fe 0, #f3f6ff 45%, #eef3ff 100%);
}

/* Section umum */
.gs-section {
    max-width: 1100px;
    margin: 26px auto 32px;
    padding: 0 16px;
}

.gs-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
    position: relative;
}

.gs-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    border-radius: 999px;
    margin-top: 6px;
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

/* =========================
   HERO
========================= */

.gs-hero {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 0 16px;
    text-align: center;
}

.gs-hero-inner {
    background: linear-gradient(120deg, #1d4ed8, #2563eb, #38bdf8);
    color: #f9fafb;
    border-radius: 22px;
    padding: 24px 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gs-hero-inner h1 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    margin-bottom: 6px;
    font-weight: 600;
}

.gs-hero-inner p {
    font-size: 0.95rem;
    max-width: 640px;
    opacity: 0.96;
}

/* =========================
   PIMPINAN SEKOLAH
========================= */

.gs-pimpinan .pimpinan-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Card pimpinan */
.pimpinan-card{
    background: linear-gradient(135deg, #ffffff, #eef4ff);
    border-radius: 18px;
    padding: 16px 14px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 3px solid #3b82f6;
}

/* Foto pimpinan */
.pimpinan-photo-wrap{
    flex-shrink: 0;
}

.pimpinan-photo,
.pimpinan-photo.placeholder
 {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pimpinan-photo.placeholder {
    background: #e5edff;
    color: #1d4ed8;
    font-size: 32px;
}

/* Info pimpinan */
.pimpinan-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #0f172a;
}

.pimpinan-jabatan {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 4px;
}

.pimpinan-nip {
    font-size: 0.85rem;
    color: #4b5563;
}

.pimpinan-nip span {
    font-weight: 500;
    margin-right: 4px;
}

/* ===============================
   WAKA HORIZONTAL CARD
   =============================== */

.waka-grid {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;            /* turun ke bawah kalau sempit */
    margin-top: 16px;
}

.waka-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    width: calc(50% - 9px);     /* 2 kolom di desktop */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.waka-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* FOTO */
.waka-photo-wrap {
    flex-shrink: 0;
}

.waka-photo,
.waka-photo.placeholder {
    width: 86px;
    height: 86px;
    border-radius: 14px;
    object-fit: cover;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 30px;
}

/* INFO */
.waka-info h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.waka-jabatan {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
}

.waka-nip {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.waka-nip span {
    font-weight: 600;
    margin-right: 4px;
}



/* =========================
   DAFTAR GURU & STAFF
========================= */

.gs-section h2 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 600;
}

/* Grid guru: default 5 kolom */
.gs-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

/* Kartu guru */
.gs-card {
    background: linear-gradient(145deg, #ffffff, #f3f7ff);
    border-radius: 18px;
    padding: 14px 12px 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    border: 1px solid #dbeafe;
}

.gs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border-color: #3b82f6;
}

/* Foto guru */
.gs-photo-wrap {
    flex-shrink: 0;
}

.gs-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #bfdbfe;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

/* Info guru */
.gs-info {
    text-align: center;
}

.gs-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.gs-jabatan {
    font-size: 0.85rem;
    color: #1d4ed8;
    margin-bottom: 4px;
    font-weight: 500;
}

.gs-nip {
    font-size: 0.78rem;
    color: #4b5563;
}

.gs-nip span {
    font-weight: 500;
    color: #0f172a;
    margin-right: 4px;
}

/* Kalau kosong */
.gs-empty {
    padding: 14px 12px;
    background: #e0e7ff;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* =========================
   FOOTER
========================= */

.gs-footer {
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    padding: 20px;
    color: #888;
    background-color: #2F4156;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* Layar sedang: 3 kolom guru */
@media (max-width: 1024px) {
    .gs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .waka-card {
        width: 100%; 
    }
}

/* Tablet: 2 kolom guru, padding lebih kecil */
@media (max-width: 768px) {
    .gs-main {
        padding-inline: 16px;
    }

    .gs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gs-card {
        padding-inline: 10px;
    }

    .gs-photo {
        width: 70px;
        height: 70px;
    }
}

/* HP kecil: 1 kolom guru */
@media (max-width: 500px) {
    .gs-grid {
        grid-template-columns: 1fr;
    }
}
