:root {
    --bg: #fbf8ff;
    --bg-soft: #f4f6ff;
    --white: #ffffff;
    --ink: #101828;
    --text: #344054;
    --muted: #667085;
    --line: #e5e7eb;
    --line-strong: #d0d5dd;
    --red: #d83622;
    --red-dark: #b9271b;
    --orange: #f97316;
    --amber: #f59e0b;
    --green: #16b981;
    --pink: #f9b8dc;
    --shadow: 0 18px 38px rgba(16, 24, 40, 0.12);
    --soft-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
    --radius: 8px;
    --radius-lg: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(120deg, #f4f7ff 0%, #fff8fb 48%, #fbf8ff 100%);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.55;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.32);
    outline-offset: 3px;
}

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

.container {
    width: min(1216px, calc(100% - 48px));
    margin: 0 auto;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--white);
    background: var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #edf0f5;
    backdrop-filter: blur(18px);
    transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 206px;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 10px;
    color: #374151;
    border-radius: var(--radius);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    color: var(--red);
    background: #fff3ec;
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
}

.nav-cta {
    min-height: 44px;
    padding: 0 18px;
    color: var(--white);
    background: var(--red);
    box-shadow: 0 12px 24px rgba(216, 54, 34, 0.22);
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-cta:hover,
.btn-primary:hover {
    background: var(--red-dark);
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.quick-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 45;
    display: grid;
    gap: 10px;
}

.quick-actions a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 118px;
    min-height: 46px;
    padding: 0 14px;
    color: var(--white);
    background: rgba(216, 54, 34, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(216, 54, 34, 0.22);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
    font-weight: 800;
    transition: opacity 180ms ease, transform 180ms ease;
}

.quick-actions.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.quick-actions a:nth-child(2) {
    background: rgba(22, 185, 129, 0.96);
    box-shadow: 0 14px 30px rgba(22, 185, 129, 0.18);
}

.quick-actions a:nth-child(3) {
    background: rgba(17, 24, 39, 0.94);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

.quick-actions svg {
    width: 18px;
    height: 18px;
}

.quick-actions a:hover {
    transform: translateY(-3px);
}

.home-hero {
    padding: 48px 0 84px;
    min-height: 650px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.96fr;
    gap: 68px;
    align-items: center;
}

.hero-copy {
    padding-top: 4px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 16px;
    color: #14213d;
    background: var(--white);
    border: 1px solid #edf0f7;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.13);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-pill svg {
    width: 16px;
    height: 16px;
    color: var(--amber);
}

.hero-copy h1 {
    max-width: 690px;
    margin: 34px 0 22px;
    color: #111827;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.04;
}

.hero-copy h1 span {
    color: transparent;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: #344054;
    font-size: 1.16rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    min-height: 46px;
    padding: 0 24px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 26px rgba(216, 54, 34, 0.18);
}

.btn-primary,
.btn-secondary,
.nav-cta {
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.nav-cta:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: #111827;
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 600px;
    gap: 38px;
    margin-top: 66px;
    text-align: center;
}

.hero-stats strong {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, #ef3d22, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: #344054;
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    padding-top: 82px;
}

.hero-visual img {
    width: 100%;
    height: 328px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 54px rgba(16, 24, 40, 0.14);
}

.rating-card {
    position: absolute;
    left: -24px;
    bottom: -24px;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 164px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.rating-card > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: var(--green);
    border-radius: 10px;
}

.rating-card svg {
    width: 24px;
    height: 24px;
}

.rating-card strong,
.rating-card small {
    display: block;
}

.rating-card strong {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.rating-card small {
    color: var(--muted);
    font-size: 0.74rem;
}

.birthday-section {
    padding: 0 0 80px;
}

.birthday-card {
    padding: 28px 26px 20px;
    background: linear-gradient(90deg, #fff3fa, #f3f7ff);
    border: 2px solid var(--pink);
    border-radius: 12px;
}

.birthday-card h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 1.35rem;
    text-align: center;
}

.birthday-card h2 svg {
    color: #ec4899;
}

.birthday-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
}

.birthday-grid h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.94rem;
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-list article {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 138px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid #f1d8e8;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.mini-list article > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--white);
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-radius: 999px;
    font-weight: 800;
}

.mini-list article > img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff7ed;
}

.mini-list strong,
.mini-list small {
    display: block;
}

.mini-list strong {
    font-size: 0.85rem;
}

.mini-list small {
    color: var(--muted);
    font-size: 0.72rem;
}

.birthday-card > p {
    margin: 18px 0 0;
    text-align: center;
    color: var(--text);
    font-size: 0.94rem;
}

.section {
    padding: 82px 0;
    background: var(--white);
}

.section-soft {
    background: var(--bg-soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    max-width: none;
    text-align: left;
}

.section-heading h2,
.page-hero h1,
.cta-card h2,
.content-panel h2,
.principal-panel h2,
.app-panel h2 {
    margin: 0;
    color: #111827;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
}

.section-heading p,
.page-hero p,
.content-panel p,
.principal-panel p,
.app-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.small-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--red);
    background: #fff3ec;
    border-radius: var(--radius);
    font-weight: 800;
}

.feature-grid,
.news-grid,
.testimonial-grid,
.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

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

.feature-card,
.news-card,
.testimonial-card,
.content-panel,
.step-card,
.contact-form,
.contact-panel {
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    min-width: 0;
}

.feature-card {
    padding: 30px 24px;
    text-align: center;
}

.feature-card > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 14px;
}

.feature-card svg {
    width: 27px;
    height: 27px;
}

.feature-card h2,
.feature-card h3,
.news-card h2,
.news-card h3,
.testimonial-card h3,
.step-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.22;
}

.feature-card p,
.news-card p,
.testimonial-card p,
.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

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

.news-card {
    padding: 24px;
    overflow: hidden;
}

.news-card > img {
    width: calc(100% + 48px);
    height: 190px;
    margin: -24px -24px 22px;
    object-fit: cover;
}

