/* ===== Tampilan Pengunjung (Publik) ===== */
.public-body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    background: #f4f6fb;
}
.public-main { padding-top: 76px; }

/* --- Navbar --- */
.navbar-public {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 14px rgba(24,58,124,.08);
    padding: 12px 0;
}
.navbar-public .brand-badge {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; margin-right: 10px;
}
.navbar-public .brand-text {
    font-weight: 700; color: var(--primary-dark); font-size: 17px; line-height: 1.1;
    display: inline-block; vertical-align: middle;
}
.navbar-public .brand-text small { display: block; font-weight: 400; font-size: 11.5px; color: #7a8aa5; }
.navbar-public .nav-link { font-weight: 500; color: #33415c; padding: 8px 14px !important; border-radius: 8px; }
.navbar-public .nav-link:hover, .navbar-public .nav-link.active { color: var(--primary); background: #eef3fc; }
.btn-login {
    background: var(--accent); border: none; color: #fff; font-weight: 600;
    padding: 8px 20px; border-radius: 999px; box-shadow: 0 4px 12px rgba(245,166,35,.35);
}
.btn-login:hover { background: #e0951c; color: #fff; }

/* --- Hero --- */
.hero-public {
    background: radial-gradient(circle at 15% 20%, #2f63bd 0%, var(--primary) 45%, var(--primary-dark) 100%);
    color: #fff;
    padding: 90px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero-public::before, .hero-public::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.hero-public::before { width: 340px; height: 340px; top: -120px; right: -80px; }
.hero-public::after { width: 220px; height: 220px; bottom: -100px; left: 8%; }
.hero-public h1 { font-weight: 800; font-size: 2.4rem; }
.hero-public .badge-hero {
    background: rgba(255,255,255,.16); padding: 6px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 18px;
}
.hero-public p.lead { opacity: .92; font-size: 16px; max-width: 560px; }
.hero-actions .btn { border-radius: 10px; padding: 12px 24px; font-weight: 600; }
.hero-clock {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px; padding: 22px 26px; backdrop-filter: blur(4px);
}
.hero-clock .jam { font-size: 2.1rem; font-weight: 800; letter-spacing: 1px; }

/* --- Feature cards (overlap hero) --- */
.feature-cards { margin-top: -70px; margin-bottom: 40px; }
.feature-card {
    background: #fff; border-radius: 18px; padding: 30px 26px;
    box-shadow: 0 15px 35px rgba(24,58,124,.12);
    height: 100%; transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid #eef1f8;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(24,58,124,.18); }
.feature-card .fi {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 24px; margin-bottom: 16px; color: #fff;
}
.fi-blue { background: linear-gradient(135deg, #2454a8, #3d7bd6); }
.fi-orange { background: linear-gradient(135deg, #f5a623, #ffbf4d); }
.fi-green { background: linear-gradient(135deg, #1f9d55, #34c274); }
.feature-card h5 { font-weight: 700; }
.feature-card p { color: #6b7686; font-size: 14px; }
.feature-card .btn-sm-link { font-weight: 600; font-size: 14px; }

/* --- Section generic --- */
.section-public { padding: 55px 0; }
.section-title { font-weight: 800; color: var(--primary-dark); }
.section-sub { color: #6b7686; font-size: 14.5px; }

/* --- Public tool card (Cek Guru / Cek Siswa pages) --- */
.tool-hero {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: #fff; padding: 46px 0 60px;
}
.tool-hero h2 { font-weight: 800; }
.tool-card {
    background: #fff; border-radius: 16px; box-shadow: 0 15px 35px rgba(24,58,124,.12);
    padding: 26px; margin-top: -46px; position: relative; z-index: 2;
}
.tool-card .form-label { font-weight: 600; font-size: 13.5px; }
.result-guru-card {
    border: 1px solid #eef1f8; border-radius: 14px; padding: 18px 20px; margin-bottom: 14px;
}
.result-guru-card .nama-guru { font-weight: 700; color: var(--primary-dark); }
.status-pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.status-hadir { background: #e6f7ec; color: #1f9d55; }
.status-tidak { background: #fdeaea; color: #d9534f; }
.status-izin, .status-sakit, .status-dinas { background: #fff4e2; color: #b9740b; }
.status-noschedule { background: #f1f3f7; color: #8892a3; }

.siswa-row-hadir td { color: #1f9d55; }
.table-siswa thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: #7a8aa5; border-bottom: 2px solid #eef1f8; }

@media (max-width: 991px) {
    .hero-public { padding: 40px 0 90px; text-align: center; }
    .hero-public p.lead { margin-left: auto; margin-right: auto; }
    .hero-clock { margin-top: 24px; }
    .feature-cards { margin-top: -55px; }
}
