/* =========================
   RESET & GLOBAL
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f2f2f2;
}


/* =========================
   HEADER & NAVBAR
========================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #003366;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

/* Logo */
.logo-container {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 50px;
}

.logo-container span {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

/* Container teks logo */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Nama sekolah */
.logo-text span {
    font-size: 1.6em;
    font-weight: bold;
    color: white;
}

/* Tagline */
.tagline {
    font-size: 0.75em;
    color: #ffcc00; /* bisa diganti putih kalau mau lebih formal */
    letter-spacing: 0.5px;
}

/* Navigation */
nav {
    display: flex;
}

nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
}

/* =========================
   CONTAINER
========================= */
.container {
    max-width: 600px;
    margin: 30px auto;
    background: linear-gradient(135deg, #ffffff, #eef5ff);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease;
}

.container h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
}

.container a {
    color: #003366s;
    font-weight: bold;
    transition: color 0.3s ease;
}

.container a:hover {
    color: #ff6600;
}

.logo-bawah {
    display: block;
    margin: 0 auto 20px auto;
    width: 150px;
}

.center-text {
    text-align: center;
}

.center-text h2 {
    margin-bottom: 0px;
}

.center-text p {
    font-size: 17px;
}

/* =========================
   INFO SECTION (PROFESSIONAL)
========================= */
.info-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card utama */
.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover halus */
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.narasi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover halus */
.narasi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Judul */
.info-title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    border-left: 4px solid #003366;
    padding-left: 10px;
}

/* Teks utama */
.info-text {
    line-height: 1.7;
    font-size: 15px;
    color: #333;
}

/* List */
.info-list {
    margin-left: 18px;
    line-height: 1.6;
    font-size: 14.5px;
    color: #444;
}

.info-list li {
    margin-bottom: 6px;
}

/* Strong highlight */
.info-text strong,
.info-list strong {
    color: #003366;
}

/* Responsive */
@media (max-width: 600px) {
    .info-card {
        padding: 15px;
    }

    .info-title {
        font-size: 15px;
    }

    .info-text,
    .info-list {
        font-size: 14px;
    }
}

/* =========================
   FORM
========================= */
form.center-text label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

form.center-text input[type="text"],
form.center-text input[type="date"],
form.center-text button {
    display: block;
    width: 80%;
    padding: 12px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}

form.center-text button {
    background-color: #003366;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form.center-text button:hover:enabled {
    background-color: #008000;
    transform: scale(1.03);
}


/* =========================
   HASIL
========================= */
.hasil {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    padding: 15px;
    border-radius: 6px;
}

.lulus {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.tidak-lulus {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

.not-found {
    background-color: #fff3cd;
    color: #856404;
}

.box-petunjuk {
    background-color: #FFE4B5;
    color: #000;
}

.hasil.box-petunjuk {
    background: #F0F8FF;
    border-left: 5px solid #003366;
    padding: 15px;
    border-radius: 8px;
}

.hasil.box-catatan {
    background: #fff;
    border-left: 5px solid #003366;
    padding: 15px;
    border-radius: 8px;
}

.hasil h4 {
    margin-bottom: 10px;
    color: #003366;
    font-weight: bold;
}

.hasil p {
    line-height: 1.6;
}

.hasil table {
    width: 100%;
    border-collapse: collapse;
}

.hasil table td {
    padding: 6px 4px;
    vertical-align: top;
}

.hasil ul {
    margin-top: 10px;
    padding-left: 20px;
}

.hasil ul li {
    margin-bottom: 6px;
}

.lulus h1 {
    color: green;
    letter-spacing: 2px;
    font-weight: bold;
}

.tidak-lulus h1 {
    color: red;
    letter-spacing: 2px;
    font-weight: bold;
}


/* =========================
   HR
========================= */
hr {
    border: none;
    border-top: 2px solid #003366;
    margin: 20px 0;
}


/* =========================
   CAPTCHA
========================= */
.captcha-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.captcha-inline input[type="number"] {
    width: 50px;
    height: 36px;
    padding: 0 5px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.captcha-inline label {
    margin: 0;
    padding: 0;
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 17px;
}

.captcha-inline label strong {
    display: inline-block;
    line-height: normal;
}

/* hilangkan spinner */
.captcha-inline input[type="number"]::-webkit-outer-spin-button,
.captcha-inline input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-inline input[type="number"] {
    -moz-appearance: textfield;
}


/* =========================
   FOOTER
========================= */
footer {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    font-size: 12px;
    color: #ccc;
}

.footer-social {
    margin-bottom: 5px;
}

.social-icon {
    margin: 0 10px;
    font-size: 20px;
    color: #fff;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ffcc00;
}


/* =========================
   COUNTDOWN
========================= */
.countdown-wrapper {
    margin-top: 20px;
    margin-bottom: 10px;
    animation: slideUp 0.8s ease-out;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

#countdown div {
    background: #003366;
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#countdown span {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
}

#countdown small {
    font-size: 0.75em;
}


/* =========================
   DOWNLOAD BUTTON
========================= */
.download-container {
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
}

.download-button {
    display: inline-block;
    text-decoration: none;
    background-color: #28a745;
    color: #fff;
    padding: 10px 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}


/* =========================
   ANIMATION
========================= */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #003366;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }

    nav a {
        margin-left: 0;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    nav.open {
        display: flex;
    }
}

@media (max-width: 600px) {

    nav {
        display: none;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 10px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .logo-container span {
        display: inline-block;
        font-size: 30px;
        font-weight: bold;
        white-space: nowrap;
    }
    
    .logo-text {
        align-items: center;   /* ⬅️ ini kunci utamanya */
        text-align: center;
    }

    .tagline {
        font-size: 0.65em;
    }
    .container {
        margin: 20px;
        padding: 25px;
        border-radius: 12px;
    }

    #countdown {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    #countdown div {
        flex: 1 0 10%;
        min-width: 50px;
        padding: 10px;
        font-size: 0.85em;
    }

    #countdown span {
        font-size: 1.5em;
    }

    #countdown small {
        font-size: 0.7em;
    }
}