.news-card > span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.news-card time {
    display: block;
    margin: 18px 0 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

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

.testimonial-card {
    padding: 28px;
}

.testimonial-card > svg {
    width: 32px;
    height: 32px;
    color: var(--orange);
    margin-bottom: 16px;
}

.testimonial-card p {
    min-height: 116px;
}

.testimonial-card h3 {
    margin: 0;
    margin-bottom: 2px;
}

.testimonial-card small {
    color: var(--muted);
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.testimonial-person img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #fff7ed;
}

.join-cta {
    padding: 80px 0;
    background: var(--bg-soft);
}

.cta-card {
    padding: 56px 28px;
    color: var(--white);
    background: linear-gradient(135deg, #dc341f, #f97316);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-card h2 {
    color: var(--white);
}

.cta-card p {
    max-width: 640px;
    margin: 14px auto 26px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-card .btn-primary {
    color: var(--red);
    background: var(--white);
    box-shadow: none;
}

.page-hero {
    padding: 72px 0;
    background: linear-gradient(120deg, #f4f7ff 0%, #fff8fb 100%);
}

.page-hero-compact {
    text-align: center;
}

.page-hero-compact .container {
    max-width: 880px;
}

.page-hero .eyebrow {
    display: inline-flex;
    margin: 0 0 14px;
    color: var(--red);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.page-hero-grid img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.content-panel {
    padding: 30px;
}

.accent-panel {
    background: #fff7ed;
    border-color: #fed7aa;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.check-list svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--green);
}

.principal-panel,
.app-panel {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
    padding: 32px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
}

.principal-panel > img {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
}

.principal-panel > img.avatar-large {
    object-fit: contain;
    padding: 18px;
    background: #fff7ed;
}

.timeline {
    display: grid;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}

.timeline article {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.timeline strong {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 16px;
    font-size: 1.15rem;
}

.timeline h3,
.method-list h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.timeline p,
.method-list p {
    margin: 0;
    color: var(--muted);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-strip article {
    padding: 26px 18px;
    text-align: center;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.stat-strip strong {
    display: block;
    color: var(--red);
    font-size: 2rem;
    font-weight: 800;
}

.stat-strip span {
    color: var(--muted);
}

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

.step-card {
    padding: 30px;
}

.step-card > span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 14px;
    font-weight: 800;
}

.admission-contact p {
    display: flex;
    align-items: start;
    gap: 10px;
    overflow-wrap: anywhere;
}

.admission-contact svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--red);
    margin-top: 3px;
}

.date-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.date-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f5;
}

.date-list strong {
    color: #111827;
}

.date-list span {
    color: var(--red);
    font-weight: 800;
}

.application-card {
    max-width: 860px;
}

.program-list {
    display: grid;
    gap: 26px;
}

.program-row {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 32px;
    align-items: center;
    padding: 22px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
}

.program-row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.program-row h2 {
    margin: 0;
    font-size: 1.65rem;
}

.curriculum-grid,
.detail-grid,
.department-grid,
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grade-range {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.pill-list li {
    padding: 7px 10px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.method-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.method-panel > img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.method-panel .eyebrow {
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.method-panel h2 {
    margin: 8px 0 22px;
    font-size: 2.3rem;
    line-height: 1.12;
}

.method-list {
    display: grid;
    gap: 12px;
}

.method-list article {
    padding: 18px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.image-feature-card {
    padding-top: 0;
    overflow: hidden;
}

.image-feature-card > img {
    width: calc(100% + 48px);
    height: 190px;
    margin: 0 -24px 24px;
    object-fit: cover;
}

.image-feature-card .small-link {
    margin-top: 18px;
}

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

.filter-tabs,
.media-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-tabs button,
.media-tabs button {
    min-height: 40px;
    padding: 0 16px;
    color: #344054;
    background: var(--white);
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-tabs button.is-active,
.media-tabs button.is-active {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

.program-row p {
    margin: 10px 0 0;
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: 230px;
    gap: 18px;
}

.gallery-grid figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #eef2ff;
    box-shadow: var(--soft-shadow);
}

.gallery-grid figure.is-featured {
    grid-row: span 2;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.04);
}

.gallery-grid figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 12px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.78);
    border-radius: var(--radius);
}

.gallery-grid figcaption strong,
.gallery-grid figcaption span {
    display: block;
}

.gallery-grid figcaption strong {
    font-size: 0.92rem;
}

.gallery-grid figcaption span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.album-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.album-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.album-card div {
    padding: 20px;
}

.album-card h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.album-card p,
.album-card time {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
}

.app-panel {
    grid-template-columns: 1fr 220px;
}

.app-panel img {
    width: 190px;
    justify-self: center;
    filter: drop-shadow(0 22px 28px rgba(16, 24, 40, 0.16));
}

.portal-card > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 14px;
}

.portal-card svg {
    width: 25px;
    height: 25px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 28px;
    align-items: start;
}

.contact-panel,
.contact-form {
    padding: 30px;
}

.contact-form > h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.contact-form > p {
    margin: 0 0 18px;
    color: var(--muted);
}

.contact-panel h2 {
    margin: 0 0 18px;
    font-size: 1.55rem;
}

.contact-panel p {
    display: flex;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.contact-panel svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--red);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: var(--red);
    border-radius: var(--radius);
}

.social-links svg {
    width: 19px;
    height: 19px;
}

.social-links .fa-brands {
    font-size: 1.06rem;
    line-height: 1;
}

.form-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    border-radius: var(--radius);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: #475467;
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.subscribe-form input {
    width: 100%;
    color: var(--ink);
    background: #fcfcfd;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form input,
.contact-form select,
.subscribe-form input {
    height: 46px;
    padding: 0 13px;
}

.contact-form textarea {
    min-height: 126px;
    padding: 12px 13px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.subscribe-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.map-card {
    min-height: 330px;
    padding: 28px;
    background: linear-gradient(135deg, #fff7ed, #eef2ff);
    border: 1px solid #edf0f5;
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
}

.map-card h2 {
    margin: 0 0 22px;
}

.map-card iframe {
    display: block;
    width: 100%;
    min-height: 330px;
    border: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.map-card div {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    color: var(--text);
    border: 2px dashed #d0d5dd;
    border-radius: var(--radius);
}

.map-card svg {
    width: 44px;
    height: 44px;
    color: var(--red);
    margin-bottom: 12px;
}

.help-grid {
    display: grid;
    gap: 18px;
}

.help-grid a,
.department-grid a {
    display: block;
    color: var(--red);
    font-weight: 800;
    overflow-wrap: anywhere;
}

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

.info-table {
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.info-table div {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    border-bottom: 1px solid #edf0f5;
}

.info-table div:last-child {
    border-bottom: 0;
}

.info-table strong,
.info-table span {
    padding: 16px 18px;
}

.info-table strong {
    color: #111827;
    background: #f8fafc;
    text-transform: uppercase;
    font-size: 0.82rem;
}

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

.doc-card > svg {
    width: 34px;
    height: 34px;
    color: var(--red);
    margin-bottom: 16px;
}

.note-text {
    margin: 24px auto 0;
    max-width: 760px;
    color: var(--muted);
    text-align: center;
}

.policy-stack {
    display: grid;
    gap: 18px;
    max-width: 860px;
}

.policy-stack .content-panel {
    width: 100%;
}

.page-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.page-link-card {
    display: block;
}

.page-link-card > svg {
    width: 38px;
    height: 38px;
    color: var(--red);
    margin-bottom: 18px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: #111827;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.25fr 0.65fr 0.75fr 1fr;
    gap: 42px;
    padding: 56px 0 34px;
}

.footer-brand {
    min-width: 0;
}

.footer-brand strong {
    color: var(--white);
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.64);
}

.footer-top p {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-links h2,
.footer-contact h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 1rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-contact p {
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 800;
}

.footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.feature-card,
.news-card,
.testimonial-card,
.content-panel,
.step-card,
.album-card,
.program-row,
.gallery-grid figure,
.cta-card {
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.feature-card:hover,
.news-card:hover,
.testimonial-card:hover,
.content-panel:hover,
.step-card:hover,
.album-card:hover,
.program-row:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.home-hero .hero-pill {
    animation: floatIn 650ms ease both;
}

.home-hero h1 {
    animation: floatIn 760ms ease 90ms both;
}

.home-hero p,
.hero-actions,
.hero-stats {
    animation: floatIn 760ms ease 160ms both;
}

.hero-visual {
    animation: floatIn 900ms ease 180ms both;
}

[data-parallax] {
    will-change: transform;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@media (max-width: 1120px) {
    .nav-shell {
        gap: 16px;
    }

    .brand {
        min-width: 190px;
    }

    .nav-links a {
        padding: 0 9px;
        font-size: 0.84rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-visual {
        padding-top: 0;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 30px, 1216px);
    }

    .nav-shell {
        min-height: 74px;
    }

    .brand img {
        width: 50px;
        height: 50px;
    }

    .brand strong {
        font-size: 0.96rem;
    }

    .brand small {
        font-size: 0.72rem;
    }

    .nav-toggle {
        display: grid;
        margin-left: auto;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 15px;
        left: 15px;
        display: none;
        padding: 12px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-links a {
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 12px;
    }

    body {
        padding-bottom: 92px;
    }

    .quick-actions {
        right: 12px;
        bottom: 10px;
        left: 12px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid #edf0f5;
        border-radius: 16px;
        box-shadow: 0 16px 38px rgba(16, 24, 40, 0.18);
        backdrop-filter: blur(16px);
    }

    .quick-actions a {
        justify-content: center;
        min-width: 0;
        min-height: 42px;
        padding: 0 8px;
        border-radius: 12px;
        font-size: 0.82rem;
    }

    .home-hero {
        padding: 38px 0 64px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .section-heading h2,
    .page-hero h1,
    .cta-card h2,
    .content-panel h2,
    .principal-panel h2,
    .app-panel h2 {
        font-size: 2.25rem;
    }

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

    .hero-stats {
        gap: 18px;
        margin-top: 42px;
    }

    .hero-visual img {
        height: 300px;
    }

    .rating-card {
        left: 16px;
        bottom: -20px;
    }

    .birthday-grid,
    .two-column,
    .page-hero-grid,
    .principal-panel,
    .app-panel,
    .contact-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .page-hero-grid img {
        height: 290px;
    }

    .principal-panel > img {
        width: 100%;
        height: 300px;
    }

    .program-row {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .testimonial-grid,
    .step-grid,
    .gallery-grid,
    .curriculum-grid,
    .detail-grid,
    .department-grid,
    .doc-grid,
    .album-grid,
    .page-link-grid,
    .feature-grid-three,
    .stat-strip {
        grid-template-columns: 1fr;
    }

    .method-panel {
        grid-template-columns: 1fr;
    }

    .method-panel > img {
        height: 300px;
    }

    .gallery-grid {
        grid-auto-rows: 260px;
    }

    .gallery-grid figure.is-featured {
        grid-row: span 1;
    }

    .section-heading-row {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .hero-copy h1 {
        font-size: 2.42rem;
    }

    .section-heading h2,
    .page-hero h1,
    .cta-card h2,
    .content-panel h2,
    .principal-panel h2,
    .app-panel h2 {
        font-size: 1.95rem;
    }

    .hero-actions,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .feature-grid,
    .feature-grid-large {
        grid-template-columns: 1fr;
    }

    .birthday-card,
    .content-panel,
    .contact-form,
    .contact-panel,
    .principal-panel,
    .app-panel {
        padding: 22px;
    }

    .mini-list {
        display: grid;
    }

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

    .timeline article,
    .info-table div {
        grid-template-columns: 1fr;
    }

    .timeline strong {
        width: 64px;
        height: 64px;
    }

    .subscribe-form {
        display: grid;
    }

    .birthday-grid {
        gap: 24px;
    }
}

/* Professional page upgrades */
.page-hero-split {
    padding: 58px 0 76px;
    background:
        radial-gradient(circle at 84% 14%, rgba(249, 184, 220, 0.24), transparent 34%),
        linear-gradient(120deg, #f4f7ff 0%, #fff8fb 58%, #fff 100%);
}

.page-hero-split .page-hero-grid {
    gap: 72px;
}

.page-hero-copy h1 {
    max-width: 720px;
    margin: 28px 0 20px;
    color: #111827;
    font-size: clamp(2.75rem, 5vw, 4.45rem);
    font-weight: 800;
    line-height: 1.04;
}

.page-hero-copy p:not(.hero-pill) {
    max-width: 650px;
    color: #344054;
    font-size: 1.08rem;
}

.page-visual-card {
    padding-top: 36px;
}

.page-visual-card img {
    height: 390px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(16, 24, 40, 0.14);
}

.page-visual-card .rating-card {
    left: -22px;
    bottom: -22px;
}

.eyebrow-line {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.content-panel h2 {
    font-size: 1.42rem;
    line-height: 1.22;
}

.principal-panel h2,
.app-panel h2,
.method-panel h2 {
    font-size: 2.2rem;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 44px;
    align-items: center;
}

.about-intro-grid h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
}

.about-intro-grid > div > p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
}

.insight-card-grid,
.admission-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.insight-card {
    min-width: 0;
    padding: 24px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 14px;
    box-shadow: var(--soft-shadow);
}

.insight-card > span,
.statement-card > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: var(--red);
    background: #fff3c4;
    border-radius: 14px;
}

.insight-card svg,
.statement-card svg {
    width: 25px;
    height: 25px;
}

.insight-card h3,
.statement-card h2,
.notice-card h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.1rem;
    line-height: 1.25;
}

.insight-card p,
.statement-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.mission-vision-grid,
.admission-detail-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.statement-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    min-width: 0;
    padding: 28px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.statement-card > span {
    margin: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.statement-card-warm {
    background: #fffaf0;
    border-color: #fed7aa;
}

.values-grid {
    gap: 24px;
}

.refined-card {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.refined-card > span {
    color: var(--red);
    background: #fff3c4;
}

.elevated-panel {
    box-shadow: 0 24px 54px rgba(16, 24, 40, 0.10);
}

.signature-line {
    display: grid;
    gap: 2px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
}

.signature-line strong {
    color: #111827;
    font-size: 1.02rem;
}

.signature-line span {
    color: var(--muted);
}

.refined-timeline {
    max-width: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.refined-timeline article {
    display: block;
    padding: 20px;
    min-height: 178px;
}

.refined-timeline strong {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 14px;
    font-size: 1rem;
}

.stat-strip-clean article {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.admission-overview-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.refined-step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-card {
    position: relative;
    padding: 26px;
    border-radius: 16px;
}

.process-card > span {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
}

.process-card > svg {
    position: absolute;
    top: 30px;
    right: 26px;
    width: 24px;
    height: 24px;
    color: var(--orange);
}

.admissions-checklist,
.admissions-dates,
.application-card-pro {
    border-radius: 18px;
}

.admissions-checklist {
    padding: 32px;
}

.admissions-dates {
    padding: 32px;
    background: linear-gradient(135deg, #fff, #fff8f0);
    border-color: #fed7aa;
}

.admissions-dates .btn {
    width: 100%;
}

.application-card-pro {
    max-width: 980px;
}

.application-card-pro .section-heading {
    margin-bottom: 26px;
}

.admission-form {
    padding: 32px;
    border-radius: 18px;
}

.learning-pillar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.academic-program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.academic-program-card {
    overflow: hidden;
    min-width: 0;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.academic-program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.academic-program-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.academic-program-card > div {
    padding: 24px;
}

.academic-program-card h2 {
    margin: 0;
    color: #111827;
    font-size: 1.4rem;
}

.academic-program-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.curriculum-grid-pro {
    gap: 22px;
}

.curriculum-card {
    border-radius: 16px;
}

.method-list-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-list-pro article {
    box-shadow: none;
}

.notice-stack {
    display: grid;
    gap: 18px;
}

.notice-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 14px;
    box-shadow: var(--soft-shadow);
}

.notice-card > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 12px;
    font-weight: 800;
}

.notice-card p {
    margin: 0;
    color: var(--muted);
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px !important;
    font-size: 0.85rem;
    font-weight: 700;
}

.notice-meta svg {
    width: 16px;
    height: 16px;
    color: var(--red);
}

.admin-access-card {
    text-align: center;
}

.admin-access-card > span {
    margin-left: auto;
    margin-right: auto;
}

.compact-doc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.compact-doc-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 16px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
}

.compact-doc-card > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--red);
    background: #fff3c4;
    border-radius: 10px;
}

.compact-doc-card svg {
    width: 19px;
    height: 19px;
}

.compact-doc-card h2 {
    margin: 0;
    color: #111827;
    font-size: 0.96rem;
    line-height: 1.25;
}

.compact-doc-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.pdf-cta {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 32px;
    padding: 0 10px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}

.pdf-cta svg {
    width: 15px;
    height: 15px;
}

.disclosure-heading {
    margin-bottom: 24px;
}

.site-footer {
    background: #141d2a;
}

.footer-top {
    grid-template-columns: 1.12fr 0.72fr 0.95fr 1fr;
    gap: 44px;
}

.footer-links {
    gap: 8px;
}

.footer-links h2,
.footer-contact h2 {
    font-size: 1.08rem;
}

.footer-link-item,
.footer-contact-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
}

.footer-link-item {
    min-height: 27px;
    font-size: 0.93rem;
}

.footer-link-item svg,
.footer-contact-row svg {
    width: 17px;
    height: 17px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 3px;
}

.footer-link-item span,
.footer-contact-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-link-item:hover,
.footer-contact-row:hover {
    color: var(--white);
}

.footer-link-item:hover svg,
.footer-contact-row:hover svg {
    color: #ffb35c;
}

.footer-contact-row {
    margin: 0;
}

.footer-contact .social-links a {
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 1180px) {
    .refined-timeline,
    .learning-pillar-grid,
    .compact-doc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .refined-step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero-split .page-hero-grid {
        gap: 44px;
    }
}

@media (max-width: 920px) {
    .about-intro-grid,
    .mission-vision-grid,
    .admission-detail-layout,
    .academic-program-grid,
    .method-list-pro {
        grid-template-columns: 1fr;
    }

    .insight-card-grid,
    .admission-overview {
        grid-template-columns: 1fr;
    }

    .page-visual-card {
        padding-top: 0;
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-hero-split {
        padding: 38px 0 58px;
    }

    .page-hero-copy h1 {
        font-size: 2.68rem;
    }

    .page-visual-card img,
    .academic-program-card img {
        height: 280px;
    }

    .refined-timeline,
    .learning-pillar-grid,
    .refined-step-grid,
    .compact-doc-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .notice-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .notice-card .small-link {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .page-hero-copy h1 {
        font-size: 2.25rem;
    }

    .statement-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .academic-program-card > div,
    .admission-form,
    .admissions-checklist,
    .admissions-dates {
        padding: 22px;
    }

    .compact-doc-card {
        grid-template-columns: auto 1fr;
    }
}

/* Blog and article */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    min-width: 0;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.blog-card > img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.blog-card > div {
    padding: 24px;
}

.blog-card span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.blog-card h2 {
    margin: 16px 0 10px;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1.2;
}

.blog-card p {
    color: var(--muted);
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.article-hero {
    text-align: center;
}

.article-hero .container {
    max-width: 980px;
}

.article-hero h1 {
    margin: 26px 0 16px;
}

.article-meta {
    justify-content: center;
}

.article-layout {
    max-width: 980px;
}

.article-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.article-content {
    margin-top: 36px;
    color: #344054;
    font-size: 1.08rem;
    line-height: 1.78;
}

.article-content h2,
.article-content h3 {
    color: #111827;
    line-height: 1.18;
}

.article-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    color: #111827;
    background: #fff7ed;
    border-left: 4px solid var(--orange);
    border-radius: 12px;
}

.article-video-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 34px;
    padding: 22px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.article-video-link > svg {
    width: 44px;
    height: 44px;
    color: var(--red);
}

.article-video-link h2,
.article-video-link p {
    margin: 0;
}

.article-video-link p {
    color: var(--muted);
}

@media (max-width: 920px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-grid,
    .article-video-link {
        grid-template-columns: 1fr;
    }

    .article-video-link .btn {
        width: 100%;
    }
}

/* 2026 admissions and UX upgrade */
.nav-links .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links .nav-item > a,
.nav-parent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 12px;
    color: #374151;
    border-radius: var(--radius);
    font-size: 0.87rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-parent svg {
    width: 15px;
    height: 15px;
}

.nav-links .nav-item > a:hover,
.nav-links .nav-item > a:focus-visible,
.nav-links .nav-item > a.is-active,
.nav-item.has-submenu.is-active > .nav-parent,
.nav-item.has-submenu:hover > .nav-parent,
.nav-item.has-submenu:focus-within > .nav-parent {
    color: var(--red);
    background: #fff3ec;
}

.submenu-toggle {
    display: none;
}

.submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 60;
    display: grid;
    gap: 4px;
    min-width: 260px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #edf0f5;
    border-radius: 16px;
    box-shadow: 0 24px 55px rgba(16, 24, 40, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item.has-submenu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: max(100%, 260px);
    height: 16px;
}

.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu:focus-within .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu a {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: center;
    justify-content: start;
    min-height: 44px;
    padding: 0 12px;
    color: #344054;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
}

.submenu a svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
}

.submenu a:hover,
.submenu a:focus-visible,
.submenu a.is-active {
    color: var(--red);
    background: #fff7ed;
}

.home-hero-premium {
    position: relative;
    overflow: hidden;
    padding: 64px 0 96px;
    background:
        radial-gradient(circle at 88% 12%, rgba(249, 184, 220, 0.28), transparent 30%),
        radial-gradient(circle at 12% 20%, rgba(22, 185, 129, 0.10), transparent 28%),
        linear-gradient(120deg, #f7faff 0%, #fff8fb 58%, #fff 100%);
}

.home-hero-premium::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.88));
    pointer-events: none;
}

.home-hero-premium .hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
    gap: 54px;
}

.home-hero-premium .hero-copy h1 {
    margin-top: 28px;
    font-size: clamp(3.25rem, 6vw, 5.35rem);
    letter-spacing: 0;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    color: #344054;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #edf0f5;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
    font-size: 0.86rem;
    font-weight: 800;
}

.hero-highlights svg {
    width: 16px;
    height: 16px;
    color: var(--red);
}

.hero-collage {
    min-height: 565px;
    padding: 28px 0 0 28px;
}

.hero-collage img {
    border: 6px solid rgba(255, 255, 255, 0.78);
}

.hero-collage .hero-main-photo {
    width: min(100%, 540px);
    height: 455px;
    margin-left: auto;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 34px 70px rgba(16, 24, 40, 0.18);
}

.hero-mini-photo {
    position: absolute;
    width: 220px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 20px !important;
    box-shadow: 0 22px 44px rgba(16, 24, 40, 0.16) !important;
}

.hero-mini-one {
    left: 0;
    top: 22px;
}

.hero-mini-two {
    right: 24px;
    bottom: 4px;
}

.hero-proof-card {
    left: 20px;
    bottom: 78px;
    width: min(290px, calc(100% - 40px));
}

.hero-proof-card > span {
    background: linear-gradient(135deg, var(--green), #0ea5e9);
}

.birthday-modern {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background:
        radial-gradient(circle at 10% 15%, rgba(249, 184, 220, 0.35), transparent 24%),
        linear-gradient(135deg, #fff, #fff7ed 50%, #f5f8ff);
    border: 1px solid #ffd7b5;
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(16, 24, 40, 0.08);
}

.birthday-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.birthday-header > span {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: var(--white);
    background: linear-gradient(135deg, #ec4899, var(--orange));
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.20);
}

.birthday-header h2,
.birthday-header p {
    margin: 0;
    text-align: left;
}

.birthday-header h2 {
    color: #111827;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.birthday-header p:last-child {
    color: var(--muted);
    margin-top: 6px;
}

.birthday-group {
    padding: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
}

.birthday-modern .mini-list article {
    border-color: #edf0f5;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.news-accordion {
    display: grid;
    gap: 14px;
}

.news-accordion details {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.news-accordion summary {
    display: grid;
    grid-template-columns: 118px 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 118px;
    padding: 14px 18px 14px 14px;
    cursor: pointer;
    list-style: none;
}

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

.news-accordion summary > img {
    width: 118px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
}

.news-summary-copy {
    display: grid;
    gap: 5px;
}

.news-summary-copy strong {
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.2;
}

.news-type {
    width: fit-content;
    min-height: 26px;
    padding: 4px 10px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.news-summary-copy time {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.news-accordion summary > svg {
    width: 24px;
    height: 24px;
    color: var(--orange);
    transition: transform 180ms ease;
}

.news-accordion details[open] summary > svg {
    transform: rotate(180deg);
}

.news-accordion-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px 22px 150px;
}

.news-accordion-body p {
    margin: 0;
    color: var(--muted);
}

.about-showcase-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) 1fr;
    gap: 34px;
    align-items: center;
    padding: 26px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(16, 24, 40, 0.10);
}

.about-showcase-card > img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 20px;
}

.about-showcase-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.about-showcase-card p:not(.eyebrow-line) {
    color: var(--muted);
}

.about-showcase-card .small-link {
    margin-top: 20px;
}

.admission-enquiry-shell {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 26px;
    align-items: stretch;
}

.admission-form-guide,
.admission-enquiry-shell .admission-form {
    min-width: 0;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(16, 24, 40, 0.08);
}

.admission-form-guide {
    overflow: hidden;
    padding: 30px;
}

.admission-form-guide h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.admission-form-guide p {
    color: var(--muted);
}

.admission-guide-points {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.admission-guide-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    font-weight: 800;
}

.admission-guide-points svg {
    width: 18px;
    height: 18px;
    color: var(--red);
}

.admission-form-guide img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 18px;
}

.admission-enquiry-shell .admission-form {
    padding: 34px;
}

.form-alert-error {
    color: #b42318;
    background: #fff1f3;
    border-color: #fecdd6;
}

.pathway-showcase {
    display: grid;
    gap: 22px;
}

.pathway-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.45fr) 1fr;
    gap: 26px;
    align-items: stretch;
    min-width: 0;
    padding: 18px;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.pathway-card:nth-child(even) {
    grid-template-columns: 1fr minmax(240px, 0.45fr);
}

.pathway-card:nth-child(even) .pathway-media {
    order: 2;
}

.pathway-media {
    position: relative;
    min-height: 260px;
}

.pathway-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 20px;
}

.pathway-media span {
    position: absolute;
    left: 16px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--orange));
    border: 4px solid rgba(255, 255, 255, 0.74);
    border-radius: 16px;
    font-weight: 900;
}

.pathway-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 14px;
}

.pathway-copy h2 {
    margin: 14px 0 10px;
    color: #111827;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.pathway-copy p:not(.grade-range) {
    margin: 0;
    color: var(--muted);
}

.pathway-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pathway-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.pathway-points svg {
    width: 15px;
    height: 15px;
    color: var(--green);
}

.curriculum-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.curriculum-stage-card {
    min-width: 0;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 247, 237, 0.82), rgba(255, 255, 255, 0) 46%),
        var(--white);
    border: 1px solid #edf0f5;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
}

.curriculum-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.curriculum-card-head strong {
    color: rgba(216, 54, 34, 0.18);
    font-size: 2.4rem;
    line-height: 1;
}

.curriculum-stage-card h2 {
    margin: 22px 0 10px;
    color: #111827;
    font-size: 1.45rem;
}

.curriculum-stage-card p {
    color: var(--muted);
}

.subject-cloud li {
    background: #fff;
}

.trustee-message-card > img {
    object-position: center;
}

.footer-hero {
    display: grid;
    grid-template-columns: 1.1fr minmax(320px, 0.9fr);
    gap: 28px;
    align-items: center;
    padding: 54px 0 28px;
}

.footer-hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-admission-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
}

.footer-admission-card > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #141d2a;
    background: #ffb35c;
    border-radius: 14px;
}

.footer-admission-card strong,
.footer-admission-card small {
    display: block;
}

.footer-admission-card strong {
    color: var(--white);
}

.footer-admission-card small {
    color: rgba(255, 255, 255, 0.64);
}

.footer-admission-card a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    color: #141d2a;
    background: #ffffff;
    border-radius: 10px;
    font-weight: 900;
}

.site-footer .footer-top {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    padding-top: 28px;
}

.footer-links h2,
.footer-contact h2 {
    color: var(--white);
}

.footer-social-links a {
    color: #ffffff;
}

.home-hero-premium {
    min-height: calc(100vh - 104px);
    padding: 24px 0 32px;
}

.home-hero-premium .hero-grid {
    gap: 34px;
}

.home-hero-premium .hero-copy h1 {
    max-width: 630px;
    margin: 14px 0 12px;
    font-size: clamp(2.55rem, 3.85vw, 3.55rem);
    line-height: 1.03;
}

.home-hero-premium .hero-copy p {
    max-width: 610px;
    font-size: 0.99rem;
}

.home-hero-premium .hero-actions {
    margin-top: 16px;
}

.home-hero-premium .hero-stats {
    margin-top: 18px;
}

.hero-collage {
    min-height: 410px;
    padding-top: 8px;
}

.hero-collage .hero-main-photo {
    height: 330px;
}

.hero-mini-photo {
    width: 162px !important;
    height: 110px !important;
}

.hero-mini-one {
    top: 8px;
}

.hero-mini-two {
    bottom: 8px;
}

.hero-proof-card {
    bottom: 38px;
}

.birthday-modern {
    display: grid;
    grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.birthday-modern .birthday-header {
    align-content: center;
    height: 100%;
    margin: 0;
    padding: 10px 8px;
}

.birthday-modern .birthday-grid {
    gap: 18px;
}

.birthday-modern .birthday-group {
    display: flex;
    flex-direction: column;
}

.birthday-modern .mini-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.birthday-modern .mini-list article {
    min-width: 0;
}

.media-panel[hidden],
.is-hidden {
    display: none !important;
}

.quick-access-section {
    padding: 28px 0;
    background: #fff7ed;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.quick-access-grid a {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 72px;
    padding: 14px;
    color: #1f2937;
    background: var(--white);
    border: 1px solid #fed7aa;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.quick-access-grid a span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 10px;
}

.quick-access-grid a svg {
    width: 18px;
    height: 18px;
}

.quick-access-grid a strong {
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.18;
}

.home-overview-grid,
.media-record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-overview-card {
    display: grid;
    align-content: start;
}

.home-overview-card .small-link {
    margin-top: 18px;
}

.home-app-panel {
    grid-template-columns: 210px 1fr;
}

.app-point-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.app-point-grid article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #edf0f5;
    border-radius: 12px;
}

.app-point-grid article > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: var(--red);
    border-radius: 10px;
}

