:root {
    --navy: #10233f;
    --blue: #284cd8;
    --gold: #f4b740;
    --green: #1b8a5a;
    --ink: #202735;
    --muted: #647084;
    --line: #e5e9f0;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --global-color:#253E8E;
    --shadow: 0 18px 45px rgba(16, 35, 63, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

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

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

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

.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 13px;
}

.topbar__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar__links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.topbar__apply {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 16px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 35, 63, 0.08);
}

.nav {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.15;
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.nav-menu a,
.nav-item > a {
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-item:hover > a,
.section-head a:hover,
.footer a:hover {
    color: var(--blue);
}

.nav-item {
    position: relative;
}

.nav-item--has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item--has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.submenu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    z-index: 80;
    display: grid;
    min-width: 190px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    padding: 10px 12px;
    color: var(--navy);
    white-space: nowrap;
}

.submenu a:hover {
    background: var(--soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--navy);
}

.hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    background: var(--navy);
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 650ms ease, visibility 650ms ease;
    background-image: linear-gradient(90deg, rgba(16, 35, 63, 0.78), rgba(16, 35, 63, 0.38), rgba(16, 35, 63, 0.18)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__content {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    padding: 70px 0 70px 88px;
}

.hero__content p {
    margin: 0 0 14px;
    padding: 6px 14px;
    background: rgba(40, 76, 216, 0.82);
    font-weight: 600;
}

.hero__content h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(20px, 7vw, 34px);
    line-height: 1.08;
    font-weight: 800;
}

.hero__content span {
    display: block;
    max-width: 640px;
    margin: 22px 0 30px;
    font-size: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.button:hover {
    background: #1638b5;
}

.button--light {
    background: var(--gold);
    color: var(--navy);
}

.hero__controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero__controls button {
    width: 38px;
    height: 5px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

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

.hero__quick-links {
    position: absolute;
    left: 0;
    top: 88px;
    z-index: 6;
    display: flex;
    align-items: flex-start;
    max-width: 100%;
}

.hero-quick-links__tab {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 166px;
    padding: 18px 9px;
    border: 0;
    background: #d50028;
    color: #fff;
    cursor: pointer;
    border-radius: 0 9px 9px 0;
    box-shadow: 0 18px 34px rgba(16, 35, 63, 0.2);
    transition: background 0.25s ease, width 0.25s ease;
}

.hero-quick-links__tab:hover,
.hero__quick-links.is-open .hero-quick-links__tab {
    background: #b90022;
}

.hero-quick-links__tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-quick-links__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    width: 0;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.97);
    border: 0 solid rgba(16, 35, 63, 0.08);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transition:
        max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.45s;
}

.hero__quick-links.is-open .hero-quick-links__panel {
    width: 270px;
    max-width: min(270px, calc(100vw - 80px));
    opacity: 1;
    visibility: visible;
    padding: 24px 18px;
    border-width: 1px;
    border-left: 0;
    pointer-events: auto;
}

.hero-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 14px;
    color: var(--navy);
    background: var(--soft);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-quick-link:hover {
    transform: translateX(4px);
    background: #fff;
    border-color: rgba(230, 57, 57, 0.35);
    box-shadow: 0 8px 20px rgba(16, 35, 63, 0.1);
}

.hero-quick-link__icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--gold);
    color: var(--navy);
}

.hero-quick-link__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-quick-link__label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.page-hero {
    position: relative;
    min-height: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    background-image: var(--page-hero-image);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(3, 6, 51, 0.9) 0%, rgba(16, 35, 63, 0.72) 45%, rgba(40, 76, 216, 0.45) 100%);
}

.page-hero__top {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 2;
}

.page-hero__back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.page-hero__back:hover {
    color: #fff;
}

.page-hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 0;
    text-align: center;
    margin: 0 auto;
}

.page-hero__meta,
.page-hero__kicker {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold, #f4b740);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    color: #fff;
}

