/* EMAMIC COLLEGE — homepage editorial system */

.home-page {
    --home-forest: #064e3b;
    --home-forest-deep: #033c2f;
    --home-gold: #d4a72c;
    --home-gold-dark: #af8515;
    --home-ink: #13251f;
    --home-muted: #5d6b66;
    --home-mint: #eaf4ef;
    --home-paper: #ffffff;
    --home-line: rgba(19, 37, 31, 0.16);
    --home-serif: "DM Serif Display", Georgia, serif;
    --home-sans: "Manrope", "Segoe UI", sans-serif;
    color: var(--home-ink);
    background: var(--home-paper);
    font-family: var(--home-sans);
    line-height: 1.7;
}

.home-page img {
    display: block;
    max-width: 100%;
}

.home-page .skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--home-forest);
    transform: translateY(-180%);
}

.home-page .skip-link:focus {
    transform: translateY(0);
}

.home-shell {
    width: min(100% - 3rem, 1240px);
    margin-inline: auto;
}

.home-page .top-bar {
    display: none;
}

.home-page .main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    border-bottom: 1px solid rgba(19, 37, 31, 0.1);
}

.home-page .nav-container {
    width: min(100% - 3rem, 1240px);
    max-width: none;
    height: 92px;
    padding: 0;
}

.home-page .logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-right: 0.8rem;
}

.home-page .school-name {
    max-width: 230px;
    color: var(--home-forest);
    font-family: var(--home-serif);
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 1.05;
    text-transform: uppercase;
}

.home-page .school-motto {
    margin-top: 0.2rem;
    color: var(--home-gold-dark);
    font-family: var(--home-sans);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.home-page .nav-menu > ul {
    gap: 1.65rem;
}

.home-page .nav-menu > ul > li > a {
    color: var(--home-ink);
    font-family: var(--home-sans);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.home-page .nav-menu > ul > li > a:hover,
.home-page .nav-menu > ul > li > a.active {
    color: var(--home-forest);
}

.home-page .nav-menu > ul > li > a::after {
    height: 1px;
    background: var(--home-gold);
}

.home-page .nav-btn {
    padding: 0.75rem 1.1rem !important;
    color: #fff !important;
    background: var(--home-forest);
    border-radius: 2px;
    box-shadow: none;
}

.home-page .nav-btn:hover {
    color: var(--home-forest-deep) !important;
    background: var(--home-gold);
    transform: none;
}

.home-page .dropdown-content {
    border-top: 2px solid var(--home-gold);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 18px 50px rgba(3, 60, 47, 0.14);
}

.home-page .dropdown-content a {
    font-family: var(--home-sans);
}

.home-page .mobile-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--home-forest);
    background: transparent;
    border: 1px solid var(--home-line);
    border-radius: 2px;
}

.home-announcement {
    color: #fff;
    background: var(--home-forest-deep);
}

.home-announcement__inner {
    min-height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.76rem;
}

