/* TDPS brand identity: navy, warm gold and ivory. All typography is non-italic. */
:root {
    --navy: #142e52;
    --navy-dark: #0b1e39;
    --navy-soft: #23466e;
    --gold: #d7a64b;
    --gold-light: #f3dfb5;
    --paper: #fbfaf7;
    --wash: #f3f5f7;
    --ink: #203147;
    --muted: #60718a;
    --line: #e1e7ed;
    --white: #fff;
    --radius: 18px;
    --shadow: 0 25px 75px rgba(18, 40, 72, 0.1);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font:
        400 16px/1.75 "Poppins",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}
h1,
h2,
h3,
h4 {
    font-family: "Outfit", "Poppins", Arial, sans-serif;
    line-height: 1.16;
    letter-spacing: -0.034em;
    font-style: normal;
}
em,
i,
cite {
    font-style: normal;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    font: inherit;
}
img {
    max-width: 100%;
    height: auto;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}
.container {
    width: min(1200px, calc(100% - 64px));
    margin: auto;
}
.skip {
    position: absolute;
    z-index: 500;
    top: -60px;
    left: 10px;
    background: #fff;
    padding: 9px;
}
.skip:focus {
    top: 10px;
}
.top-strip {
    background: var(--navy-dark);
    color: #e5ebf1;
    font-size: 11px;
    letter-spacing: 0.02em;
}
.top-strip > .container {
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.top-strip b {
    color: var(--gold);
    margin: 0 8px;
}
.top-strip a {
    font-weight: 700;
}
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s;
}
.site-header.scrolled {
    box-shadow: 0 12px 32px rgba(12, 32, 59, 0.09);
}
.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
}
.brand img {
    width: 63px;
    height: 63px;
    object-fit: contain;
}
.brand-title {
    font-family: "Outfit", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0.02em;
    color: var(--navy);
}
.brand-title span,
.brand-title small {
    display: block;
}
.brand-title small {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.18em;
    margin-top: 6px;
    color: #a17631;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.desktop-nav > a,
.dropdown-toggle {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    color: #36506b;
    transition: color 0.2s;
}
.desktop-nav > a:hover,
.desktop-nav > a.current,
.dropdown-toggle:hover {
    color: #af7b2c;
}
.dropdown {
    position: relative;
}
.dropdown-toggle {
    border: 0;
    background: none;
    cursor: pointer;
    padding: 16px 0;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-height: 65vh;
    overflow: auto;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: grid;
}
.dropdown-menu a {
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 7px;
}
.dropdown-menu a:hover,
.dropdown-menu a.current {
    background: #f6f0e4;
    color: var(--navy);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-admit {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    white-space: nowrap;
}
.header-admit:hover {
    background: var(--navy-soft);
}
.menu-toggle {
    display: none;
    width: 43px;
    height: 43px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    background: var(--navy);
    height: 2px;
    margin: 5px 0;
    transition: 0.2s;
}
.mobile-nav {
    display: none;
}
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 10%, #30547d 0%, transparent 37%),
        linear-gradient(125deg, var(--navy-dark), var(--navy) 57%, #234773);
    color: white;
}
.page-hero::after {
    content: "";
    width: 550px;
    height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: absolute;
    right: -155px;
    bottom: -350px;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent 30%, black);
}
.page-hero-inner {
    min-height: 470px;
    padding: 91px 0 91px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-hero h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(45px, 6.1vw, 84px);
    max-width: 930px;
    margin: 16px 0 20px;
    font-weight: 700;
    letter-spacing: -0.048em;
}
.page-hero-desc {
    position: relative;
    z-index: 2;
    color: #d9e2ec;
    font-size: 16px;
    line-height: 1.8;
    max-width: 710px;
    margin: 0 0 24px;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #b5802f;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 17px;
}
.hero-eyebrow {
    color: var(--gold-light);
}
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 13px 23px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    min-height: 48px;
    transition:
        transform 0.25s,
        background 0.25s,
        box-shadow 0.25s;
    border: 1px solid transparent;
}
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.button-solid {
    background: var(--gold);
    color: #142a42;
}
.button-solid:hover {
    background: #ebbb61;
}
.button-outline {
    color: inherit;
    border-color: rgba(199, 210, 223, 0.65);
    background: transparent;
}
.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}
.hero-deco {
    position: absolute;
    right: 4%;
    top: 16%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 30px solid rgba(255, 255, 255, 0.055);
    display: grid;
    place-items: center;
    transform: rotate(-13deg);
    font-size: 60px;
    letter-spacing: -0.08em;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.trust {
    background: var(--gold);
    color: var(--navy-dark);
}
.trust .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 17px 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
}
.trust span + span {
    border-left: 1px solid rgba(20, 46, 82, 0.3);
    padding-left: 24px;
}
.section {
    padding: 94px 0;
}
.section-wash {
    background: var(--wash);
}
.section-heading {
    max-width: 770px;
    margin-bottom: 36px;
}
.section-heading h2,
.split-copy h2,
.closing h2,
.contact-panel h2 {
    font-size: clamp(32px, 4.1vw, 51px);
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 20px;
}
.section-lead,
.split-copy > p:not(.eyebrow) {
    font-size: 15px;
    color: var(--muted);
    max-width: 730px;
    line-height: 1.85;
}
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 65px;
}
.split.reverse .split-copy {
    order: 2;
}
.split.reverse .art-panel {
    order: 1;
}
.split-copy > p:not(.eyebrow) {
    margin: 0 0 16px;
}
.split-copy .action-row {
    margin-top: 27px;
}
.split-copy .button-outline,
.section-actions .button-outline,
.contact-panel .button-outline {
    color: var(--navy);
    border-color: #a7b4c3;
}
.cards {
    display: grid;
    gap: 16px;
}
.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 31px 27px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.28s,
        box-shadow 0.28s,
        border-color 0.28s;
}
.info-card:before {
    content: "";
    height: 3px;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gold);
    transition: width 0.3s;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #ead8b6;
}
.info-card:hover:before {
    width: 100%;
}
.card-index {
    font-size: 11px;
    font-weight: 800;
    color: #b98e43;
    letter-spacing: 0.12em;
}
.info-card h3 {
    font-size: 22px;
    margin: 23px 0 10px;
    color: var(--navy);
    font-weight: 700;
}
.info-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.75;
}
.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.art-panel {
    min-height: 420px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(140deg, #193b65 0%, #102542 70%);
    box-shadow: var(--shadow);
}
.art-panel:before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    right: -70px;
    top: 75px;
    background: linear-gradient(150deg, #e4bd77, #bd8935);
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.045),
        0 0 0 115px rgba(255, 255, 255, 0.027);
}
.art-panel:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transform: rotate(25deg);
    left: -190px;
    bottom: -180px;
}
.art-campus {
    background: linear-gradient(130deg, #17395e, #37668a);
}
.art-creative {
    background: linear-gradient(135deg, #132e50, #54466d);
}
.art-community {
    background: linear-gradient(135deg, #15394f, #38615e);
}
.art-science {
    background: linear-gradient(145deg, #132f59, #265b81);
}
.art-corner,
.art-bottom {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: #ecf2f6;
    font-weight: 800;
}
.art-symbol {
    position: absolute;
    right: 17%;
    top: 25%;
    font-size: 160px;
    line-height: 1;
    color: #153151;
    filter: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.05));
}
.closing {
    background: var(--navy);
    color: white;
    padding: 75px 0;
    position: relative;
    overflow: hidden;
}
.closing:before {
    content: "";
    width: 350px;
    height: 350px;
    border: 50px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    position: absolute;
    right: -120px;
    top: -160px;
}
.closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    position: relative;
}
.closing h2 {
    color: white;
    max-width: 750px;
}
.closing p:not(.eyebrow) {
    color: #cbd8e6;
    max-width: 620px;
    font-size: 14px;
}
.closing .eyebrow {
    color: var(--gold-light);
}
.closing .button-outline {
    border-color: #72859d;
}
.message-box {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 45px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
}
.person-placeholder {
    height: 300px;
    background: linear-gradient(150deg, #1c3a62, #52759a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    gap: 12px;
    letter-spacing: 0.15em;
    font-weight: 800;
}
.person-placeholder small {
    font-size: 10px;
    letter-spacing: 0.07em;
    font-weight: 500;
    color: #d7e2ed;
}
.message-quote {
    font:
        600 24px/1.5 "Outfit",
        Arial,
        sans-serif;
    color: var(--navy);
    margin-bottom: 22px;
}
.message-box p:not(.message-quote) {
    font-size: 14px;
    color: var(--muted);
}
.signature {
    margin-top: 28px !important;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.signature strong,
.signature span {
    display: block;
}
.signature strong {
    font-size: 17px;
    color: var(--navy);
}
.signature span {
    font-size: 19px;
}
.gallery-placeholder {
    text-align: center;
    border: 1px dashed #b3c1cf;
    border-radius: var(--radius);
    padding: 85px 30px;
    background: white;
}
.gallery-placeholder-icon {
    font-size: 56px;
    color: #b4863f;
}
.gallery-placeholder h2 {
    font-size: 33px;
    color: var(--navy);
}
.gallery-placeholder p {
    font-size: 14px;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
}
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.contact-panel {
    background: white;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-panel .muted {
    font-size: 14px;
    color: var(--muted);
}
.contact-panel .action-row {
    margin-top: 26px;
}
.phone-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
}
.text-action {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
}
.footer {
    background: var(--navy-dark);
    color: #b9c6d5;
    padding-top: 68px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.35fr 1fr;
    gap: 45px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-weight: 800;
    font:
        700 21px "Outfit",
        Arial,
        sans-serif;
    line-height: 1.2;
}
.footer-brand img {
    width: 55px;
    height: 55px;
}
.footer-grid p {
    max-width: 300px;
    font-size: 12px;
    margin: 22px 0 0;
}
.footer-location {
    color: #e5d1ac !important;
}
.footer-grid h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
}
.footer-grid div:not(:first-child) > a {
    display: block;
    font-size: 12px;
    margin: 10px 0;
    line-height: 1.5;
}
.footer-grid a:hover {
    color: var(--gold);
}
.footer-base {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 65px;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
}
.back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    border: 0;
    border-radius: 10px;
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    height: 43px;
    width: 43px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: 0.25s;
}
.back-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (max-width: 1150px) {
    .desktop-nav {
        gap: 10px;
    }
    .desktop-nav > a {
        font-size: 11px;
    }
    .brand {
        min-width: 205px;
    }
    .brand-title {
        font-size: 12px;
    }
    .header-admit {
        padding: 11px;
    }
}
@media (max-width: 1010px) {
    .desktop-nav {
        display: none;
    }
    .header-inner {
        min-height: 77px;
    }
    .header-actions {
        margin-left: auto;
    }
    .menu-toggle {
        display: block;
    }
    .mobile-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: white;
        box-shadow: 0 20px 30px rgba(10, 30, 52, 0.12);
        padding: 18px max(30px, calc((100vw - 1200px) / 2));
        max-height: calc(100vh - 80px);
        overflow: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    .mobile-nav.open {
        display: grid;
    }
    .mobile-nav a {
        padding: 11px 13px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 700;
    }
    .mobile-nav a:hover,
    .mobile-nav a.current {
        background: #f4f0e7;
        color: #a57c38;
    }
    .cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .split {
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .closing-inner {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }
}
@media (max-width: 700px) {
    .container {
        width: min(100% - 36px, 1200px);
    }
    .top-strip .container {
        justify-content: center;
    }
    .top-strip span:nth-child(2) {
        display: none;
    }
    .top-strip a {
        display: none;
    }
    .brand {
        min-width: 0;
    }
    .brand img {
        width: 52px;
        height: 52px;
    }
    .brand-title {
        font-size: 12px;
    }
    .brand-title small {
        font-size: 8px;
    }
    .header-admit {
        display: none;
    }
    .page-hero-inner {
        padding: 74px 0;
        min-height: 400px;
    }
    .page-hero h1 {
        font-size: clamp(38px, 10vw, 62px);
    }
    .page-hero-desc {
        font-size: 14px;
    }
    .hero-deco {
        display: none;
    }
    .trust .container {
        flex-wrap: wrap;
        gap: 7px;
        padding: 15px 0;
    }
    .trust span {
        font-size: 9px;
    }
    .trust span + span {
        border: 0;
        padding: 0;
    }
    .section {
        padding: 65px 0;
    }
    .section-heading h2,
    .split-copy h2,
    .closing h2 {
        font-size: clamp(32px, 8vw, 44px);
    }
    .split,
    .split.reverse {
        grid-template-columns: 1fr;
    }
    .split.reverse .split-copy,
    .split.reverse .art-panel {
        order: initial;
    }
    .art-panel {
        min-height: 300px;
    }
    .cards-2,
    .cards-3 {
        grid-template-columns: 1fr;
    }
    .info-card {
        min-height: 0;
        padding: 24px;
    }
    .info-card h3 {
        margin-top: 15px;
        font-size: 20px;
    }
    .message-box {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .person-placeholder {
        height: 210px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-panel {
        padding: 26px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }
    .footer-base {
        flex-direction: column;
        gap: 5px;
    }
    .mobile-nav {
        grid-template-columns: 1fr 1fr;
        padding: 16px 18px;
    }
    .button {
        padding: 12px 16px;
    }
    .closing {
        padding: 62px 0;
    }
}
@media (max-width: 390px) {
    .brand-title {
        font-size: 11px;
    }
    .mobile-nav {
        grid-template-columns: 1fr;
    }
    .cards-4 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid > div:first-child {
        grid-column: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* visual variety update */
.hero-simple .hero-deco {
    display: none;
}
.hero-image-accent .hero-deco {
    display: none;
}
body.page-home .page-hero {
    background:
        radial-gradient(circle at 85% 10%, #30547d 0%, transparent 37%),
        linear-gradient(125deg, var(--navy-dark), var(--navy) 57%, #234773);
}
body.page-about .page-hero {
    background: linear-gradient(135deg, #102745, #173a62 54%, #29557d);
}
body.page-school .page-hero {
    background: var(--navy);
    --photo-shade: rgba(15, 35, 60, 0.8);
}
body.page-leadership .page-hero {
    background: linear-gradient(135deg, #132c4d, #244b72 54%, #37648a);
}
body.page-academics .page-hero {
    background: linear-gradient(135deg, #0f2745, #173a60 54%, #2b5479);
}
body.page-programme .page-hero {
    background: var(--navy);
    --photo-shade: rgba(15, 35, 60, 0.82);
}
body.page-resources .page-hero {
    background: linear-gradient(135deg, #0f2846, #1b4168 55%, #2f6388);
}
body.page-facilities .page-hero {
    background: var(--navy);
    --photo-shade: rgba(14, 31, 57, 0.78);
}
body.page-activities .page-hero {
    background: var(--navy);
    --photo-shade: rgba(16, 34, 59, 0.8);
}
body.page-student-life .page-hero {
    background: var(--navy);
    --photo-shade: rgba(16, 34, 59, 0.78);
}
body.page-gallery .page-hero {
    background: linear-gradient(135deg, #102949, #173c62 55%, #2a6180);
}
body.page-admissions .page-hero {
    background:
        radial-gradient(circle at 85% 10%, #30547d 0%, transparent 37%),
        linear-gradient(125deg, var(--navy-dark), var(--navy) 57%, #234773);
}
body.page-contact .page-hero {
    background: linear-gradient(135deg, #112a49, #1a3f66 54%, #2b5e83);
}
.page-hero .page-hero-inner {
    position: relative;
}
.page-hero .page-hero-inner::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 220px;
    height: 220px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
    backdrop-filter: blur(2px);
    transform: translate(20px, 10px) rotate(10deg);
    opacity: 0.35;
}
.hero-simple .page-hero-inner::after {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.18;
    right: 5%;
}
.hero-has-deco .page-hero-inner::after {
    display: none;
}
.photo-panel {
    min-height: 420px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #dfe6ee;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.photo-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 30, 52, 0.08),
        rgba(13, 30, 52, 0.72)
    );
}
.photo-panel::after {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
}
.photo-panel .photo-label {
    position: relative;
    z-index: 1;
    margin: 24px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
    border-radius: 12px;
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(9, 27, 47, 0.12);
}
.photo-panel .photo-label strong {
    display: block;
    color: var(--navy);
    font:
        700 18px "Outfit",
        Arial,
        sans-serif;
    line-height: 1.2;
    margin-bottom: 5px;
}
.photo-panel .photo-label span {
    display: block;
    color: #53657b;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .page-hero .page-hero-inner::after {
        display: none;
    }
    .photo-panel {
        min-height: 300px;
    }
    .photo-panel .photo-label {
        margin: 18px;
        max-width: 240px;
    }
}

/* Photos are HTML img elements in the PHP pages, not CSS background images. */
.photo-panel > .photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}
.photo-panel::before {
    z-index: 1;
}
.photo-panel::after {
    z-index: 2;
}
.photo-panel .photo-label {
    z-index: 3;
}

body.hero-image-accent .page-hero > .hero-photo {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
body.hero-image-accent .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--photo-shade);
    pointer-events: none;
    z-index: 1;
}
body.hero-image-accent .page-hero .hero-grid {
    z-index: 2;
}
body.hero-image-accent .page-hero::after {
    z-index: 2;
}
body.hero-image-accent .page-hero .page-hero-inner {
    z-index: 3;
}

.leadership-img {
    border-radius: 15px;
}