.app-point-grid svg {
    width: 18px;
    height: 18px;
}

.app-point-grid strong,
.media-record-card time {
    display: block;
    color: #111827;
    font-weight: 900;
}

.app-point-grid p {
    margin: 4px 0 0;
    font-size: 0.88rem;
}

.birthday-modern.has-birthdays {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.9)),
        linear-gradient(120deg, rgba(216, 54, 34, 0.10), rgba(24, 128, 99, 0.10));
}

.birthday-modern.is-empty {
    background:
        linear-gradient(135deg, #ffffff, #f8fafc),
        linear-gradient(120deg, rgba(216, 54, 34, 0.06), rgba(14, 165, 233, 0.08));
    border-color: #e5e7eb;
}

.birthday-date-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    margin-top: 14px;
    padding: 0 12px;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.birthday-flash-group {
    position: relative;
    overflow: hidden;
}

.birthday-flash-group::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ec4899, var(--orange));
}

.birthday-person-card {
    animation: birthdayPulse 2.2s ease-in-out infinite;
}

.birthday-person-card:nth-child(2n) {
    animation-delay: 220ms;
}

.birthday-avatar-initials {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 14px;
    font-weight: 900;
}

.birthday-empty-state {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 150px;
    padding: 22px;
    color: #344054;
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed #d0d5dd;
    border-radius: 18px;
}