.home-announcement__label {
    color: var(--home-gold);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-announcement p {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-announcement a {
    color: #fff;
    font-weight: 700;
}

.home-announcement a:hover {
    color: var(--home-gold);
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.home-hero__slides {
    position: relative;
    height: 670px;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    height: 100%;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: scale(1.012);
    transition: opacity 650ms ease, transform 650ms ease;
    visibility: hidden;
}

.home-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5.5rem 3.5rem 5.5rem max(1.5rem, calc((100vw - 1240px) / 2));
    background: #fff;
    min-height: 0;
}

.home-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    color: var(--home-gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-kicker::before {
    width: 32px;
    height: 1px;
    background: currentColor;
    content: "";
}

.home-kicker--light {
    color: #f3c54c;
}

.home-hero h1,
.home-hero h2,
.home-page h2 {
    margin: 0;
    color: var(--home-ink);
    font-family: var(--home-serif);
    font-weight: 400;
    letter-spacing: -0.025em;
}

.home-hero h1,
.home-hero h2 {
    max-width: 650px;
    font-size: clamp(3.5rem, 5vw, 4.85rem);
    line-height: 0.99;
}

.home-hero__lead {
    max-width: 600px;
    margin: 2rem 0 0;
    color: var(--home-muted);
    font-size: 1.04rem;
    line-height: 1.8;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.home-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--home-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: none;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.home-button--primary {
    color: #fff;
    background: var(--home-forest);
}

.home-button--primary:hover {
    color: var(--home-forest-deep);
    background: var(--home-gold);
}

.home-button--text {
    min-height: auto;
    padding-inline: 0;
    color: var(--home-forest);
    border-bottom-color: var(--home-gold);
    border-radius: 0;
}

.home-button--text:hover {
    color: var(--home-gold-dark);
}

.home-button--gold {
    color: var(--home-forest-deep);
    background: var(--home-gold);
}

.home-button--gold:hover {
    color: var(--home-forest-deep);
    background: #edc354;
}

.home-button--outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.52);
}

.home-button--outline-light:hover {
    color: var(--home-forest-deep);
    background: #fff;
    border-color: #fff;
}

.home-hero__media {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
}

.home-hero__media::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 14%;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    pointer-events: none;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
}

.home-hero__controls {
    position: absolute;
    z-index: 5;
    bottom: 1.6rem;
    left: max(1.5rem, calc((100vw - 1240px) / 2));
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--home-forest);
}

.home-hero__arrow {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    color: var(--home-forest);
    background: #fff;
    border: 1px solid rgba(6, 78, 59, 0.18);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.home-hero__arrow:hover,
.home-hero__arrow:focus-visible {
    color: #fff;
    background: var(--home-forest);
    border-color: var(--home-forest);
}

.home-hero__dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-hero__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(6, 78, 59, 0.24);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.home-hero__dots button.is-active {
    width: 26px;
    background: var(--home-gold-dark);
}

.home-hero__dots button:focus-visible {
    outline: 2px solid var(--home-forest);
    outline-offset: 3px;
}

.home-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.2rem;
    font-family: var(--home-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.home-hero__count i {
    width: 18px;
    height: 1px;
    background: var(--home-gold-dark);
}

.home-proof {
    color: #fff;
    background: var(--home-forest);
}

.home-proof__grid {
    min-height: 148px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
}

.home-proof__intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.home-proof__intro p {
    max-width: 320px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    line-height: 1.75;
}

.home-proof__mark {
    width: 26px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--home-gold);
}

.home-proof__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-proof__items > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.6rem 2.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.home-proof__items > div:last-child {
    border-right: 0;
}

.home-proof dt {
    color: #fff;
    font-family: var(--home-serif);
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
    line-height: 1.1;
}

.home-proof dd {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-section {
    padding-block: clamp(5.5rem, 9vw, 9rem);
}

.home-page h2 {
    font-size: clamp(2.8rem, 5vw, 4.9rem);
    line-height: 1.05;
}

.home-section__lead {
    color: var(--home-muted);
    font-size: 1rem;
}

.home-learning__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(3.5rem, 8vw, 8rem);
    align-items: center;
}

.home-learning__media {
    position: relative;
    margin: 0;
}

.home-learning__media::before {
    position: absolute;
    z-index: -1;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 52%;
    height: 42%;
    background: var(--home-mint);
    content: "";
}

.home-learning__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.home-learning__media figcaption {
    max-width: 88%;
    margin-top: 1.35rem;
    color: var(--home-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.home-learning__content h2 {
    max-width: 760px;
}

.home-learning__content > .home-section__lead {
    max-width: 680px;
    margin-top: 1.6rem;
}

.home-pathways {
    margin-top: 2.6rem;
    border-top: 1px solid var(--home-line);
}

.home-pathways article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--home-line);
}

.home-pathways article > span {
    padding-top: 0.17rem;
    color: var(--home-gold-dark);
    font-family: var(--home-serif);
    font-size: 1rem;
}

.home-pathways h3 {
    margin: 0;
    color: var(--home-ink);
    font-family: var(--home-sans);
    font-size: 0.95rem;
    font-weight: 700;
}

.home-pathways p {
    margin-top: 0.25rem;
    color: var(--home-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 1.8rem;
    padding-bottom: 0.25rem;
    color: var(--home-forest);
    border-bottom: 1px solid var(--home-gold);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-link:hover {
    gap: 2.15rem;
    color: var(--home-gold-dark);
}

.home-learning__content > .home-link {
    margin-top: 2rem;
}

.home-campus {
    background: var(--home-mint);
}

.home-section-heading {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 3.2rem;
}

.home-section-heading > div:last-child {
    padding-bottom: 0.5rem;
}

.home-section-heading > div:last-child p {
    margin-bottom: 1.5rem;
    color: var(--home-muted);
    font-size: 0.9rem;
}

.home-campus__feature {
    position: relative;
    margin: 0;
}

.home-campus__feature img {
    width: 100%;
    aspect-ratio: 16 / 7.4;
    object-fit: cover;
}

.home-campus__feature figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    min-width: min(430px, 82%);
    padding: 1.2rem 1.5rem;
    color: #fff;
    background: var(--home-forest);
}

.home-campus__feature figcaption span,
.home-campus__feature figcaption strong {
    display: block;
}

.home-campus__feature figcaption span {
    color: #f3c54c;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-campus__feature figcaption strong {
    margin-top: 0.2rem;
    font-family: var(--home-serif);
    font-size: 1.35rem;
    font-weight: 400;
}

.home-facilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.home-facility {
    overflow: hidden;
    color: var(--home-ink);
    background: #fff;
}

.home-facility img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 500ms ease;
}

.home-facility:hover img {
    transform: scale(1.025);
}

.home-facility > span {
    display: block;
    padding: 1.25rem 1.35rem 1.4rem;
}

.home-facility strong,
.home-facility small {
    display: block;
}

.home-facility strong {
    font-family: var(--home-serif);
    font-size: 1.35rem;
    font-weight: 400;
}

.home-facility small {
    margin-top: 0.35rem;
    color: var(--home-muted);
    font-size: 0.7rem;
}

.home-admissions {
    padding-block: clamp(5.5rem, 9vw, 8.5rem);
    color: #fff;
    background: var(--home-forest-deep);
}

.home-admissions__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(430px, 0.75fr);
    gap: clamp(4rem, 9vw, 9rem);
    align-items: center;
}

