@font-face {
    font-family: "Futura bk bt";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("https://jnanavahinipublicschool.com/wp-content/uploads/2024/07/futura_bk_bt_book.ttf") format("truetype");
}

:root {
    --color-maroon: #882D2C;
    --color-maroon-dark: #4a0d0d;
    --color-heading: #9b1c1c;
    --color-accent: #c62828;
    --color-secondary: #e6c200;
    --color-cream: #f9f6ee;
    --color-cream-warm: #f9f6ef;
    --color-dark: #2a2a2a;
    --color-muted: #5c5c5c;
    --color-white: #fff;
    --color-footer-divider: #c4c4c4;
    --font-heading: "Poppins", system-ui, sans-serif;
    --font-body: "Futura bk bt", "Raleway", system-ui, sans-serif;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --max: 1140px;
    --wmax:1350px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-dark);
    background: var(--color-white);
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--color-accent); }
a:hover { text-decoration: underline; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--color-maroon); color: var(--color-white);
    padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.wrap1 { width: min(100% - 2rem, var(--wmax)); margin-inline: auto; }
/* ——— Top bar ——— */
.top-bar {
    background: var(--color-maroon);
    color: var(--color-white);
    font-family: "Futura pt bold", Sans-serif;
    font-size: 15px;
    font-weight: 400;
}
.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.45rem 0;
}
.top-bar a {
    color: var(--color-white);
    text-decoration: none;
}
.top-bar a:hover { text-decoration: underline; }
.top-bar__phones { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.top-bar__sep { opacity: 0.7; margin: 0 0.15rem; }
.top-bar__right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.top-bar__envelope {
    display: flex;
    opacity: 0.95;
}
.top-bar__email { font-weight: 500; }

/* ——— Main header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--color-white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.header-main { position: relative; }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-maroon);
}
.brand-sub { font-size: 0.78rem; color: var(--color-muted); font-weight: 600; }

.header-end {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
    align-items: center;
    justify-content: flex-end;
}
.site-nav a {
    text-decoration: none;
    color: #1565c0;
    padding: 0.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: "Futura bk bt", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transform: translateY(0);
    transition: color 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover {
    color: var(--color-maroon);
    text-decoration: none;
    transform: translateY(-8px);
}
.site-nav a.active {
    color: var(--color-maroon);
    border-bottom-color: var(--color-maroon);
}

/* Social — CSS circular buttons (header: gold + maroon icon; footer: maroon + white icon) */
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.social-icons--header .social-icons__link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    color: var(--color-maroon);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.social-icons--header .social-icons__link:hover {
    transform: scale(1.08);
    filter: brightness(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.social-icons--footer {
    margin-top: 0.5rem;
    justify-content: flex-start;
}
.social-icons--footer .social-icons__link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    color: var(--color-maroon);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-icons--footer .social-icons__link:hover {
    opacity: 0.92;
    transform: scale(1.06);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border: 2px solid var(--color-maroon);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-maroon);
    cursor: pointer;
}

/* ——— Hero (home) ——— */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: var(--color-dark) center/cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(30 30 40 / 30%), rgb(60 20 25 / 42%));
}
.hero-content { position: absolute; bottom: 0; z-index: 1; padding: 3rem 1rem; max-width: 48rem; }
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero .tagline { font-size: 1.1rem; opacity: 0.95; margin: 0 0 1.5rem; }
.hero-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
}
.hero-dots button[aria-selected="true"] { background: var(--color-secondary); }

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius);
    border: 2px solid var(--color-secondary);
    background: var(--color-secondary);
    color: var(--color-dark);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover {
    background: #f0dc4d;
    border-color: #f0dc4d;
    color: var(--color-maroon-dark);
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-maroon);
    border-color: var(--color-white);
}
.btn-instagram {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.875rem;
}