.birthday-empty-state > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 16px;
}

.birthday-empty-state strong {
    display: block;
    color: #111827;
    font-size: 1.05rem;
}

.birthday-empty-state p {
    margin: 6px 0 0;
    color: var(--muted);
}

@keyframes birthdayPulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
    }

    50% {
        transform: translateY(-3px);
        box-shadow: 0 16px 28px rgba(216, 54, 34, 0.12);
    }
}

.home-story-board {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.home-story-primary,
.home-story-cards article {
    border: 1px solid #edf0f5;
    box-shadow: var(--soft-shadow);
}

.home-story-primary {
    display: grid;
    align-content: center;
    padding: clamp(28px, 5vw, 46px);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.88), rgba(127, 29, 29, 0.80)),
        url("../images/bomis-classroom.webp") center/cover;
    border-radius: 24px;
    overflow: hidden;
}

.home-story-primary .eyebrow-line,
.home-story-primary p {
    color: rgba(255, 255, 255, 0.82);
}

.home-story-primary h2 {
    max-width: 760px;
    margin: 8px 0 14px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.02;
}

.home-story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
}

.home-story-primary .home-story-principal-link {
    gap: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.18);
}

.home-story-primary .home-story-principal-link:hover,
.home-story-primary .home-story-principal-link:focus-visible {
    color: #101828;
    background: #ffffff;
    border-color: #ffffff;
}

.home-story-principal-link svg {
    width: 17px;
    height: 17px;
}

.builder-section {
    padding: clamp(56px, 8vw, 96px) 0;
    background: #ffffff;
}

.builder-section--hero {
    color: #ffffff;
    background: #172033;
}

.builder-section--hero .builder-copy h2,
.builder-section--hero .builder-rich-copy {
    color: #ffffff;
}

.builder-copy {
    max-width: 820px;
}

.builder-copy--hero {
    padding: clamp(30px, 5vw, 58px);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(216, 54, 34, 0.96), rgba(178, 33, 28, 0.96));
}

.builder-copy h2,
.builder-heading h2 {
    margin: 8px 0 16px;
    color: #101828;
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    line-height: 1.1;
}

.builder-rich-copy {
    color: #475467;
    line-height: 1.75;
}

.builder-rich-copy > :first-child {
    margin-top: 0;
}

.builder-rich-copy > :last-child {
    margin-bottom: 0;
}

.builder-copy .btn,
.builder-section-cta {
    margin-top: 22px;
}

.builder-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
}

.builder-split > img {
    width: 100%;
    min-height: 330px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
}

.builder-heading {
    max-width: 780px;
}

.builder-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.builder-card-grid article {
    padding: 24px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.05);
}

.builder-card-grid span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--red);
    border-radius: 10px;
    background: #fff3ec;
}

.builder-card-grid h3 {
    margin: 18px 0 8px;
    color: #101828;
    font-size: 1.1rem;
}

.builder-card-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.builder-faq-list {
    display: grid;
    gap: 10px;
    max-width: 900px;
    margin-top: 28px;
}

.builder-faq-list details {
    padding: 0 18px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
}

.builder-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    color: #101828;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.builder-faq-list summary::-webkit-details-marker {
    display: none;
}

.builder-faq-list summary svg {
    flex: 0 0 auto;
    width: 18px;
    color: var(--red);
}

.builder-faq-list p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.contact-review-link {
    gap: 8px;
    margin-top: 16px;
}

.document-viewer-page {
    min-height: calc(100vh - 180px);
    padding: clamp(40px, 6vw, 72px) 0;
    background: #ffffff;
}

.section[id],
form[id],
article[id] {
    scroll-margin-top: 108px;
}

.document-viewer-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.document-viewer-heading h1,
.document-viewer-heading p {
    margin: 0;
}

.document-viewer-heading h1 {
    margin-top: 8px;
    color: #101828;
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
}

.document-viewer-heading div > p:last-child {
    margin-top: 7px;
    color: var(--muted);
}

.document-viewer-heading .small-link {
    gap: 8px;
    flex: 0 0 auto;
}

.document-viewer-heading .small-link svg {
    width: 17px;
    height: 17px;
}

.pdf-viewer {
    width: 100%;
    background: #ffffff;
}

.pdf-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 12px 0 14px;
    border-bottom: 1px solid #e4e7ec;
    background: #ffffff;
}

.pdf-viewer-file {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}

.pdf-viewer-file-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: #fff1ef;
    color: var(--red);
}

.pdf-viewer-file-icon svg {
    width: 19px;
    height: 19px;
}

.pdf-viewer-file div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pdf-viewer-file strong {
    color: #101828;
    font-size: 0.88rem;
}