.home-admissions__content h2 {
    color: #fff;
}

.home-admissions__content > p:not(.home-kicker) {
    max-width: 530px;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.73);
    font-size: 0.95rem;
}

.home-admissions__steps {
    max-width: 440px;
    margin: 2.8rem 0;
    list-style: none;
    counter-reset: none;
}

.home-admissions__steps li {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-admissions__steps span {
    color: var(--home-gold);
    font-family: var(--home-serif);
    font-size: 1.8rem;
}

.home-admissions__steps strong {
    font-size: 0.9rem;
}

.home-enquiry {
    padding: clamp(1.6rem, 3vw, 2.5rem);
    color: var(--home-ink);
    background: #fff;
    border-radius: 4px;
}

.home-enquiry__heading {
    margin-bottom: 1.7rem;
}

.home-enquiry__heading .home-kicker {
    margin-bottom: 0.7rem;
}

.home-enquiry__heading h3 {
    font-family: var(--home-serif);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
}

.home-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.home-field {
    margin-bottom: 1rem;
}

.home-field label {
    display: block;
    margin-bottom: 0.38rem;
    color: #30413b;
    font-size: 0.68rem;
    font-weight: 700;
}

.home-field input,
.home-field select,
.home-field textarea {
    width: 100%;
    padding: 0.72rem 0.8rem;
    color: var(--home-ink);
    background: #fff;
    border: 1px solid #cbd4d0;
    border-radius: 2px;
    outline: 0;
    font: inherit;
    font-size: 0.8rem;
}

.home-field input,
.home-field select {
    height: 46px;
}

.home-field textarea {
    resize: vertical;
}

.home-field input:focus,
.home-field select:focus,
.home-field textarea:focus {
    border-color: var(--home-forest);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

.home-field [aria-invalid="true"] {
    border-color: #a6382e;
}

.home-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.home-enquiry__submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.home-enquiry__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.home-form-status {
    min-height: 1.4rem;
    margin-top: 0.75rem;
    font-size: 0.72rem;
}

.home-form-status.is-success {
    color: #176d47;
}

.home-form-status.is-error {
    color: #a6382e;
}

.home-community__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: clamp(3.5rem, 8vw, 8rem);
    align-items: center;
}

.home-community__media {
    margin: 0;
}

.home-community__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.home-community__content p:not(.home-kicker) {
    max-width: 660px;
    margin: 1.8rem 0 2rem;
    color: var(--home-muted);
    font-size: 1rem;
}

.home-news {
    padding-block: clamp(5rem, 8vw, 7.5rem);
    background: var(--home-mint);
}

.home-news__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.8rem;
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
}