/* ——— Sections ——— */
.section { padding: 4rem 0; }
.section2 { padding: 2.5rem 0 0!important; }
.section-tight { padding: 3rem 0; }
.section-tight1 { padding: 3rem 0 0; }
.section-tight2 { padding: 3rem 0 0; }
.section-cream { background: var(--color-cream); }
.section-cream-warm {
    background: var(--color-cream-warm);
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
    background-size: 24px 24px;
}
.section-dark {
    background: #f9f7d6;
    color: var(--color-cream);
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark .lead { color: rgba(249, 246, 238, 0.92); }

.section h2 {
    font-family: "Lemon-milk-bold", Sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--color-maroon-dark);
    text-align: center;
    margin: 0 0 0.5rem;
    color: var(--color-heading);
    text-transform: uppercase;
}
.section .subtitle {
    text-align: center;
    color: var(--color-muted);
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}
.lead {
    max-width: 46rem;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1.05rem;
}
.alg40{
    position: relative;
    top: -40px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.card-grid div {
    text-align: center;
}
.card-grid img {
    width: 80%;
}
.card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { text-align: center; }
.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-heading);
}
.review-slider {
    max-width: 50rem;
    margin: 0 auto;
}
.review-slide {
    display: none;
    background: #e3c436cc;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    color: #000000;
    line-height: 1.75;
    position: relative;
    overflow: hidden;
}

.review-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40px;
    width: 60px;
    height: 100%;
    background: inherit;
    transform: skewX(20deg);
}
.review-slide::after {
    content: "";
    position: absolute;
    top: 0px;
    right: -40px;
    width: 60px;
    height: 100%;
    background: inherit;
    transform: skewX(-20deg);
}
.review-slide.is-active {
    display: block;
}
.review-slide p {
    margin: 0;
    font-size: 1.05rem;
}
.review-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.review-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
}
.review-dots button[aria-selected="true"] {
    background: var(--color-secondary);
}
@media (max-width: 720px) {
    .review-slide {
        padding: 1.5rem;
    }
}
.why-choose{
    font-size: 38px!important;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Page hero */
.page-hero {
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background: #2a2a35 center/cover no-repeat;
    position: relative;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(35, 35, 45, 0.58);
}
.page-hero--about::before {
    background: rgba(30, 32, 42, 0.62);
}
.page-hero--short {
    min-height: 28vh;
}
.page-hero h1 {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.5vw, 4.65rem);
    font-weight: 900;
    margin: 0;
    padding: 2.5rem 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Wave divider */
.wave-bottom {
    height: 48px;
    margin-top: -1px;
    background: var(--color-cream-warm);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48'%3E%3Cpath fill='%23000' d='M0 48V24c240 32 480 32 720 16s480-16 720 0v8H0z'/%3E%3C/svg%3E");
    mask-size: cover;
    mask-position: bottom;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48'%3E%3Cpath fill='%23000' d='M0 48V24c240 32 480 32 720 16s480-16 720 0v8H0z'/%3E%3C/svg%3E");
    -webkit-mask-size: cover;
    -webkit-mask-position: bottom;
}
.wave-bottom--cream { background: var(--color-cream-warm); }

/* About page blocks */
.about-welcome { background: var(--color-white); }
.about-welcome__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem 2rem;
    align-items: start;
}
.heading-maroon-caps {
    font-family: "Lemon-milk-bold", Sans-serif;
    font-size: 0;
    font-weight: 900;
    width: 90%;
    color: var(--color-maroon);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.35;
    margin: 0;
}

