:root {
    --orange: #ff6b2c;
    --coral: #ff8a4c;
    --teal: #157a86;
    --deep: #0b3d4a;
    --sky: #3ec6d8;
    --gold: #f4c430;
    --cream: #fff7ef;
    --paper: #ffffff;
    --ink: #1c2b33;
    --muted: #5b6b73;
    --shadow: 0 18px 40px rgba(11, 61, 74, .12);
    --radius: 22px;
    --font: "Outfit", system-ui, sans-serif;
    --display: "Fredoka", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(900px 400px at 0% 0%, #ffe8d6 0%, transparent 55%),
        radial-gradient(700px 380px at 100% 10%, #d9f6fb 0%, transparent 50%),
        var(--cream);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.topbar {
    background: linear-gradient(90deg, #123844, #157a86 55%, #ff6b2c);
    color: #fff;
    font-size: .92rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; }
.ticker { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.badge-open {
    background: var(--gold);
    color: #5a3b00;
    font-weight: 700;
    padding: .2rem .7rem;
    border-radius: 999px;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.topbar-phone { color: #fff; font-weight: 600; }
.topbar-phones { display: flex; gap: .8rem; flex-wrap: wrap; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(21,122,134,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--deep); }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.brand small { display: block; color: var(--muted); font-size: .75rem; }
.nav-toggle { display: none; border: 0; background: var(--deep); color: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; }
.main-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.main-nav a {
    color: var(--deep);
    font-weight: 600;
    font-size: .92rem;
    padding: .45rem .7rem;
    border-radius: 999px;
}
.main-nav a.active, .main-nav a:hover { background: #fff1e6; color: var(--orange); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: .75rem 1.25rem;
}
.btn-enquiry, .btn-primary {
    background: linear-gradient(90deg, var(--orange), #ff9a3c);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255,107,44,.28);
}
.btn-ghost {
    background: #fff;
    color: var(--deep);
    border: 2px solid rgba(21,122,134,.2);
}
.btn-primary:hover, .btn-enquiry:hover { filter: brightness(1.05); }

.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.hero video, .hero .hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,61,74,.55), rgba(255,107,44,.45) 90%);
}
.hero-content { position: relative; z-index: 1; padding: 4rem 1rem; max-width: 880px; }
.eyebrow {
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    color: var(--orange);
    margin: 0 0 .4rem;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin: 0 0 .6rem;
}
.hero p { font-size: 1.15rem; margin: 0 0 1.4rem; }
.hero-actions { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.hero-logo {
    width: 120px; height: 120px; margin: 0 auto 1rem; background: #fff; border-radius: 50%;
    padding: .35rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); object-fit: contain;
}
.hero .lb-link { display: block; width: 120px; margin: 0 auto 1rem; }

.section { padding: 4.5rem 0; }
.section h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 .5rem;
    color: var(--deep);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .9rem;
    margin-top: 2rem;
}
.pill {
    background: #fff;
    border-radius: 18px;
    padding: 1rem .8rem;
    text-align: center;
    box-shadow: var(--shadow);
    font-weight: 700;
    color: var(--deep);
}
.pill span { display: block; font-size: 1.6rem; margin-bottom: .35rem; }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}
.photo-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 6px solid #fff;
    display: block;
    width: 100%;
}
.photo-frame .lb-link {
    display: block;
    width: 100%;
}
.photo-frame img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.quote {
    background: linear-gradient(135deg, #157a86, #0b3d4a);
    color: #fff;
    border-radius: 28px;
    padding: 2rem;
}
.quote p { font-size: 1.2rem; font-style: italic; }

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.staff-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.staff-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--orange), var(--gold), var(--sky));
}
.staff-card h3 { margin: .4rem 0 0; font-family: var(--display); }
.staff-card .post { color: var(--orange); font-weight: 700; }
.avatar {
    width: 54px; height: 54px; border-radius: 16px;
    display: grid; place-items: center;
    background: #ffe8d6; color: var(--orange); font-weight: 800;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .8rem;
}
.gallery a, .gallery figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}
.gallery img, .gallery .lb-thumb { width: 100%; height: 170px; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.06); }
.lb-link { display: block; cursor: zoom-in; }
.news-card .lb-link img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.staff-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.card > .lb-link img,
.card .side-thumb img { width: 90px; background: #fff; border-radius: 12px; }
.card .photo-frame,
.card .photo-frame .lb-link,
.card .photo-frame img {
    width: 100%;
}
.card .photo-frame img {
    height: auto;
    min-height: 260px;
    max-height: 380px;
    object-fit: cover;
}
.contact-campus {
    margin-top: 1rem;
}
.contact-campus img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}
.video-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.video-card video { width: 100%; height: 200px; object-fit: cover; background: #111; pointer-events: none; }
.video-thumb { position: relative; display: block; }
.play-badge {
    position: absolute; inset: auto 50% 50%; transform: translate(50%, 50%);
    z-index: 2; background: rgba(255,107,44,.92); color: #fff;
    font-weight: 800; padding: .45rem .9rem; border-radius: 999px; pointer-events: none;
}
.video-card h3 { margin: .8rem 1rem .2rem; font-size: 1.05rem; }
.video-card p { margin: 0 1rem 1rem; color: var(--muted); font-size: .92rem; }

.news-list { display: grid; gap: 1.2rem; }
.news-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.2rem;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.news-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.news-body { padding: 1.2rem 1.2rem 1.2rem 0; }
.news-body time { color: var(--orange); font-weight: 700; font-size: .85rem; }

.page-hero {
    padding: 3.2rem 0 2rem;
    background: linear-gradient(90deg, #fff1e6, #e7fbff);
    border-bottom: 1px solid rgba(21,122,134,.1);
}
.page-hero h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; color: var(--deep); }

.fees {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.fees th, .fees td { padding: .7rem .75rem; text-align: left; white-space: nowrap; }
.fees th { background: var(--deep); color: #fff; }
.fees tr:nth-child(even) { background: #fff7ef; }
.fees-scroll { overflow-x: auto; margin: .6rem 0 1.4rem; border-radius: 18px; box-shadow: var(--shadow); }
.fees-scroll .fees { box-shadow: none; min-width: 720px; }
.fees-scroll.wide .fees { min-width: 1100px; }
.fee-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 1.2rem; }
.fee-notes, .fee-change {
    background: #fff;
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}
.fee-change { background: #fff4e8; border-left: 4px solid var(--orange); }
.fee-change p { margin: .35rem 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enquiry-form, .contact-form { display: grid; gap: .85rem; }
label { font-weight: 600; display: grid; gap: .35rem; }
input, select, textarea {
    font: inherit;
    padding: .75rem .9rem;
    border-radius: 12px;
    border: 1.5px solid #d7e3e7;
    background: #fff;
}
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.site-footer {
    background: #0b3d4a;
    color: #e8f7fa;
    padding-top: 3rem;
    margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr .8fr; gap: 1.5rem; padding-bottom: 2rem; }
.footer-logo { width: 84px; background: #fff; border-radius: 50%; padding: .3rem; }
.site-footer a { color: #c9f3fb; display: block; margin: .25rem 0; }
.gold { color: var(--gold); font-weight: 700; }
.footer-peace img, .footer-peace .lb-link img { width: 90px; background: #fff; border-radius: 16px; padding: .4rem; min-height: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; font-size: .9rem; }

.float-actions {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    align-items: flex-end;
}
.float-enquiry, .float-wa {
    border: 0;
    border-radius: 999px;
    padding: .9rem 1.2rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}
.float-enquiry {
    background: linear-gradient(90deg, #ff6b2c, #f4c430);
    color: #1c2b33;
    box-shadow: 0 12px 24px rgba(255,107,44,.4);
}
.float-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 211, 102, .35);
}

.modal {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(11, 61, 74, .55);
    display: grid; place-items: center;
    padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-card {
    background: #fff;
    width: min(520px, 100%);
    border-radius: 24px;
    padding: 1.6rem;
    position: relative;
    max-height: 90vh;
    overflow: auto;
}
.modal-close {
    position: absolute; top: .6rem; right: .8rem;
    border: 0; background: transparent; font-size: 1.8rem; cursor: pointer;
}
.form-status { min-height: 1.2rem; font-weight: 600; }
.form-status.ok { color: #0a7a4a; }
.form-status.err { color: #c0392b; }

.principal-photo { min-height: 360px; }

.lightbox {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(6, 20, 26, .92);
    display: grid; place-items: center;
    padding: 3rem 4rem;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { max-width: min(1100px, 100%); text-align: center; }
.lightbox-stage img, .lightbox-stage video {
    max-width: 100%; max-height: 78vh; border-radius: 12px; margin: 0 auto;
}
.lightbox-caption { color: #fff; margin-top: .8rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; }
.lightbox-next { right: 1rem; top: 50%; }

@media (max-width: 980px) {
    .grid-2, .grid-3, .news-card, .contact-panel, .footer-grid { grid-template-columns: 1fr; }
    .news-body { padding: 1.2rem; }
    .nav-toggle { display: inline-grid; place-items: center; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .header-inner { position: relative; }
    .form-grid { grid-template-columns: 1fr; }
}