.home-news article {
    min-height: 220px;
    padding: 1.7rem 2rem 1.7rem 0;
    border-right: 1px solid var(--home-line);
}

.home-news article + article {
    padding-left: 2rem;
}

.home-news article:last-child {
    border-right: 0;
}

.home-news time {
    color: var(--home-gold-dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-news h3 {
    margin: 1.2rem 0 1.5rem;
    color: var(--home-ink);
    font-family: var(--home-serif);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.3;
}

.home-news article a {
    color: var(--home-forest);
    font-size: 0.72rem;
    font-weight: 700;
}

.home-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.2fr);
    gap: clamp(3.5rem, 8vw, 8rem);
}

.home-faq__intro {
    position: sticky;
    top: 130px;
    align-self: start;
}

.home-faq__intro > p:not(.home-kicker) {
    max-width: 390px;
    margin: 1.5rem 0;
    color: var(--home-muted);
    font-size: 0.88rem;
}

.home-accordion {
    border-top: 1px solid var(--home-line);
}

.home-accordion details {
    border-bottom: 1px solid var(--home-line);
}

.home-accordion summary {
    position: relative;
    padding: 1.4rem 3.2rem 1.4rem 0;
    color: var(--home-ink);
    cursor: pointer;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.home-accordion summary::-webkit-details-marker {
    display: none;
}

.home-accordion summary::after {
    position: absolute;
    right: 0;
    top: 50%;
    color: var(--home-gold-dark);
    font-family: var(--home-serif);
    font-size: 1.6rem;
    line-height: 1;
    transform: translateY(-50%);
    content: "+";
}

.home-accordion details[open] summary::after {
    content: "−";
}

.home-accordion details p {
    max-width: 680px;
    padding: 0 3rem 1.5rem 0;
    color: var(--home-muted);
    font-size: 0.82rem;
}

.home-visit {
    color: #fff;
    background: var(--home-forest);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-visit__inner {
    min-height: 320px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.home-visit h2 {
    max-width: 720px;
    color: #fff;
    font-size: clamp(2.5rem, 4vw, 4.1rem);
}

.home-visit__inner > div:last-child > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.home-page .main-footer {
    margin: 0;
    padding-top: 5rem;
    color: rgba(255, 255, 255, 0.62);
    background: var(--home-forest-deep);
    font-family: var(--home-sans);
    font-size: 0.78rem;
}

.home-page .main-footer .container {
    width: min(100% - 3rem, 1240px);
    max-width: none;
    padding: 0;
}

.home-page .footer-grid {
    grid-template-columns: 1.45fr 0.75fr 1.05fr 1.1fr;
    gap: 3.5rem;
}

.home-page .footer-logo-img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: none;
}

.home-page .footer-desc {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.62);
}

.home-page .footer-heading {
    color: #fff;
    font-family: var(--home-serif);
    font-size: 1.2rem;
    font-weight: 400;
}

.home-page .footer-heading::after {
    width: 28px;
    height: 1px;
    background: var(--home-gold);
}

.home-page .footer-links a,
.home-page .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.62);
}

