@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    --school-red: #ff101b;
    --school-orange: #ff8500;
    --school-blue: #07377e;
    --page-gray: #f0f0f0;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', Arial, sans-serif;
    color: #111;
    background: #fff;
}
.top-bar {
    min-height: 34px;
    padding: 7px 12px;
    background: linear-gradient(90deg, #ff101b, #ff343b);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}
.school-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 18px;
    background: #fff;
}
.school-logo {
    width: 39px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
}
.school-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-placeholder {
    color: #d71920;
    border: 2px dashed #d71920;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 700;
    padding: 7px 3px;
}
.school-identity h1 {
    margin: 0;
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.3;
    font-weight: 800;
}
.school-identity p { margin: 0; font-size: 14px; line-height: 1.4; }
.main-area {
    flex: 1;
    background: var(--page-gray);
    padding: 35px 3.7% 40px;
}
.search-card {
    overflow: hidden;
    min-height: 352px;
    background: #fff;
    border-radius: 7px;
}
.card-heading {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    background: linear-gradient(90deg, #ff9b00, #ff7900);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.heading-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 13px;
}
.close-button {
    margin-left: auto;
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: #ff101b;
    font-weight: 700;
}
.search-content { padding: 48px 3.4% 45px; }
.panel-hidden { display: none; }
.rule { border: 0; border-top: 1px solid #555; opacity: .85; }
.rule-top { margin: 23px 0 20px; }
.rule-bottom { margin: 34px 0 0; }
.search-content h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}
.search-form {
    display: grid;
    grid-template-columns: minmax(45px, 1fr) minmax(180px, 302px) minmax(45px, 1fr);
    align-items: center;
    gap: 10px;
    max-width: 660px;
    margin: 0 auto;
}
.search-form .form-label {
    margin: 0;
    justify-self: end;
    font-size: 14px;
}
.required { color: #dc3545; margin-left: 2px; }
.nis-input { height: 33px; border-radius: 3px; font-size: 14px; }
.btn-search {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 43px;
    padding: 5px 16px;
    min-width: 130px;
    color: #fff;
    background: linear-gradient(#0b4da5, #00265f);
    border: 0;
    border-radius: 4px;
    font-size: 15px;
}
.btn-search:hover, .btn-search:focus { color: #fff; background: #00265f; }
.search-symbol {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    border: 2px solid #fff;
    border-radius: 50%;
    vertical-align: -2px;
}
.search-symbol::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 2px;
    background: #fff;
    right: -5px;
    bottom: -3px;
    transform: rotate(48deg);
    border-radius: 2px;
}
.result-message, .student-result { max-width: 660px; margin: 24px auto 0; }
.student-result h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.student-result th { width: 40%; }
.school-footer {
    margin: 0 3px 3px;
    min-height: 202px;
    padding: 32px 5% 24px;
    background: linear-gradient(110deg, #ff101b, #ff363d);
    color: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 1.65;
}
.school-footer hr {
    max-width: 920px;
    margin: 7px auto 6px;
    border: 0;
    border-top: 4px solid #fff;
    opacity: .9;
}
@media (max-width: 576px) {
    .top-bar { font-size: 10px; }
    .school-header { padding: 8px 12px; gap: 9px; }
    .school-identity h1 { font-size: 14px; }
    .school-identity p { font-size: 12px; }
    .main-area { padding: 22px 12px 28px; }
    .search-card { min-height: auto; }
    .card-heading { font-size: 15px; }
    .search-content { padding: 24px 16px 30px; }
    .rule-top { margin-top: 8px; }
    .search-form {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .search-form .form-label { justify-self: start; }
    .btn-search { grid-column: auto; margin-top: 15px; }
    .rule-bottom { margin-top: 25px; }
    .school-footer { padding: 24px 15px; font-size: 11px; }
}
