@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #0b263f;
    --text: #26384f;
    --muted: #667085;
    --blue: #1167a8;
    --blue-dark: #073a61;
    --green: #15775a;
    --gold: #f5b83d;
    --coral: #df614f;
    --line: #d8e7ef;
    --soft: #f4f9fc;
    --surface: #ffffff;
    --shadow: 0 18px 42px rgba(16, 32, 51, 0.12);
    --radius: 14px;
    --wrap: min(1120px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: #ffffff;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(216, 231, 239, 0.9);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
}

.top-strip {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.32rem 1rem;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-dark), var(--green));
    font-size: 0.84rem;
    font-weight: 800;
}

.top-strip span,
.top-strip a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav {
    width: var(--wrap);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--blue-dark);
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 800;
}

.brand img {
    width: 54px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.brand span {
    overflow: hidden;
    font-size: 1.04rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #344054;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
}

.nav-links a {
    border-radius: 8px;
    padding: 0.55rem 0.2rem;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-login {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.62rem 0.9rem !important;
    color: #ffffff !important;
    background: var(--blue);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    align-items: center;
    justify-content: center;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem) max(1rem, calc((100vw - 1120px) / 2 + 1rem));
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(7, 58, 97, 0.96), rgba(17, 103, 168, 0.9) 50%, rgba(21, 119, 90, 0.84)),
        #0b436f;
}

.hero-panel {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--coral);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 660px;
    color: #ffffff;
    font-size: clamp(3rem, 6.3vw, 6rem);
    line-height: 0.93;
    overflow-wrap: anywhere;
}

.hero-panel p:not(.eyebrow) {
    max-width: 560px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 650;
}

.hero-actions,
.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.primary-action,
.secondary-action,
.portal-actions a,
.inquiry-form button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    border-radius: 10px;
    padding: 0.78rem 1rem;
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 800;
}

.primary-action,
.inquiry-form button {
    border: 1px solid var(--gold);
    color: #1f2937;
    background: var(--gold);
}

.secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-campus-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.hero-campus-note span {
    max-width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.48rem 0.68rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.88rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.hero-media {
    order: 2;
    min-width: 0;
    min-height: 540px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    background: #dbeafe;
    box-shadow: 0 24px 60px rgba(3, 19, 33, 0.34);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 540px;
    display: block;
    object-fit: cover;
}

.quick-strip {
    width: var(--wrap);
    margin: -2rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    position: relative;
    z-index: 2;
}

.quick-strip article,
.about-cards article,
.program-grid article,
.campus-grid article,
.inquiry-form,
.contact-grid a,
.principal-message,
.director-message {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 32, 51, 0.07);
}

.quick-strip article {
    min-height: 102px;
    display: grid;
    align-content: center;
    padding: 1rem;
}

.quick-strip strong,
.quick-strip span,
.gallery-row span {
    display: block;
}

.quick-strip strong {
    color: var(--blue-dark);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.05rem;
}

.quick-strip span,
.section-heading p:not(.eyebrow),
.admission-copy p,
.portal-section p,
.program-grid p,
.empty-state {
    color: var(--muted);
}

.section-shell,
.principal-section,
.director-section,
.admission-section {
    width: var(--wrap);
    margin: 0 auto;
}

