/* Inspire Kids Montessori | Global stylesheet
   Signika is loaded in HTML. Keep shared styles here, not inline.
   Section order is preserved to avoid changing established cascade behavior. */


/*
================================================================
INSPIRE KIDS MONTESSORI
GLOBAL RESPONSIVE STYLESHEET
Bootstrap 5 compatible | Responsive | Accessibility enhancements

TYPOGRAPHY
- Signika: body, headings, navigation, buttons and forms
- Font loaded in HTML head (no duplicate CSS import)

BRAND COLORS
- Blue: #0070C0 | Gold: #FFC000 | Red: #C00000 | Black: #000000

ACCESSIBILITY
- Designed to support WCAG 2.2 Level AA
- Responsive typography, keyboard focus, reduced-motion styles
- Full conformance requires testing HTML, scripts, forms and media
================================================================
*/


/* =========================================================
   01. DESIGN TOKENS
========================================================= */

:root {
    color-scheme: light;

    --brand-blue: #0070C0;
    --brand-blue-dark: #005A9A;
    --brand-blue-deep: #003F70;
    --brand-gold: #FFC000;
    --brand-gold-dark: #805F00;
    --brand-red: #C00000;
    --brand-black: #000000;
    --brand-body: #222222;

    --brand-light-blue: #EAF5FC;
    --brand-light-gold: #FFF8E6;

    --light-blue: var(--brand-light-blue);
    --light-gold: var(--brand-light-gold);

    --color-white: #FFFFFF;
    --color-border: #D9E5ED;
    --color-muted: #595959;
    --color-footer: #111111;

    --font-body: "Signika", sans-serif;
    --font-heading: "Signika", sans-serif;

    --font-size-base: 1rem;
    --line-height-body: 1.7;

    --content-width: 75rem;

    --radius-small: 0.375rem;
    --radius-medium: 0.625rem;
    --radius-large: 1rem;

    --focus-color: #005FCC;
    --focus-width: 0.1875rem;
    --focus-offset: 0.1875rem;

    --card-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 0.625rem 1.5625rem rgba(0, 112, 192, 0.16);
}


/* =========================================================
   02. RESET AND GLOBAL ELEMENTS
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--brand-body);
    background-color: var(--color-white);
    overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

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

button,
.btn {
    touch-action: manipulation;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul,
ol {
    padding-left: 1.5rem;
}

section,
header,
footer,
main {
    min-width: 0;
}

.container,
.container-fluid,
.row,
[class*="col-"] {
    min-width: 0;
}


/* =========================================================
   03. TYPOGRAPHY AND LINKS
========================================================= */

h1, h2, h3,
.h1, .h2, .h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand-black);
    text-wrap: balance;
}

h1, .h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}

h2, .h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3, .h3 {
    font-size: clamp(1.375rem, 2.2vw, 1.875rem);
}

h4, h5, h6,
.h4, .h5, .h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--brand-black);
}

h4, .h4 {
    font-size: 1.25rem;
}

h5, .h5 {
    font-size: 1.125rem;
}

h6, .h6 {
    font-size: 1rem;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
}

p,
li,
label,
input,
textarea,
select,
.form-control {
    font-family: var(--font-body);
}

small,
.small {
    font-size: 0.875rem;
}

a {
    color: var(--brand-blue-dark);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 0.08em;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-blue-deep);
}

a img {
    border: 0;
}


/* =========================================================
   04. BRAND AND BOOTSTRAP UTILITIES
========================================================= */

.bg-primary {
    background-color: var(--brand-blue) !important;
}

.bg-secondary {
    background-color: var(--brand-gold) !important;
    color: var(--brand-black) !important;
}

.bg-light {
    background-color: var(--brand-light-gold) !important;
}

.bg-dark {
    background-color: var(--brand-black) !important;
}

.text-primary {
    color: var(--brand-blue-dark) !important;
}

.text-secondary {
    color: var(--brand-gold-dark) !important;
}

.text-dark {
    color: var(--brand-black) !important;
}

.border-primary {
    border-color: var(--brand-blue) !important;
}

.border-secondary {
    border-color: var(--brand-gold) !important;
}

.accent-red,
.text-accent-red {
    color: var(--brand-red) !important;
}

.bg-accent-red {
    background-color: var(--brand-red) !important;
    color: var(--color-white) !important;
}

.border-accent-red {
    border-color: var(--brand-red) !important;
}


