:root {
    --ink: #10213f;
    --muted: #5a6478;
    --yellow: #fff36a;
    --yellow-soft: #fffbd1;
    --orange: #f47c20;
    --orange-deep: #d95513;
    --green: #1c9b63;
    --green-soft: #dff7df;
    --blue: #1c6fb8;
    --paper: #ffffff;
    --line: rgba(16, 33, 63, 0.12);
    --shadow: 0 24px 70px rgba(16, 33, 63, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 243, 106, 0.85), transparent 28rem),
        linear-gradient(180deg, #fffef0 0%, #f5fbf5 46%, #ffffff 100%);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    color: var(--yellow);
    background: var(--ink);
    border: 4px solid var(--orange);
    border-radius: 50%;
    font-weight: 900;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    text-transform: uppercase;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 10px 13px;
    color: var(--muted);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--ink);
    background: var(--yellow-soft);
    outline: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 87px);
    padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 64px);
    overflow: hidden;
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.hero::before {
    inset: 18px;
    border: 2px dashed rgba(244, 124, 32, 0.18);
    border-radius: 28px;
}

.hero::after {
    right: -80px;
    bottom: 4%;
    width: 260px;
    height: 260px;
    background: var(--green-soft);
    border-radius: 50%;
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 16px;
    padding: 8px 12px;
    color: #ffffff;
    background: var(--orange);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: clamp(2.55rem, 5.1vw, 4.95rem);
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-tagline {
    margin-bottom: 18px;
    color: var(--green);
    font-size: clamp(1.35rem, 3vw, 2.25rem);
    font-weight: 900;
}

.hero-copy {
    max-width: 680px;
    color: #26334e;
    font-size: clamp(1.02rem, 1.7vw, 1.24rem);
    line-height: 1.7;
}

.hero-actions,
.site-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.btn.primary {
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 14px 30px rgba(28, 155, 99, 0.24);
}

.btn.secondary {
    color: var(--ink);
    background: var(--yellow);
}

.text-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    color: var(--green);
    font-weight: 900;
}

.text-link.light {
    color: var(--yellow);
}