.section-shell {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.7rem;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading.compact {
    max-width: 620px;
}

.section-heading h2,
.admission-copy h2,
.portal-section h2,
.principal-message h2,
.director-message h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.admission-copy p,
.portal-section p {
    margin: 0.82rem 0 0;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

.about-layout > img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.about-cards {
    display: grid;
    gap: 0.9rem;
}

.about-cards article {
    display: grid;
    align-content: center;
    gap: 0.34rem;
    min-height: 134px;
    padding: 1.15rem;
}

.about-cards svg,
.program-grid svg,
.contact-grid svg,
.admission-points svg {
    color: var(--green);
}

.about-cards strong,
.campus-grid strong {
    color: var(--blue-dark);
    font-family: "Manrope", "Inter", sans-serif;
}

.program-section,
.life-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fcff, #ffffff);
}

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

.program-grid article {
    overflow: hidden;
}

.program-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.program-grid h3 {
    margin: 1rem 1rem 0.4rem;
    color: var(--blue-dark);
    font-size: 1.12rem;
}

.program-grid p {
    margin: 0 1rem 1.15rem;
}

.principal-section,
.director-section {
    display: grid;
    gap: 1rem;
    align-items: stretch;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.principal-section {
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
}

.director-section {
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    padding-top: 0;
}

.principal-photo,
.director-photo {
    min-height: 520px;
    overflow: hidden;
    border-radius: 18px;
    background: #e4edf5;
    box-shadow: var(--shadow);
}

.director-photo {
    min-height: 620px;
    background: #0b1d33;
}

.principal-photo img,
.director-photo img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.principal-message,
.director-message {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.principal-message h2,
.director-message h2 {
    color: var(--blue-dark);
}

.principal-message p,
.director-message p {
    margin: 0.9rem 0 0;
    color: #42526b;
}

.principal-lead {
    color: var(--ink) !important;
    font-weight: 750;
}

.director-message {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(244, 249, 252, 0.96), #ffffff 58%),
        #ffffff;
}

.director-message::before {
    content: "2012";
    position: absolute;
    right: 1rem;
    top: 0.3rem;
    color: rgba(18, 95, 158, 0.08);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: clamp(4.6rem, 10vw, 7.8rem);
    font-weight: 800;
    line-height: 1;
}

.director-message > * {
    position: relative;
    z-index: 1;
}

.principal-signoff {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.principal-signoff span,
.principal-signoff strong,
.principal-signoff small {
    display: block;
}

.principal-signoff strong {
    color: var(--blue-dark);
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.2rem;
}

.principal-signoff small {
    color: var(--green);
    font-weight: 800;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-row article {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 18px;
    background: #e4edf5;
    box-shadow: var(--shadow);
}

.gallery-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-row article::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(8, 57, 95, 0.82));
}

.gallery-row span {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.85rem;
    z-index: 1;
    color: #ffffff;
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 800;
}

.admission-section {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(360px, 1.32fr);
    gap: 1.2rem;
    align-items: start;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.admission-points {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.admission-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    color: #344054;
    font-weight: 800;
}

.inquiry-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.2rem;
}

.inquiry-form label {
    display: grid;
    gap: 0.35rem;
    color: #344054;
    font-weight: 800;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.78rem 0.85rem;
    color: var(--ink);
    background: #ffffff;
}

.inquiry-form textarea {
    min-height: 120px;
    resize: vertical;
}

.full-field,
.form-status,
.inquiry-form button {
    grid-column: 1 / -1;
}

.form-status {
    margin: 0;
    color: var(--green);
    font-weight: 800;
}

.form-status.error {
    color: #b42318;
}

.inquiry-form button {
    width: fit-content;
    cursor: pointer;
}

.campus-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

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

.campus-grid article {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem;
}

.campus-grid svg {
    color: var(--green);
}

.campus-grid strong {
    font-size: 1.15rem;
}

.campus-grid span {
    color: var(--muted);
}

.campus-grid a {
    margin-top: 0.25rem;
    color: var(--blue);
    font-weight: 800;
}

.portal-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(3rem, 6vw, 4.5rem) max(1rem, calc((100vw - 1120px) / 2 + 1rem));
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-dark), var(--green));
}

.portal-section h2 {
    color: #ffffff;
}

.portal-section .eyebrow,
.portal-section p {
    color: rgba(255, 255, 255, 0.86);
}