/* =========================================================
   05. BUTTONS AND INTERACTIVE CONTROLS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.625rem 1.125rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-small);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary,
.btn.btn-primary {
    background-color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: var(--color-white) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:hover {
    background-color: var(--brand-blue-dark) !important;
    border-color: var(--brand-blue-dark) !important;
    color: var(--color-white) !important;
}

.btn-secondary {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
    color: var(--brand-black) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #E6AD00 !important;
    border-color: #E6AD00 !important;
    color: var(--brand-black) !important;
}

.btn-accent-red {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: var(--color-white) !important;
}

.btn-brand {
    background: var(--brand-blue);
    border: 0.125rem solid var(--brand-blue);
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    border-radius: var(--radius-small);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--color-white);
    border-color: var(--brand-blue-dark);
    color: var(--brand-blue-dark);
}

.btn-outline-brand {
    background: transparent;
    border: 0.125rem solid var(--color-white);
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    border-radius: var(--radius-small);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--color-white);
    color: var(--brand-black);
}

.btn-yellow {
    background-color: var(--brand-gold);
    border: 0.125rem solid var(--brand-gold-dark);
    color: var(--brand-black) !important;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    border-radius: var(--radius-small);
}

.btn-yellow:hover,
.btn-yellow:focus {
    background-color: var(--color-white) !important;
    border-color: var(--brand-gold-dark);
    color: var(--brand-black) !important;
}

.btn-light {
    color: var(--brand-black);
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.btn-light:hover,
.btn-light:focus {
    background: #F2F2F2;
    color: var(--brand-blue-deep);
    border-color: var(--brand-blue-deep);
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-weight: 400;
}

.btn-square,
.btn-sm-square,
.btn-md-square {
    width: 2.75rem;
    height: 2.75rem;
}

.btn-lg-square {
    width: 3.5rem;
    height: 3.5rem;
}

.btn-border-radius {
    border-radius: 25% 10%;
}

.img-border-radius {
    border-radius: 50% 20% / 10% 40%;
}

.title-border-radius {
    border-radius: 10% 30%;
}


/* =========================================================
   06. NAVIGATION AND TOPBAR
   Bootstrap 5 | Responsive | Accessible
========================================================= */

/* Main Navigation */
.navbar {
    position: relative;
    background-color: var(--color-white);
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Navigation Container */
.navbar .container,
.navbar .container-fluid {
    min-width: 0;
}

/* Responsive horizontal logo
   Use the cropped transparent IKM-Logo-horizontal.png asset.
   The width controls the display size; height remains proportional.
*/
.navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    margin-right: 1.5rem;
}

.navbar .navbar-brand img {
    display: block;
    width: clamp(12rem, 27vw, 22rem);
    max-width: 100%;
    height: auto;
    max-height: 4.75rem;
    object-fit: contain;
    object-position: left center;
}

/* Navigation Links */
.navbar .navbar-nav {
    align-items: center;
    gap: 0.125rem;
}

.navbar .navbar-nav .nav-link,
.navbar .dropdown-menu .dropdown-item {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.025em;
}

.navbar .navbar-nav .nav-link {
    display: block;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--brand-black);
    text-decoration: none;
    transition: color 0.2s ease,
                background-color 0.2s ease;
}

/* Hover and Active Links */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus-visible,
.navbar .navbar-nav .nav-link.active {
    color: var(--brand-blue-dark) !important;
}

/* Dropdown Toggle */
.navbar .dropdown-toggle::after {
    border: 0;
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Dropdown Menu */
.navbar .dropdown-menu {
    min-width: 13rem;
    padding: 0.5rem;
    background-color: var(--color-white);
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: 0 0.625rem 1.75rem rgba(0, 0, 0, 0.10);
}

.navbar .dropdown-menu .dropdown-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--brand-black);
    border-radius: var(--radius-small);
    text-decoration: none;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    color: var(--brand-blue-dark) !important;
    background-color: var(--brand-light-blue) !important;
}

