/* =========================================================
   modern.css  -  modern, mobile-friendly look
   Load AFTER index.css, pages.css and brand.css.
   Palette comes from the school building (navy, blue, cream, gold).
========================================================= */

:root {
    --navy: #0B2955;
    --blue: #1B4085;
    --gold: #E3B93C;
    --gold-dark: #CFA52A;
    --cream: #F4E9B8;
    --cream-light: #FBF6DD;
    --ink: #1d2433;
    --muted: #5d6678;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(11, 41, 85, 0.10);
    --shadow-hover: 0 14px 36px rgba(11, 41, 85, 0.18);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Noto Sans Devanagari", "Mukta", "Nirmala UI", "Mangal", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}


/* ================= HEADER ================= */

.header {
    padding: 12px 5%;
    border-bottom: none;
}

.logo-area {
    gap: 14px;
}

.logo-area img {
    width: 64px;
    height: 64px;
}

.school-name h1 {
    font-size: clamp(18px, 3.4vw, 30px);
    line-height: 1.25;
    color: var(--blue);
}

.school-name p {
    font-size: clamp(12px, 2vw, 16px);
    color: var(--muted);
    letter-spacing: 0.3px;
}


/* ================= LOGO LINK (click = home page) ================= */

.logo-area {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
}

.logo-area img {
    transition: transform 0.25s ease;
}

.logo-area:hover img {
    transform: scale(1.06);
}

.logo-area:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}


/* ================= NAVIGATION ================= */

.navbar {
    background: linear-gradient(90deg, var(--navy), var(--blue));
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 6px 18px rgba(11, 41, 85, 0.25);
}

.navbar.navbar-scrolled {
    box-shadow: 0 10px 26px rgba(11, 41, 85, 0.35);
}

.nav-container {
    max-width: 1280px;
}

.nav-container a {
    font-weight: 600;
    border-radius: 10px;
}

.nav-container a:hover {
    transform: none;
    color: var(--navy);
}

.nav-toggle {
    display: none;
}

@media (max-width: 1000px) {

    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 12px;

        width: 100%;
        padding: 13px 18px;

        background: transparent;
        border: 0;
        color: #fff;

        font: inherit;
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
    }

    .nav-toggle .bars,
    .nav-toggle .bars::before,
    .nav-toggle .bars::after {
        display: block;
        position: relative;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: 0.25s;
    }

    .nav-toggle .bars::before,
    .nav-toggle .bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle .bars::before { top: -7px; }
    .nav-toggle .bars::after { top: 7px; }

    .navbar.open .nav-toggle .bars { background: transparent; }
    .navbar.open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
    .navbar.open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

    .nav-container {
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;

        max-height: calc(100vh - 150px);
        overflow-y: auto;
        padding: 2px 12px 14px;
    }

    .navbar.open .nav-container {
        display: flex !important;
    }

    .nav-container a {
        flex-shrink: 0;
        padding: 11px 14px;
        font-size: 17px;
    }

    .nav-container a::after {
        display: none;
    }
}


/* ================= HERO ================= */

.hero {
    height: auto;
    min-height: clamp(460px, 76vh, 700px);
    padding: 60px 5% 96px;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(11, 41, 85, 0.55) 0%, rgba(11, 41, 85, 0.80) 100%);
}

.hero-content {
    max-width: 900px;
    padding: 0;
}

.hero-motto {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 18px;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);

    font-size: clamp(12px, 2.5vw, 15px);
    letter-spacing: 0.6px;
}

.hero-content h2 {
    font-size: clamp(28px, 5.4vw, 56px);
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.hero-content h2 span {
    color: var(--gold);
}

.hero-content p.hero-sub {
    max-width: 680px;
    margin: 0 auto 30px;
    font-size: clamp(15px, 2.4vw, 20px);
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-button {
    display: inline-block;
    padding: 14px 30px;

    border: 2px solid var(--gold);
    border-radius: 50px;
    background: var(--gold);
    color: var(--navy);

    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    transition: 0.25s;
}

.hero-button:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-3px);
}