.portal-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.portal-actions a {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.portal-actions a:first-child {
    border-color: var(--gold);
    color: #1f2937;
    background: var(--gold);
}

.contact-grid a {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    font-weight: 800;
}

.whatsapp-contact {
    color: #ffffff;
    border-color: #18a957 !important;
    background: #18a957 !important;
}

.whatsapp-contact svg {
    color: #ffffff;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.55rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #ffffff;
}

.site-footer img {
    width: 74px;
    height: 52px;
    object-fit: contain;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: var(--ink);
    font-family: "Manrope", "Inter", sans-serif;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #18a957;
    box-shadow: 0 16px 34px rgba(16, 32, 51, 0.24);
}

.floating-whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.website-banner-section {
    display: none;
}

@media (max-width: 980px) {
    .hero,
    .about-layout,
    .principal-section,
    .director-section,
    .admission-section,
    .portal-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 1.2rem;
    }

    .hero-media,
    .hero-media img {
        min-height: 430px;
    }

    .quick-strip,
    .program-grid,
    .campus-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .portal-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    :root {
        --wrap: calc(100% - 24px);
    }

    .top-strip {
        display: none;
    }

    .main-nav {
        min-height: 70px;
    }

    .brand img {
        width: 50px;
        height: 46px;
    }

    .brand span {
        max-width: calc(100vw - 138px);
        font-size: 1rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.12rem;
        padding: 0.65rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        border-radius: 8px;
    }

    .nav-login {
        justify-content: center;
    }

    .hero {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 12px 12px 2.2rem;
        background:
            linear-gradient(180deg, rgba(7, 58, 97, 0.98), rgba(17, 103, 168, 0.9) 74%, #f4f9fc 74%);
    }

    .hero-media {
        order: 2;
        width: 100%;
        min-height: 260px;
        border-radius: 18px;
    }

    .hero-media img {
        min-height: 260px;
    }

    .hero-panel {
        order: 1;
        width: auto;
        max-width: 100%;
        align-self: stretch;
        padding: 1.1rem;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 14px 32px rgba(16, 32, 51, 0.12);
        position: relative;
        z-index: 1;
    }

    .hero h1 {
        width: min(100%, 320px);
        max-width: min(100%, 320px);
        color: var(--blue-dark);
        font-size: clamp(2.05rem, 10.4vw, 2.7rem);
        line-height: 1.02;
        overflow-wrap: anywhere;
    }

    .hero-panel p:not(.eyebrow) {
        width: min(100%, 292px);
        max-width: min(100%, 292px);
        color: #42526b;
        font-size: 1rem;
        overflow-wrap: break-word;
    }

    .hero-campus-note span {
        color: #344054;
        border-color: var(--line);
        background: var(--soft);
    }

    .secondary-action {
        color: var(--blue-dark);
        border-color: var(--line);
        background: #ffffff;
    }

    .hero-actions,
    .portal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-action,
    .secondary-action,
    .portal-actions a,
    .inquiry-form button {
        width: 100%;
    }

    .quick-strip {
        margin-top: 0;
    }

    .section-shell,
    .principal-section,
    .director-section,
    .admission-section {
        padding: 2.5rem 0;
    }

    .about-layout > img,
    .principal-photo,
    .director-photo {
        min-height: 330px;
        border-radius: 16px;
    }

    .principal-photo img,
    .director-photo img {
        min-height: 330px;
    }

    .principal-message,
    .director-message,
    .inquiry-form {
        padding: 1rem;
    }

    .director-section {
        display: flex;
        flex-direction: column-reverse;
    }

    .gallery-row {
        display: flex;
        overflow-x: auto;
        gap: 0.9rem;
        padding-bottom: 0.45rem;
        scroll-snap-type: x mandatory;
    }

    .gallery-row article {
        min-width: min(82vw, 330px);
        min-height: 310px;
        scroll-snap-align: start;
    }

    .inquiry-form {
        grid-template-columns: 1fr;
    }

    .site-footer {
        justify-content: flex-start;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
        border-width: 3px;
    }
}

@media (max-width: 460px) {
    .hero-media,
    .hero-media img {
        min-height: 285px;
    }

    .section-heading h2,
    .admission-copy h2,
    .portal-section h2,
    .principal-message h2,
    .director-message h2 {
        font-size: 1.6rem;
    }

    .program-grid img {
        aspect-ratio: 1 / 0.72;
    }
}