/* Desktop Dropdown Behavior */
@media (min-width: 75em) {

    .navbar .nav-item.dropdown {
        position: relative;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: rotateX(-75deg);
        transform-origin: 0 0;
        transition:
            transform 0.2s ease,
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    .navbar .nav-item:hover > .dropdown-menu,
    .navbar .nav-item:focus-within > .dropdown-menu,
    .navbar .nav-item .dropdown-menu.show {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: rotateX(0);
    }
}

/* Mobile and Tablet Navigation */
@media (max-width: 74.99875em) {

    .navbar {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    /* Keep logo left and hamburger menu right on mobile/tablet. */
    .navbar .navbar-brand {
        margin-right: auto;
    }

    .navbar .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.75rem;
        min-height: 2.75rem;
        margin-left: auto;
    }

    .navbar .navbar-brand img {
        width: 12.5rem;
        max-height: 3.25rem;
    }

    .navbar .navbar-collapse {
        padding-top: 0.75rem;
    }

    .navbar .navbar-nav {
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0.25rem 0 0.25rem 1rem;
        border: 0;
        box-shadow: none;
    }

    .navbar .dropdown-menu .dropdown-item {
        padding: 0.625rem 0.75rem;
    }

    .navbar .btn-brand {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/* Compact phones */
@media (max-width: 23.4375em) {
    .navbar .navbar-brand img {
        width: 10.75rem;
        max-height: 2.875rem;
    }
}

/* Navigation Toggler */
.navbar .navbar-toggler {
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-small);
}

.navbar .navbar-toggler:focus-visible {
    outline: var(--focus-width) solid var(--focus-color);
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 2px var(--color-white);
}

/* Book a Tour Button */
.navbar .btn-brand {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Topbar */
.topbar {
    background-color: var(--brand-blue);
    color: var(--color-white);
}

.topbar .top-info {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 400;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.topbar .top-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin-right: 0.625rem;
}

.topbar .top-link a:hover,
.topbar .top-link a:focus {
    background: var(--brand-gold) !important;
}

.topbar .top-link a:hover i,
.topbar .top-link a:focus i {
    color: var(--brand-black) !important;
}


/* =========================================================
   07. HERO AND PAGE HEADERS
========================================================= */

.hero-header,
.page-header {
    background-color: var(--brand-blue);
    color: var(--color-white);
}

.hero-header h1,
.hero-header h2,
.hero-header h3,
.page-header h1,
.page-header h2,
.page-header h3 {
    color: var(--color-white) !important;
}

.hero-header p,
.hero-header li,
.page-header p,
.page-header li {
    color: var(--color-white);
}

.hero-header .text-secondary,
.page-header .text-secondary {
    color: var(--brand-gold) !important;
}

.hero-section {
    position: relative;
    min-height: 38.75rem;
    display: flex;

    align-items: center;
    overflow: hidden;
    background: var(--brand-light-blue);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero video overlays the fallback image only after playback starts. */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-video.is-playing {
    opacity: 1;
}

.hero-overlay {
    z-index: 1;
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.56) 48%,
        rgba(0, 0, 0, 0.18) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 47.5rem;
    padding-top: clamp(3rem, 7vw, 5.625rem);
    padding-bottom: clamp(3rem, 7vw, 5.625rem);
}

.hero-content h1 {
    color: var(--color-white);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.15;
}

.hero-content p {
    color: var(--color-white);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

.hero-slogan {
    color: #FFD24A;
    font-weight: 700;
}


/* =========================================================
   08. ABOUT, LEARNING AND CTA SECTIONS
========================================================= */

.about,
.about-section {
    background-color: var(--color-white);
}

.learning-section {
    background: var(--brand-light-blue);
}

.cta-section {
    background: var(--brand-blue);
    color: var(--color-white);
}

.cta-section h2,
.cta-section p {
    color: var(--color-white);
}

.section-label {
    color: var(--brand-blue-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* =========================================================
   09. VIDEO COMPONENTS AND MODAL
========================================================= */

.video {
    position: relative;
    min-height: 25rem;
    height: 100%;
    background-color: var(--brand-light-blue);
    border-radius: var(--radius-medium);
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: content-box;
    display: block;
    width: 2rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 0;
    padding: 1.125rem 1.25rem 1.125rem 1.75rem;
    cursor: pointer;
}

.video .btn-play::before,
.video .btn-play::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 50%;
}

.video .btn-play::before {
    background: var(--brand-gold);
    animation: pulse-border 1.5s ease-out infinite;
}

.video .btn-play::after {
    z-index: 1;
    background: var(--brand-blue);
    transition: transform 0.2s ease;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 2rem solid var(--color-white);
    border-top: 1.375rem solid transparent;
    border-bottom: 1.375rem solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translate(-50%, -50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 50rem;
    margin: 3.75rem auto 0;
}

#videoModal .modal-body {
    position: relative;
    padding: 0;
}

#videoModal .close {
    position: absolute;
    width: 2.75rem;
    height: 2.75rem;
    right: 0;
    top: -2.75rem;
    z-index: 999;
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--color-white);
    background: var(--brand-black);
    opacity: 1;
}

.video.border {
    border-radius: 50% 20% / 10% 40%;
}


/* =========================================================
   10. SERVICES AND PROGRAMS
========================================================= */

.service {
    background-color: var(--brand-light-blue);
}

.service .service-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border: 0.0625rem solid rgba(0, 112, 192, 0.14);
    border-radius: 50% 20% / 10% 40%;
    box-shadow: 0 0 2.1875rem rgba(0, 0, 0, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-content {
    position: relative;
    isolation: isolate;
}

.service-content::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--brand-gold);
    border-radius: 50% 20% / 10% 40%;
    transition: width 0.3s ease;
    z-index: -1;
}

.service-item:hover,
.service-item:focus-within {
    border-color: var(--brand-gold) !important;
}

.service-item:hover .service-content::after,
.service-item:focus-within .service-content::after {
    width: 100%;
    opacity: 1;
}

.service-item .service-content .service-content-inner {
    position: relative;
    z-index: 2;
}

.service-item .service-content-inner i,
.service-item .service-content-inner p,
.service-item .service-content-inner a.h4 {
    transition: color 0.2s ease;
}

.service-item:hover .service-content-inner i,
.service-item:hover .service-content-inner p,
.service-item:focus-within .service-content-inner i,
.service-item:focus-within .service-content-inner p {
    color: var(--brand-black) !important;
}

.service-item:hover .service-content-inner a.h4,
.service-item:focus-within .service-content-inner a.h4 {
    color: var(--brand-blue-deep) !important;
}

.service-item:hover .service-content-inner a.btn-primary,
.service-item:focus-within .service-content-inner a.btn-primary {
    background: var(--color-white) !important;
    color: var(--brand-blue-dark) !important;
    border-color: var(--color-white) !important;
}

.service-item .service-content-inner a.btn-primary:hover {
    background: var(--brand-blue) !important;
    color: var(--color-white) !important;
}

.program {
    background-color: var(--brand-light-gold);
}

.program .program-item {
    background: var(--color-white);
}

.program .program-item .program-img .program-rate {
    position: absolute;
    width: 6.25rem;
    top: -1.25rem;
    left: 50%;
    margin-left: -3.125rem;
    border-radius: 10% / 50%;
}

.program .program-item .program-text {
    padding-top: 9.375rem;
    margin-top: -7.8125rem;
}

.program .program-item .program-img img,
.program .program-item .program-teacher img,
.program .program-item .program-text-inner a.h4 {
    transition: transform 0.3s ease, color 0.3s ease;
}

.program .program-item:hover .program-img img,
.program .program-item:hover .program-teacher img {
    transform: scale(1.05);
}

.program .program-item:hover .program-text-inner a.h4 {
    color: var(--brand-blue-dark) !important;
}


/* =========================================================
   11. EVENTS AND BLOG
========================================================= */

.events,
.blog {
    background-color: var(--color-white);
}

.events .events-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30%;
}

.events .events-item .events-inner .events-rate {
    position: absolute;
    width: 7.5rem;
    top: -1.25rem;
    left: 50%;
    margin-left: -3.75rem;
    border-radius: 10% / 50%;
}

.events .events-item .events-inner .events-img {
    position: relative;
    overflow: hidden;
}

.events .events-item .events-inner .events-img .event-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.events .events-item .events-inner .events-img:hover .event-overlay,
.events .events-item .events-inner .events-img:focus-within .event-overlay {


opacity: 1;
}

.events .events-item .events-img::after,
.blog .blog-item .blog-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: rgba(0, 63, 112, 0.82);
    transition: height 0.3s ease;
    pointer-events: none;
}