.heading-maroon-caps.letter-animation {
    font-size: 42px;
}
.delay-character {
    font-size: inherit;
    opacity: 0;
    transform: translateY(1px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.reveal-on-scroll.is-visible .delay-character {
    opacity: 1;
    transform: translateY(0);
}

.about-welcome__text p { 
    margin: 0 0 1rem; 
    color: var(--color-dark); 
    text-align: justify;
    line-height: 2em;
    word-spacing: 3px;
}
.about-welcome__text p:last-child { margin-bottom: 0; }

.about-history { padding-top: 0; }
.about-history__scroll {
    position: relative;
    margin: 0 auto;
    line-height: 0;
}
.about-history__img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* Text layered on parchment (adjust inset if your History.png layout differs) */
.about-history__overlay {
    position: absolute;
    left: 11%;
    right: 11%;
    top: 18%;
    bottom: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    line-height: 1.65;
}
.about-history__heading {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.65rem;
    line-height: 1.25;
    color: var(--color-maroon);
    font-family: "Lemon-milk-bold", Sans-serif;
    font-size: 42px;
    font-weight: 900;
}
.about-history__body {
    margin: 0;
    color: #000000;
    font-size: clamp(0.8rem, 1.65vw, 1.05rem);
    font-weight: bold;
    line-height: 1.95;
    max-width: 42em;
}
@media (max-width: 600px) {
    .about-history__overlay {
        left: 8%;
        right: 8%;
        top: 14%;
        bottom: 16%;
    }
}

.about-vm__grid--gifs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}
.about-vm__panel {
    text-align: center;
}
.about-vm__gif-wrap {
    margin: 0 auto 1rem;
    max-width: 35%;
    border-radius: var(--radius);
    overflow: hidden;
}
.about-vm__gif {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 300px;
    margin: 0 auto;
}
.about-vm__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
}
.about-vm__panel p {
    margin: 0;
    text-align: center;
    color: var(--color-dark);
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 2em;
}

.about-founder__grid {
    display: grid;
    grid-template-columns: 1.10fr 1.15fr;
    gap: 1.5rem;
    align-items: center;
}
.heading-maroon {
    font-family: "Lemon-milk-bold", Sans-serif;
    color: var(--color-maroon);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
    font-size: 42px;
    font-weight: 900;
}
.about-founder__greet { font-weight: 600; margin: 0 0 1rem; }
.about-founder__text p { 
    margin: 0 0 1rem; 
    color: var(--color-dark); 
    text-align: justify;
    font-size: 18px;
    font-weight: 400;
    line-height: 2em;
}
.about-founder__photo img {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.heading-maroon-center {
    font-family: "Lemon-milk-bold", Sans-serif;
    color: var(--color-maroon);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center!important;
    margin: 0 !important;
    font-size: 42px;
    font-weight: 900;
}
.about-faculty__intro {
    text-align: center;
    max-width: 85%;
    margin: 0 auto 2rem;
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    line-height: 2em;
    word-spacing: 3px;
}
.about-faculty__photo {
    max-width: 1000px;
    margin: 0 auto;
}
.about-faculty__photo img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-instagram {
    background-image: url(../../newsletter-bg-1.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}
.about-instagram__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 2rem 0 3.5rem;
}
.about-instagram__cell {
    flex: 0 0 auto;
    width: min(22vw, 240px);
    min-width: 170px;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
}
.about-instagram__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.about-instagram__cell:hover img { transform: scale(1.05); }
.about-instagram__empty { text-align: center; color: var(--color-muted); }
.about-instagram__cta-wrap { text-align: center; margin: 0; }
.about-instagram__cell:nth-child(1) { transform: translateY(30px); }
.about-instagram__cell:nth-child(3) { transform: translateY(30px); }
.about-instagram__cell:nth-child(5) { transform: translateY(30px); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.gallery-grid a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.25s;
}
.gallery-grid a:hover img { transform: scale(1.05); }

.gallery-tagline {
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
.gallery-grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-tile {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.gallery-grid--three .gallery-tile img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.feature-grid {
    text-align: center;
}
.feature-grid img{
    width: 90%;
}
.block-heading-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.block-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.08em;
}
.block-heading--maroon {
    color: var(--color-maroon);
}
.display-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 icons in row */
  gap: 50px;
  align-items: center;
  justify-items: center;
}
.facilities-grid1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 icons in row */
  gap: 90px;
  align-items: center;
  justify-items: center;
}
.facility-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px solid #ddd;
  padding-right: 20px;
}
.mt-40 {
    margin-top: 50px;
}
/* remove border for last item */
.facility-item:last-child {
  border-right: none;
}
.facility-item img {
  width: 126px;
  height: 126px;
  object-fit: contain;
}
.wave-section {
  position: relative;
  background: #f9f6ee;
  padding: 0 0 50px;
  overflow: hidden;
}
p
.wave-top1,
.wave-bottom1 {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
}

.wave-top {
  top: 0;
}

.wave-bottom1 {
  bottom: 0;
}