.page-hero__tagline {
    margin: 0;
    max-width: 680px;
    margin-inline: auto;
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: 500;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 320px;
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.page-content {
    background: var(--soft);
}

.page-content .article-detail__blocks {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.page-content .article-block--single,
.page-content .article-block__col {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink, #202735);
}

.page-content .article-block--single p,
.page-content .article-block__col p {
    margin: 0 0 1.1em;
}

.page-content .article-block--single ul,
.page-content .article-block__col ul,
.page-content .article-block--single ol,
.page-content .article-block__col ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.page-content .article-block--double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.page-content .article-block--single img,
.page-content .article-block__col img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 4px;
    border: 1px solid var(--line, #e5e9f0);
}

.page-content .article-block--single img.article-img-align-center,
.page-content .article-block__col img.article-img-align-center {
    margin: 12px auto;
}

.page-content .article-block--single img.article-img-align-right,
.page-content .article-block__col img.article-img-align-right {
    margin: 12px 0 12px auto;
}

@media (max-width: 768px) {
    .page-content .article-block--double {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.leader-card {
    padding: 30px 22px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(16, 35, 63, 0.16);
}

.leader-card img {
    width: 116px;
    height: 116px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #eef3ff;
}

.leader-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.leader-card span {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(40, 76, 216, 0.1);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.history-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.history-images {
    display: grid;
    gap: 18px;
}

.history-images img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.history-values {
    margin: 34px 0;
}

.empty-page {
    min-height: 280px;
}

.about-vmv.values {
    margin-top: 0;
    padding: 86px 0;
}

.history-vmv.values {
    margin-top: 0;
    padding: 0 0 86px;
    background: var(--soft);
}

.about-values-grid,
.history-values {
    margin-top: 34px;
}

.about-board__social svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section {
    padding: 86px 0;
}

.kicker {
    margin: 0 0 10px;
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 13px;
}

h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(15px, 4vw, 23px);
    line-height: 1.15;
}

h3 {
    margin: 0 0 10px;
    color: var(--navy);
    line-height: 1.3;
}

.values {
    padding: 0;
    margin-top: -15px;
    position: relative;
    z-index: 5;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.values article,
.feature-grid article,
.news-card,
.testimonial-grid article {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.values article {
    overflow: hidden;
}

.values span {
    display: block;
    padding: 16px 22px 0;
    background: var(--blue);
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.values h2 {
    margin: 0;
    padding: 0 22px 16px;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
}

.values article:nth-child(2) h2 {
    background: var(--navy);
}

.values article:nth-child(2) span {
    background: var(--navy);
}

.values article:nth-child(3) h2 {
    background: var(--green);
}

.values article:nth-child(3) span {
    background: var(--green);
}

.values p {
    margin: 0;
    padding: 22px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 58px;
}

.split--reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.about,
.news,
.gallery {
    background: var(--soft);
}

.image-stack {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    align-items: end;
    gap: 18px;
}

.image-stack img {
    object-fit: cover;
    box-shadow: var(--shadow);
}

.gallery-grid img {
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.image-stack img:first-child {
    height: 440px;
}

.image-stack img:last-child {
    height: 300px;
    margin-bottom: -36px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.feature-grid article {
    padding: 26px;
    box-shadow: none;
}

.academic-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    background: var(--blue);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.academic-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-grid article:nth-child(2) .academic-icon {
    background: var(--green);
}

.feature-grid article:nth-child(3) .academic-icon {
    background: var(--gold);
    color: var(--navy);
}

.feature-grid article:nth-child(4) .academic-icon {
    background: var(--navy);
}

.feature-grid article:hover {
    border-color: rgba(40, 76, 216, 0.32);
    box-shadow: var(--shadow);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.stats strong {
    padding: 10px 14px;
    background: #eef3ff;
    color: var(--blue);
}

.admissions {
    background: linear-gradient(135deg, var(--navy), #1b3c78);
    color: #fff;
}

.admissions h2,
.admissions .kicker {
    color: #fff;
}

.admissions__box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.admissions__box p {
    max-width: 680px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head a,
.news-card a {
    color: var(--blue);
    font-weight: 800;
}

.card-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news__empty {
    margin: 0;
    padding: 28px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: #fff;
    color: var(--muted, #647084);
    text-align: center;
}

.events {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 48px 0;
    background-image: linear-gradient(115deg, rgba(3, 6, 51, 0.92), rgba(3, 6, 51, 0.7) 48%, rgba(40, 76, 216, 0.48)), url("../wp-content/uploads/2025/05/St.-Cyprian-Wall-Calendar-2025-52-600x600.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.events::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(3, 6, 51, 0.28);
}

.events__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-height: 400px;
}

.events__header {
    margin: 0;
}

.events__empty {
    margin: 0;
    padding: 20px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
}

.events .kicker,
.events h2 {
    color: #fff;
}

.events .kicker {
    display: inline-flex;
    padding: 7px 12px;
    background: rgba(244, 183, 64, 0.18);
    color: var(--gold);
}

.events h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
}

.event-spotlight {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: min(100%, 720px);
    max-height: 220px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    color: var(--ink, #202735);
    text-align: left;
}

.event-spotlight__media {
    height: 100%;
    max-height: 184px;
    overflow: hidden;
    border-radius: 12px;
}

.event-spotlight__media img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
}

.event-spotlight__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.event-spotlight__body h3 {
    margin: 0;
    color: var(--ink, #202735);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.3;
}

.event-spotlight__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted, #647084);
    font-size: 0.95rem;
    font-weight: 600;
}

.event-spotlight__meta time {
    color: var(--cms-primary, #284cd8);
}

.event-spotlight__divider {
    color: rgba(100, 112, 132, 0.55);
}

.events__footer {
    margin-top: auto;
}

.events__cta {
    min-width: 180px;
}

/* Legacy event card styles retained for other pages if referenced */
.event-card__weekday {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold, #f4b740);
}

.event-card__day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.event-card__month {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 24px;
}

.event-card__category {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(40, 76, 216, 0.1);
    color: var(--cms-primary, #284cd8);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-card h3 {
    margin: 0;
    color: var(--ink, #202735);
    font-size: 1.35rem;
    line-height: 1.25;
}

.event-card__meta {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-card__meta li {
    display: grid;
    gap: 2px;
}

.event-card__meta-label {
    color: var(--muted, #647084);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-card__meta time,
.event-card__meta span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink, #202735);
}

.event-card__desc {
    margin: 0;
    color: var(--muted, #647084);
    font-size: 0.95rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card__link {
    align-self: flex-start;
    margin-top: 4px;
    color: var(--cms-primary, #284cd8);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.event-card__link:hover {
    text-decoration: underline;
}

.news-card {
    overflow: hidden;
}

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

.news-card div {
    padding: 24px;
}

.news-card time {
    display: block;
    margin-bottom: 10px;
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
}

.testimonials {
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.testimonial-slider {
    margin-top: 34px;
}

.testimonial-slider__viewport {
    overflow: hidden;
    position: relative;
    min-height: 320px;
}

.testimonial-slider__track {
    position: relative;
    width: 100%;
    min-height: 320px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 42px 56px 36px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-slide.is-exiting {
    opacity: 0;
    transform: translateX(-40px);
}

.testimonial-slide__quote {
    position: absolute;
    top: 18px;
    left: 28px;
    font-size: 72px;
    line-height: 1;
    color: rgba(40, 76, 216, 0.12);
    font-weight: 800;
    pointer-events: none;
}

.testimonial-slide img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid rgba(40, 76, 216, 0.18);
}

.testimonial-slide p {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: 18px;
    color: var(--ink);
}

.testimonial-slide h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.testimonial-slide span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.testimonial-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}

.testimonial-slider__btn {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonial-slider__btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.testimonial-slider__btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonial-slider__dots {
    display: flex;
    gap: 10px;
}

.testimonial-slider__dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 35, 63, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-slider__dots button.is-active {
    background: var(--blue);
    transform: scale(1.25);
}

.testimonial-grid {
    margin-top: 30px;
}

.testimonial-grid article {
    padding: 28px;
    box-shadow: none;
}

.testimonial-grid img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    margin-bottom: 18px;
}

.testimonial-grid span {
    color: var(--muted);
    font-size: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.gallery-grid img {
    width: 100%;
    height: 230px;
    border-radius: 8px;
}

.experience {
    background: #fff;
}

.experience__inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 46px;
    align-items: start;
}

.experience__inner p:not(.kicker) {
    max-width: 480px;
    color: var(--muted);
}

.experience-form {
    display: grid;
    gap: 14px;
}

.experience-form input,
.experience-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 14px 16px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.experience-form textarea {
    resize: vertical;
}

.experience-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.experience-form button {
    border: 0;
    cursor: pointer;
}

.experience-status {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted, #647084);
}

.experience-status.is-success {
    color: #15803d;
}

.experience-status.is-error {
    color: #b91c1c;
}

.experience-form__note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted, #647084);
}

.experience-form__note a {
    color: var(--cms-primary, #284cd8);
    font-weight: 700;
    text-decoration: none;
}

.experience-form__note a:hover {
    text-decoration: underline;
}

.experience-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.footer {
    width: 100%;
    max-width: 100%;
    background: #030633;
    color: rgba(255, 255, 255, 0.78);
}

.footer > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(20px, 5vw, 64px);
    padding-right: clamp(20px, 5vw, 64px);
}

.footer__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(14px, 2vw, 28px);
    padding: 64px 0;
    width: 100%;
}

.footer__grid > * {
    flex: 1 1 0;
    min-width: 0;
}

.footer__brand {
    flex: 1.15 1 0;
}

.footer__contact {
    flex: 1.35 1 0;
}

.footer__grid > div:not(.footer__brand):not(.footer__contact) {
    flex: 0.95 1 0;
}

.footer img {
    width: 82px;
    margin-bottom: 18px;
}

.footer h2,
.footer h3 {
    color: #fff;
}

.footer h2 {
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.25;
}

.footer h3 {
    font-size: clamp(14px, 1.1vw, 16px);
    margin: 0 0 10px;
}

.footer a {
    display: block;
    margin: 6px 0;
    font-size: clamp(12px, 0.95vw, 14px);
    line-height: 1.45;
}

.footer__contact p {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    margin: 0 0 14px;
}

.footer__contact span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-weight: 800;
}

.footer__bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer__bottom p {
    margin: 0;
}

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

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    background: #000;
    color: #fff;
    font-weight: 800;
}

.topbar__apply,
.button,
.hero__controls button,
.nav-toggle,
.values article,
.feature-grid article,
.news-card,
.testimonial-grid article,
.admissions__box,
.event-spotlight,
.experience-form input,
.experience-form textarea,
.footer__contact span,
.social-links a {
    border-radius: 0;
}

@media (max-width: 980px) {
    .topbar__inner,
    .admissions__box,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 128px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav-item,
    .nav-item--has-children > a {
        width: 100%;
    }

    .nav-item--has-children > a {
        justify-content: space-between;
        padding: 12px;
    }

    .submenu {
        position: static;
        display: grid;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--soft);
    }

    .submenu::before {
        display: none;
    }

    .submenu a {
        white-space: normal;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px;
    }

    .hero,
    .hero__content {
        min-height: 620px;
    }

    .hero__content {
        padding-left: 72px;
        padding-bottom: 70px;
    }

    .hero__quick-links {
        top: 70px;
    }

    .hero-quick-links__tab {
        width: 50px;
        height: 150px;
        padding: 16px 7px;
        border-radius: 0 8px 8px 0;
    }

    .hero-quick-links__tab-text {
        font-size: 13px;
        letter-spacing: 0.18em;
    }

    .hero__quick-links.is-open .hero-quick-links__panel {
        width: min(270px, calc(100vw - 66px));
        max-width: min(270px, calc(100vw - 66px));
        max-height: 58vh;
        overflow-y: auto;
    }

    .about-gallery,
    .about-panel,
    .stats-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }

    .board-card--featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .values {
        margin-top: 0;
        padding-top: 24px;
    }

    .values__grid,
    .about-values-grid,
    .history-values,
    .split,
    .split--reverse,
    .feature-grid,
    .card-grid,
    .testimonial-grid,
    .gallery-grid,
    .experience__inner,
    .leader-grid,
    .history-layout {
        grid-template-columns: 1fr;
    }

    .image-stack {
        grid-template-columns: 1fr;
    }

    .image-stack img:first-child,
    .image-stack img:last-child,
    .gallery-grid img {
        height: auto;
        margin: 0;
    }

    .event-spotlight {
        grid-template-columns: 1fr;
        max-height: none;
        text-align: center;
    }

    .event-spotlight__body {
        align-items: center;
    }

    .event-spotlight__meta {
        justify-content: center;
    }

    .events__inner {
        max-height: none;
    }

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

@media (max-width: 900px) {
    .footer__grid {
        flex-wrap: wrap;
    }

    .footer__brand,
    .footer__contact,
    .footer__grid > div:not(.footer__brand):not(.footer__contact) {
        flex: 1 1 calc(50% - 14px);
    }
}

@media (max-width: 620px) {
    .footer__grid {
        flex-direction: column;
    }

    .footer__brand,
    .footer__contact,
    .footer__grid > div:not(.footer__brand):not(.footer__contact) {
        flex: 1 1 100%;
    }
    .topbar__links {
        gap: 8px;
        flex-direction: column;
    }

    .nav {
        height: 78px;
    }

    .brand span {
        font-size: 14px;
    }

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

    .nav-menu {
        top: 120px;
    }

    .hero,
    .hero__content {
        min-height: 560px;
    }

    .hero__content {
        padding-left: 66px;
    }

    .hero__content span {
        font-size: 17px;
    }

    .hero-quick-link__label {
        font-size: 12px;
    }

    .testimonial-slide {
        padding: 34px 22px 28px;
    }

    .testimonial-slide p {
        font-size: 16px;
    }

    .about-gallery img {
        height: 240px;
    }

    .section {
        padding: 58px 0;
    }

    .events {
        padding: 40px 0;
    }

    .event-spotlight__media {
        max-height: 160px;
    }
}

.mission-section {
  padding: 60px 20px;
  background: #f9fafb;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.mission-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-card h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #111827;
}

.mission-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
}

/* Hover effect */
.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Optional accent line */
.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.values_wrap{
  display:flex;
  align-content: flex-start;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  background-image: url("../wp-content/uploads/2025/05/St.-Cyprian-Wall-Calendar-2025-65.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.values_wrap:hover {
  transform: translateY(-8px);
  border-color: rgba(40, 76, 216, 0.32);
  box-shadow: var(--shadow);
}

.values_wrap:hover .bg_overlay {
  opacity: 0.52;
}

.values_wrap:hover .bg_img-wrap {
  transform: translateY(-3px);
}

.text_center{
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.bg_overlay{
  background-color: #030303;
  opacity: 0.65;
  inset: 0;
  position: absolute;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.text-color_overlay{
   width: 100%;
   color: #fff;
   position: relative;
   z-index: 2;
   transition: transform 0.25s ease;
}

.bg_img-wrap{
  padding: 18px 22px 24px;
}



.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb li:last-child {
    color: rgba(255, 255, 255, 0.82);
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.about-gallery img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.about-panel h2 {
    font-size: clamp(24px, 4vw, 34px);
}

.achievements {
    background: var(--soft);
}

.achievements__intro {
    max-width: 640px;
    margin-bottom: 34px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 28px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(40, 76, 216, 0.32);
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
    color: var(--blue);
}

.stat-card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.board-card {
    padding: 26px 22px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.board-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(16, 35, 63, 0.16);
}

.board-card__avatar {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.board-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.board-card span {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(40, 76, 216, 0.1);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.board-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    text-align: left;
    background: linear-gradient(135deg, var(--navy), #1b3c78);
    color: #fff;
}

.board-card--featured h3,
.board-card--featured span {
    color: #fff;
}

.board-card--featured span {
    background: rgba(244, 183, 64, 0.18);
    color: var(--gold);
}

.hero-quick-link,
.testimonial-slide,
.stat-card,
.board-card,
.testimonial-slider__btn,
.testimonial-slider__dots button,
.about-gallery img {
    border-radius: 12px;
}

.hero-quick-links__panel {
    border-radius: 0 20px 20px 0;
}

.hero-quick-link__icon {
    border-radius: 10px;
}
