﻿body {
    margin: 0;
    padding: 0;
    background: #e9f7ff;
    overflow-x: hidden;
}

.headerMain {
    background: #a9d9ea;
    padding: 15px 0;
}

.customContainer {
    width: 95%;
    margin: auto;
}

.myHeaderNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.headerLogo {
    display: flex;
    align-items: center;
}

    .headerLogo img {
        width: 70px;
        margin-right: 15px;
    }

.siteTitle h2 {
    color: red;
    font-size: 30px;
    margin: 0;
    font-weight: bold;
}

.siteTitle h5 {
    color: blue;
    margin-top: 5px;
    font-size: 24px;
    font-weight: bold;
}

.homeLink {
    background: #004b9b;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 10px;
    text-decoration: none;
    font-weight: 600;
}

    .homeLink:hover {
        background: #003979;
    }

.myFooter {
    background: #004b9b;
    color: white;
    text-align: center;
    padding: 12px;
}

.copyrightText p {
    margin: 0;
    font-size: 14px;
}

/* ============================================================
   UI REFRESH  (shared theme for all school pages)
   ============================================================ */

:root {
    --hq-blue: #004b9b;
    --hq-blue-dark: #003979;
    --hq-orange: #f58220;
    --hq-orange-dark: #d96d10;
    --hq-green: #198754;
    --hq-ink: #1f2937;
    --hq-muted: #6b7280;
    --hq-line: #e5e9f2;
    --hq-radius: 16px;
    --hq-shadow: 0 10px 30px rgba(15, 40, 90, .10);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    color: var(--hq-ink);
    background: linear-gradient(160deg, #eaf4fb 0%, #f7fbff 45%, #fff6ec 100%);
    background-attachment: fixed;
}

/* ---------- header ---------- */
.headerMain {
    background: linear-gradient(90deg, #cfe9f5 0%, #a9d9ea 55%, #bfe3f0 100%);
    border-bottom: 4px solid var(--hq-orange);
    box-shadow: 0 4px 16px rgba(0, 75, 155, .15);
    padding: 12px 0;
}

.headerLogo img {
    width: 64px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
}

.siteTitle h2 {
    font-size: 26px;
    letter-spacing: .2px;
}

.siteTitle h5 {
    font-size: 19px;
    letter-spacing: .6px;
}

.homeLink {
    border-radius: 999px;
    padding: 9px 22px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 75, 155, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.homeLink:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 75, 155, .30);
}

.logout-btn {
    background: #dc3545;
    box-shadow: 0 4px 10px rgba(220, 53, 69, .28);
}

.logout-btn:hover {
    background: #b52a38;
}

/* ---------- footer ---------- */
.myFooter {
    background: linear-gradient(90deg, var(--hq-blue-dark), var(--hq-blue));
    border-top: 3px solid var(--hq-orange);
    padding: 14px;
}

/* ---------- registration summary / receipt pages ---------- */
.hq-page {
    width: 96%;
    max-width: 1280px;
    margin: 28px auto 40px;
}

.hq-card {
    background: #fff;
    border-radius: var(--hq-radius);
    box-shadow: var(--hq-shadow);
    border: 1px solid var(--hq-line);
    overflow: hidden;
}

.hq-card-head {
    background: linear-gradient(100deg, var(--hq-orange) 0%, #ff9b3d 100%);
    color: #fff;
    text-align: center;
    padding: 26px 20px;
}

.hq-card-head h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: .4px;
}

.hq-card-head p {
    margin: 6px 0 0;
    opacity: .92;
    font-size: 14px;
}

.hq-section-title {
    color: var(--hq-orange);
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 5px solid var(--hq-orange);
}

.hq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #e8f6ee;
    color: var(--hq-green);
    font-weight: 600;
    font-size: 14px;
}

.hq-school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.hq-school-item {
    background: #f6f9fe;
    border: 1px solid var(--hq-line);
    border-radius: 12px;
    padding: 14px 16px;
}

.hq-school-item small {
    display: block;
    color: var(--hq-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}

.hq-school-item strong {
    font-size: 16px;
    word-break: break-word;
}

.hq-notice {
    background: #fffaf0;
    border: 1px solid #ffe2a8;
    border-left: 5px solid #ffc107;
    border-radius: 12px;
    padding: 16px 20px;
}

.hq-notice h6 {
    margin: 0 0 8px;
    font-weight: 700;
    color: #8a5a00;
}

.hq-notice ul {
    margin: 0;
    padding-left: 20px;
}

.hq-notice li {
    margin-bottom: 4px;
}

/* students table */
.hq-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--hq-line);
    border-radius: 12px;
    overflow: hidden;
    table-layout: auto;
}

.hq-table thead th {
    background: var(--hq-orange);
    color: #fff;
    font-weight: 600;
    padding: 13px 12px;
    text-align: center;
    white-space: nowrap;
}

.hq-table tbody td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    border-top: 1px solid var(--hq-line);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hq-table tbody tr:nth-child(even) {
    background: #fafcff;
}

.hq-table tbody tr:hover {
    background: #fff4e6;
}

.hq-table tfoot td {
    background: #e7f5ed;
    font-weight: 700;
    padding: 13px 12px;
    border-top: 2px solid #bfe3cd;
}

/* payment-complete banner */
.hq-success-banner {
    background: linear-gradient(135deg, #eaf8f0, #d9f1e4);
    border: 1px solid #b6e0c7;
    border-radius: var(--hq-radius);
    padding: 28px 20px;
    text-align: center;
}

.hq-success-banner .hq-tick {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--hq-green);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(25, 135, 84, .35);
}

.hq-success-banner h4 {
    color: var(--hq-green);
    font-weight: 700;
    margin-bottom: 6px;
}

/* buttons */
.hq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 999px;
    padding: 13px 34px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    color: #fff !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hq-btn:hover {
    transform: translateY(-2px);
}

.hq-btn-pay {
    background: linear-gradient(135deg, #1fa463, #158a50);
    box-shadow: 0 8px 20px rgba(25, 135, 84, .30);
}

.hq-btn-receipt {
    background: linear-gradient(135deg, var(--hq-blue), #1565c0);
    box-shadow: 0 8px 20px rgba(0, 75, 155, .30);
}

.hq-btn-ghost {
    background: #fff;
    color: var(--hq-blue) !important;
    border: 1.5px solid var(--hq-blue);
}

.hq-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 18px;
}

@media (max-width: 768px) {
    .siteTitle h2 { font-size: 18px; }
    .siteTitle h5 { font-size: 14px; }
    .headerLogo img { width: 48px; }
    .hq-card-head { padding: 20px 14px; }
    .hq-btn { width: 100%; }
}