.wave-top svg,
.wave-bottom1 svg {
  width: 100%;
  height: 100%;
}

.wave-top1 path,
.wave-bottom1 path {
  fill: #ffffff; /* same as section */
}

@media (max-width: 900px) {
  .display-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .facilities-grid,
  .facilities-grid1 {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
  .facility-item {
    border-right: none;
    padding-right: 0;
    border-bottom: none;
  }
  .facility-item img {
    width: 100px;
    height: 100px;
  }
  .text-right {
    text-align: center;
  }
  .display-flex > div:first-child,
  .display-flex > div:last-child {
    width: 100%;
  }
  .section h2{
    font-size: 32px;
  }
  .heading-maroon-caps.letter-animation {
    font-size: 32px;
  }
  .about-history__img {
    height: 660px;
  }
  .heading-maroon {
    font-size: 32px;
  }
  .heading-maroon-center{
    font-size: 32px;
  }
  .about-history__heading{
    font-size: 32px;
  }
  .alg40 {
    top: 0px;
  }
  .about-instagram__cell {
    width: min(22vw, 230px);
  }
}

@media (max-width: 620px) {
  .facilities-grid,
  .facilities-grid1 {
    gap: 0.75rem;
  }
  .facility-item img {
    width: 88px;
    height: 88px;
  }
  .block-heading-row {
    gap: 1rem;
  }
}

/* Scroll-in animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-up1 {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.slide-up2 {
    opacity: 0;
    transform: translateY(150px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}
.reveal-on-scroll.is-visible .slide-up {
    opacity: 1;
    transform: translateY(0);
}
.reveal-on-scroll.is-visible .slide-up1 {
    opacity: 1;
    transform: translateY(0);
}
.reveal-on-scroll.is-visible .slide-up2 {
    opacity: 1;
    transform: translateY(0);
}
.text-right {
    text-align: right;
}
/* Contact page */
.touch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.touch-card {
    text-align: center;
    padding: 1.5rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}
.reveal-on-scroll.is-visible .touch-card {
    opacity: 1;
    transform: translateX(0);
}
.card-delay-1 { transition-delay: 0s; }
.reveal-on-scroll.is-visible .card-delay-1 { transition-delay: 0s; }

.card-delay-2 { transition-delay: 0s; }
.reveal-on-scroll.is-visible .card-delay-2 { transition-delay: 0.15s; }

.card-delay-3 { transition-delay: 0s; }
.reveal-on-scroll.is-visible .card-delay-3 { transition-delay: 0.3s; }
.touch-card:hover {
    transform: translateX(4px);
}
.touch-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}
.touch-card__icon--home { 
    background: #00c853;
    width: 45%;
    height: 75px; 
}
.touch-card__icon--phone { 
    background: #00c853;
    width: 45%;
    height: 75px;  
}
.touch-card__icon--mail { 
    background: #00c853;
    width: 45%;
    height: 75px;  
}
.touch-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}
.touch-card p { margin: 0; font-size: 0.95rem; }
.touch-card a { color: inherit; text-decoration: none; }
.touch-card a:hover { color: var(--color-accent); text-decoration: underline; }

.reach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2rem;
}
.reach-grid__photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
    width: 600px;
    height: 460px;
}
.map-embed {
    line-height: 0;
    margin: 0;
}
.map-embed iframe {
    width: 100%;
    height: 450px;
    max-width: 100%;
    border: 0;
    display: block;
}