.home-page .footer-links a:hover,
.home-page .footer-bottom-links a:hover {
    color: var(--home-gold);
    padding-left: 0;
}

.home-page .contact-list i {
    color: var(--home-gold);
}

.home-page .footer-socials a {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    background: transparent;
}

.home-page .footer-updates-link {
    margin-top: 1.2rem;
    color: #fff;
}

.home-page .newsletter-form input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    border-radius: 2px 0 0 2px;
}

.home-page .newsletter-form button {
    color: var(--home-forest-deep);
    background: var(--home-gold);
    border-radius: 0 2px 2px 0;
}

.home-page .footer-bottom {
    padding: 1.3rem 0;
    background: transparent;
    border-top-color: rgba(255, 255, 255, 0.12);
}

.home-page .back-to-top {
    right: 1.4rem;
    bottom: 1.4rem;
    width: 42px;
    height: 42px;
    color: var(--home-forest-deep);
    background: var(--home-gold);
    border-radius: 2px;
    line-height: 42px;
}

.home-install {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    z-index: 1200;
}

.home-install button {
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--home-forest);
    border: 0;
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(3, 60, 47, 0.18);
    cursor: pointer;
    font: 700 0.72rem var(--home-sans);
}

.home-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .home-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1140px) {
    .home-page .nav-menu > ul {
        gap: 1rem;
    }

    .home-page .nav-menu > ul > li > a {
        font-size: 0.72rem;
    }

    .home-page .school-motto {
        display: none;
    }

    .home-hero__grid {
        min-height: 610px;
    }

    .home-hero__content {
        padding-right: 2.4rem;
    }

    .home-admissions__grid {
        gap: 4rem;
    }
}

@media (max-width: 992px) {
    .home-page .nav-container {
        height: 76px;
    }

    .home-page .logo-img {
        width: 48px;
        height: 48px;
    }

    .home-page .school-motto {
        display: block;
    }

    .home-page .nav-menu {
        right: -330px;
        width: min(330px, 88vw);
        padding: 5.5rem 1.6rem 2rem;
        font-family: var(--home-sans);
    }

    .home-page .nav-menu.active {
        right: 0;
    }

    .home-page .nav-menu > ul {
        gap: 0;
    }

    .home-page .nav-menu > ul > li > a {
        font-size: 0.82rem;
    }

    .home-page .menu-overlay {
        z-index: 999;
        background: rgba(3, 31, 24, 0.55);
    }

    .home-hero__grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .home-hero__content {
        width: min(100% - 3rem, 720px);
        margin-inline: auto;
        padding: 5rem 0 4rem;
    }

    .home-hero__media {
        min-height: 520px;
    }

    .home-hero__media::before {
        inset: 0 0 auto;
        width: 100%;
        height: 15%;
        background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    }

    .home-proof__grid,
    .home-learning__grid,
    .home-community__grid,
    .home-faq__grid {
        grid-template-columns: 1fr;
    }

    .home-proof__grid {
        width: 100%;
    }

    .home-proof__intro {
        display: none;
    }

    .home-learning__grid,
    .home-community__grid,
    .home-faq__grid {
        gap: 4rem;
    }

    .home-learning__media,
    .home-community__media {
        max-width: 620px;
    }

    .home-section-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .home-section-heading > div:last-child {
        max-width: 620px;
    }

    .home-admissions__grid {
        grid-template-columns: 1fr;
    }

    .home-admissions__content {
        max-width: 680px;
    }

    .home-enquiry {
        max-width: 680px;
    }

    .home-faq__intro {
        position: static;
    }

    .home-visit__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-block: 4rem;
    }

    .home-page .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .home-shell,
    .home-page .nav-container,
    .home-page .main-footer .container {
        width: min(100% - 2rem, 1240px);
    }

    .home-page .school-name {
        max-width: 175px;
        font-size: 0.94rem;
    }

    .home-page .school-motto {
        font-size: 0.5rem;
    }

    .home-announcement__inner {
        min-height: 50px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.7rem;
    }

    .home-announcement a {
        display: none;
    }

    .home-hero__content {
        width: min(100% - 2rem, 720px);
        padding-block: 4rem 3.5rem;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 13vw, 4.4rem);
    }

    .home-hero__lead {
        font-size: 0.92rem;
    }

    .home-hero__media {
        min-height: 400px;
    }

    .home-hero__media img {
        object-position: 55% center;
    }

    .home-proof__items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-proof__items > div {
        padding: 1.4rem 0.75rem;
    }

    .home-proof dt {
        font-size: 1.35rem;
    }

    .home-proof dd {
        font-size: 0.53rem;
        line-height: 1.4;
    }

    .home-page h2 {
        font-size: clamp(2.6rem, 12vw, 3.8rem);
    }

    .home-section {
        padding-block: 5rem;
    }

    .home-learning__grid,
    .home-community__grid,
    .home-faq__grid {
        gap: 3.2rem;
    }

    .home-learning__media::before {
        display: none;
    }

    .home-campus__feature img {
        aspect-ratio: 4 / 3;
    }

    .home-facilities,
    .home-news__grid {
        grid-template-columns: 1fr;
    }

    .home-facility {
        display: grid;
        grid-template-columns: 42% 58%;
    }

    .home-facility img {
        height: 100%;
        aspect-ratio: 1;
    }

    .home-facility > span {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
    }

    .home-news__heading {
        align-items: start;
        flex-direction: column;
    }

    .home-news article,
    .home-news article + article {
        min-height: auto;
        padding: 1.5rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--home-line);
    }

    .home-news article:last-child {
        border-bottom: 0;
    }

    .home-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-page .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-page .footer-col {
        margin-bottom: 0;
    }
}