.hero-panel {
    display: grid;
    gap: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.school-badge,
.class-card {
    display: grid;
    gap: 5px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.school-badge span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    color: var(--yellow);
    background: var(--ink);
    border: 5px solid var(--orange);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 900;
}

.school-badge strong {
    margin-top: 6px;
    text-transform: uppercase;
}

.school-badge small,
.class-card small {
    color: var(--muted);
    font-weight: 700;
}

.class-card {
    background: var(--ink);
    color: #ffffff;
}

.class-card small {
    color: var(--yellow);
    text-transform: uppercase;
}

.class-card strong {
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1;
}

.hero-panel img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0 clamp(18px, 4vw, 64px);
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stats article {
    padding: 24px;
    background: var(--paper);
}

.stats strong,
.stats span {
    display: block;
}

.stats strong {
    color: var(--orange-deep);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.stats span {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

.section {
    padding: clamp(62px, 9vw, 104px) clamp(18px, 4vw, 64px);
}

.split,
.contact {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(24px, 5vw, 70px);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
}

.section-text {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.program-grid,
.facility-grid,
.notice-list,
.contact-grid {
    display: grid;
    gap: 16px;
}

.program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card,
.notice-list article,
.contact-grid > * {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 46px rgba(16, 33, 63, 0.06);
}

.program-card span {
    color: var(--green);
    font-weight: 900;
}

.program-card h3 {
    margin: 12px 0 10px;
    font-size: 1.35rem;
}

.program-card p,
.notice-list p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.facilities {
    background:
        linear-gradient(135deg, rgba(255, 243, 106, 0.86), rgba(255, 255, 255, 0.65)),
        var(--yellow-soft);
}

.facility-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 33, 63, 0.1);
    border-radius: 8px;
}

.facility-item span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: #ffffff;
    background: var(--orange);
    border-radius: 50%;
    font-weight: 900;
}

.facility-item strong {
    line-height: 1.25;
}

.notice-band {
    background: var(--ink);
    color: #ffffff;
}

.notice-band .section-kicker {
    color: var(--ink);
    background: var(--yellow);
}

.notice-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-list article {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.notice-list span {
    color: var(--yellow);
    font-weight: 900;
}

.notice-list p {
    color: rgba(255, 255, 255, 0.82);
}

.gallery-preview {
    background: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gallery-full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 46px rgba(16, 33, 63, 0.07);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--yellow-soft);
}

.gallery-card div {
    padding: 18px;
}

.gallery-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.gallery-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.page-hero {
    padding: clamp(58px, 9vw, 108px) clamp(18px, 4vw, 64px);
    background:
        linear-gradient(135deg, rgba(255, 243, 106, 0.82), rgba(223, 247, 223, 0.8)),
        #fffef0;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 6vw, 5.7rem);
}

.page-hero p:last-child {
    max-width: 780px;
    margin-bottom: 0;
    color: #26334e;
    font-size: clamp(1.04rem, 1.7vw, 1.22rem);
    line-height: 1.65;
}

.notice-page {
    background: var(--ink);
}

.notice-list-page {
    grid-template-columns: 1fr;
    max-width: 980px;
}

.notice-list-page article {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
}

.homework-page {
    background: #ffffff;
}

.homework-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.homework-card {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 6px solid var(--green);
    border-radius: 8px;
    box-shadow: 0 16px 46px rgba(16, 33, 63, 0.07);
}

.homework-card span {
    width: fit-content;
    padding: 6px 10px;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.homework-card h3 {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.homework-card strong {
    color: var(--orange-deep);
}

.homework-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.admission {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.admission-copy ol {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding-left: 22px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.enquiry-form {
    display: grid;
    gap: 15px;
    padding: 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 6px solid var(--orange);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.enquiry-form h3 {
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.enquiry-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.enquiry-form input,
.enquiry-form select,
.admin-form input,
.admin-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fbfcff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--green);
    outline: 3px solid rgba(28, 155, 99, 0.13);
}

.form-success {
    padding: 12px 14px;
    color: #145235;
    background: var(--green-soft);
    border: 1px solid rgba(28, 155, 99, 0.22);
    border-radius: 8px;
    font-weight: 800;
}

.form-error {
    padding: 12px 14px;
    color: #8b1e11;
    background: #fff0e9;
    border: 1px solid rgba(217, 85, 19, 0.22);
    border-radius: 8px;
    font-weight: 800;
}

.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-weight: 900;
}

.contact-grid strong {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.site-footer {
    justify-content: space-between;
    padding: 24px clamp(18px, 4vw, 64px);
    color: rgba(255, 255, 255, 0.82);
    background: var(--ink);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--yellow);
    font-weight: 900;
}

.admin-shell {
    min-height: 100vh;
    padding: clamp(20px, 4vw, 52px);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 243, 106, 0.8), transparent 24rem),
        linear-gradient(180deg, #fffef0, #f5fbf5);
}

.admin-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 38px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-top,
.admin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
    padding: 12px;
    background: #fbfcff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-nav a {
    padding: 10px 12px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
    color: var(--ink);
    background: var(--yellow-soft);
    outline: none;
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-module {
    display: grid;
    gap: 10px;
    padding: 24px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 6px solid var(--orange);
    border-radius: 8px;
    box-shadow: 0 16px 46px rgba(16, 33, 63, 0.07);
}

.admin-module span {
    color: var(--green);
    font-weight: 900;
}

.admin-module h2 {
    font-size: 1.45rem;
}

.admin-module p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.admin-top h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw, 4rem);
}

.admin-login {
    max-width: 440px;
    margin-top: 28px;
}

.admin-help {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.admin-form section {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.admin-form h2 {
    font-size: 1.55rem;
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-form textarea {
    resize: vertical;
}

.admin-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.35fr) 1fr;
    gap: 14px;
}

.gallery-admin-row {
    grid-template-columns: 0.7fr 0.9fr 1.1fr;
}

.homework-admin-row {
    grid-template-columns: 0.7fr 0.7fr 0.55fr 1.4fr;
}

@media (max-width: 980px) {
    .hero,
    .split,
    .admission,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .stats,
    .program-grid,
    .facility-grid,
    .gallery-grid,
    .homework-grid,
    .admin-module-grid,
    .notice-list,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-row,
    .gallery-admin-row,
    .homework-admin-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 12px 16px;
    }

    .brand small {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 79px 14px auto;
        display: none;
        padding: 12px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    body.menu-open .main-nav {
        display: grid;
    }

    .main-nav a {
        border-radius: 8px;
    }

    .hero::before {
        inset: 10px;
        border-radius: 16px;
    }

    .hero,
    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stats {
        margin-left: 16px;
        margin-right: 16px;
        grid-template-columns: 1fr;
    }

    .program-grid,
    .facility-grid,
    .gallery-grid,
    .homework-grid,
    .admin-module-grid,
    .notice-list,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .notice-list-page article {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