.events .events-item:hover .events-img::after,
.events .events-item:focus-within .events-img::after,
.blog .blog-item:hover .blog-img::after,
.blog .blog-item:focus-within .blog-img::after {
    height: 100%;
}

.events .events-item .events-text a.h4,
.events .events-item .events-img img,
.blog .blog-item .blog-img img,
.blog .blog-item .blog-content img,
.blog .blog-item .blog-text-inner a.h4 {
    transition: transform 0.3s ease, color 0.3s ease;
}

.events .events-item:hover .events-text a.h4,
.blog .blog-item:hover .blog-text-inner a.h4 {
    color: var(--brand-blue-dark) !important;
}

.events .events-item:hover .events-img img,
.blog .blog-item:hover .blog-img img,
.blog .blog-item:hover .blog-content img {
    transform: scale(1.05);
}

.blog .blog-item .blog-date-comments {
    padding-top: 9.375rem !important;
    margin-top: -7.8125rem;
}


/* =========================================================
   12. TEAM AND TESTIMONIALS
========================================================= */

.team {
    background-color: var(--brand-light-blue);
}

.team .team-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.team .team-item .team-icon {
    position: absolute;
    bottom: 7.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.team .team-item .team-icon a.share-link {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team .team-item:hover .team-icon a.share-link,
.team .team-item:focus-within .team-icon a.share-link {
    opacity: 1;
}

.team .team-item .team-content,
.team .team-item .team-content h4,
.team .team-item .team-content p {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.team .team-item:hover .team-content,
.team .team-item:focus-within .team-content {
    background: var(--brand-blue) !important;
    border-radius: 0 0 var(--radius-medium) var(--radius-medium);
}

.team .team-item:hover .team-content h4,
.team .team-item:hover .team-content p,
.team .team-item:focus-within .team-content h4,
.team .team-item:focus-within .team-content p {
    color: var(--color-white) !important;
}

.testimonial {
    background-color: var(--brand-light-gold);
}

.testimonial .testimonial-carousel {
    position: relative;
}

.testimonial .testimonial-carousel .owl-dots {
    margin-top: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.testimonial .testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.testimonial .testimonial-carousel .owl-dot::before {
    content: "";
    display: block;
    width: 0.9375rem;
    height: 0.9375rem;
    margin: auto;
    background: var(--brand-blue);
    border-radius: 0.625rem;
}

.testimonial .testimonial-carousel .owl-dot.active::before {
    width: 1.875rem;
    background: var(--brand-gold-dark);
}


/* =========================================================
   13. PROGRAM, LOCATION AND SCHOLARSHIP CARDS
   SHARED STYLING AND HOVER EFFECTS
========================================================= */

.program-card,
.location-card,
.scholarship-card {
    position: relative;
    height: 100%;
    padding: clamp(1.25rem, 2.5vw, 1.875rem);
    background: var(--color-white);
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--card-shadow);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;


}

.program-card:hover,
.location-card:hover,
.scholarship-card:hover,
.program-card:focus-within,
.location-card:focus-within,
.scholarship-card:focus-within {
    transform: translateY(-0.25rem);
    border-color: var(--brand-blue);
    background-color: var(--brand-light-blue);
    box-shadow: var(--card-hover-shadow);
}

.program-card h3,
.program-card h4,
.location-card h3,
.location-card h4,
.scholarship-card h3,
.scholarship-card h4 {
    color: var(--brand-black);
    transition: color 0.25s ease;
}

.program-card a,
.location-card a,
.scholarship-card a {
    transition: color 0.2s ease;
}

.program-card a:not(.btn):hover,
.program-card a:not(.btn):focus,
.location-card a:not(.btn):hover,
.location-card a:not(.btn):focus,
.scholarship-card a:not(.btn):hover,
.scholarship-card a:not(.btn):focus {
    color: var(--brand-blue-deep) !important;
}

.program-card i {
    color: var(--brand-blue-dark);
    font-size: 2.625rem;
    margin-bottom: 1.25rem;
}

.scholarship-card > i {
    display: inline-block;
    margin-bottom: 1.125rem;
    color: var(--brand-blue-dark);
    font-size: 2.5rem;
    transition: color 0.25s ease;
}

.scholarship-card h3 {
    margin-bottom: 0.9375rem;
}

.scholarship-highlight {
    padding: 1.5625rem;
    background: var(--brand-light-gold);
    border-left: 0.3125rem solid var(--brand-gold-dark);
    border-radius: var(--radius-small);
}

.scholarship-intro {
    background: var(--brand-light-blue);
}

.scholarship-section {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
}

.scholarship-faq details {
    margin-bottom: 0.9375rem;
    padding: 1.25rem 1.375rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.scholarship-faq summary {
    color: var(--brand-black);
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
}

.scholarship-faq details p {
    margin: 0.9375rem 0 0;
}

.scholarship-note {
    font-size: 0.9rem;
}


/* =========================================================
   14. TESTIMONIALS PAGE
========================================================= */

.testimonial-page .testimonial-video-card,
.testimonial-page .written-testimonial {
    height: 100%;
    overflow: hidden;
    background: var(--color-white);
    border: 0.0625rem solid rgba(0, 112, 192, 0.16);
    border-radius: var(--radius-medium);
    box-shadow: 0 0.3125rem 1.375rem rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-page .testimonial-video-card:hover,
.testimonial-page .testimonial-video-card:focus-within {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.625rem 1.75rem rgba(0, 0, 0, 0.11);
}

.testimonial-page .testimonial-video-card iframe,
.testimonial-page .testimonial-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.testimonial-page .testimonial-program {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    border-radius: 1.875rem;
    background-color: var(--brand-blue);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.testimonial-page .written-testimonial {
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.testimonial-page .written-testimonial .quote-mark {
    color: var(--brand-blue-dark);
    font-size: 3rem;
    line-height: 1;
}

.testimonial-page .written-testimonial .review-author {
    margin: 1.125rem 0 0;
    font-weight: 700;
}

.testimonial-page .testimonial-intro {
    max-width: 51.25rem;
}

.testimonial-page .testimonial-cta {
    background-color: var(--brand-blue);
    color: var(--color-white);
    border-radius: var(--radius-medium);
}

.testimonial-page .testimonial-cta h2,
.testimonial-page .testimonial-cta p {
    color: var(--color-white);
}

.testimonial-page .testimonial-cta .btn-light {
    color: var(--brand-blue-deep);
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.testimonial-page .testimonial-cta .btn-light:hover,
.testimonial-page .testimonial-cta .btn-light:focus {
    color: var(--color-white);
    background-color: var(--brand-blue-deep);
    border-color: var(--brand-blue-deep);
}

.testimonial-page .testimonial-cta .btn-outline-light {
    color: var(--color-white);
    border-color: var(--color-white);
}

.testimonial-page .testimonial-cta .btn-outline-light:hover,
.testimonial-page .testimonial-cta .btn-outline-light:focus {
    color: var(--brand-blue-deep);
    background-color: var(--color-white);
    border-color: var(--color-white);
}


/* =========================================================
   15. FOOTER
========================================================= */

/* Branded footer */
.footer {
    background-color: var(--brand-blue) !important;
    color: var(--color-white);
}

.footer h4,
.footer h5,
.footer h6,
.footer p,
.footer li,
.footer a,
.footer .text-body {
    color: var(--color-white) !important;
}

.footer a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.footer a:hover,
.footer a:focus,
.footer-item a.text-body:hover {
    color: #FFD24A !important;
}

.footer .footer-galary-img img {
    display: block;
    width: 100%;
    border: 0.0625rem dotted var(--brand-gold);
    transition: transform 0.25s ease;
}

.footer .footer-galary-img img:hover {
    transform: scale(1.03);
}

/* Generic footer without the .footer class */
footer:not(.footer) {
    background: var(--color-footer);
    color: var(--color-white);
}

footer:not(.footer) a {
    color: var(--color-white);
    text-decoration: underline;
}

footer:not(.footer) a:hover,
footer:not(.footer) a:focus {
    color: #FFD24A;
}


/* =========================================================
   16. COMMON ELEMENTS AND LOADING
========================================================= */

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    z-index: 99;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.4s ease, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.wow,
.animated {
    animation-duration: 2s !important;
}


/* =========================================================
   17. ACCESSIBILITY
========================================================= */

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.navbar-toggler:focus-visible,
.btn:focus-visible {
    outline: var(--focus-width) solid var(--focus-color) !important;
    outline-offset: var(--focus-offset);
    box-shadow: 0 0 0 2px var(--color-white);
}

/* Form controls */
input,
textarea,
select,
.form-control {
    color: var(--brand-body);
    background-color: var(--color-white);
    border-color: #767676;
    font-size: 1rem;
    line-height: 1.5;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

label,
.form-label {
    color: var(--brand-black);
    font-weight: 600;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: var(--brand-blue-dark);
}

/* Disabled controls */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
}

/* Text wrapping */
p,
li,
td,
th {
    overflow-wrap: break-word;
}

/* Anchor positioning */
section[id],
main [id] {
    scroll-margin-top: 5rem;
}

/* Skip navigation link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100000;
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    color: var(--brand-blue-deep);
    border: 2px solid var(--brand-blue-deep);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}


/* =========================================================
   18. RESPONSIVE LAYOUT
========================================================= */

/* Tablet */
@media (max-width: 61.99875em) {

    .hero-section {
        min-height: 32rem;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0.75rem 0.875rem;
    }

    .team .team-item .team-icon {
        bottom: 6rem;
    }
}

/* Mobile */
@media (max-width: 47.99875em) {

    html {
        scroll-padding-top: 4rem;
    }

    h1,
    .h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    h2,
    .h2 {
        font-size: clamp(1.7rem, 6vw, 2.1rem);
    }

    .display-1 {
        font-size: clamp(2.5rem, 10vw, 3.2rem);
    }

    .display-2 {
        font-size: clamp(2.25rem, 9vw, 2.8rem);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-brand,
    .btn-outline-brand {
        min-height: 2.75rem;
        padding: 0.75rem 1.125rem;
    }

    .program-card,
    .location-card,
    .scholarship-card {
        padding: 1.25rem;
    }

    .video {
        min-height: 17rem;
    }

    .events .events-item {
        border-radius: var(--radius-medium);
    }

    /* Keep interactive content visible on touch devices */
    .events .events-item .events-inner .events-img .event-overlay,
    .team .team-item .team-icon a.share-link {
        opacity: 1;
    }

    .back-to-top {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .scholarship-section {
        padding-top: 2.8125rem;
        padding-bottom: 2.8125rem;
    }
}

/* Narrow mobile */
@media (max-width: 30em) {

    .topbar .top-info {
        font-size: 0.875rem;
        letter-spacing: 0;
    }

    .btn {
        white-space: normal;
    }

    .hero-content .btn {
        width: 100%;
    }

    .testimonial-page .testimonial-cta {
        padding: 1.25rem !important;
    }
}


/* =========================================================
   19. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .wow,
    .animated {
        animation: none !important;
        visibility: visible !important;
    }

    .video .btn-play::before {
        animation: none !important;
    }

    .program-card:hover,
    .location-card:hover,
    .scholarship-card:hover,
    .testimonial-page .testimonial-video-card:hover,
    .footer .footer-galary-img img:hover {
        transform: none !important;
    }
}


/* =========================================================
   21. FOUNDER PAGE - LOCATION CARDS
   ========================================================= */

.founder-section-intro {
    width: min(100%, 53.125rem);
    margin-inline: auto;
}

.founder-page .location-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.founder-page .location-card h3 {
    color: var(--brand-blue);
    line-height: 1.3;
}

.founder-page .location-card p {
    line-height: 1.7;
}

.founder-page .location-status {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    background-color: #e8f4fc;
    color: #005a9c;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.025rem;
}

.founder-page .location-status-planned {
    background-color: #fff4d9;
    color: #755000;
}


.founder-page .location-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.founder-page .location-link:hover,
.founder-page .location-link:focus-visible {
    color: #004b80;
}

.founder-page .location-card a:focus-visible {
    outline: 0.1875rem solid #0070C0;
    outline-offset: 0.2rem;
    border-radius: 0.125rem;
}


/* =========================================================
   22. NAVIGATION - BOOTSTRAP TOGGLER ICON
   ========================================================= */

.navbar-light .navbar-toggler {
    border: 0.125rem solid var(--brand-blue);
    border-radius: 0.375rem;
    padding: 0.5rem 0.65rem;
}

/* =========================================================
   23. ACCESSIBLE DECORATIVE CHECKMARKS
   No external icon font required
   ========================================================= */

.founder-page .founder-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.founder-page .founder-benefits li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.founder-page .founder-benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #0070C0;
    font-size: 1.15rem;
    font-weight: 700;
}


/* =========================================
   24. FOUNDER QUOTE DECORATIVE MARK
   ========================================= */

.founder-quote-mark {
    display: block;
    font-family: Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.8;

    color: var(--brand-blue-dark);
    opacity: 1;

    position: relative;
    z-index: 2;

    margin-bottom: 1rem;
    text-align: left;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .founder-quote-mark {
        font-size: 5rem;
        margin-bottom: 0.75rem;
    }
}

/* =========================================================
   25. STICKY SITE HEADER AND DROPDOWN BUTTON
========================================================= */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: var(--color-white);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}
.site-header .container-fluid { background-color: var(--color-white); }
.site-header .dropdown-menu { z-index: 1040; }
.navbar .navbar-nav button.nav-link.dropdown-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.navbar .navbar-nav button.nav-link.dropdown-toggle:hover,
.navbar .navbar-nav button.nav-link.dropdown-toggle:focus-visible {
    color: var(--brand-blue-deep);
}
@media (max-width: 74.99875em) {
    .site-header .navbar-collapse { background-color: var(--color-white); }
}

/* =========================================================
   26. SHARED PROGRAM CARDS - HOME AND CAMPUS PAGES
   Master component: index.html #programs
   All four sections use identical markup and selectors.
========================================================= */
:is(#programs, #chandler-programs, #ahwatukee-programs, #gilbert-programs) .program-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    background-color: var(--color-white);
}
:is(#programs, #chandler-programs, #ahwatukee-programs, #gilbert-programs) .program-card-image {
    display: block;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    height: 15rem;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1rem 1rem 0 0;
}
:is(#programs, #chandler-programs, #ahwatukee-programs, #gilbert-programs) .program-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem 1.5625rem;
}
:is(#programs, #chandler-programs, #ahwatukee-programs, #gilbert-programs) .program-card-content .btn {
    align-self: flex-start;
    margin-top: auto;
}
@media (max-width: 767px) {
    :is(#programs, #chandler-programs, #ahwatukee-programs, #gilbert-programs) .program-card-image {
        height: 13.75rem;
    }
    :is(#programs, #chandler-programs, #ahwatukee-programs, #gilbert-programs) .program-card-content {
        padding: 1.5rem 1.25rem;
    }
}

/* Four-card Gilbert layout: give longer labels consistent button widths. */
@media (min-width: 62em) {
    #gilbert-programs .program-card-content .btn {
        width: 100%;
        padding-inline: 0.5rem;
    }
}

/* =========================================
   27. REUSABLE LOCATION CARDS WITH EDGE-TO-EDGE IMAGES
========================================= */

.location-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #ffffff;
}

.location-card-image {
    display: block;
    width: 100%;
    height: 15rem;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1rem 1rem 0 0;
}

.location-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem 1.5625rem;
}

.location-card-content p {
    flex-grow: 1;
}

.location-card-content a {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 767px) {

    .location-card-image {
        height: 13.75rem;
    }

    .location-card-content {
        padding: 1.5rem 1.25rem;
    }

}

/* Optional action row for campus/location cards. */
.location-card-content .location-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.location-card-content .location-card-actions .btn { margin: 0; }

/* =========================================================
   28. CAMPUS LOCATION DETAILS - Ahwatukee, Chandler and Gilbert
   Image sits above the first information box, not inside it.
   Keep information boxes at their natural content height.
========================================================= */
:is(#ahwatukee-location .ahwatukee-campus-image,
    #chandler-location .chandler-campus-image,
    #gilbert-location .gilbert-campus-image) {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: var(--brand-light-blue);
}

:is(#ahwatukee-location .ahwatukee-campus-image,
    #chandler-location .chandler-campus-image,
    #gilbert-location .gilbert-campus-image) img {
    display: block;
    width: 100%;
    height: 16.25rem;
    object-fit: cover;
    object-position: center;
}

:is(#ahwatukee-location, #chandler-location, #gilbert-location) .location-card {
    display: block;
    height: auto;
    min-height: 0;
    padding: clamp(1.25rem, 2.5vw, 1.875rem);
    overflow: visible;
    border-radius: var(--radius-medium);
}

@media (max-width: 767.98px) {
    :is(#ahwatukee-location .ahwatukee-campus-image,
        #chandler-location .chandler-campus-image,
        #gilbert-location .gilbert-campus-image) img {
        height: 13.75rem;
    }
}

/* =========================================
   29. ABOUT PAGE - MONTESSORI DIFFERENCE CARDS
========================================= */

#montessori-difference .difference-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

/* Card Images */

#montessori-difference .difference-card-image {
    display: block;
    width: 100%;
    height: 15rem;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1rem 1rem 0 0;
}

/* Card Content */

#montessori-difference .difference-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.75rem 1.5625rem;
}

#montessori-difference .difference-card-content h3 {
    margin-bottom: 0.9375rem;
}

#montessori-difference .difference-card-content p {
    margin-bottom: 0;
}

/* Hover Effect */

#montessori-difference .difference-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.10);
}

