/* ==========================================================================
   Site 03 — Modern Indian School
   Royal blue · sky blue · white · soft neutrals · clean sans hierarchy
   ========================================================================== */

body.theme-modern {
    --md-blue: #123f8c;
    --md-blue-deep: #0a2a60;
    --md-sky: #2f8fd6;
    --md-sky-soft: #e8f3fb;
    --md-ink: #10233f;
    --md-text: #4d5b6e;
    --md-line: #e1e9f2;
    --md-bg: #f4f8fd;
    background: #fff;
    color: var(--md-text);
    font-size: 16px;
    line-height: 1.75;
}
.theme-modern h1, .theme-modern h2, .theme-modern h3, .theme-modern h4 { color: var(--md-ink); font-weight: 800; letter-spacing: -.03em; line-height: 1.16; }
.theme-modern .btn { border-radius: 10px; padding: 14px 22px; font-size: 13.5px; font-weight: 700; }
.theme-modern .btn--primary { background: var(--md-blue); box-shadow: 0 16px 30px -20px rgba(18, 63, 140, .9); }
.theme-modern .btn--primary:hover { background: #0e3475; }
.theme-modern .btn--white { background: #fff; color: var(--md-blue); border: 1px solid #fff; box-shadow: 0 14px 28px -20px rgba(10, 42, 96, .55); }
.theme-modern .btn--white:hover { background: #eef5fc; transform: translateY(-2px); }
.theme-modern .btn--ghost { border-radius: 10px; }
.theme-modern .md-eyebrow { display: inline-block; color: var(--md-sky); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.theme-modern .md-eyebrow--light { color: #b7dcf7; }
.theme-modern .md-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.theme-modern .md-head h2 { font-size: clamp(1.8rem, 2.7vw, 2.4rem); margin-top: 8px; }
.theme-modern .md-head--light h2 { color: #fff; }
.theme-modern .md-link { display: inline-flex; align-items: center; gap: 7px; color: var(--md-blue); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.theme-modern .md-link svg.ico { width: 15px; height: 15px; }
.theme-modern .md-link:hover { color: var(--md-sky); }
.theme-modern .md-link--light { color: #fff; }
.theme-modern .md-section { padding-block: clamp(56px, 6.5vw, 86px); }

/* ------------------------------------------------------------------ top */
.theme-modern .md-top { background: var(--md-bg); border-bottom: 1px solid var(--md-line); font-size: 12.5px; }
.theme-modern .md-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.theme-modern .md-top__contacts, .theme-modern .md-top__links { display: flex; align-items: center; gap: 18px; }
.theme-modern .md-top a { display: inline-flex; align-items: center; gap: 6px; color: #53627a; font-weight: 600; }
.theme-modern .md-top a:hover { color: var(--md-blue); }
.theme-modern .md-top svg.ico { width: 14px; height: 14px; color: var(--md-sky); }

/* --------------------------------------------------------------- header */
.theme-modern .md-header { position: sticky; top: 0; z-index: 70; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--md-line); backdrop-filter: blur(10px); }
.theme-modern .md-header.is-scrolled { box-shadow: 0 14px 30px -26px rgba(10, 35, 66, .55); }
.theme-modern .md-header__inner { display: flex; align-items: center; gap: 26px; min-height: 82px; padding-block: 10px; }
.theme-modern .md-brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.theme-modern .md-brand__mark {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(145deg, var(--md-blue), #1f5cb4);
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; overflow: hidden; box-shadow: 0 10px 22px -14px rgba(18, 63, 140, .9);
}
.theme-modern .md-brand__mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }
.theme-modern .md-brand__text { display: flex; flex-direction: column; min-width: 0; }
.theme-modern .md-brand { flex-shrink: 0; max-width: 330px; }
.theme-modern .md-brand__name { white-space: normal; word-break: normal; }
.theme-modern .md-brand__name { font-size: 19px; font-weight: 800; color: var(--md-ink); letter-spacing: -.02em; line-height: 1.2; }
.theme-modern .md-brand__tagline { font-size: 11.5px; color: #6c7a8d; margin-top: 2px; }

.theme-modern .md-nav { display: flex; align-items: stretch; }
.theme-modern .md-nav__item { position: relative; }
.theme-modern .md-nav__link { display: flex; align-items: center; gap: 5px; padding: 12px 10px; color: #33425a; font-size: 13px; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.theme-modern .md-nav__link svg.ico { width: 12px; height: 12px; opacity: .5; }
.theme-modern .md-nav__link:hover { color: var(--md-blue); background: var(--md-bg); }
.theme-modern .md-nav__link.is-active { color: var(--md-blue); background: var(--md-sky-soft); }
.theme-modern .md-nav__drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 232px; background: #fff; border: 1px solid var(--md-line); border-radius: 12px; box-shadow: 0 24px 46px -26px rgba(10, 35, 66, .45); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 5; }
.theme-modern .md-nav__item:hover .md-nav__drop, .theme-modern .md-nav__item:focus-within .md-nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-modern .md-nav__drop a { display: block; padding: 9px 11px; border-radius: 7px; font-size: 13px; color: #3f4c60; }
.theme-modern .md-nav__drop a:hover { background: var(--md-bg); color: var(--md-blue); }
.theme-modern .md-header__actions { display: flex; align-items: center; gap: 10px; }
.theme-modern .md-header__cta { padding: 11px 16px; font-size: 12.5px; border-radius: 9px; white-space: nowrap; }
.theme-modern .md-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--md-line); border-radius: 10px; background: #fff; color: var(--md-blue); align-items: center; justify-content: center; cursor: pointer; }

.theme-modern .md-ticker { background: var(--md-blue); color: #fff; }
.theme-modern .md-ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; }
.theme-modern .md-ticker__label { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.theme-modern .md-ticker__label svg.ico { width: 13px; height: 13px; }
.theme-modern .md-ticker p { flex: 1; margin: 0; color: #dbe9f7; }
.theme-modern .md-ticker a { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 700; font-size: 12px; white-space: nowrap; }
.theme-modern .md-ticker a svg.ico { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ hero */
.theme-modern .md-hero { position: relative; background: var(--md-blue-deep); }
.theme-modern .md-hero__viewport { position: relative; height: clamp(500px, 61vh, 620px); }
.theme-modern .md-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: center; }
.theme-modern .md-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.theme-modern .md-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.theme-modern .md-hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 27, 57, .92) 0%, rgba(10, 42, 96, .75) 40%, rgba(10, 42, 96, .12) 78%); }
.theme-modern .md-hero__content { position: relative; z-index: 3; padding-bottom: 84px; }
.theme-modern .md-hero__content h1 { color: #fff; font-size: clamp(2.3rem, 4.1vw, 3.55rem); line-height: 1.06; max-width: 17ch; margin: 18px 0 0; text-wrap: balance; }
.theme-modern .md-hero__content p { color: #cfdff1; max-width: 54ch; margin: 16px 0 0; font-size: 16px; }
.theme-modern .md-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.theme-modern .md-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #d7e8f9; border-radius: 999px; padding: 7px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.theme-modern .md-pill svg.ico { width: 14px; height: 14px; }
.theme-modern .md-hero__controls { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.theme-modern .md-hero__dots { display: flex; gap: 8px; }
.theme-modern .md-hero__dot { width: 34px; height: 5px; border: 0; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .2s ease, width .2s ease; }
.theme-modern .md-hero__dot.is-active { background: #fff; width: 52px; }
.theme-modern .md-hero__arrows { display: flex; gap: 8px; }
.theme-modern .md-hero__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(8, 27, 57, .25); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .2s ease; }
.theme-modern .md-hero__arrow:hover { background: #fff; color: var(--md-blue); border-color: #fff; }
.theme-modern .md-hero__arrow svg.ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------- quick actions */
.theme-modern .md-quick { position: relative; z-index: 6; margin-top: -54px; }
.theme-modern .md-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(10, 35, 66, .45); border: 1px solid var(--md-line); overflow: hidden; }
.theme-modern .md-quick__card { display: flex; align-items: center; gap: 13px; padding: 22px 20px; border-right: 1px solid var(--md-line); min-height: 96px; transition: background .2s ease; }
.theme-modern .md-quick__card:last-child { border-right: 0; }
.theme-modern .md-quick__card:hover { background: var(--md-bg); }
.theme-modern .md-quick__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--md-sky-soft); color: var(--md-blue); display: grid; place-items: center; flex-shrink: 0; }
.theme-modern .md-quick__icon svg.ico { width: 21px; height: 21px; }
.theme-modern .md-quick__text { display: flex; flex-direction: column; min-width: 0; }
.theme-modern .md-quick__text strong { font-size: 14.5px; color: var(--md-ink); }
.theme-modern .md-quick__text small { font-size: 11.5px; color: #738096; }
.theme-modern .md-quick__card > svg.ico { width: 15px; height: 15px; margin-left: auto; color: #a8b4c4; }

/* -------------------------------------------------------------- welcome */
.theme-modern .md-welcome__grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(38px, 5vw, 72px); align-items: center; }
.theme-modern .md-welcome__body h2 { font-size: clamp(1.9rem, 2.9vw, 2.55rem); margin: 10px 0 0; }
.theme-modern .md-lead { font-size: 16.5px; line-height: 1.8; margin: 16px 0 0; }
.theme-modern .md-checklist { margin: 24px 0 26px; padding: 0; list-style: none; display: grid; gap: 11px; }
.theme-modern .md-checklist li { display: flex; gap: 10px; font-size: 14px; color: #3d4a5e; }
.theme-modern .md-checklist svg.ico { width: 18px; height: 18px; color: var(--md-sky); flex-shrink: 0; margin-top: 2px; }
.theme-modern .md-welcome__media { position: relative; }
.theme-modern .md-welcome__media > img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 20px; }
.theme-modern .md-welcome__stat { position: absolute; left: 22px; bottom: -22px; background: var(--md-blue); color: #fff; border-radius: 14px; padding: 14px 20px; box-shadow: 0 22px 40px -24px rgba(10, 42, 96, .8); }
.theme-modern .md-welcome__stat strong { display: block; font-size: 26px; line-height: 1; }
.theme-modern .md-welcome__stat span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #b7d4f1; }

/* ------------------------------------------------------------- programmes */
.theme-modern .md-programs { background: var(--md-bg); }
.theme-modern .md-programs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.theme-modern .md-program { position: relative; border-radius: 16px; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; background: var(--md-blue-deep); }
.theme-modern .md-program > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.theme-modern .md-program:hover > img { transform: scale(1.05); }
.theme-modern .md-program::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 60, .05) 25%, rgba(8, 27, 57, .92) 100%); }
.theme-modern .md-program__body { position: relative; z-index: 2; padding: 22px 18px; color: #d6e3f2; }
.theme-modern .md-program__level { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.theme-modern .md-program__body h3 { color: #fff; font-size: 21px; margin: 0 0 6px; }
.theme-modern .md-program__body p { font-size: 12.8px; line-height: 1.55; margin: 0 0 12px; color: #c6d6e9; }

/* -------------------------------------------------------------- principal */
.theme-modern .md-principal { background: var(--md-sky-soft); padding-block: clamp(54px, 6vw, 80px); }
.theme-modern .md-principal__card { background: #fff; border-radius: 20px; box-shadow: 0 34px 70px -50px rgba(10, 42, 96, .55); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.theme-modern .md-principal__media { text-align: center; }
.theme-modern .md-principal__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 16px; }
.theme-modern .md-principal__monogram { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 4.6; background: var(--md-bg); border-radius: 16px; font-size: 52px; font-weight: 800; color: var(--md-blue); }
.theme-modern .md-principal__caption { margin-top: 12px; }
.theme-modern .md-principal__caption strong { display: block; color: var(--md-ink); font-size: 15px; }
.theme-modern .md-principal__caption span { font-size: 11.5px; color: #6f7d91; }
.theme-modern .md-principal__body h2 { font-size: clamp(1.55rem, 2.3vw, 2rem); color: var(--md-blue); margin: 8px 0 14px; }
.theme-modern .md-principal__body blockquote { margin: 0 0 16px; padding: 0; }
.theme-modern .md-principal__body blockquote p { font-size: 14.5px; line-height: 1.8; color: #4d5b6e; margin-bottom: 10px; }

/* ------------------------------------------------------------- facilities */
.theme-modern .md-facilities__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.theme-modern .md-facility { border: 1px solid var(--md-line); border-radius: 14px; padding: 24px 22px; background: #fff; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.theme-modern .md-facility:hover { border-color: #bcd8ef; box-shadow: 0 24px 44px -34px rgba(10, 42, 96, .5); transform: translateY(-3px); }
.theme-modern .md-facility__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--md-sky-soft); color: var(--md-blue); display: grid; place-items: center; margin-bottom: 16px; }
.theme-modern .md-facility__icon svg.ico { width: 22px; height: 22px; }
.theme-modern .md-facility h3 { font-size: 18px; margin: 0 0 6px; }
.theme-modern .md-facility p { font-size: 13.2px; line-height: 1.65; margin: 0; }

/* ------------------------------------------------------------ photo split */
.theme-modern .md-photo-split { background: var(--md-bg); padding-block: clamp(56px, 6.5vw, 88px); }
.theme-modern .md-photo-split__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 5vw, 64px); align-items: center; }
.theme-modern .md-photo-split__copy h2 { font-size: clamp(1.8rem, 2.7vw, 2.35rem); margin: 8px 0 12px; }
.theme-modern .md-photo-split__copy p { margin: 0 0 22px; }
.theme-modern .md-photo-split__media { display: grid; grid-template-columns: 1.35fr .85fr; gap: 14px; align-items: start; }
.theme-modern .md-photo-split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; aspect-ratio: 4 / 3.4; }
.theme-modern .md-photo-split__media img:last-child { margin-top: 38px; aspect-ratio: 3 / 4; }

/* ----------------------------------------------------------- achievements */
.theme-modern .md-achievements__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.theme-modern .md-achievement { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--md-line); border-left: 4px solid var(--md-sky); border-radius: 12px; }
.theme-modern .md-achievement__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--md-bg); color: var(--md-blue); display: grid; place-items: center; flex-shrink: 0; }
.theme-modern .md-achievement__icon svg.ico { width: 20px; height: 20px; }
.theme-modern .md-achievement__tag { font-size: 10.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--md-sky); }
.theme-modern .md-achievement h3 { font-size: 17px; margin: 4px 0 5px; }
.theme-modern .md-achievement p { font-size: 13px; line-height: 1.55; margin: 0; }

/* ---------------------------------------------------------------- gallery */
.theme-modern .md-gallery { background: var(--md-bg); padding-block: clamp(56px, 6.5vw, 86px); }
.theme-modern .md-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme-modern .md-gallery__tile { position: relative; border: 0; padding: 0; background: #dfe9f3; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / .82; }
.theme-modern .md-gallery__tile.is-large { grid-column: span 2; aspect-ratio: 2 / .95; }
.theme-modern .md-gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.theme-modern .md-gallery__tile:hover img { transform: scale(1.04); }
.theme-modern .md-gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 11px; background: linear-gradient(180deg, transparent, rgba(8, 27, 57, .82)); color: #fff; font-size: 11.5px; text-align: left; }

/* ---------------------------------------------------------------- voices */
.theme-modern .md-voices { background: linear-gradient(135deg, var(--md-blue-deep), var(--md-blue)); padding-block: clamp(54px, 6vw, 80px); }
.theme-modern .md-voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.theme-modern .md-voice { margin: 0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 24px 22px; color: #d7e5f4; }
.theme-modern .md-voice__quote { font-size: 38px; line-height: .6; color: #7cc0ef; display: block; margin-bottom: 10px; font-family: Georgia, serif; }
.theme-modern .md-voice p { font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; }
.theme-modern .md-voice footer strong { display: block; color: #fff; font-size: 13.5px; }
.theme-modern .md-voice footer span { font-size: 11px; color: #a9c8e4; }

/* --------------------------------------------------------------- admission */
.theme-modern .md-admission { background: linear-gradient(120deg, #0f3475, var(--md-blue) 55%, #1f5cb4); color: #d7e6f6; padding-block: 44px; }
.theme-modern .md-admission__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.theme-modern .md-admission h2 { color: #fff; font-size: clamp(1.5rem, 2.3vw, 2rem); margin: 6px 0 4px; }
.theme-modern .md-admission p { margin: 0; font-size: 14px; color: #c5daed; }
.theme-modern .md-admission__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- footer */
.theme-modern .md-footer { background: #fff; }
.theme-modern .md-footer__cta { background: var(--md-bg); border-top: 1px solid var(--md-line); border-bottom: 1px solid var(--md-line); padding-block: 34px; }
.theme-modern .md-footer__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.theme-modern .md-footer__eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--md-sky); }
.theme-modern .md-footer__cta h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 4px 0 0; }
.theme-modern .md-footer__cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.theme-modern .md-footer__call { display: inline-flex; align-items: center; gap: 7px; color: var(--md-blue); font-weight: 700; font-size: 14px; }
.theme-modern .md-footer__call svg.ico { width: 16px; height: 16px; color: var(--md-sky); }
.theme-modern .md-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.2fr; gap: 38px; padding-block: 52px; }
.theme-modern .md-brand--footer .md-brand__mark { width: 46px; height: 46px; font-size: 16px; border-radius: 12px; }
.theme-modern .md-brand--footer .md-brand__name { font-size: 17px; }
.theme-modern .md-footer__brand p { font-size: 13px; line-height: 1.7; color: #66738a; margin: 14px 0 16px; max-width: 40ch; }
.theme-modern .md-footer__social { display: flex; gap: 8px; }
.theme-modern .md-footer__social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--md-bg); color: var(--md-blue); }
.theme-modern .md-footer__social a:hover { background: var(--md-blue); color: #fff; }
.theme-modern .md-footer__social svg.ico { width: 15px; height: 15px; }
.theme-modern .md-footer__col h2 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--md-ink); margin: 6px 0 14px; }
.theme-modern .md-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.theme-modern .md-footer__col li { font-size: 13px; color: #5a687c; }
.theme-modern .md-footer__col a:hover { color: var(--md-blue); }
.theme-modern .md-footer__contact li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.55; }
.theme-modern .md-footer__contact svg.ico { width: 15px; height: 15px; color: var(--md-sky); flex-shrink: 0; margin-top: 3px; }
.theme-modern .md-footer__bottom { border-top: 1px solid var(--md-line); background: var(--md-bg); padding-block: 16px; font-size: 12px; color: #6b788c; }
.theme-modern .md-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.theme-modern .md-footer__bottom-inner > div { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.theme-modern .md-footer__bottom a:hover { color: var(--md-blue); }
.theme-modern .md-footer__credit { color: #4b5a70; }

/* --------------------------------------------------------------- responsive */
/* Below this the brand + nav + admission button no longer fit inside the
   container, so the button steps aside (Admissions stays in the nav). */
@media (max-width: 1400px) {
    .theme-modern .md-header__cta { display: none; }
}

@media (max-width: 1360px) {
    .theme-modern .md-brand__tagline { display: none; }
    .theme-modern .md-nav__link { padding: 11px 8px; font-size: 12.5px; }
    .theme-modern .md-header__cta { padding: 10px 12px; font-size: 12px; }
}

@media (max-width: 1080px) {
    .theme-modern .md-nav { display: none; }
    .theme-modern .md-menu { display: inline-flex; }
    .theme-modern .md-programs__grid { grid-template-columns: 1fr 1fr; }
    .theme-modern .md-facilities__grid { grid-template-columns: 1fr 1fr; }
    .theme-modern .md-gallery__grid { grid-template-columns: repeat(3, 1fr); }
    .theme-modern .md-voices__grid { grid-template-columns: 1fr; }
    .theme-modern .md-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
    .theme-modern .md-welcome__grid, .theme-modern .md-photo-split__grid { grid-template-columns: 1fr; gap: 34px; }
    .theme-modern .md-principal__card { grid-template-columns: 200px 1fr; }
    .theme-modern .md-quick__grid { grid-template-columns: 1fr 1fr; }
    .theme-modern .md-quick__card:nth-child(2) { border-right: 0; }
    .theme-modern .md-quick__card:nth-child(-n+2) { border-bottom: 1px solid var(--md-line); }
    .theme-modern .md-achievements__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .theme-modern .md-top__links a:not(:last-child) { display: none; }
    .theme-modern .md-header__inner { min-height: 74px; gap: 12px; }
    .theme-modern .md-header__cta { display: none; }
    .theme-modern .md-brand__tagline { display: none; }
    .theme-modern .md-brand__name { font-size: 17px; }
    .theme-modern .md-ticker__inner { flex-wrap: wrap; padding-block: 8px; gap: 8px; }
    .theme-modern .md-ticker p { flex-basis: 100%; order: 3; font-size: 12px; }
    .theme-modern .md-hero__viewport { height: 540px; }
    .theme-modern .md-hero__shade { background: linear-gradient(180deg, rgba(8, 27, 57, .35), rgba(8, 27, 57, .9) 75%); }
    .theme-modern .md-hero__content { padding-bottom: 118px; }
    .theme-modern .md-hero__controls { bottom: 56px; }
    .theme-modern .md-hero__content h1 { font-size: 2.15rem; }
    .theme-modern .md-hero__content p { font-size: 14px; }
    .theme-modern .md-quick { margin-top: -36px; }
    .theme-modern .md-quick__card { padding: 16px 14px; min-height: 84px; gap: 10px; }
    .theme-modern .md-quick__icon { width: 38px; height: 38px; border-radius: 10px; }
    .theme-modern .md-quick__text small { display: none; }
    .theme-modern .md-section { padding-block: 52px; }
    .theme-modern .md-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
    .theme-modern .md-programs__grid { grid-template-columns: 1fr; }
    .theme-modern .md-program { min-height: 300px; }
    .theme-modern .md-principal__card { grid-template-columns: 1fr; }
    .theme-modern .md-principal__media { max-width: 240px; margin-inline: auto; }
    .theme-modern .md-facilities__grid { grid-template-columns: 1fr; }
    .theme-modern .md-photo-split__media { grid-template-columns: 1fr 1fr; }
    .theme-modern .md-gallery__grid { grid-template-columns: 1fr 1fr; }
    .theme-modern .md-gallery__tile.is-large { grid-column: span 2; aspect-ratio: 16 / 9; }
    .theme-modern .md-admission__inner { flex-direction: column; align-items: flex-start; }
    .theme-modern .md-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
    .theme-modern .md-footer__cta-inner { flex-direction: column; align-items: flex-start; }
    .theme-modern .md-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}