/* Admission */
.admission-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.admission-step__icon {
    margin: 0 auto 0.75rem;
    max-width: 120px;
}
.admission-step__icon img {
    width: 100%;
    height: auto;
    display: block;
}
.admission-step__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
    line-height: 1.35;
}
.enquiry-section {
    background: var(--color-cream);
}
.enquiry-section__title {
    margin-bottom: 2rem;
}
.enquiry-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.enquiry-section__visual img {
    width: 100%;
    max-width: 540px;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
}
.btn-submit-wide {
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Facilities alternating */
.facility-block {
    padding: 3.5rem 0;
}
.facility-block--cream {
    background: var(--color-cream);
}
.facility-block__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.facility-block__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem;
}
.facility-block__text p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}
.facility-block__media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}
.facility-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}
.facility-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}
.facility-list__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(155, 28, 28, 0.12);
    color: var(--color-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.footer-follow-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-maroon);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 1rem 0 0.35rem;
}
.footer-legal-links a {
    color: var(--color-white);
    text-decoration: none;
}
.footer-legal-links a:hover {
    text-decoration: underline;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    margin-bottom: 5px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.notice { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.notice.ok { background: #e8f5e9; color: #1b5e20; }
.notice.err { background: #ffebee; color: #b71c1c; }

/* ——— Footer ——— */
.site-footer {
    background: var(--color-white);
    color: var(--color-dark);
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2.75rem 0;
    align-items: start;
}
.footer-col {
    padding: 0 1.25rem;
    border-right: 1px solid var(--color-footer-divider);
}
.footer-col:last-child { border-right: none; }
.footer-brand-link { display: inline-block; text-decoration: none; }
.footer-logo {
    width: 50%;
}
.footer-school-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-maroon);
    margin: 0.65rem 0 0;
    max-width: 14rem;
    line-height: 1.3;
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}
.footer-link-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1.5rem;
}
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-link-list li { margin-bottom: 0.45rem; }
.footer-link-list a {
    color: #1565c0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Futura bk bt", Sans-serif;
    font-size: 15px;
    font-weight: 600;
}
.footer-link-list a:hover { color: var(--color-maroon); text-decoration: none; }
.footer-link-list a.active { color: var(--color-maroon); border-bottom-color: var(--color-maroon); }

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-contact-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-contact-list a { color: var(--color-dark); text-decoration: none; }
.footer-contact-list a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-contact-icon {
    flex-shrink: 0;
    color: var(--color-heading);
    margin-top: 0.15rem;
}

.footer-legal {
    background: var(--color-maroon);
    color: var(--color-white);
    font-family: "Futura pt bold", Sans-serif;
    font-size: 13px;
    font-weight: 600;
}
.footer-legal__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 0.85rem 0;
}
.footer-legal a { color: var(--color-white); }

@media (min-width: 1024px) {
    .section h2 {
        font-size: 32px;
    }
    .heading-maroon {
        font-size: 32px;
    }
    .heading-maroon-center{
        font-size: 32px;
    }
    .about-history__heading{
        font-size: 32px;
    }
    .heading-maroon-caps.letter-animation {
        font-size: 32px;
    }
    .site-nav a {
        font-size: 14px;
    }
    .about-instagram__cell {
        width: min(22vw, 230px);
    }
}
@media (max-width: 1024px) {
    .gallery-grid--three {
        grid-template-columns: repeat(2, 1fr);
    }
    .admission-steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-instagram__cell {
        width: min(22vw, 230px);
    }
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-col {
        border-right: none;
        border-bottom: 1px solid var(--color-footer-divider);
        padding-bottom: 1.5rem;
    }
    .footer-col:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 768px) {
    .top-bar__inner { flex-direction: column; align-items: flex-start; }
    .nav-toggle { display: block; margin-left: auto; }
    .header-inner { flex-wrap: wrap; }
    .header-end {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1.25rem;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    .header-end.is-open { display: flex; }
    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .site-nav li { width: 100%; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
    .site-nav a { display: block; padding: 0.65rem 0; }
    .social-icons--header {
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        margin-top: 0.25rem;
    }
    .two-col, .contact-grid,
    .about-welcome__grid,
    .about-vm__grid,
    .about-founder__grid {
        grid-template-columns: 1fr;
    }
    .about-founder__photo { order: -1; }
    .about-vm__grid--gifs { grid-template-columns: 1fr; }
    .touch-cards { grid-template-columns: 1fr; }
    .reach-grid { grid-template-columns: 1fr; }
    .enquiry-section__grid { grid-template-columns: 1fr; }
    .facility-block__inner { grid-template-columns: 1fr; }
    .gallery-grid--three { grid-template-columns: 1fr; }
    .admission-steps__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .card:hover,
    .gallery-tile:hover,
    .touch-card:hover,
    .about-instagram__cell:hover img {
        transform: none;
    }
}
