@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
    --navy: #071B59;
    --navy-deep: #04123f;
    --yellow: #FFE000;
    --gold: #D6AD18;
    --white: #ffffff;
    --ink: #152044;
    --muted: #64708c;
    --pale: #f5f7fc;
    --line: #e5e9f2;
    --shadow: 0 18px 45px rgba(7, 27, 89, 0.13);

    /* Website Design Editor Settings */
    --gold-light: var(--yellow);
    --background: var(--white);
    --text: var(--ink);
    --heading-font: Montserrat, sans-serif;
    --body-font: Arial, sans-serif;
    --website-font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; font-size: var(--website-font-size, 16px); }
body {
    margin: 0;
    color: var(--text, var(--ink));
    background: var(--background, var(--white));
    font-family: var(--body-font, 'DM Sans', Arial, sans-serif);
    font-size: var(--website-font-size, 16px);
    line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; }

.top-bar {
    padding: 8px 20px;
    color: var(--navy);
    background: var(--gold-light, var(--yellow));
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}
.top-bar p { margin: 0; }

.header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(20px, 5vw, 76px);
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 8px 24px rgba(4, 18, 63, 0.16);
}
.school-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--gold-light, var(--yellow));
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 0.85rem;
    font-weight: 800;
}
.logo img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.logo span { position: relative; z-index: 0; }
.brand-text h1, .brand-text p { margin: 0; line-height: 1.25; }
.brand-text h1 {
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.brand-text p { margin-top: 3px; color: var(--gold-light, var(--yellow)); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.navigation { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 32px); }
.navigation a { padding: 9px 0; color: rgba(255,255,255,.87); font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.navigation a:hover, .navigation a:focus-visible, .navigation a.active { color: var(--gold-light, var(--yellow)); }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 7px 11px; color: var(--white); background: transparent; font-size: 1.25rem; cursor: pointer; }

.hero {
    display: grid;
    min-height: 560px;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    padding: 72px clamp(24px, 8vw, 120px);
    color: var(--white);
    background: radial-gradient(circle at 14% 10%, #18377e 0, transparent 37%), linear-gradient(120deg, var(--navy-deep), var(--navy));
}
.hero-content { max-width: 620px; }
.welcome-label { display: inline-block; margin-bottom: 18px; color: var(--gold-light, var(--yellow)); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.hero h2 {
    margin: 0;
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.045em;
}
.hero h2 span { display: block; margin-top: 9px; color: var(--gold-light, var(--yellow)); }
.hero-content > p { max-width: 540px; margin: 22px 0 28px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 7px; padding: 10px 18px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { color: var(--navy); background: var(--gold-light, var(--yellow)); }
.btn-yellow:hover { background: #ffeb57; }
.btn-outline { border-color: rgba(255,255,255,.68); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.hero-photo { position: relative; max-width: 560px; justify-self: end; }
.hero-photo::before { position: absolute; z-index: 0; inset: 16px -16px -16px 16px; border: 3px solid var(--gold); border-radius: 16px; content: ''; }
.hero-photo img { position: relative; z-index: 1; display: block; width: 100%; max-height: 410px; border: 5px solid rgba(255,255,255,.9); border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); }

.section { padding: 82px clamp(22px, 8vw, 120px); }
.section-heading { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-heading > span { color: #8a6d00; font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.section-heading h2 {
    margin: 7px 0 12px;
    color: var(--navy);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.03em;
}
.heading-line { width: 62px; height: 4px; margin: 0 auto; border-radius: 9px; background: var(--gold); }
.about { background: var(--white); }
.about-content { display: grid; max-width: 1040px; grid-template-columns: 1.4fr .8fr; align-items: center; gap: clamp(30px, 7vw, 90px); margin: 0 auto; }
.about-copy h3, .about-highlight h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
}
.about-copy p { color: var(--muted); }
.text-link { display: inline-block; margin-top: 8px; color: var(--navy); font-weight: 800; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.about-highlight { padding: 30px; border-left: 5px solid var(--gold-light, var(--yellow)); border-radius: 8px; background: var(--pale); }
.about-highlight p { margin-bottom: 0; color: var(--muted); }
.highlight-symbol { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 13px; border-radius: 50%; color: var(--navy); background: var(--gold-light, var(--yellow)); font-size: 1.3rem; }
.school-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.school-fact { display: flex; flex-direction: column; gap: 3px; border-left: 3px solid var(--gold); padding: 8px 12px; background: var(--pale); }
.school-fact span { color: #756019; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.school-fact strong { color: var(--navy); font-size: .95rem; }
.phase-grid { display: grid; max-width: 1100px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 44px auto 0; }
.phase-card { padding: 27px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; background: var(--white); box-shadow: 0 8px 24px rgba(7,27,89,.05); }
.phase-card-highlight { border-top-color: var(--gold-light, var(--yellow)); background: linear-gradient(150deg, #fffdf0, var(--white) 55%); }
.phase-label { color: #756019; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.phase-card h3 {
    margin: 7px 0 8px;
    color: var(--navy);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
}
.phase-intro { margin: 0 0 14px; color: var(--muted); }
.subject-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.subject-list li { position: relative; border-radius: 6px; padding: 8px 10px 8px 29px; color: var(--ink); background: var(--pale); font-size: .92rem; }
.subject-list li::before { position: absolute; left: 11px; color: #8a6d00; font-weight: 800; content: '✓'; }

.academics { background: var(--pale); }
.cards { display: grid; max-width: 1100px; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 auto; }
.info-card { padding: 27px 25px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; background: var(--white); box-shadow: 0 8px 24px rgba(7,27,89,.05); }
.card-icon { margin-bottom: 13px; font-size: 1.8rem; }
.info-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1.08rem;
    font-weight: 700;
}
.info-card p { margin: 0; color: var(--muted); }

.news { background: var(--white); }
.news-grid { display: grid; max-width: 1000px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 auto; }
.news-card { padding: 27px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; background: var(--white); box-shadow: 0 9px 26px rgba(7,27,89,.07); }
.news-card-featured { border-top-color: var(--gold-light, var(--yellow)); background: linear-gradient(145deg, #fffdf0, var(--white) 65%); }
.news-card-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.news-label { display: inline-block; border-radius: 20px; padding: 5px 11px; color: var(--navy); background: #fff2a3; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.news-label-blue { color: var(--white); background: var(--navy); }
.news-date { color: #756019; font-size: .85rem; font-weight: 800; }
.news-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}
.news-card p { margin: 0; color: var(--muted); }
.news-card .news-location { margin-top: 17px; border-top: 1px solid #eee8cf; padding-top: 12px; color: var(--navy); font-size: .9rem; font-weight: 700; }

.gallery { background: #f5f7fc; }
.gallery-message { max-width: 650px; margin: -15px auto 30px; color: var(--muted); text-align: center; }
.gallery-grid { display: grid; max-width: 1160px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 auto; }
.gallery-card { overflow: hidden; margin: 0; border: 1px solid #e1e6f0; border-radius: 10px; background: var(--white); box-shadow: 0 8px 22px rgba(7,27,89,.08); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(7,27,89,.15); }
.gallery-card img { display: block; width: 100%; height: 205px; object-fit: cover; background: #e8ecf4; }
.gallery-card figcaption { min-height: 58px; padding: 13px 14px; color: var(--navy); font-size: .91rem; font-weight: 700; line-height: 1.4; }

.contact { text-align: center; background: var(--white); }
.contact-intro { max-width: 680px; margin: -12px auto 32px; color: var(--muted); }
.contact-grid { display: grid; max-width: 1100px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 auto; text-align: left; }
.contact-card { min-height: 205px; padding: 23px 20px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; background: var(--white); box-shadow: 0 8px 24px rgba(7,27,89,.06); }
.contact-icon { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 13px; border-radius: 50%; color: var(--navy); background: var(--gold-light, var(--yellow)); font-size: 1.35rem; font-weight: 800; }
.facebook-icon { color: var(--white); background: #1877f2; font-family: Arial, sans-serif; font-size: 1.5rem; }
.contact-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1rem;
    font-weight: 700;
}
.contact-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-card a { color: var(--navy); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-card a:hover { color: #8a6d00; }
.footer { padding: 38px clamp(22px, 8vw, 120px) 16px; color: rgba(255,255,255,.78); background: var(--navy-deep); }
.footer-content { display: flex; max-width: 1160px; justify-content: space-between; gap: 24px; margin: 0 auto; padding-bottom: 24px; }
.footer-content h2 {
    margin: 0 0 5px;
    color: var(--white);
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1rem;
    font-weight: 700;
}
.footer-content p { margin: 4px 0; }
.copyright { max-width: 1160px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; font-size: .85rem; text-align: center; }

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

@media (max-width: 900px) {
    .hero { min-height: 0; grid-template-columns: 1fr 0.85fr; padding-top: 62px; padding-bottom: 62px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .header { min-height: 72px; flex-wrap: wrap; gap: 10px; }
    .menu-toggle { display: block; }
    .navigation { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 5px 0 8px; }
    .navigation.open { display: flex; }
    .navigation a { border-top: 1px solid rgba(255,255,255,.12); padding: 11px 3px; }
    .hero { grid-template-columns: 1fr; gap: 38px; padding: 56px 24px 66px; }
    .hero-photo { width: min(100%, 540px); justify-self: center; }
    .hero-photo img { max-height: 340px; }
    .section { padding: 64px 22px; }
    .about-content { grid-template-columns: 1fr; }
    .phase-grid { grid-template-columns: 1fr; margin-top: 30px; }
    .cards { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
    .brand-text h1 { font-size: .9rem; }
    .brand-text p { font-size: .63rem; }
    .logo { width: 44px; height: 44px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-card img { height: 230px; }
    .footer-content { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
}
/* WELCOME SECTION ENHANCEMENTS */

.hero-tagline {
    margin: 18px 0 12px;
    color: var(--gold-light, var(--yellow));
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
}

.hero h2 .school-title {
    margin-top: 4px;
    color: #ffffff;
    font-size: 0.65em;
    letter-spacing: 0.08em;
}

.floating-icons {
    display: flex;
    gap: 22px;
    margin-top: 28px;
}

.floating-icons span {
    display: inline-block;
    font-size: 1.8rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.floating-icons span:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-icons span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-icons span {
        animation: none;
    }
}
/* ENHANCED SCHOOL HERO PHOTOGRAPH */

.hero-photo {
    transition: transform 0.4s ease;
}

.hero-photo:hover {
    transform: translateY(-6px);
}

.hero-photo::before {
    border: 4px solid var(--gold-light, var(--yellow));
    border-radius: 20px;
}

.hero-photo img {
    border: 6px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-photo:hover img {
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}
/* SCHOOL PHOTO COLLAGE */

.hero-collage {
    display: grid;
    width: 100%;
    max-width: 560px;
    grid-template-columns: 1.4fr 0.85fr;
    gap: 12px;
    justify-self: end;
    position: relative;
}

.hero-collage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.collage-main {
    min-height: 340px;
}

.collage-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.collage-side img {
    min-height: 0;
}

.hero-collage img:hover {
    transform: scale(1.03);
}

/* MOBILE COLLAGE */

@media (max-width: 700px) {
    .hero-collage {
        max-width: 540px;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .collage-main {
        min-height: 260px;
    }

    .collage-side {
        gap: 8px;
    }
}

@media (max-width: 440px) {
    .collage-main {
        min-height: 220px;
    }
}
/* SHOW THE FULL SCHOOL BANNER ON MOBILE */

@media (max-width: 700px) {
    .hero-collage {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .collage-main img {
        object-fit: cover;
        object-position: center;
    }
}
/* ENHANCED SCHOOL CREST */
.logo {
    width: 72px;
    height: 72px;
    border: 3px solid var(--gold-light, var(--yellow));
    box-shadow:
        0 0 0 4px rgba(255, 224, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 440px) {
    .logo {
        width: 56px;
        height: 56px;
    }
}
/* 3D HOMEPAGE HEADING */
.hero h2 {
    color: #ffffff;
    text-shadow:
        1px 1px 0 #c5c5c5,
        2px 2px 0 #a8a8a8,
        3px 3px 0 #888888,
        4px 4px 0 #666666,
        7px 9px 14px rgba(0, 0, 0, 0.45);
}

.hero h2 span {
    text-shadow:
        1px 1px 0 #b99a00,
        2px 2px 0 #9b8000,
        3px 3px 0 #806900,
        4px 4px 0 #5e4d00,
        7px 9px 14px rgba(0, 0, 0, 0.45);
}

.hero h2 .school-title {
    color: #ffffff;
    text-shadow:
        1px 1px 0 #c5c5c5,
        2px 2px 0 #999999,
        3px 3px 0 #777777,
        6px 8px 12px rgba(0, 0, 0, 0.4);
}
/* ENHANCED SCHOOL BRAND NAME */
.brand-text h1 {
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.35);
    margin: 0;
}

.brand-text p {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--gold-light, var(--yellow));
    margin: 4px 0 0;
    text-transform: uppercase;
}

.school-brand {
    gap: 14px;
}

/* Smaller school name on mobile screens */
@media (max-width: 440px) {
    .brand-text h1 {
        font-size: 1.25rem;
    }

    .brand-text p {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
}
/* SCHOOL ANNOUNCEMENTS AND CONTACT BAR */
.top-bar {
    min-height: 38px;
    padding: 5px 4%;
    background: var(--gold-light, var(--yellow));
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.78rem;
    font-weight: 700;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-label {
    white-space: nowrap;
    font-weight: 900;
}

.announcement-ticker {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.announcement-ticker a {
    display: inline-block;
    animation: schoolTicker 18s linear infinite;
}

.announcement-ticker a:hover {
    animation-play-state: paused;
}

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

.announcement-ticker a,
.top-bar-right a {
    color: var(--navy);
    text-decoration: none;
}

.announcement-ticker a:hover,
.top-bar-right a:hover {
    text-decoration: underline;
}

.top-bar-right {
    white-space: nowrap;
}

.top-divider {
    opacity: 0.5;
}

/* Mobile layout */
@media (max-width: 700px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 7px 4%;
        font-size: 0.7rem;
    }

    .top-bar-left,
    .top-bar-right {
        flex-wrap: wrap;
    }
}
/* SCHOOL ANNOUNCEMENTS SECTION */
.announcements {
    background: #f5f7fb;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 35px;
}

/* =====================================
   PREMIUM SCHOOL ANNOUNCEMENTS
===================================== */

.announcement-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8faff);
    padding: 32px;
    border-radius: 16px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(7, 27, 89, 0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.announcement-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -45px;
    bottom: -45px;
    border-radius: 50%;
    background: rgba(214, 173, 24, 0.08);
}

.announcement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(7, 27, 89, 0.15);
}

.announcement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(7, 27, 89, 0.07);
    font-size: 2.3rem;
}

.announcement-date {
    display: block;
    color: #9b8000;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.announcement-card h3 {
    color: var(--navy);
    margin: 13px 0;
    font-size: 1.3rem;
}

.announcement-card p {
    color: #555f73;
    line-height: 1.8;
    font-size: 0.95rem;
}

.announcement-status {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(214, 173, 24, 0.13);
    color: #806900;
    font-size: 0.78rem;
    font-weight: 700;
}

.announcement-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.announcement-link:hover {
    color: #b18b00;
}

.announcement-status {
    display: inline-block;
    margin-top: 12px;
    color: #666;
    font-size: 0.85rem;
    font-weight: 700;
}

.announcement-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.announcement-link:hover {
    color: #9b8000;
}

@media (max-width: 768px) {
    .announcement-grid {
        grid-template-columns: 1fr;
    }
}
/* SCHOOL LOCATION MAP */
.school-map {
    margin-top: 40px;
    text-align: center;
}

.school-map h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.school-map iframe {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.school-map .btn {
    display: inline-block;
    margin-top: 20px;
}
/* IMPROVE CONTACT CARD READABILITY */
.contact-card p {
    overflow-wrap: anywhere;
    line-height: 1.7;
}

.contact-card p a {
    font-size: 0.9rem;
}
/* MOBILE HEADER ALIGNMENT FIX */
@media (max-width: 440px) {

    .header {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
        overflow: hidden;
    }

    .school-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .logo {
        width: 48px;
        height: 48px;
        min-width: 48px;
        flex-shrink: 0;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text h1 {
        font-size: 1rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .brand-text p {
        font-size: 0.62rem;
        letter-spacing: 1.5px;
        white-space: nowrap;
    }

    .menu-toggle {
        flex-shrink: 0;
        padding: 6px 10px;
    }

}
/* PREVENT HORIZONTAL OVERFLOW ON MOBILE */
@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .section,
    .about-content,
    .section-heading,
    .about-copy {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    .section-heading h2 {
        overflow-wrap: break-word;
    }

    .about-copy h3,
    .about-copy p {
        overflow-wrap: anywhere;
    }

    .school-facts {
        grid-template-columns: 1fr;
    }
}
/* MOBILE ABOUT SECTION WIDTH FIX */
@media (max-width: 700px) {

    .about-content {
        display: grid;
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .about-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .about-copy h3,
    .about-copy p {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .section-heading {
        width: 100%;
        max-width: 100%;
    }

    .section-heading h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        white-space: normal;
        overflow-wrap: break-word;
    }
}
/* PRINCIPAL'S WELCOME SECTION */
.principal-section {
    background: #f5f7fa;
}

.principal-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 55px;
}

.principal-photo {
    max-width: 390px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    background: #ffffff;
    border: 3px solid #d5a62e;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.principal-photo img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
}

.principal-message h3 {
    color: #17365d;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.principal-message p {
    color: #444;
    line-height: 1.9;
    margin-bottom: 18px;
}

.principal-message .principal-signature {
    color: #b8860b;
    font-size: 1.3rem;
    margin: 25px 0 3px;
}

.principal-message > span {
    color: #666;
    font-size: 0.95rem;
}

/* PRINCIPAL SECTION ON MOBILE */
@media (max-width: 700px) {
    .principal-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .principal-photo {
        max-width: 300px;
    }

    .principal-photo img {
        height: 350px;
    }

    .principal-message {
        text-align: center;
    }

    .principal-message h3 {
        font-size: 1.35rem;
    }
}
/* =================================
   LENAKENG TEACHERS SECTION
================================= */

.teachers-section {
    background: #f4f6fa;
}

.teachers-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
    line-height: 1.8;
}

.teachers-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/* =====================================
   PREMIUM TEACHER PROFILES
===================================== */

.teachers-section {
    background: linear-gradient(180deg, #f5f7fc, #ffffff);
}

.teachers-intro {
    max-width: 720px;
    margin: 0 auto 35px;
    text-align: center;
    color: #596477;
    line-height: 1.8;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.teacher-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #e2e5ec;
    box-shadow: 0 12px 30px rgba(7, 27, 89, 0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.teacher-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 20px 40px rgba(7, 27, 89, 0.16);
}

.featured-teacher {
    border-bottom: 5px solid var(--gold);
}

/* TEACHER PORTRAIT */

.teacher-photo {
    height: 320px;
    background:
        radial-gradient(circle at center, rgba(255, 224, 0, 0.18), transparent 65%),
        linear-gradient(135deg, #030d32, #102d70, var(--navy));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.teacher-photo::before {
    content: "L";
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 170px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07);
}

.teacher-photo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light, var(--gold-light, var(--yellow))), var(--gold));
}

.teacher-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
    transition: transform 0.4s ease;
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.04);
}

/* TEACHER INFORMATION */

.teacher-info {
    padding: 27px 20px;
}

.teacher-label {
    display: inline-block;
    color: #a17c00;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.teacher-info h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin: 5px 0 12px;
}

.teacher-subject {
    color: #555f73;
    margin-bottom: 13px;
    font-size: 0.95rem;
}

.teacher-department {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 20px;
    background: rgba(214, 173, 24, 0.12);
    color: #806900;
    font-size: 0.8rem;
    font-weight: 700;
}

/* RESERVED TEACHER SPACES */

.placeholder-photo {
    height: 320px;
    background:
        radial-gradient(circle, rgba(255, 224, 0, 0.12), transparent 60%),
        linear-gradient(135deg, #030d32, #102d70);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light, var(--gold-light, var(--yellow)));
    font-size: 5rem;
    font-weight: 300;
    border-bottom: 5px solid var(--gold);
    transition: background 0.3s ease;
}

.teacher-placeholder:hover .placeholder-photo {
    background: linear-gradient(135deg, #102d70, #173f80);
}

.teacher-placeholder .teacher-info h3 {
    font-size: 1.2rem;
}

.teacher-placeholder .teacher-info p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* RESPONSIVE TEACHER LAYOUT */

@media (max-width: 850px) {
    .teachers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .teachers-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .teacher-photo,
    .placeholder-photo {
        height: 320px;
    }
}
/* =====================================
   LATEST NEWS & ANNOUNCEMENTS
===================================== */

.news-section {
    background: linear-gradient(135deg, #f4f7fc, #ffffff);
    padding: 90px 6%;
}

.news-section .section-heading > p {
    color: #64748b;
    margin-top: 15px;
    font-size: 1rem;
}

.news-container {
    max-width: 1200px;
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.news-card {
    position: relative;
    background: #ffffff;
    padding: 32px 27px;
    border-radius: 15px;
    border-bottom: 4px solid #d5a62e;
    box-shadow: 0 8px 28px rgba(16, 41, 75, 0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 15px 35px rgba(16, 41, 75, 0.16);
}

.news-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10294b;
    color: white;
    border-radius: 14px;
    font-size: 2rem;
    margin-bottom: 24px;
}

.news-category {
    display: inline-block;
    color: #b38718;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.news-content h3 {
    color: #10294b;
    font-size: 1.35rem;
    margin-bottom: 13px;
}

.news-content p {
    color: #64748b;
    line-height: 1.8;
    font-size: 0.95rem;
}

.news-date {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 13px;
    background: #f3f5f9;
    color: #10294b;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.featured-news {
    background: linear-gradient(145deg, #10294b, #173d68);
}

.featured-news .news-icon {
    background: #d5a62e;
}

.featured-news .news-category {
    color: #e8c65e;
}

.featured-news .news-content h3 {
    color: white;
}

.featured-news .news-content p {
    color: #e1e9f3;
}

.featured-news .news-date {
    background: #d5a62e;
    color: #10294b;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {
    .news-section {
        padding: 65px 5%;
    }

    .news-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        padding: 27px 22px;
    }
}
/* =====================================
   LENAKENG TECHNICAL PROGRAMMES
===================================== */

.programmes-heading {
    text-align: center;
    max-width: 750px;
    margin: 75px auto 35px;
    padding: 0 15px;
}

.programmes-heading > span {
    color: #b38718;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.programmes-heading h2 {
    color: #10294b;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin: 12px 0;
}

.programmes-heading p {
    color: #64748b;
    line-height: 1.8;
}

.programme-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.programme-card {
    background: #ffffff;
    padding: 32px 27px;
    border-radius: 15px;
    border-top: 5px solid #d5a62e;
    box-shadow: 0 8px 28px rgba(16, 41, 75, 0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.programme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(16, 41, 75, 0.16);
}

.programme-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10294b;
    color: white;
    border-radius: 15px;
    font-size: 2rem;
    margin-bottom: 22px;
}

.programme-label {
    color: #b38718;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.programme-card h3 {
    color: #10294b;
    font-size: 1.3rem;
    margin: 13px 0 7px;
}

.programme-card h4 {
    color: #b38718;
    font-size: 1rem;
    margin: 0 0 14px;
}

.programme-card p {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.8;
}

/* RESPONSIVE PROGRAMME CARDS */

@media (max-width: 850px) {
    .programme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .programme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .programme-card {
        padding: 27px 23px;
    }

    .programmes-heading {
        margin-top: 55px;
    }
}
/* PROGRAMME CARD PHOTOGRAPHS */

.programme-photo {
    display: block;
    width: calc(100% + 54px);
    height: 210px;
    object-fit: cover;
    margin: 0 -27px 22px;
}

/* MOBILE PHOTO SIZE */

@media (max-width: 600px) {
    .programme-photo {
        height: 200px;
    }
}
/* =====================================
   PREMIUM LENAKENG HOMEPAGE HERO
===================================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(214, 173, 24, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(40, 90, 160, 0.35),
            transparent 35%
        ),
        linear-gradient(125deg, #030d32, var(--navy) 60%, #102d70);
}

/* Decorative gold line */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--gold-light, var(--gold-light, var(--yellow))),
        var(--gold),
        transparent
    );
}

/* Hero text */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.welcome-label {
    padding: 9px 15px;
    border: 1px solid rgba(255, 224, 0, 0.45);
    border-radius: 30px;
    background: rgba(255, 224, 0, 0.08);
}

/* Main school name */
.hero h2 span:not(.school-title) {
    color: var(--gold-light, var(--gold-light, var(--yellow)));
    letter-spacing: 0.025em;
    text-shadow:
        1px 1px 0 #c5a500,
        3px 3px 0 #927900,
        5px 6px 12px rgba(0, 0, 0, 0.45);
}

/* School title */
.hero h2 .school-title {
    letter-spacing: 0.1em;
}

/* Hero photographs */
.hero-collage {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.hero-collage img {
    border: 4px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-collage img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
}

/* Hero buttons */
.hero-buttons .btn {
    min-height: 52px;
    padding: 12px 23px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.hero-buttons .btn-yellow {
    background: linear-gradient(135deg, #ffe94d, var(--gold));
}

.hero-buttons .btn-yellow:hover {
    box-shadow: 0 12px 25px rgba(214, 173, 24, 0.3);
}

@media (max-width: 700px) {
    .hero {
        min-height: 0;
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-icons {
        justify-content: center;
    }
}
/* =====================================
   SCHOOL HIGHLIGHTS SECTION
===================================== */

.school-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 55px clamp(24px, 8vw, 120px);
    background: #f5f7fc;
}

.highlight-card {
    padding: 32px 25px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(7, 27, 89, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(7, 27, 89, 0.15);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.highlight-card h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.highlight-card p {
    color: #5d6578;
    line-height: 1.7;
    margin: 0;
}

/* Mobile layout */
@media (max-width: 700px) {
    .school-highlights {
        grid-template-columns: 1fr;
        padding: 35px 24px;
    }
}

/* =====================================
   WEBSITE DESIGN EDITOR: GLOBAL THEME
   These rules apply the saved Supabase design settings across the site.
===================================== */

/* Use the selected heading font consistently, including later-added sections. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font, Montserrat, Arial, sans-serif);
}

/* Main site surfaces follow the selected background colour. */
.about,
.news,
.contact,
.announcement-card,
.teacher-card,
.news-card,
.programme-card,
.highlight-card,
.principal-photo {
    background-color: var(--background, var(--white));
}

/* Theme-aware surfaces and accent borders in the added CMS sections. */
.announcement-card {
    background: linear-gradient(145deg, var(--background, var(--white)), #f8faff);
    border-top-color: var(--gold);
}
.featured-teacher {
    border-bottom-color: var(--gold);
}
.teacher-photo::after {
    background: linear-gradient(90deg, var(--gold), var(--gold-light, var(--gold-light, var(--yellow))), var(--gold));
}
.placeholder-photo {
    color: var(--gold-light, var(--gold-light, var(--yellow)));
    border-bottom-color: var(--gold);
}
.news-card {
    border-bottom-color: var(--gold);
}
.programme-card {
    border-top-color: var(--gold);
}
.highlight-card {
    border-bottom-color: var(--gold);
}
.principal-photo {
    border-color: var(--gold);
}

/* Ensure headings in sections added later use the primary site colour. */
.announcement-card h3,
.school-map h3,
.principal-message h3,
.teacher-info h3,
.news-content h3,
.programmes-heading h2,
.programme-card h3,
.programme-card h4,
.highlight-card h3 {
    color: var(--navy);
}

/* Keep the website text setting consistent for ordinary page copy. */
body {
    color: var(--text, var(--ink));
    font-family: var(--body-font, 'DM Sans', Arial, sans-serif);
    font-size: var(--website-font-size, 16px);
}