.pdf-viewer-file span:not(.pdf-viewer-file-icon) {
    overflow: hidden;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-viewer-controls,
.pdf-viewer-control-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pdf-viewer-controls {
    flex: 0 0 auto;
    gap: 14px;
}

.pdf-viewer-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.pdf-viewer-control-group {
    min-height: 42px;
    padding: 3px;
    border: 1px solid #dfe3eb;
    border-radius: 8px;
    background: #ffffff;
}

.pdf-control-button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #344054;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.pdf-control-button:not(:disabled):hover,
.pdf-control-button:not(:disabled):focus-visible {
    background: #fff1ef;
    color: var(--red);
    outline: 0;
}

.pdf-control-button:disabled {
    color: #c7cdd6;
    cursor: not-allowed;
}

.pdf-control-button svg {
    width: 19px;
    height: 19px;
}

.pdf-fullscreen-button {
    width: 42px;
    height: 42px;
    border: 1px solid #dfe3eb;
    border-radius: 8px;
    background: #ffffff;
}

.pdf-page-field input {
    width: 42px;
    height: 32px;
    padding: 0 4px;
    border: 0;
    border-radius: 5px;
    background: #f2f4f7;
    color: #101828;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.pdf-page-field input:focus-visible {
    outline: 2px solid rgba(217, 45, 32, 0.35);
    outline-offset: 1px;
}

.pdf-page-total,
.pdf-zoom-level {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.pdf-page-total strong {
    color: #344054;
}

.pdf-zoom-level {
    display: inline-flex;
    width: 42px;
    justify-content: center;
    color: #344054;
}

.pdf-viewer-stage {
    display: grid;
    min-height: min(72vh, 880px);
    max-height: calc(100vh - 170px);
    padding: clamp(14px, 2.5vw, 30px);
    place-items: start center;
    overflow: auto;
    overscroll-behavior: contain;
    background-color: #eef1f5;
    background-image: radial-gradient(#d5dae2 0.7px, transparent 0.7px);
    background-size: 10px 10px;
}

.pdf-viewer-stage.is-native-fallback {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.pdf-native-fallback {
    width: 100%;
    height: 100%;
    min-height: min(72vh, 880px);
    border: 0;
    background: #ffffff;
}

.pdf-viewer.is-fullscreen {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    overflow: hidden;
    background: #ffffff;
}

.pdf-viewer.is-fullscreen .pdf-viewer-stage {
    min-height: calc(100vh - 78px);
    max-height: calc(100vh - 78px);
}

.pdf-viewer.is-fullscreen .pdf-native-fallback {
    min-height: calc(100vh - 78px);
}

.pdf-viewer-stage:focus-visible {
    outline: 3px solid rgba(217, 45, 32, 0.35);
    outline-offset: -3px;
}

.pdf-viewer-canvas {
    max-width: none;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18);
}

.pdf-viewer-loading,
.pdf-viewer-error {
    display: grid;
    width: min(100%, 340px);
    min-height: 190px;
    padding: 28px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #475467;
    text-align: center;
}

.pdf-viewer [hidden] {
    display: none !important;
}

.pdf-viewer-loading span {
    width: 28px;
    height: 28px;
    border: 3px solid #ead1ce;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: pdf-reader-spin 850ms linear infinite;
}

.pdf-viewer-loading strong,
.pdf-viewer-error strong {
    color: #1d2939;
    font-size: 0.88rem;
}

.pdf-viewer-loading small,
.pdf-viewer-error span {
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.45;
}

.pdf-viewer-error svg {
    width: 24px;
    height: 24px;
    color: var(--red);
}

.pdf-viewer-error .small-link {
    margin-top: 5px;
    border: 0;
    background: transparent;
    color: var(--red);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

@keyframes pdf-reader-spin {
    to { transform: rotate(360deg); }
}

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

.subscribe-feedback {
    margin: 12px 0 0;
    color: #effcf4;
    font-weight: 700;
}

.subscribe-feedback.is-error {
    color: #ffd5cf;
}

/* e-Care parent portal: a calm product surface rather than a feature-card grid. */
.ecare-section {
    padding-top: clamp(28px, 4vw, 54px);
}

.home-ecare-panel.ecare-premium-panel {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: stretch;
    padding: clamp(18px, 3vw, 34px);
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(16, 24, 40, 0.07);
}

.ecare-device-stage {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 448px;
    padding: 18px;
    color: #ffffff;
    background: #172033;
    border-radius: 10px;
}

.ecare-stage-label,
.ecare-stage-footer,
.ecare-action-row {
    display: flex;
    align-items: center;
}

.ecare-stage-label {
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ecare-stage-label svg {
    width: 16px;
    height: 16px;
    color: #ffbf72;
}

.ecare-device-stage .ecare-device-card {
    width: min(254px, 100%);
    max-width: none;
    margin: 16px auto;
    align-self: center;
}

.ecare-device-stage .ecare-device-screen {
    display: grid;
    min-height: 300px;
    padding: 17px;
    background: #ffffff;
    border: 7px solid #0d1627;
    border-radius: 28px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.ecare-device-stage .ecare-device-brand {
    padding: 8px 0;
}

.ecare-device-stage .ecare-device-brand img {
    width: min(132px, 68%);
    margin-bottom: 10px;
}

.ecare-device-stage .ecare-device-brand strong {
    font-size: 1.6rem;
}

.ecare-device-stage .ecare-device-notice {
    color: #334155;
    background: #fff7ed;
    border-color: #fed7aa;
}

.ecare-device-stage .ecare-device-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.ecare-device-stage .ecare-device-actions span {
    gap: 4px;
    min-height: 54px;
    padding: 8px 4px;
    color: #dbe4ef;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.67rem;
}

.ecare-device-stage .ecare-device-actions svg {
    color: #ffbf72;
}

.ecare-stage-footer {
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    color: #aab8ca;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    font-weight: 700;
}

.ecare-stage-footer span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ecare-stage-footer svg {
    width: 15px;
    color: #42d3a2;
}

.ecare-premium-panel .ecare-content {
    display: grid;
    align-content: center;
    min-width: 0;
    padding: clamp(6px, 2vw, 16px) 0;
}

.ecare-content-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.ecare-premium-panel .ecare-content h2 {
    max-width: 690px;
    margin: 8px 0 0;
    color: #101828;
    font-size: clamp(1.9rem, 3.1vw, 3rem);
    line-height: 1.08;
}

.ecare-access-code {
    display: grid;
    flex: 0 0 auto;
    gap: 3px;
    min-width: 106px;
    padding: 10px 12px;
    color: #344054;
    background: #ffffff;
    border: 1px solid #dfe3eb;
    border-radius: 8px;
}

.ecare-access-code small {
    color: #667085;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ecare-access-code strong {
    color: #b42318;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.ecare-premium-panel .ecare-intro {
    max-width: 750px;
    margin: 18px 0 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.65;
}

.ecare-benefit-list {
    display: grid;
    margin-top: 24px;
    border-top: 1px solid #e4e7ec;
}

.ecare-benefit-list article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #e4e7ec;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.ecare-benefit-list article > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #b42318;
    background: #fff1ed;
    border-radius: 8px;
}

.ecare-benefit-list article > span svg {
    width: 19px;
    height: 19px;
}

.ecare-benefit-list strong,
.ecare-benefit-list p {
    margin: 0;
}

.ecare-benefit-list strong {
    color: #1d2939;
    font-size: 0.98rem;
}

.ecare-benefit-list p {
    margin-top: 4px;
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.5;
}

.ecare-benefit-arrow {
    width: 17px;
    height: 17px;
    color: #98a2b3;
}

.ecare-action-row {
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 26px;
}

.ecare-action-row .btn {
    min-height: 46px;
    gap: 9px;
    box-shadow: 0 14px 24px rgba(180, 35, 24, 0.16);
}

.ecare-action-row .btn svg {
    width: 17px;
    height: 17px;
}

.ecare-action-row > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 0.8rem;
    font-weight: 700;
}

.ecare-action-row > span svg {
    width: 16px;
    color: #16805f;
}

@media (max-width: 760px) {
    .builder-split,
    .builder-card-grid {
        grid-template-columns: 1fr;
    }

    .builder-split > img {
        min-height: 240px;
    }

    .builder-copy--hero {
        padding: 28px 22px;
    }

    .document-viewer-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .pdf-viewer-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
        padding: 13px;
    }

    .pdf-viewer-controls {
        justify-content: space-between;
        gap: 10px;
    }

    .pdf-viewer-actions {
        justify-content: space-between;
    }

    .pdf-viewer-control-group {
        gap: 5px;
    }

    .pdf-control-button {
        width: 36px;
        height: 36px;
    }

    .pdf-viewer-stage {
        min-height: 62vh;
        max-height: 70vh;
        padding: 14px;
    }

    .pdf-native-fallback {
        min-height: 62vh;
    }

    .home-ecare-panel.ecare-premium-panel {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 14px;
    }

    .ecare-device-stage {
        min-height: 412px;
    }

    .ecare-premium-panel .ecare-content {
        padding: 12px 6px 6px;
    }

    .ecare-content-heading {
        gap: 14px;
    }

    .ecare-premium-panel .ecare-content h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .pdf-viewer-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .pdf-viewer-actions {
        align-items: stretch;
        gap: 8px;
    }

    .pdf-fullscreen-button {
        flex: 0 0 42px;
    }

    .pdf-viewer-control-group {
        justify-content: center;
    }

    .pdf-viewer-stage {
        min-height: 58vh;
        max-height: 66vh;
        padding: 10px;
    }

    .pdf-native-fallback {
        min-height: 58vh;
    }

    .ecare-content-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ecare-access-code {
        display: flex;
        align-items: baseline;
        gap: 8px;
        min-width: 0;
    }

    .ecare-benefit-list article {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .ecare-benefit-arrow {
        display: none;
    }
}

.home-story-cards {
    display: grid;
    gap: 18px;
}

.home-story-cards article {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: #ffffff;
    border-radius: 20px;
}

.home-story-cards article > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 14px;
}

.home-story-cards h3,
.home-story-cards p {
    margin: 0;
}

.home-story-cards h3 {
    color: #111827;
    font-size: 1.22rem;
    line-height: 1.22;
}

.home-story-cards p {
    color: var(--muted);
}

.news-board {
    display: grid;
    grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.news-board .news-accordion summary {
    grid-template-columns: 64px 1fr auto;
    min-height: 96px;
}

.news-board .news-accordion-body {
    padding-left: 96px;
}

.news-feature-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

.news-feature-card img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.news-feature-card > div {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.news-feature-card h3,
.news-feature-card p {
    margin: 0;
}

.news-feature-card h3 {
    color: #111827;
    font-size: 1.45rem;
    line-height: 1.15;
}

.news-feature-card time {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.news-summary-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--red);
    background: #fff3ec;
    border-radius: 16px;
}

.news-summary-icon svg {
    width: 22px;
    height: 22px;
}

.home-ecare-panel {
    position: relative;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    overflow: hidden;
    padding: clamp(24px, 4vw, 34px);
    background:
        linear-gradient(135deg, #ffffff, #f8fafc),
        linear-gradient(120deg, rgba(216, 54, 34, 0.07), rgba(24, 128, 99, 0.08));
    border: 1px solid #edf0f5;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.ecare-device-card {
    display: grid;
    gap: 14px;
}

.ecare-device-screen {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 250px;
    padding: 26px;
    background:
        linear-gradient(180deg, #ffffff, #fff7ed);
    border: 8px solid #111827;
    border-radius: 28px;
    box-shadow: 0 24px 52px rgba(16, 24, 40, 0.16);
}

.ecare-device-screen img {
    width: min(160px, 76%);
    height: auto;
    margin-bottom: 18px;
    object-fit: contain;
    filter: none;
}

.ecare-device-screen strong {
    color: #111827;
    font-size: 2rem;
    line-height: 1;
}

.ecare-device-screen span {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 800;
}

.ecare-device-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ecare-device-actions span {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 12px 8px;
    color: #344054;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.ecare-content {
    align-self: center;
}

.media-record-card time {
    margin-top: 8px;
    color: var(--red);
    font-size: 0.9rem;
}

.public-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
}

.admission-age-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
}

.admission-age-table th,
.admission-age-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #edf0f5;
}

.admission-age-table th {
    color: #111827;
    background: #fff7ed;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.admission-age-table td {
    color: var(--text);
    font-weight: 700;
}

.admission-age-table tr:last-child td {
    border-bottom: 0;
}

.footer-credit {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.footer-credit strong {
    color: #ffb35c;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-card {
    overflow: hidden;
    min-width: 0;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.video-card > a {
    position: relative;
    display: block;
}

.video-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.video-card > a > span {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--white);
    background: rgba(216, 54, 34, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 34px rgba(216, 54, 34, 0.25);
}

.video-card > a > span svg {
    width: 26px;
    height: 26px;
}

.video-card > div {
    padding: 20px;
}

.video-card strong,
.video-card small {
    display: block;
}

.video-card strong {
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.25;
}

.video-card small {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 800;
}

.empty-gallery-state {
    grid-column: 1 / -1;
    text-align: center;
}

.phase-proof-section,
.academic-quality-section,
.contact-channel-section,
.disclosure-highlight-section {
    padding-top: 42px;
    padding-bottom: 42px;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.proof-strip article,
.contact-channel-card,
.quality-signal-grid article,
.disclosure-highlight-grid article {
    min-width: 0;
    background: var(--white);
    border: 1px solid #edf0f5;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.proof-strip article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
}

.proof-strip span,
.contact-channel-card > span,
.quality-signal-grid span,
.disclosure-highlight-grid span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--red);
    background: #fff3c4;
    border-radius: 13px;
}

.proof-strip svg,
.contact-channel-card svg,
.quality-signal-grid svg,
.disclosure-highlight-grid svg {
    width: 22px;
    height: 22px;
}

.proof-strip strong,
.contact-channel-card h2,
.quality-signal-grid strong,
.disclosure-highlight-grid strong {
    display: block;
    color: #111827;
    font-weight: 900;
    line-height: 1.22;
}

.proof-strip p,
.contact-channel-card p,
.quality-signal-grid p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.academic-quality-band,
.parent-decision-panel {
    display: grid;
    grid-template-columns: 0.68fr 1.32fr;
    gap: 28px;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #fff, #fff7ed 52%, #f5f8ff);
    border: 1px solid #ffd7b5;
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(16, 24, 40, 0.08);
}

.academic-quality-band h2,
.parent-decision-panel h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.academic-quality-band > div > p:last-child,
.parent-decision-panel > div > p {
    color: var(--muted);
}

.quality-signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quality-signal-grid article {
    padding: 18px;
    border-radius: 16px;
}

.quality-signal-grid span {
    margin-bottom: 12px;
}

.parent-decision-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.parent-decision-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    color: #344054;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #edf0f5;
    border-radius: 14px;
    font-weight: 900;
}

.parent-decision-points svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--red);
}

.admissions-faq-layout {
    display: grid;
    grid-template-columns: 0.44fr 0.56fr;
    gap: 34px;
    align-items: start;
}

.section-heading.align-left {
    align-items: start;
    margin: 0;
    text-align: left;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    overflow: hidden;
    background: var(--white);
    border: 1px solid #edf0f5;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 66px;
    padding: 0 20px;
    color: #111827;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--red);
    transition: transform 220ms ease;
}

.faq-list details[open] summary svg {
    transform: rotate(180deg);
}

.faq-list details p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
}

.contact-channel-grid,
.disclosure-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-channel-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
}

.contact-channel-card h2 {
    margin: 0 0 6px;
    font-size: 1.14rem;
}

.contact-channel-card a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--red);
    font-weight: 900;
}

.disclosure-highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.disclosure-highlight-grid article {
    padding: 22px;
    border-radius: 18px;
}

.disclosure-highlight-grid span {
    margin-bottom: 16px;
}

.disclosure-highlight-grid small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-weight: 800;
}

.disclosure-highlight-grid strong {
    font-size: 1.1rem;
}

