/* The homepage uses grid columns; override the older percentage-based flex widths. */
.home-page #home-footer .footer-slide .footer-content .footer-container .footer-columns-content > .footer-column-content {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    padding-inline: 0;
    justify-self: stretch;
}
.home-page #home-footer .footer-column-title {
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow: visible;
}
.home-page #home-footer .footer-column-ul {
    padding: 0;
    list-style: none;
}
.home-page #home-footer .footer-link {
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
}
.home-page #home-footer .footer-icon {
    flex-shrink: 0;
}
.home-page #home-footer .school-map-container,
.home-page #home-footer .map-wrapper {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.home-page #home-footer .map-iframe {
    display: block;
    width: 100%;
    height: 160px;
}
.home-page #home-footer .map-wrapper {
    height: 160px;
}
/* Keep the identity block readable instead of squeezing its decorative masks. */
.home-page #home-footer .footer-mask-container .footer-mask-outer,
.home-page #home-footer .footer-mask-container .footer-mask-inner,
.home-page #home-footer .footer-mask-container .logo-mask-1,
.home-page #home-footer .footer-mask-container .logo-mask-2 {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: auto;
    mask: none;
    -webkit-mask: none;
    clip-path: none;
    background: none;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    overflow: visible;
}
.home-page #home-footer .footer-mask-container .footer-mask-inner {
    display: flex;
    flex-direction: column !important;
    gap: 20px;
    padding: 24px 16px;
    border: 1px solid rgba(41, 82, 190, .15);
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
}
.home-page #home-footer .footer-mask-container .school-logo {
    display: block;
    width: 120px !important;
    height: 120px;
    object-fit: contain;
    filter: none;
}
.home-page #home-footer .footer-mask-container .footer-mask-contactUs {
    width: 100%;
}
.home-page #home-footer .footer-mask-container .section-title,
.home-page #home-footer .footer-mask-container .section-subtitle {
    color: #283676;
    text-align: center;
    white-space: normal;
    height: auto;
}
@media (min-width: 991.5px) and (max-width: 1199.5px) {
    .home-page #home-footer footer.section-part .footer-columns-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.home-page #home-footer .footer-mask-container .footer-mask-outer::before,
.home-page #home-footer .footer-mask-container .footer-mask-inner::before,
.home-page #home-footer .footer-mask-container .footer-mask-outer::after,
.home-page #home-footer .footer-mask-container .footer-mask-inner::after {
    content: none;
}
.home-page #home-footer .footer-mask-container .section-title {
    font-size: 1.25rem;
    line-height: 1.8;
}
.home-page #home-footer .footer-mask-container .section-subtitle {
    font-size: 1rem;
}
@media (min-width: 991.5px) {
    .home-page #home-footer footer.section-part .footer-container {
        flex-direction: row !important;
    }
}

/* Reuse school 64's footer appearance only on the homepage. */
.home-page #home-footer .footer-slide {
    position: relative;
    background: #e8f4ff url(../images/home-page/banner-footer-section-pattern.svg) no-repeat center !important;
    background-size: cover !important;
}
.home-page #home-footer .footer-slide::before,
.home-page #home-footer .footer-slide::after {
    display: none;
}
.home-page #home-footer .footer-content {
    position: relative;
    z-index: 1;
}
.home-page #home-footer .footer-mask-container .logo-mask-1 {
    display: none;
}
.home-page #home-footer .footer-mask-container .footer-mask-inner {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.home-page #home-footer .footer-mask-container .section-title {
    color: #2b3a67;
    font-size: clamp(1.5rem, 2.3vw, 2.5rem);
}
.home-page #home-footer .footer-column-title,
.home-page #home-footer .footer-link {
    color: #626262;
}
.home-page #home-footer .footer-column-title::after {
    background: #2b3a67;
}
.home-page #home-footer .divider {
    display: none;
}
@media (min-width: 991.5px) {
    .home-page #home-footer footer.section-part .footer-container {
        flex-direction: row-reverse !important;
        align-items: flex-start !important;
    }
    .home-page #home-footer footer.section-part .footer-mask-container {
        width: 30% !important;
        flex: 0 0 30%;
    }
    .home-page #home-footer footer.section-part .footer-columns-content {
        width: 65% !important;
        flex: 0 0 65%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(110px, 1fr);
    }
    .home-page #home-footer .footer-slide .footer-content .footer-container .footer-columns-content .location-column {
        display: none !important;
    }
    .home-page #home-footer .footer-social-media {
        align-self: flex-end;
        margin-right: 0 !important;
        margin-left: auto !important;
    }
}
@media (max-width: 991.49px) {
    .home-page #home-footer .footer-slide {
        background-image: url(../images/home-page/banner-footer-section-pattern.svg) !important;
    }
}

/* Keep the existing credits/download row visible on the homepage at every size. */
.home-page #home-footer > .created-by {
    display: block !important;
    position: relative !important;
    width: 100%;
    flex: 0 0 auto;
}
.home-page #home-footer > footer.section-part {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
}
.home-page #home-footer > footer.section-part > .footer-slide {
    flex: 1 0 auto;
    width: 100%;
    min-height: calc(100vh - 130px) !important;
    min-height: calc(100dvh - 130px) !important;
}
@media (max-width: 991.49px) {
    .home-page #home-footer > .created-by > .main-container > * {
        width: 100%;
    }
    .home-page #home-footer > .created-by .footer-bottom-btn-container {
        flex-wrap: wrap;
    }
}

/* Continue the same pale blue background through the credits row. */
.home-page #home-footer > .created-by {
    background-color: #e8f4ff !important;
    background-image: none !important;
}