@media (max-width: 430px) {
    .home-page .logo-text {
        display: none;
    }

    .home-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .home-button {
        width: 100%;
    }

    .home-button--text {
        width: auto;
        align-self: flex-start;
    }

    .home-hero__media {
        min-height: 330px;
    }

    .home-proof__items {
        overflow-x: auto;
    }

    .home-proof__items > div {
        min-width: 110px;
    }

    .home-campus__feature figcaption {
        position: static;
        min-width: 100%;
    }

    .home-facility {
        grid-template-columns: 1fr;
    }

    .home-facility img {
        aspect-ratio: 16 / 9;
    }

    .home-accordion summary {
        font-size: 0.84rem;
    }
}

@media (max-width: 992px) {
    .home-hero__slides {
        height: auto;
    }

    .home-hero__slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
        min-height: 0;
        transform: none;
    }

    .home-hero__slide.is-active {
        display: grid;
    }

    .home-hero__content {
        width: min(100% - 3rem, 720px);
        margin-inline: auto;
        padding: 5rem 0 4rem;
    }

    .home-hero__media {
        min-height: 520px;
    }

    .home-hero__media::before {
        inset: 0 0 auto;
        width: 100%;
        height: 15%;
        background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    }

    .home-hero__controls {
        bottom: 1.25rem;
        left: max(1.5rem, calc((100vw - 720px) / 2));
    }
}

@media (max-width: 720px) {
    .home-hero__content {
        width: min(100% - 2rem, 720px);
        padding-block: 4rem 3.5rem;
    }

    .home-hero h1,
    .home-hero h2 {
        font-size: clamp(3rem, 13vw, 4.4rem);
    }

    .home-hero__media {
        min-height: 400px;
    }

    .home-hero__media img {
        object-position: 55% center;
    }

    .home-hero__controls {
        bottom: 1rem;
        left: 1rem;
        gap: 0.65rem;
    }

    .home-hero__arrow {
        width: 34px;
        height: 34px;
    }

    .home-hero__count {
        color: #fff;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.36);
    }

    .home-hero__dots button {
        background: rgba(255, 255, 255, 0.58);
    }

    .home-hero__dots button.is-active {
        background: var(--home-gold);
    }
}

@media (max-width: 430px) {
    .home-hero__media {
        min-height: 330px;
    }

    .home-hero__controls {
        bottom: 0.85rem;
    }

    .home-hero__count {
        display: none;
    }
}