.hero-button.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    box-shadow: none;
}

.hero-button.ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}


/* ================= QUICK FACTS ================= */

.facts {
    position: relative;
    z-index: 6;
    max-width: 1180px;
    margin: -52px auto 0;
    padding: 0 5%;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fact {
    padding: 18px 12px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    border-bottom: 4px solid var(--gold);
    box-shadow: var(--shadow);
}

.fact-ico {
    display: block;
    font-size: 28px;
    line-height: 1.3;
}

.fact b {
    display: block;
    color: var(--navy);
    font-size: clamp(17px, 2.4vw, 22px);
    line-height: 1.3;
}

.fact small {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 760px) {
    .facts { margin-top: -36px; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}


/* ================= QUICK LINKS ================= */

.quick-links {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 5% 6px;
}

.ql-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ql {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;

    padding: 20px 10px;
    text-align: center;

    color: var(--navy);
    background: linear-gradient(180deg, #fff, var(--cream-light));
    border: 1px solid #EFE7C2;
    border-radius: var(--radius);
    transition: 0.25s;
}

.ql:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.ql-ico {
    font-size: 34px;
    line-height: 1.25;
}

.ql b {
    font-size: 17px;
}

.ql small {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .ql-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ================= SECTIONS ================= */

.section,
.why-section,
.contact-section {
    padding: 64px 5%;
}

.section-title {
    margin-bottom: 34px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;

    color: var(--navy);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.35;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;

    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--gold);
    transform: translateX(-50%);
}

.section-title p {
    margin-top: 6px;
    color: var(--muted);
}

.why-section {
    background: var(--cream-light);
}

.loading {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    color: var(--muted);
}


/* ================= CARDS ================= */

.notice-container,
.event-container,
.result-container {
    max-width: 1180px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.features {
    max-width: 1180px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.contact-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.notice-card {
    padding: 24px;
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.notice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.notice-date {
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--cream);
    color: var(--navy);
    font-weight: 600;
}

.event-card {
    align-items: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.event-date {
    min-width: 74px;
    height: 84px;
    border-radius: 14px;
    background: linear-gradient(160deg, var(--navy), var(--blue));
}

.event-date strong {
    color: var(--gold);
}

.feature-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-box {
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}


/* ================= ABOUT ================= */

.about-section {
    padding: 64px 5%;
    background: linear-gradient(180deg, var(--cream-light), #fff);
}

.about-image {
    position: relative;
}

.about-image img {
    height: clamp(260px, 40vw, 420px);
    border-radius: 22px;
    box-shadow: var(--shadow-hover);
}

.about-badge {
    position: absolute;
    right: -10px;
    bottom: 22px;

    padding: 10px 18px;
    border-radius: 14px;
    background: var(--gold);
    color: var(--navy);

    font-weight: 700;
    box-shadow: var(--shadow);
}

.read-more {
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 700;
}


/* ================= CALL TO ACTION ================= */

.cta-band {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    max-width: 1180px;
    margin: 20px auto 70px;
    padding: 34px clamp(20px, 5vw, 50px);

    color: #fff;
    background: linear-gradient(120deg, var(--navy), var(--blue));
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
}

.cta-band::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;

    width: 220px;
    height: 220px;
    border: 5px solid rgba(227, 185, 60, 0.45);
    border-radius: 50%;
    pointer-events: none;
}

.cta-band h2 {
    margin-bottom: 4px;
    font-size: clamp(20px, 3.4vw, 28px);
    line-height: 1.4;
}

.cta-band p {
    opacity: 0.92;
}

.cta-band .hero-button {
    position: relative;
    z-index: 1;
}

@media (max-width: 1240px) {
    .cta-band { margin-left: 5%; margin-right: 5%; }
}


/* ================= FOOTER ================= */

.footer {
    background: linear-gradient(180deg, #0B2955, #071c3d);
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    gap: 36px;
}


/* ================= ANIMATION ================= */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ================= SMALL SCREENS ================= */

@media (max-width: 600px) {

    .header { padding: 10px 4%; }
    .logo-area img { width: 52px; height: 52px; }

    .hero { padding: 44px 5% 84px; }
    .hero-button { padding: 13px 24px; font-size: 16px; }

    .section,
    .why-section,
    .contact-section,
    .about-section {
        padding: 48px 5%;
    }

    .quick-links { padding-top: 48px; }

    .notice-card,
    .event-card {
        padding: 18px;
    }

    .cta-band { margin-bottom: 48px; padding: 26px 20px; }
    .cta-band .hero-button { width: 100%; text-align: center; }
}


/* =========================================================
   MORE LIVELY: moving notice strip, animated hero, colourful icons
========================================================= */

/* ---------- moving strip of newest notices ---------- */
.ticker {
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    border-bottom: 3px solid var(--gold);
}

.ticker-label {
    position: relative;
    z-index: 2;
    flex-shrink: 0;

    padding: 8px 18px;
    background: var(--gold);
    color: var(--navy);

    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ticker-link {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #fff;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;

    font-size: 15px;
    line-height: 38px;
    white-space: nowrap;

    animation: tick 30s linear infinite;
}

.ticker-link:hover .ticker-text {
    animation-play-state: paused;
}

@keyframes tick {
    to { transform: translateX(-100%); }
}

/* ---------- hero: slow zoom, soft shapes, text rising in ---------- */
.hero > img {
    animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.09); }
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: -130px;
    bottom: -130px;

    width: 380px;
    height: 380px;
    border: 6px solid rgba(227, 185, 60, 0.35);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -100px;
    right: -90px;

    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 185, 60, 0.32), transparent 70%);
}

.hero-motto,
.hero-content h2,
.hero-content p.hero-sub,
.hero-actions {
    animation: rise 0.9s ease both;
}

.hero-content h2 { animation-delay: 0.12s; }
.hero-content p.hero-sub { animation-delay: 0.24s; }
.hero-actions { animation-delay: 0.36s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* ---------- quick links: coloured round icons ---------- */
.ql-ico {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    margin-bottom: 6px;

    border-radius: 50%;
    background: var(--bubble, #E8EEF9);

    font-size: 30px;
    transition: 0.25s;
}

.ql:hover .ql-ico {
    transform: scale(1.1) rotate(-4deg);
}

.ql:nth-child(1) .ql-ico { --bubble: #E3F0FF; }
.ql:nth-child(2) .ql-ico { --bubble: #E6F6EA; }
.ql:nth-child(3) .ql-ico { --bubble: #FFF0E0; }
.ql:nth-child(4) .ql-ico { --bubble: #F1E8FA; }
.ql:nth-child(5) .ql-ico { --bubble: #E0F4F2; }
.ql:nth-child(6) .ql-ico { --bubble: #FDE8E8; }
.ql:nth-child(7) .ql-ico { --bubble: #EEE7E3; }
.ql:nth-child(8) .ql-ico { --bubble: #E8EBF5; }

.fact {
    transition: 0.25s;
}

.fact:hover {
    transform: translateY(-5px);
}

/* ---------- section backgrounds ---------- */
.tint {
    background: var(--cream-light);
}

.dots {
    background-image: radial-gradient(rgba(11, 41, 85, 0.07) 1.6px, transparent 1.6px);
    background-size: 22px 22px;
}

.why-section {
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;

    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 64, 133, 0.12), transparent 70%);
    pointer-events: none;
}

/* ---------- feature cards ---------- */
.features {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    position: relative;
    padding: 30px 22px;
    border-top: 4px solid var(--gold);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;
    margin: 0 auto 16px;

    border-radius: 50%;
    background: linear-gradient(135deg, var(--cream), #fff);
    box-shadow: inset 0 0 0 3px var(--gold);

    font-size: 36px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-icon {
    transition: transform 0.25s;
}

@media (max-width: 900px) {
    .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .features { grid-template-columns: 1fr; }
    .ticker-label { padding: 8px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero > img,
    .hero-motto,
    .hero-content h2,
    .hero-content p.hero-sub,
    .hero-actions {
        animation: none;
    }

    .ticker-text {
        padding-left: 14px;
        white-space: normal;
        line-height: 1.5;
        animation: none;
    }
}


/* =========================================================
   RESULTS PAGE: roll-number lookup and result card
========================================================= */

.result-page {
    background: linear-gradient(180deg, var(--cream-light), #fff);
}

/* ---------- three steps ---------- */
.rs-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;

    max-width: 900px;
    margin: 0 auto 34px;
    padding-top: 22px;
}

.rs-step {
    position: relative;
    padding: 32px 14px 18px;
    text-align: center;

    background: #fff;
    border-bottom: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rs-num {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    box-shadow: 0 6px 14px rgba(11, 41, 85, 0.3);

    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.rs-step b {
    display: block;
    color: var(--navy);
    font-size: 17px;
}

.rs-step small {
    color: var(--muted);
}

@media (max-width: 700px) {
    .rs-steps { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- search card ---------- */
.lookup-card {
    max-width: 560px;
    margin: 0 auto 30px;
    padding: 0 28px 28px;
    overflow: hidden;

    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.lookup-top {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 -28px 18px;
    padding: 18px 28px;

    background: linear-gradient(120deg, var(--navy), var(--blue));
    color: #fff;
}

.lookup-top span { font-size: 30px; }
.lookup-top h3 { font-size: 20px; }
.lookup-top small { opacity: 0.85; }

.lookup-card label {
    display: block;
    margin: 14px 0 6px;
    color: var(--navy);
    font-weight: 700;
}

.lookup-card select,
.lookup-card input {
    width: 100%;
    padding: 13px 14px;

    border: 2px solid #E3D9A4;
    border-radius: 12px;
    background: #fff;

    font: inherit;
    font-size: 17px;
}

.lookup-card select:focus,
.lookup-card input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(27, 64, 133, 0.15);
}

.lookup-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;

    border: 0;
    border-radius: 50px;
    background: var(--gold);
    box-shadow: 0 8px 20px rgba(227, 185, 60, 0.45);

    color: var(--navy);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}

.lookup-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.lookup-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- nothing published yet ---------- */
.rs-none {
    max-width: 560px;
    margin: 10px auto;
    padding: 40px 24px;
    text-align: center;

    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.rs-none > span { font-size: 54px; }
.rs-none h3 { margin: 6px 0; color: var(--navy); }
.rs-none p { margin-bottom: 16px; color: var(--muted); }

/* ---------- the result card ---------- */
.rc {
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;

    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow-hover);
    animation: rise 0.6s ease both;
}

.rc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 20px 26px;
    background: linear-gradient(120deg, var(--navy), var(--blue));
    border-bottom: 4px solid var(--gold);
    color: #fff;
}

.rc-head b { display: block; font-size: 19px; }
.rc-head small { opacity: 0.85; }

.rc-exam {
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.rc-body { padding: 26px; }

.rc-student {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.rc-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 76px;
    height: 76px;

    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    box-shadow: 0 0 0 4px var(--gold);

    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.rc-student h3 { color: var(--navy); font-size: 24px; line-height: 1.3; }
.rc-student p { color: var(--muted); }

.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.rc-chips span {
    padding: 2px 12px;
    border-radius: 20px;
    background: var(--cream);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.rc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.rc-status {
    flex: 2;
    min-width: 200px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 16px;
    border-radius: 16px;
    background: #E8EEF9;
    color: var(--navy);

    font-size: 22px;
    font-weight: 700;
}

.rc-status.pass { background: #E3F6E6; color: #1B5E20; }
.rc-status.fail { background: #FDE8E8; color: #B71C1C; }

.rc-box {
    flex: 1;
    min-width: 110px;
    padding: 12px;
    text-align: center;

    background: var(--cream-light);
    border: 2px solid var(--cream);
    border-radius: 16px;
}

.rc-box small { display: block; color: var(--muted); }
.rc-box b { color: var(--navy); font-size: 28px; line-height: 1.2; }

.rc-body h4 { margin-bottom: 12px; color: var(--navy); font-size: 18px; }

.rc-subjects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.rc-sub {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 12px 14px;
    background: #F6F8FC;
    border-left: 5px solid #9AA5B8;
    border-radius: 14px;
}

.rc-sub span { color: var(--muted); font-size: 14px; }
.rc-sub b { color: var(--navy); font-size: 22px; }

.rc-sub.g-top { background: #E3F6E6; border-left-color: #2E7D32; }
.rc-sub.g-top b { color: #1B5E20; }
.rc-sub.g-good { background: #E3F0FF; border-left-color: #1B4085; }
.rc-sub.g-mid { background: #FFF4D6; border-left-color: #E3B93C; }
.rc-sub.g-mid b { color: #7A5A00; }
.rc-sub.g-low { background: #FDE8E8; border-left-color: #C62828; }
.rc-sub.g-low b { color: #B71C1C; }

.rc-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 16px 26px;
    background: var(--cream-light);
    border-top: 1px solid var(--cream);
}

.rc-foot p { color: var(--muted); font-size: 14px; }

.rc-btn {
    padding: 10px 20px;
    border: 2px solid var(--blue);
    border-radius: 50px;
    background: var(--blue);
    color: #fff;

    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rc-btn:hover { background: var(--navy); border-color: var(--navy); }
.rc-btn.ghost { background: #fff; color: var(--blue); }
.rc-btn.ghost:hover { background: var(--cream-light); color: var(--navy); }

@media (max-width: 600px) {
    .rc-body { padding: 18px; }
    .rc-head { padding: 16px 18px; }
    .rc-student { flex-direction: column; text-align: center; }
    .rc-chips { justify-content: center; }
    .rc-foot { flex-direction: column; text-align: center; padding: 16px 18px; }
    .lookup-card { padding: 0 18px 22px; }
    .lookup-top { margin: 0 -18px 14px; padding: 16px 18px; }
}

@media print {
    .lookup-card,
    .rs-steps,
    .rc-foot div,
    #lookup-none {
        display: none !important;
    }

    .rc {
        box-shadow: none;
        border: 1px solid #888;
        animation: none;
    }
}


/* =========================================================
   ABOUT PAGE: menu, timeline, fact cards, class path, activities
========================================================= */

section[id] {
    scroll-margin-top: 70px;
}

/* ---------- menu of the sections on this page ---------- */
.page-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;

    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 5%;

    scrollbar-width: none;
}

.page-menu::-webkit-scrollbar { display: none; }

.page-menu a {
    flex-shrink: 0;
    padding: 7px 16px;

    background: #fff;
    border: 1px solid #EFE7C2;
    border-radius: 30px;
    color: var(--navy);

    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

.page-menu a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.motto {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 16px;

    background: var(--cream);
    border-radius: 30px;
    color: var(--navy) !important;

    font-weight: 700;
}

/* ---------- timeline ---------- */
.timeline {
    position: relative;
    list-style: none;

    max-width: 820px;
    margin: 0 auto;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;

    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold), var(--blue));
}

.tl-item {
    position: relative;
    margin-bottom: 24px;
}

.tl-dot {
    position: absolute;
    top: 18px;
    left: -34px;

    width: 22px;
    height: 22px;

    background: #fff;
    border: 5px solid var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #fff;
}

.tl-dot.now {
    border-color: var(--gold);
    background: var(--gold);
}

.tl-card {
    padding: 20px 24px;

    background: #fff;
    border-radius: var(--radius);
    border-left: 5px solid var(--gold);
    box-shadow: var(--shadow);
}

.tl-year {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 14px;

    background: linear-gradient(90deg, var(--navy), var(--blue));
    border-radius: 20px;
    color: #fff;

    font-size: 14px;
    font-weight: 700;
}

.tl-card h3 {
    margin-bottom: 4px;
    color: var(--navy);
}

.tl-card p {
    color: var(--muted);
}

/* ---------- "at a glance" cards ---------- */
.glance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;

    max-width: 1100px;
    margin: 0 auto;
}

.glance-card {
    padding: 22px 20px;
    text-align: center;

    background: #fff;
    border-bottom: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.glance-ico {
    display: block;
    font-size: 34px;
    line-height: 1.3;
}

.glance-card small {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.glance-card b {
    display: block;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.4;
}

.glance-card em {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.glance-card em a {
    color: var(--blue);
    font-weight: 700;
}

/* ---------- classes ---------- */
.class-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;

    max-width: 1000px;
    margin: 0 auto;
}

.cp-step {
    padding: 10px 18px;

    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 30px;
    box-shadow: var(--shadow);
    color: var(--navy);

    font-weight: 700;
}

.cp-step.start {
    background: var(--cream);
}

.cp-step.end {
    background: linear-gradient(90deg, var(--navy), var(--blue));
    border-color: var(--navy);
    color: #fff;
}

.cp-arrow {
    color: var(--gold-dark);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

/* ---------- yearly activities ---------- */
.act-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;

    max-width: 1100px;
    margin: 0 auto;
}

.act-card {
    padding: 24px 22px;

    background: #fff;
    border-top: 5px solid var(--c, var(--gold));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.act-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.act-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    margin-bottom: 8px;

    background: var(--cream-light);
    border-radius: 50%;
    font-size: 28px;
}

.act-card h3 {
    margin-bottom: 4px;
    color: var(--navy);
}

.act-card p {
    color: var(--muted);
}

@media (max-width: 600px) {
    .timeline { padding-left: 30px; }
    .tl-dot { left: -30px; }
    .tl-card { padding: 16px 18px; }
    .cp-arrow { display: none; }
    .cp-step { padding: 8px 14px; }
}


/* =========================================================
   ABOUT PAGE: structures, supporters and thanks
========================================================= */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    max-width: 1000px;
    margin: 0 auto 26px;
}

.chip {
    padding: 8px 18px;

    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 30px;
    box-shadow: var(--shadow);
    color: var(--navy);

    font-weight: 700;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;

    max-width: 1100px;
    margin: 0 auto 26px;
}

.support-card {
    padding: 18px 20px;

    background: #fff;
    border-left: 5px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.support-card b {
    display: block;
    color: var(--navy);
    line-height: 1.45;
}

.support-card span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.thanks-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 22px 26px;
    text-align: center;

    background: linear-gradient(120deg, var(--navy), var(--blue));
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    color: #fff;
}

.thanks-box p + p {
    margin-top: 10px;
}

.thanks-box b {
    color: var(--gold);
}


/* result card: marks shown small under the grade ("A+ (100)") */
.rc-sub i {
    font-style: normal;
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   HOME: photo carousel
========================================================= */

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    opacity: 0;
    transition: opacity 1.1s ease;
}

.hero-slide.active {
    opacity: 1;
    animation: kenburns 14s ease-in-out both;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;
    padding: 0 0 4px;

    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    color: #fff;

    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.45);
}

.hero-nav.prev { left: 18px; }
.hero-nav.next { right: 18px; }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 72px;
    z-index: 4;
    transform: translateX(-50%);

    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;

    border: 2px solid #fff;
    border-radius: 11px;
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dot.on {
    width: 30px;
    background: var(--gold);
    border-color: var(--gold);
}

.hero-cap {
    position: absolute;
    left: 5%;
    bottom: 68px;
    z-index: 4;

    max-width: 55%;
    padding: 6px 16px;

    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    color: #fff;

    font-size: 14px;
}

@media (max-width: 600px) {
    .hero-nav { width: 38px; height: 38px; font-size: 25px; }
    .hero-nav.prev { left: 8px; }
    .hero-nav.next { right: 8px; }
    .hero-dots { bottom: 64px; }
    .hero-cap { display: none !important; }
}


/* =========================================================
   LIKE / VIEWS / SHARE
========================================================= */

.eg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #E2DAB0;
}

.eg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 16px;

    border: 2px solid var(--blue);
    border-radius: 30px;
    background: #fff;
    color: var(--blue);

    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.eg-btn:hover {
    background: var(--cream-light);
}

.eg-btn.on {
    background: #FDE8EC;
    border-color: #E11D48;
    color: #E11D48;
}

.eg-ic {
    font-size: 16px;
}

.eg-views {
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}

.eg-line {
    display: flex;
    gap: 14px;
    margin: 6px 0 2px;
    color: var(--muted);
    font-size: 13.5px;
}

.share-pop {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 40;

    display: flex;
    flex-direction: column;
    min-width: 210px;
    padding: 6px;

    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(11, 41, 85, 0.28);
}

.share-pop a,
.share-pop button {
    padding: 10px 14px;

    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy);

    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.share-pop a:hover,
.share-pop button:hover {
    background: var(--cream-light);
}

.notice-item.flash {
    animation: flash 2.4s ease 1;
}

@keyframes flash {
    0%, 60% { box-shadow: 0 0 0 4px var(--gold), 0 10px 30px rgba(227, 185, 60, 0.5); }
    100% { box-shadow: none; }
}


/* =========================================================
   HOME: colourful upcoming events
========================================================= */

.events-colorful {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF1D0 0%, #FFE4F1 36%, #E2F0FF 68%, #E3F7E9 100%);
}

.events-colorful::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -60px;

    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.22), transparent 70%);
    pointer-events: none;
}

.events-colorful::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;

    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.24), transparent 70%);
    pointer-events: none;
}

.events-colorful > * {
    position: relative;
    z-index: 1;
}

.events-colorful .section-title h2 {
    background: linear-gradient(90deg, #C62828, #6A1B9A 50%, #1B4085);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.event-card.cc {
    background: linear-gradient(135deg, var(--cs) 0%, #fff 72%);
    border-left: 7px solid var(--c);
    box-shadow: 0 10px 26px var(--cs);
    transition: 0.25s;
}

.event-card.cc:hover {
    transform: translateY(-6px);
}

.event-card.cc .event-date {
    background: linear-gradient(160deg, var(--c), var(--cd));
    box-shadow: 0 6px 14px var(--cs);
}

.event-card.cc .event-date strong {
    color: #fff;
}

.event-card.cc .event-date span {
    color: rgba(255, 255, 255, 0.92);
}

.event-card.cc .event-info h3 {
    color: var(--cd);
}

.event-card.cc .cal-tag {
    padding: 2px 12px;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
}


/* =========================================================
   HOME: events right under the carousel, social buttons, logo on star cards
========================================================= */

/* the facts row overlaps the carousel only when there is no events block between them */
.home-events-on .facts {
    margin-top: 34px;
}

.social {
    margin-top: 16px;
}

.social-title {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-weight: 700;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.soc {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: 0.2s;
}

.soc svg {
    width: 24px;
    height: 24px;
}

.soc:hover {
    transform: translateY(-4px) scale(1.08);
}

.soc-facebook { background: #1877F2; }
.soc-youtube { background: #FF0000; }
.soc-instagram { background: linear-gradient(45deg, #F9CE34, #EE2A7B 55%, #6228D7); }
.soc-tiktok { background: #111; border: 1px solid #444; }
.soc-whatsapp { background: #25D366; }

.teacher-photo.star-logo {
    padding: 12px;
    background: #fff;
    object-fit: contain;
}