.pdf-cta.is-disabled {
    color: #667085;
    background: #f2f4f7;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1180px) {
    .quick-access-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-overview-grid,
    .media-record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-story-board,
    .news-board {
        grid-template-columns: 1fr;
    }

    .home-hero-premium .hero-grid,
    .admission-enquiry-shell,
    .about-showcase-card {
        grid-template-columns: 1fr;
    }

    .hero-collage {
        max-width: 720px;
        margin: 0 auto;
    }

    .curriculum-modern-grid,
    .site-footer .footer-top,
    .proof-strip,
    .disclosure-highlight-grid,
    .video-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .home-app-panel,
    .home-ecare-panel,
    .app-point-grid {
        grid-template-columns: 1fr;
    }

    .nav-links .nav-item,
    .nav-links .nav-item.has-submenu {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: stretch;
    }

    .nav-links .nav-item > a,
    .nav-parent {
        justify-content: flex-start;
        min-height: 46px;
        padding: 0 12px;
    }

    .nav-parent > svg {
        display: none;
    }

    .submenu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        color: var(--ink);
        background: #f8fafc;
        border: 1px solid #edf0f5;
        border-radius: 10px;
    }

    .submenu-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 180ms ease;
    }

    .has-submenu.is-open .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .submenu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        min-width: 0;
        margin: 4px 0 8px;
        padding: 6px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: #f8fafc;
        border-radius: 12px;
        box-shadow: none;
    }

    .has-submenu.is-open .submenu {
        display: grid;
    }

    .home-hero-premium .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-collage {
        min-height: 480px;
        padding-left: 0;
    }

    .hero-collage .hero-main-photo {
        height: 360px;
    }

    .hero-mini-photo {
        width: 170px !important;
        height: 118px !important;
    }

    .hero-proof-card {
        bottom: 36px;
    }

    .news-accordion summary {
        grid-template-columns: 64px 1fr auto;
        min-height: 96px;
    }

    .news-accordion summary > img,
    .news-summary-icon {
        width: 64px;
        height: 58px;
    }

    .news-accordion-body {
        display: grid;
        padding: 0 18px 20px;
    }

    .pathway-card,
    .pathway-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .pathway-card:nth-child(even) .pathway-media {
        order: 0;
    }

    .academic-quality-band,
    .parent-decision-panel,
    .admissions-faq-layout,
    .contact-channel-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .quick-access-grid,
    .home-overview-grid,
    .media-record-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-grid a {
        min-height: 62px;
    }

    .home-hero-premium {
        padding-top: 36px;
    }

    .hero-highlights {
        display: grid;
    }

    .hero-collage {
        min-height: 390px;
    }

    .hero-mini-one {
        top: 8px;
    }

    .hero-mini-two {
        right: 8px;
        bottom: 18px;
    }

    .hero-proof-card {
        left: 10px;
        bottom: 28px;
    }

    .birthday-header,
    .news-accordion summary,
    .footer-admission-card {
        grid-template-columns: 1fr;
    }

    .birthday-modern {
        grid-template-columns: 1fr;
    }

    .birthday-empty-state {
        grid-template-columns: 1fr;
    }

    .birthday-modern .mini-list,
    .video-gallery,
    .ecare-device-actions {
        grid-template-columns: 1fr;
    }

    .birthday-header > span {
        width: 54px;
        height: 54px;
    }

    .news-accordion summary > img,
    .news-summary-icon {
        width: 100%;
        height: 160px;
    }

    .home-story-primary,
    .home-story-cards article,
    .news-feature-card > div {
        padding: 20px;
    }

    .admission-form-guide,
    .admission-enquiry-shell .admission-form,
    .about-showcase-card {
        padding: 20px;
    }

    .about-showcase-card > img,
    .admission-form-guide img {
        height: 260px;
    }

    .curriculum-modern-grid,
    .proof-strip,
    .parent-decision-points,
    .quality-signal-grid,
    .disclosure-highlight-grid,
    .site-footer .footer-top {
        grid-template-columns: 1fr;
    }

    .academic-quality-band,
    .parent-decision-panel {
        padding: 22px;
        border-radius: 18px;
    }

    .proof-strip article,
    .contact-channel-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero-premium {
        min-height: auto;
        padding: 24px 0 40px;
    }

    .home-hero-premium .hero-grid {
        gap: 20px;
    }

    .home-hero-premium .hero-copy h1 {
        margin: 18px 0 12px;
        font-size: 2rem;
        line-height: 1.08;
    }

    .home-hero-premium .hero-copy p {
        font-size: 0.95rem;
        line-height: 1.48;
    }

    .home-hero-premium .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .home-hero-premium .btn {
        width: auto;
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .home-hero-premium .hero-highlights,
    .home-hero-premium .hero-mini-photo,
    .home-hero-premium .hero-proof-card {
        display: none;
    }

    .home-hero-premium .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .home-hero-premium .hero-stats strong {
        font-size: 1.25rem;
    }

    .home-hero-premium .hero-stats span {
        font-size: 0.72rem;
    }

    .home-hero-premium .hero-collage {
        min-height: 210px;
        padding: 0;
    }

    .home-hero-premium .hero-collage .hero-main-photo {
        width: 100%;
        height: 210px;
        border-width: 4px;
        border-radius: 18px;
    }

    .page-hero-split {
        padding: 28px 0 42px;
    }

    .page-hero-split .page-hero-grid {
        gap: 20px;
    }

    .page-hero-copy h1 {
        margin: 16px 0 12px;
        font-size: 1.95rem;
        line-height: 1.1;
    }

    .page-hero-copy p:not(.hero-pill) {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .page-hero-split .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .page-hero-split .btn {
        width: auto;
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .page-visual-card img,
    .page-hero-grid img {
        height: 180px;
    }

    .page-hero-split .rating-card {
        display: none;
    }
}

/* Homepage and footer presentation refresh */
.home-hero-premium {
    padding: 30px 0 42px;
    background:
        radial-gradient(circle at 86% 14%, rgba(248, 179, 211, 0.32), transparent 28%),
        radial-gradient(circle at 12% 16%, rgba(24, 128, 99, 0.10), transparent 26%),
        linear-gradient(120deg, #f7faff 0%, #fff8fb 58%, #ffffff 100%);
}

.home-hero-premium .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 550px);
    gap: 24px;
    align-items: center;
}

.home-hero-premium .hero-copy {
    display: grid;
    align-content: center;
    padding: 12px 0;
}

.home-hero-premium .hero-copy h1 {
    max-width: 640px;
    margin: 16px 0 14px;
    font-size: 3rem;
    line-height: 1.04;
}

.home-hero-premium .hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: #475467;
    font-size: 1rem;
    line-height: 1.58;
}

.hero-collage {
    min-height: 448px;
    padding: 10px 0 0 34px;
}

.hero-collage .hero-main-photo {
    width: min(100%, 550px);
    height: 390px;
    border-width: 6px;
    border-radius: 24px;
    box-shadow: 0 30px 64px rgba(16, 24, 40, 0.17);
}

.hero-mini-photo {
    width: 188px !important;
    height: 126px !important;
    border-width: 5px !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.18) !important;
}

.hero-mini-one {
    left: -4px;
    top: 0;
}

.hero-mini-two {
    right: 6px;
    bottom: 16px;
}

.hero-proof-card {
    left: 8px;
    bottom: 22px;
    width: min(300px, calc(100% - 32px));
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 42px rgba(16, 24, 40, 0.16);
}

.hero-proof-card > span {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.quick-access-section {
    padding: 32px 0;
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf5 100%);
    border-top: 1px solid #ffedd5;
    border-bottom: 1px solid #ffedd5;
}

.quick-access-grid {
    gap: 14px;
}

.quick-access-grid a {
    position: relative;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    min-height: 82px;
    padding: 16px;
    overflow: hidden;
    border-color: #fed7aa;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-access-grid a::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--red), var(--orange));
    opacity: 0;
    transition: opacity 180ms ease;
}

.quick-access-grid a:hover,
.quick-access-grid a:focus-visible {
    transform: translateY(-3px);
    border-color: #fdba74;
    box-shadow: 0 16px 30px rgba(16, 24, 40, 0.10);
}

.quick-access-grid a:hover::after,
.quick-access-grid a:focus-visible::after {
    opacity: 1;
}

.quick-access-grid a .quick-access-icon {
    width: 46px;
    height: 46px;
    color: #b42318;
    background: #fff1e7;
    border: 1px solid #fed7aa;
    border-radius: 12px;
}

.quick-access-grid a .quick-access-icon svg {
    width: 21px;
    height: 21px;
}

.quick-access-grid a strong {
    padding-right: 24px;
    font-size: 0.95rem;
}

.quick-access-grid a small {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #d0d5dd;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.birthday-modern {
    grid-template-columns: minmax(290px, 0.66fr) minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    background: #ffffff;
    border-color: #e4e7ec;
    box-shadow: 0 22px 48px rgba(16, 24, 40, 0.09);
}

.birthday-modern .birthday-header {
    align-content: start;
    height: auto;
    padding: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(145deg, #9f1f2b, #d73832 64%, #f28b32 130%);
    border-radius: 18px;
}

.birthday-header > span {
    width: 58px;
    height: 58px;
    color: #9f1f2b;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: none;
}

.birthday-header > span svg {
    width: 26px;
    height: 26px;
}

.birthday-header .eyebrow-line,
.birthday-header h2,
.birthday-header p:last-child {
    color: #ffffff;
}

.birthday-header .eyebrow-line {
    opacity: 0.76;
}

.birthday-header h2 {
    margin-top: 10px;
    font-size: 2rem;
    line-height: 1.08;
}

.birthday-date-pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.birthday-family-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 800;
}

.birthday-family-note svg {
    width: 17px;
    height: 17px;
}

.birthday-modern .birthday-grid {
    align-content: center;
}

.birthday-empty-state {
    min-height: 184px;
    background: #fbfcfe;
    border-color: #d0d5dd;
}

.home-story-primary {
    min-height: 468px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.90), rgba(159, 31, 43, 0.84)),
        url("../images/bomis-classroom.webp") center/cover;
}

.home-story-cards {
    gap: 20px;
}

.home-story-cards article {
    position: relative;
    gap: 11px;
    padding: 26px;
    overflow: hidden;
    border-radius: 18px;
}

.home-story-cards article::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 78px;
    height: 4px;
    background: var(--orange);
}

.home-story-cards article > span {
    width: 52px;
    height: 52px;
    border: 1px solid #fed7aa;
    border-radius: 15px;
}

.home-story-cards article > span svg {
    width: 23px;
    height: 23px;
}

.home-story-card--vision::after {
    background: var(--green) !important;
}

.home-story-card--principal {
    background: linear-gradient(135deg, #fffaf5, #ffffff) !important;
    border-color: #fed7aa !important;
}

.home-story-card--principal > span {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--red), var(--orange)) !important;
    border-color: transparent !important;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title-group > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(216, 54, 34, 0.18);
}

.section-title-group > span svg {
    width: 23px;
    height: 23px;
}

.news-board {
    gap: 26px;
}

.news-feature-card {
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.08);
}

.news-feature-card img {
    height: 254px;
}

.news-accordion details {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.news-accordion details[open] {
    border-color: #fdba74;
    box-shadow: 0 16px 30px rgba(16, 24, 40, 0.08);
}

.news-board .news-accordion summary {
    padding: 16px 18px;
}

.news-summary-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #a51f2b, #e66a2c);
    box-shadow: 0 10px 20px rgba(165, 31, 43, 0.16);
}

.news-accordion-body {
    padding-bottom: 22px;
}

.home-ecare-panel {
    gap: 38px;
    background:
        radial-gradient(circle at 6% 5%, rgba(216, 54, 34, 0.09), transparent 26%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    border-radius: 20px;
    box-shadow: 0 20px 42px rgba(16, 24, 40, 0.08);
}

/* Centralized homepage bulletin presentation. */
.section-news {
    --news-ink: #182230;
    --news-muted: #667085;
    --news-line: #e4e7ec;
    --news-accent: #c43224;
    --news-soft: #fff7f3;
    --news-radius: 10px;
}

.news-heading-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.news-heading-actions .small-link,
.news-read-link {
    gap: 8px;
    border-radius: 8px;
}

.news-heading-actions .small-link svg,
.news-read-link svg {
    width: 16px;
    height: 16px;
}

.news-live-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 11px;
    color: #475467;
    background: #ffffff;
    border: 1px solid var(--news-line);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
}

.news-live-status svg {
    width: 15px;
    height: 15px;
    color: var(--news-accent);
}

.section-news .news-board {
    grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
    gap: 28px;
}

.section-news .news-feature-card,
.section-news .news-stream {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}

.news-feature-media {
    position: relative;
}

.section-news .news-feature-card img {
    height: 260px;
}

.news-feature-flag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    color: #ffffff;
    background: rgba(24, 34, 48, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
}

.news-feature-flag svg {
    width: 14px;
    height: 14px;
    color: #fdb022;
}

.section-news .news-feature-body {
    display: grid;
    gap: 13px;
    padding: 22px;
}

.news-meta-row,
.news-summary-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.section-news .news-type {
    min-height: 24px;
    padding: 3px 8px;
    color: var(--news-accent);
    background: var(--news-soft);
    border: 1px solid #fed7c3;
    border-radius: 6px;
    font-size: 0.7rem;
}

.news-meta-row time,
.news-summary-meta time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--news-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.news-meta-row time svg {
    width: 14px;
    height: 14px;
}

.section-news .news-feature-card h3 {
    color: var(--news-ink);
    font-size: 1.35rem;
    line-height: 1.25;
}

.section-news .news-feature-card p,
.section-news .news-accordion-body p {
    color: var(--news-muted);
    line-height: 1.65;
}

.news-read-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    color: var(--news-accent);
    font-size: 0.82rem;
    font-weight: 800;
}

.news-read-link:hover {
    color: #8d2119;
}

.news-stream-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 20px;
    border-bottom: 1px solid var(--news-line);
}

.news-stream-heading div {
    display: grid;
    gap: 3px;
}