/* Tablet and Mobile */

@media (max-width: 767px) {

    #montessori-difference .difference-card-image {
        height: 13.75rem;
    }

    #montessori-difference .difference-card-content {
        padding: 1.5rem 1.25rem;
    }

}


/* =========================================================
   30. MONTESSORI DIFFERENCE: IMAGE-TOP PROGRAM CARDS
   Scoped so other .program-card layouts keep their icons.
========================================================= */
.montessori-difference-section .program-card-image-top {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.montessori-difference-section .program-card-image {
    display: block;
    width: 100%;
    height: 14rem;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}
.montessori-difference-section .program-card-content {
    flex: 1;
    padding: clamp(1.25rem, 2.5vw, 1.875rem);
}
.montessori-difference-section .program-card-content p:last-child {
    margin-bottom: 0;
}
@media (max-width: 767.98px) {
    .montessori-difference-section .program-card-image {
        height: 12.5rem;
    }
}

/* =========================================================
   31. PAGE NOT FOUND (404)
   Shared global styles; no inline 404-page CSS required.
========================================================= */
.error-page {
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: clamp(4rem, 9vw, 7rem) 0;
    background: var(--brand-light-blue);
}

.error-page-inner {
    max-width: 47rem;
    margin-inline: auto;
}

.error-page-code {
    display: block;
    color: var(--brand-blue-deep);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.error-page h1 {
    margin: 1rem 0 1.25rem;
    color: var(--brand-black);
}

.error-page-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.error-page-actions {
    margin-top: 2rem;
}

.error-page .btn-outline-primary {
    color: var(--brand-blue-deep);
    background: transparent;
    border: 0.125rem solid var(--brand-blue-deep);
}

.error-page .btn-outline-primary:hover,
.error-page .btn-outline-primary:focus-visible {
    color: var(--color-white);
    background: var(--brand-blue-deep);
}

/* =========================================================
   32. ADDITIONAL ACCESSIBILITY SAFEGUARDS
========================================================= */
.skip-link:focus-visible {
    position: fixed;
    top: 1rem;
    outline: var(--focus-width) solid var(--brand-blue-deep) !important;
    outline-offset: var(--focus-offset);
}
.hero-section a:focus-visible,
.cta-section a:focus-visible,
footer a:focus-visible {
    outline-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 0.1875rem var(--brand-black);
}
@media (prefers-reduced-motion: reduce) {
    /* CSS hides the video; JS should also prevent/pause playback. */
    .hero-video { display: none !important; }
}

/* =========================================================
   33. SHARED CONTENT WIDTH UTILITIES
========================================================= */
.content-max-720 { max-width: 45rem; }
.content-max-760 { max-width: 47.5rem; }
.content-max-780 { max-width: 48.75rem; }
.content-max-800 { max-width: 50rem; }


/* =========================================================
   34. FOOTER SOCIAL MEDIA ICONS
========================================================= */

.footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.footer-social a i {
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
}

.footer-social a:hover {
    background-color: #FFC000;
    border-color: #FFC000;
    color: #000000;
}

.footer-social a:focus-visible {
    outline: 3px solid #FFC000;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-social a {
        transition: none;
    }
}


/* =========================================
   HERO IMAGE AND VIDEO FOCAL POINTS
========================================= */

/* Desktop */
.hero-image,
.hero-video {
    object-fit: cover;
    object-position: center 35%;
}

/* Tablets */
@media (max-width: 991.98px) {
    .hero-image,
    .hero-video {
        object-position: center 30%;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 34rem;
    }

    .hero-image,
    .hero-video {
        object-position: center 25%;
    }
}

/* =====================================================
   COOKIE CONSENT BANNER
====================================================== */

.cookie-consent-banner[hidden] {
    display: none !important;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: #fff;
    border-top: 4px solid #0070C0;
    box-shadow: 0 -5px 25px rgba(0,0,0,.15);
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h2 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

.cookie-consent-text p {
    margin-bottom: 0;
}

.cookie-consent-buttons {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
}

.cookie-btn {
    min-height: 44px;
    padding: .75rem 1.25rem;
    border-radius: 6px;
    font-family: "Signika", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.cookie-btn-accept {
    background: #0070C0;
    border: 2px solid #0070C0;
    color: #fff;
}

.cookie-btn-decline {
    background: #fff;
    border: 2px solid #005A9A;
    color: #005A9A;
}

.cookie-btn:hover {
    filter: brightness(.92);
}

.cookie-btn:focus-visible,
.cookie-consent-banner a:focus-visible {
    outline: 3px solid #005FCC;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}


/* END OF INSPIRE KIDS MONTESSORI GLOBAL STYLESHEET */