.news-stream-heading span {
    color: var(--news-accent);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-stream-heading strong {
    color: var(--news-ink);
    font-size: 1rem;
}

.news-stream-heading > svg {
    width: 20px;
    height: 20px;
    color: var(--news-accent);
}

.section-news .news-accordion {
    gap: 0;
}

.section-news .news-accordion details {
    border: 0;
    border-bottom: 1px solid var(--news-line);
    border-radius: 0;
    box-shadow: none;
}

.section-news .news-accordion details:last-child {
    border-bottom: 0;
}

.section-news .news-accordion details[open] {
    background: #fffaf7;
    box-shadow: none;
}

.section-news .news-accordion summary,
.section-news .news-board .news-accordion summary {
    grid-template-columns: 48px 1fr auto;
    gap: 13px;
    min-height: 92px;
    padding: 16px 18px;
}

.section-news .news-summary-icon {
    width: 48px;
    height: 48px;
    color: var(--news-accent);
    background: var(--news-soft);
    border: 1px solid #fed7c3;
    border-radius: 8px;
    box-shadow: none;
}

.section-news .news-summary-icon svg {
    width: 20px;
    height: 20px;
}

.section-news .news-summary-copy {
    gap: 7px;
}

.section-news .news-summary-copy strong {
    color: var(--news-ink);
    font-size: 1rem;
    line-height: 1.35;
}

.news-toggle {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--news-accent);
    background: #ffffff;
    border: 1px solid var(--news-line);
    border-radius: 50%;
}

.news-toggle svg {
    width: 17px;
    height: 17px;
    transition: transform 180ms ease;
}

.section-news .news-accordion details[open] .news-toggle svg {
    transform: rotate(180deg);
}

.section-news .news-accordion summary > svg {
    display: none;
}

.section-news .news-accordion-body,
.section-news .news-board .news-accordion-body {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px 79px;
}

@media (max-width: 900px) {
    .section-news .news-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .news-heading-actions {
        justify-content: flex-start;
    }

    .section-news .news-feature-card img {
        height: 210px;
    }

    .section-news .news-accordion summary,
    .section-news .news-board .news-accordion summary {
        grid-template-columns: 42px 1fr auto;
        gap: 10px;
        min-height: 82px;
        padding: 14px;
    }

    .section-news .news-summary-icon {
        width: 42px;
        height: 42px;
    }

    .section-news .news-summary-copy strong {
        font-size: 0.92rem;
    }

    .section-news .news-accordion-body,
    .section-news .news-board .news-accordion-body {
        padding: 0 14px 16px;
    }
}

.ecare-device-card {
    max-width: 300px;
    justify-self: center;
}

.ecare-device-screen {
    min-height: 282px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #fff7ed);
    border-width: 9px;
    border-radius: 30px;
}

.ecare-screen-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #667085;
    font-size: 0.68rem;
    font-weight: 900;
}

.ecare-screen-topline span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ecare-screen-topline svg {
    width: 14px;
    height: 14px;
    color: var(--green);
}

.ecare-device-brand {
    display: grid;
    justify-items: center;
    align-content: center;
    flex: 1;
    padding: 12px 0;
}

.ecare-device-brand img {
    width: min(150px, 74%);
    margin-bottom: 12px;
}

.ecare-device-brand strong {
    color: #111827;
    font-size: 1.8rem;
    line-height: 1;
}

.ecare-device-brand span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.ecare-device-notice {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 10px;
    color: #344054;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
}

.ecare-device-notice svg {
    width: 17px;
    height: 17px;
    color: var(--red);
}

.app-point-grid article {
    border-radius: 14px;
    transition: border-color 180ms ease, transform 180ms ease;
}

.app-point-grid article:hover {
    transform: translateY(-2px);
    border-color: #fdba74;
}

.site-footer {
    border-top: 4px solid #d73832;
}

.site-footer .footer-top {
    gap: 24px;
}

.footer-links h2,
.footer-contact h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    margin-bottom: 11px;
    font-size: 1rem;
}

.footer-links h2 svg,
.footer-contact h2 svg {
    width: 19px;
    height: 19px;
    color: #ffb35c;
}

.footer-link-item,
.footer-contact-row {
    padding: 3px 0;
}

.footer-link-item svg,
.footer-contact-row svg {
    width: 16px;
    height: 16px;
    color: #ffcf8f;
}

.footer-link-item:hover,
.footer-contact-row:hover {
    color: #ffffff;
}

.footer-social-links a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    transition: background 180ms ease, transform 180ms ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
    color: #ffffff;
    background: rgba(255, 179, 92, 0.20);
    transform: translateY(-2px);
}

@media (max-width: 1180px) {
    .home-hero-premium .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .home-hero-premium .hero-copy {
        max-width: 720px;
        padding-top: 0;
    }

    .hero-collage {
        width: min(100%, 680px);
        min-height: 470px;
    }
}

@media (max-width: 860px) {
    .home-hero-premium .hero-copy h1 {
        font-size: 2.8rem;
    }

    .hero-collage .hero-main-photo {
        height: 382px;
    }

    .birthday-modern {
        grid-template-columns: 1fr;
    }

    .birthday-modern .birthday-header {
        min-height: 250px;
    }

    .ecare-device-card {
        max-width: 290px;
    }
}

@media (max-width: 640px) {
    .home-hero-premium .hero-copy h1 {
        font-size: 2rem;
    }

    .home-hero-premium .hero-copy > p {
        font-size: 0.95rem;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .quick-access-grid a {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 74px;
        padding: 12px;
    }

    .quick-access-grid a .quick-access-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .quick-access-grid a strong {
        padding-right: 15px;
        font-size: 0.82rem;
    }

    .birthday-modern {
        padding: 14px;
    }

    .birthday-modern .birthday-header {
        min-height: 0;
        padding: 22px;
    }

    .birthday-header h2 {
        font-size: 1.65rem;
    }

    .section-heading-row.news-section-heading {
        align-items: flex-start;
    }

    .section-title-group {
        align-items: flex-start;
    }

    .section-title-group > span {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .section-title-group > span svg {
        width: 20px;
        height: 20px;
    }

    .home-ecare-panel {
        gap: 26px;
    }

    .site-footer .footer-top {
        gap: 26px;
    }
}

@media (max-width: 400px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium mobile navigation panel. */
.mobile-menu-head,
.mobile-menu-actions {
    display: none;
}

@media (max-width: 1080px) {
    body.mobile-menu-is-open {
        overflow: hidden;
    }

    .site-header.mobile-menu-is-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(16, 24, 40, 0.42);
        backdrop-filter: blur(2px);
    }

    .nav-toggle {
        position: relative;
        z-index: 72;
        width: 46px;
        height: 46px;
        color: #ffffff;
        background: #182230;
        border-color: #182230;
        border-radius: 8px;
        box-shadow: 0 10px 22px rgba(16, 24, 40, 0.18);
    }

    .nav-toggle svg {
        width: 21px;
        height: 21px;
    }

    .nav-links,
    .nav-links.is-open {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 70;
        display: none;
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
        align-content: start;
        width: min(430px, 100vw);
        max-height: 100dvh;
        padding: 0 18px 24px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #ffffff;
        border: 0;
        border-radius: 0;
        box-shadow: -20px 0 46px rgba(16, 24, 40, 0.2);
    }

    .nav-links.is-open {
        display: grid;
        animation: mobile-menu-enter 190ms ease-out both;
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 88px;
        margin: 0 -18px 14px;
        padding: 0 18px;
        background: #182230;
    }

    .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-menu-brand img {
        width: 42px;
        height: 42px;
        padding: 4px;
        object-fit: contain;
        background: #ffffff;
        border-radius: 7px;
    }

    .mobile-menu-brand span {
        display: grid;
        gap: 3px;
    }

    .mobile-menu-brand small {
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.7rem;
        font-weight: 700;
    }

    .mobile-menu-brand strong {
        color: #ffffff;
        font-size: 1.05rem;
    }

    .mobile-menu-close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 8px;
    }

    .mobile-menu-close svg {
        width: 20px;
        height: 20px;
    }

    .nav-links .nav-item,
    .nav-links .nav-item.has-submenu {
        grid-template-columns: minmax(0, 1fr) 48px;
        min-height: 58px;
        border-bottom: 1px solid #edf0f5;
    }

    .nav-links .nav-item > a,
    .nav-links .nav-parent {
        min-height: 58px;
        padding: 0 13px;
        color: #1d2939;
        border-radius: 7px;
        font-size: 0.98rem;
        font-weight: 800;
    }

    .nav-links .nav-item > a.is-active,
    .nav-item.has-submenu.is-active > .nav-parent {
        color: var(--red);
        background: #fff6f1;
    }

    .submenu-toggle {
        width: 38px;
        min-height: 38px;
        align-self: center;
        justify-self: end;
        color: #475467;
        background: #f8fafc;
        border-color: #e4e7ec;
        border-radius: 7px;
    }

    .submenu-toggle svg {
        width: 18px;
        height: 18px;
    }

    .submenu {
        gap: 2px;
        margin: 0 0 10px;
        padding: 8px;
        background: #f8fafc;
        border: 1px solid #eef1f5;
        border-radius: 8px;
    }

    .submenu a {
        grid-template-columns: 22px minmax(0, 1fr);
        min-height: 44px;
        padding: 0 10px;
        border-radius: 6px;
        font-size: 0.88rem;
    }

    .submenu a svg {
        width: 17px;
        height: 17px;
        color: var(--red);
    }

    .mobile-menu-actions {
        display: grid;
        gap: 10px;
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px solid #e4e7ec;
    }

    .mobile-menu-actions a {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr) 18px;
        gap: 10px;
        align-items: center;
        min-height: 52px;
        padding: 0 14px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 800;
    }

    .mobile-menu-actions a > svg {
        width: 18px;
        height: 18px;
    }

    .mobile-menu-admission {
        color: #ffffff !important;
        background: var(--red);
        box-shadow: 0 12px 24px rgba(216, 54, 34, 0.2);
    }

    .mobile-menu-contact {
        color: #344054 !important;
        background: #f8fafc;
        border: 1px solid #e4e7ec;
    }
}

@keyframes mobile-menu-enter {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Keep navigation and fixed actions clear on tablet widths. */
@media (max-width: 1080px) {
    .nav-shell {
        min-height: 74px;
    }

    .brand {
        min-width: 0;
    }

    .nav-toggle {
        display: grid;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 15px;
        left: 15px;
        display: none;
        padding: 12px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-links .nav-item,
    .nav-links .nav-item.has-submenu {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: stretch;
    }

    .nav-links .nav-item > a,
    .nav-parent {
        justify-content: flex-start;
        min-height: 46px;
        padding: 0 12px;
    }

    .nav-parent > svg {
        display: none;
    }

    .submenu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        color: var(--ink);
        background: #f8fafc;
        border: 1px solid #edf0f5;
        border-radius: 10px;
    }

    .submenu-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 180ms ease;
    }

    .has-submenu.is-open .submenu-toggle svg {
        transform: rotate(180deg);
    }

    .submenu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        min-width: 0;
        margin: 4px 0 8px;
        padding: 6px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: #f8fafc;
        border-radius: 12px;
        box-shadow: none;
    }

    .has-submenu.is-open .submenu {
        display: grid;
    }

    body {
        padding-bottom: 92px;
    }

    .quick-actions {
        right: 12px;
        bottom: 10px;
        left: 12px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid #edf0f5;
        border-radius: 16px;
        box-shadow: 0 16px 38px rgba(16, 24, 40, 0.18);
        backdrop-filter: blur(16px);
    }

    .quick-actions a {
        justify-content: center;
        min-width: 0;
        min-height: 42px;
        padding: 0 8px;
        border-radius: 12px;
        font-size: 0.82rem;
    }
}

/* Homepage hero: editorial school-story composition. */
.home-hero-premium {
    min-height: 0;
    padding: 30px 0 34px;
    overflow: clip;
    background: #f5f7fb;
    border-bottom: 1px solid #e8ecf2;
}

.home-hero-premium::before {
    display: none;
}

.home-hero-premium .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(470px, 0.92fr);
    gap: 32px;
    align-items: center;
}

.home-hero-premium .hero-copy {
    max-width: 610px;
    padding: 4px 0;
}

.hero-identity {
    display: inline-grid;
    grid-template-columns: 38px auto;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.hero-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-identity > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: var(--red);
    border-radius: 10px;
}

.hero-identity svg {
    width: 19px;
    height: 19px;
}

.hero-identity strong,
.hero-identity small {
    display: block;
}

.hero-identity strong {
    color: #344054;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-identity small {
    margin-top: 2px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-hero-premium .hero-pill {
    margin: 0;
    min-height: 34px;
    padding: 0 10px;
    color: #b42318;
    background: #ffffff;
    border: 1px solid #fecaca;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
    font-size: 0.8rem;
    white-space: nowrap;
}

.home-hero-premium .hero-copy h1 {
    max-width: 630px;
    margin: 16px 0 14px;
    color: #101828;
    font-size: 3rem;
    line-height: 1.02;
}

.home-hero-premium .hero-copy > p {
    max-width: 565px;
    color: #475467;
    font-size: 1rem;
    line-height: 1.58;
}

.home-hero-premium .hero-actions {
    margin-top: 20px;
}

.hero-highlights {
    margin-top: 20px;
}

.hero-highlights span {
    min-height: 34px;
    color: #475467;
    background: #ffffff;
    border-color: #e4e7ec;
    box-shadow: none;
}

.hero-stats {
    max-width: 530px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #dfe4ec;
}

.hero-stats > div {
    position: relative;
}

.hero-stats > div + div::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: -18px;
    width: 1px;
    background: #dfe4ec;
}

.hero-stats strong {
    color: #b42318;
}

.hero-collage {
    min-height: 430px;
    padding: 8px 6px 0 54px;
}

.hero-media-stage {
    position: relative;
    height: 390px;
    overflow: hidden;
    background: #ffffff;
    border: 8px solid #ffffff;
    border-radius: 24px;
    box-shadow: 0 26px 58px rgba(16, 24, 40, 0.15);
}

.home-hero-premium .hero-media-stage .hero-main-photo {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
}

.hero-media-caption {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 250px;
    min-height: 38px;
    padding: 8px 11px;
    color: #ffffff;
    background: rgba(16, 24, 40, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 800;
}

.hero-media-caption svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #ffcb7f;
}

.hero-moment-card {
    position: absolute;
    z-index: 2;
    width: 168px;
    overflow: hidden;
    background: #ffffff;
    border: 5px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.17);
}

.hero-moment-card img {
    display: block;
    width: 100%;
    height: 108px;
    object-fit: cover;
}

.hero-moment-card > div {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 8px;
    color: #344054;
    background: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
}

.hero-moment-card svg {
    width: 15px;
    height: 15px;
    color: var(--red);
}

.hero-moment-one {
    top: 34px;
    left: 0;
}

.hero-moment-two {
    right: 92px;
    bottom: 38px;
}

.hero-proof-card {
    z-index: 3;
    left: 22px;
    bottom: 0;
    width: min(300px, calc(100% - 42px));
    padding: 14px 15px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.15);
}

.hero-proof-card > span {
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: #16805f;
    border-radius: 11px;
}

.hero-proof-card strong {
    color: #101828;
    font-size: 0.96rem;
}

@media (max-width: 1180px) {
    .home-hero-premium .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-hero-premium .hero-copy {
        max-width: 720px;
    }

    .hero-topline {
        justify-content: flex-start;
    }

    .hero-collage {
        width: min(100%, 690px);
        min-height: 462px;
        margin: 0 auto;
    }
}

@media (max-width: 860px) {
    .home-hero-premium {
        padding-top: 26px;
    }

    .home-hero-premium .hero-copy h1 {
        font-size: 2.65rem;
    }

    .hero-collage {
        min-height: 420px;
        padding-left: 46px;
    }

    .hero-media-stage {
        height: 378px;
    }
}

@media (max-width: 640px) {
    .home-hero-premium {
        padding: 24px 0 34px;
    }

    .hero-identity {
        margin-bottom: 14px;
    }

    .hero-topline {
        display: grid;
        gap: 10px;
    }

    .hero-identity strong {
        font-size: 0.7rem;
    }

    .home-hero-premium .hero-copy h1 {
        margin-top: 15px;
        font-size: 2rem;
        line-height: 1.08;
    }

    .home-hero-premium .hero-actions {
        margin-top: 18px;
    }

    .hero-stats {
        margin-top: 18px;
        padding-top: 14px;
    }

    .hero-stats > div + div::before {
        left: -8px;
    }

    .hero-collage {
        width: 100%;
        min-height: 232px;
        padding: 0;
    }

    .hero-media-stage {
        height: 232px;
        border-width: 5px;
        border-radius: 18px;
    }

    .home-hero-premium .hero-media-stage .hero-main-photo {
        border-radius: 13px;
    }

    .hero-media-caption,
    .hero-moment-card,
    .hero-proof-card {
        display: none;
    }
}

@media (max-width: 920px) {
    .page-visual-card .rating-card {
        left: 16px;
        bottom: -18px;
    }
}

/* Keep the mobile menu panel above legacy responsive navigation rules. */
@media (max-width: 1080px) {
    .site-header.mobile-menu-is-open::after {
        z-index: 60;
    }

    .site-header .nav-toggle {
        position: relative;
        z-index: 72;
        width: 46px;
        height: 46px;
        color: #ffffff;
        background: #182230;
        border-color: #182230;
        border-radius: 8px;
        box-shadow: 0 10px 22px rgba(16, 24, 40, 0.18);
    }

    .site-header .nav-links,
    .site-header .nav-links.is-open {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 70;
        display: none;
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
        align-content: start;
        width: min(430px, 100vw);
        max-height: 100dvh;
        padding: 0 18px 24px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #ffffff;
        border: 0;
        border-radius: 0;
        box-shadow: -20px 0 46px rgba(16, 24, 40, 0.2);
    }

    .site-header .nav-links.is-open {
        display: grid;
        animation: mobile-menu-enter 190ms ease-out both;
    }

    .site-header .nav-links .nav-item,
    .site-header .nav-links .nav-item.has-submenu {
        grid-template-columns: minmax(0, 1fr) 48px;
        min-height: 58px;
        border-bottom: 1px solid #edf0f5;
    }

    .site-header .nav-links .nav-item > a,
    .site-header .nav-links .nav-parent {
        min-height: 58px;
        padding: 0 13px;
        color: #1d2939;
        border-radius: 7px;
        font-size: 0.98rem;
        font-weight: 800;
    }

    .site-header .nav-links .submenu-toggle {
        width: 38px;
        min-height: 38px;
        align-self: center;
        justify-self: end;
        color: #475467;
        background: #f8fafc;
        border-color: #e4e7ec;
        border-radius: 7px;
    }

    .site-header .nav-links .submenu {
        gap: 2px;
        margin: 0 0 10px;
        padding: 8px;
        background: #f8fafc;
        border: 1px solid #eef1f5;
        border-radius: 8px;
    }

    .site-header .nav-links .submenu a {
        grid-template-columns: 22px minmax(0, 1fr);
        min-height: 44px;
        padding: 0 10px;
        border-radius: 6px;
        font-size: 0.88rem;
    }
}

/* Final mobile navigation state: avoid legacy display rules competing with the open panel. */
@media (max-width: 1080px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .site-header .nav-links,
    .site-header .nav-links.is-open {
        display: grid !important;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transform: translate3d(100%, 0, 0);
        transition: transform 220ms ease, opacity 180ms ease, visibility 0s linear 220ms;
        animation: none;
    }

    .site-header .nav-links.is-open {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition: transform 220ms ease, opacity 180ms ease;
    }

    .site-header .nav-links {
        padding-top: env(safe-area-inset-top);
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), 1216px);
    }

    .section {
        padding: 54px 0;
    }

    .section-heading h2,
    .page-hero h1 {
        font-size: 2rem;
    }
}

/* Isolated mobile drawer. These class names intentionally do not share the legacy navigation styles. */
.mobile-nav-drawer {
    display: none;
}

@media (max-width: 1180px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .site-header .nav-links {
        display: none !important;
    }

    body.mobile-menu-is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(16, 24, 40, 0.44);
        backdrop-filter: blur(2px);
    }

    .site-header.mobile-menu-is-open::after {
        content: none;
    }

    .site-header .nav-shell {
        min-height: 74px;
    }

    .site-header .nav-toggle {
        display: grid;
        margin-left: auto;
    }

    .site-header .nav-cta {
        display: none;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: flex;
        flex-direction: column;
        width: min(430px, 100vw);
        height: 100dvh;
        padding: 0 18px calc(18px + env(safe-area-inset-bottom));
        overflow: hidden;
        background: #ffffff;
        box-shadow: -20px 0 46px rgba(16, 24, 40, 0.22);
    }

    .mobile-nav-drawer[hidden] {
        display: none !important;
    }

    .mobile-nav-drawer.is-open {
        animation: mobile-menu-enter 190ms ease-out both;
    }

    .drawer-nav__head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 88px;
        margin: 0 -18px;
        padding: env(safe-area-inset-top) 18px 0;
        background: #182230;
    }

    .drawer-nav__brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .drawer-nav__brand img {
        width: 42px;
        height: 42px;
        padding: 4px;
        object-fit: contain;
        background: #ffffff;
        border-radius: 7px;
    }

    .drawer-nav__brand span {
        display: grid;
        gap: 3px;
    }

    .drawer-nav__brand small {
        color: rgba(255, 255, 255, 0.65);
        font-size: 0.7rem;
        font-weight: 700;
    }

    .drawer-nav__brand strong {
        color: #ffffff;
        font-size: 1.05rem;
    }

    .drawer-nav__close {
        display: grid;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        padding: 0;
        place-items: center;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 8px;
    }

    .drawer-nav__close svg {
        width: 20px;
        height: 20px;
    }

    .drawer-nav__list {
        display: block;
        flex: 1 1 auto;
        min-height: 0;
        padding: 14px 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .drawer-nav__group {
        position: relative;
        display: block;
        margin: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .drawer-nav__link {
        display: flex;
        align-items: center;
        min-height: 58px;
        padding: 0 13px;
        color: #1d2939;
        border-radius: 7px;
        font-size: 0.98rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .drawer-nav__group > .drawer-nav__link {
        padding-right: 60px;
    }

    .drawer-nav__link--solo {
        border-bottom: 1px solid #edf0f5;
    }

    .drawer-nav__group.is-active > .drawer-nav__link,
    .drawer-nav__link.is-active,
    .drawer-nav__link:hover,
    .drawer-nav__link:focus-visible {
        color: var(--red);
        background: #fff6f1;
    }

    .drawer-nav__toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        display: grid;
        width: 38px;
        height: 38px;
        padding: 0;
        place-items: center;
        color: #475467;
        background: #f8fafc;
        border: 1px solid #e4e7ec;
        border-radius: 7px;
    }

    .drawer-nav__toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 180ms ease;
    }

    .drawer-nav__group.is-expanded .drawer-nav__toggle svg {
        transform: rotate(180deg);
    }

    .drawer-nav__submenu {
        display: none;
        margin: 0 0 10px;
        padding: 8px;
        background: #f8fafc;
        border: 1px solid #eef1f5;
        border-radius: 8px;
    }

    .drawer-nav__group.is-expanded .drawer-nav__submenu {
        display: block;
    }

    .drawer-nav__sublink {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 9px;
        align-items: center;
        min-height: 44px;
        padding: 0 10px;
        color: #344054;
        border-radius: 6px;
        font-size: 0.88rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .drawer-nav__sublink + .drawer-nav__sublink {
        margin-top: 2px;
    }

    .drawer-nav__sublink svg {
        width: 17px;
        height: 17px;
        color: var(--red);
    }

    .drawer-nav__sublink:hover,
    .drawer-nav__sublink:focus-visible,
    .drawer-nav__sublink.is-active {
        color: var(--red);
        background: #fff1ed;
    }

    .drawer-nav__actions {
        display: grid;
        flex: 0 0 auto;
        gap: 10px;
        margin: 0 -18px;
        padding: 14px 18px 0;
        background: #ffffff;
        border-top: 1px solid #e4e7ec;
    }

    .drawer-nav__actions a {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr) 18px;
        gap: 10px;
        align-items: center;
        min-height: 52px;
        padding: 0 14px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 800;
    }

    .drawer-nav__actions a > svg {
        width: 18px;
        height: 18px;
    }

    .drawer-nav__admission {
        color: #ffffff !important;
        background: var(--red);
        box-shadow: 0 12px 24px rgba(216, 54, 34, 0.2);
    }

    .drawer-nav__contact {
        color: #344054 !important;
        background: #f8fafc;
        border: 1px solid #e4e7ec;
    }
}

@media (max-width: 480px) {
    .mobile-nav-drawer {
        width: 100vw;
    }
}
