/*
  EPSA - Equatorial Private Secondary Academy
  Brand layer on top of the base theme (loaded after style.css / responsive.css).
  Brand colours: Royal Blue, Gold, Forest Green.
*/

:root {
    --epsa-navy: #07294d;
    --epsa-navy-deep: #051d38;
    --epsa-gold: #ffc600;
    --epsa-green: #1e6b3a;
    --epsa-ink: #1c2b3a;
}

/* ---------- brand mark (header + footer) ---------- */
.epsa-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.epsa-brand img {
    height: 74px;
    width: auto;
    display: block;
}
.epsa-brand .epsa-brand-text strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: .08em;
    line-height: 1;
    color: var(--epsa-navy);
}
.epsa-brand .epsa-brand-text small {
    display: block;
    margin-top: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6b7785;
}
#footer-part .epsa-brand img { height: 84px; }
#footer-part .epsa-brand .epsa-brand-text strong { color: #fff; }
#footer-part .epsa-brand .epsa-brand-text small { color: #b8c4d2; }

/* tri-colour rule under the navigation (echoes the school tie) */
.epsa-stripe {
    height: 5px;
}

.header-top .header-motto {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-style: italic;
}

/* ---------- hero ---------- */
.epsa-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 90px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 45%, rgba(255, 198, 0, .22), transparent 42%),
        linear-gradient(125deg, var(--epsa-navy-deep) 0%, var(--epsa-navy) 55%, #0d3a6b 100%);
}
.epsa-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 46px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 22px;
}
.epsa-hero h1 span { color: var(--epsa-gold); }
.epsa-hero .lead-text {
    font-size: 18px;
    line-height: 1.75;
    color: #d6e0ec;
    max-width: 560px;
    margin-bottom: 34px;
}
.epsa-hero ul { margin: 0; padding: 0; list-style: none; }
.epsa-hero ul li { display: inline-block; margin: 0 12px 12px 0; }
.epsa-hero .hero-crest { text-align: center; }
.epsa-hero .hero-crest img {
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}

/* ---------- inner page banner ---------- */
#page-banner.epsa-banner {
    background:
        radial-gradient(circle at 88% 50%, rgba(255, 198, 0, .2), transparent 40%),
        linear-gradient(125deg, var(--epsa-navy-deep), var(--epsa-navy) 60%, #0d3a6b);
}

/* ---------- core values ---------- */
#values-part { margin-top: -50px; position: relative; z-index: 5; }
.epsa-value {
    background: #fff;
    border-radius: 6px;
    padding: 30px 24px 26px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(7, 41, 77, .12);
    border-top: 4px solid var(--epsa-navy);
    height: 100%;
}
.epsa-value.v-gold { border-top-color: var(--epsa-gold); }
.epsa-value.v-green { border-top-color: var(--epsa-green); }
.epsa-value .v-icon {
    width: 60px; height: 60px; line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #fff;
    background: var(--epsa-navy);
}
.epsa-value.v-gold .v-icon { background: var(--epsa-gold); color: var(--epsa-navy); }
.epsa-value.v-green .v-icon { background: var(--epsa-green); }
.epsa-value h4 { font-size: 22px; color: var(--epsa-navy); margin-bottom: 10px; }
.epsa-value p { font-size: 15px; margin: 0; }

/* ---------- vision / mission panel ---------- */
.epsa-panel {
    background: var(--epsa-navy);
    color: #fff;
    border-radius: 6px;
    padding: 38px 38px 32px;
    position: relative;
}
.epsa-panel::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    border-radius: 6px 0 0 6px;
    background: linear-gradient(var(--epsa-gold), var(--epsa-green));
}
.epsa-panel h3 { color: var(--epsa-gold); font-size: 22px; margin-bottom: 10px; }
.epsa-panel p { color: #d6e0ec; margin-bottom: 26px; }
.epsa-panel p:last-child { margin-bottom: 0; }

/* ---------- mission pillars ---------- */
.epsa-pillar {
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 6px;
    padding: 32px 28px;
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
.epsa-pillar:hover { box-shadow: 0 12px 34px rgba(7, 41, 77, .12); transform: translateY(-3px); }
.epsa-pillar .p-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 44px; font-weight: 700; line-height: 1;
    color: #d5dce4; margin-bottom: 14px;
}
.epsa-pillar h4 { font-size: 21px; color: var(--epsa-navy); margin-bottom: 12px; }
.epsa-pillar p { margin: 0; font-size: 15px; }
.epsa-pillar .p-tags { margin-top: 14px; }
.epsa-pillar .p-tags span {
    display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px;
    border-radius: 20px; font-size: 13px; font-weight: 600;
    background: #eef3f8; color: var(--epsa-navy);
}

/* ---------- why choose EPSA ---------- */
.epsa-why {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 24px; background: #fff; border-radius: 6px;
    box-shadow: 0 4px 22px rgba(7, 41, 77, .07);
    height: 100%;
}
.epsa-why .w-icon {
    flex: 0 0 54px; height: 54px; line-height: 54px; text-align: center;
    border-radius: 6px; font-size: 22px;
    background: var(--epsa-navy); color: var(--epsa-gold);
}
.epsa-why:nth-child(3n) .w-icon { background: var(--epsa-green); color: #fff; }
.epsa-why h4 { font-size: 19px; color: var(--epsa-navy); margin: 0 0 6px; }
.epsa-why p { margin: 0; font-size: 15px; }

/* ---------- uniform ---------- */
.epsa-uniform img { border-radius: 6px; box-shadow: 0 16px 44px rgba(7, 41, 77, .22); width: 100%; }
.epsa-uniform-list { list-style: none; margin: 24px 0 0; padding: 0; }
.epsa-uniform-list li {
    padding: 12px 0 12px 34px; position: relative;
    border-bottom: 1px solid #e6ebf0; font-size: 16px;
}
.epsa-uniform-list li::before {
    font-family: FontAwesome; content: "\f00c";
    position: absolute; left: 0; top: 12px; color: var(--epsa-green);
}
.epsa-uniform-list li strong { color: var(--epsa-navy); }

/* ---------- call to action blocks ---------- */
.apply-color-1 { background-color: var(--epsa-navy); }
.apply-color-2 { background-color: var(--epsa-green); }
.apply-color-3 { background-color: #093e77;}
.apply-color-2 .main-btn { border-color: var(--epsa-gold); }

/* ---------- contact ---------- */
.epsa-map-card {
    background: var(--epsa-navy); color: #fff; border-radius: 6px;
    padding: 30px; margin-top: 30px;
}
.epsa-map-card h4 { color: var(--epsa-gold); margin-bottom: 10px; }
.epsa-map-card p { color: #d6e0ec; }
.epsa-note {
    font-size: 14px; color: #6b7785; margin: 14px 0 0;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .epsa-hero { padding: 60px 0 80px; }
    .epsa-hero h1 { font-size: 36px; }
    .epsa-hero .hero-crest { margin-top: 40px; }
    .epsa-hero .hero-crest img { max-width: 260px; }
    #values-part { margin-top: -30px; }
}
@media (max-width: 575px) {
    .epsa-brand img { height: 56px; }
    .epsa-brand .epsa-brand-text strong { font-size: 24px; }
    .epsa-brand .epsa-brand-text small { font-size: 9px; }
    .epsa-hero h1 { font-size: 30px; }
    .epsa-panel { padding: 28px 24px 24px; }
}

/* the base theme reserves space for a decorative image we don't use */
#about-part { padding-bottom: 90px; }
.about-cont p + p { margin-top: 0; }

/* call-to-action blocks: equal height, no pull-up overlap (nothing above to overlap) */
#apply-aprt { padding-top: 0; }
#apply-aprt .apply { margin-top: 0; }
#apply-aprt .apply .apply-cont { height: 100%; }
#apply-aprt .apply .apply-cont .main-btn { margin-top: 10px; }
@media (min-width: 992px) {
    #apply-aprt .apply > .row { display: grid; grid-template-columns: 1fr 1fr; }
    #apply-aprt .apply > .row > [class*="col-"] { max-width: none; flex: none; width: auto; }
}
@media (max-width: 991px) {
    #apply-aprt .apply .apply-color-1 { border-radius: 5px 5px 0 0; }
    #apply-aprt .apply .apply-color-2 { border-radius: 0 0 5px 5px; }
}

/* alternate icon colour in feature cards (blue / green) */
.row > div:nth-child(even) > .epsa-why .w-icon { background: var(--epsa-green); color: #fff; }
.epsa-why { align-items: flex-start; }
.epsa-map-card .main-btn { margin-top: 12px; }


/* =====================================================================
   MOTION SYSTEM
   Entrances are only hidden when the head script adds .js-anim / .js-reveal,
   so without JavaScript (or with reduced motion) everything simply shows.
   ===================================================================== */
:root {
    --epsa-royal: #1d4fa3;
    --ease-out: cubic-bezier(.22, .8, .24, 1);
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }

/* ---------- preloader: pulsing crest with a spinning tri-colour ring ---------- */
.preloader { display: flex; align-items: center; justify-content: center; }
.epsa-loader { position: relative; width: 116px; height: 104px; }
.epsa-loader img { width: 100%; height: 100%; object-fit: contain; animation: loaderPulse 1.5s ease-in-out infinite; }
.epsa-loader::after {
    content: ""; position: absolute; inset: -22px;
    border: 3px solid transparent; border-top-color: var(--epsa-gold); border-right-color: var(--epsa-green);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes loaderPulse { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scroll progress ---------- */
.epsa-progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 10000; pointer-events: none; }
.epsa-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--epsa-gold), var(--epsa-green)); }

/* ---------- reveal on scroll ---------- */
.js-reveal [data-reveal] {
    opacity: 0;
    transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
    will-change: opacity, transform;
}
.js-reveal [data-reveal="up"]    { transform: translate3d(0, 44px, 0); }
.js-reveal [data-reveal="down"]  { transform: translate3d(0, -44px, 0); }
.js-reveal [data-reveal="left"]  { transform: translate3d(-60px, 0, 0); }
.js-reveal [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.js-reveal [data-reveal="zoom"]  { transform: scale(.88); }
.js-reveal [data-reveal].is-in   { opacity: 1; transform: none; }

/* ---------- hero entrance (plays once the preloader has gone) ---------- */
.js-anim .hero-in { opacity: 0; }
.js-anim.is-ready .hero-in { animation: heroUp .95s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes heroUp { from { opacity: 0; transform: translate3d(0, 36px, 0); } to { opacity: 1; transform: none; } }

.js-anim .hero-crest .crest-wrap { opacity: 0; }
.js-anim.is-ready .hero-crest .crest-wrap { animation: crestIn 1.15s .35s var(--ease-out) both; }
@keyframes crestIn { from { opacity: 0; transform: translate3d(80px, 0, 0) scale(.82) rotate(5deg); } to { opacity: 1; transform: none; } }
.crest-img { animation: floatY 6.5s ease-in-out 1.6s infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* underline that draws itself under the highlighted word */
.u-draw { position: relative; display: inline-block; }
.u-draw::after {
    content: ""; position: absolute; left: 0; bottom: -4px; height: 5px; width: 100%;
    border-radius: 4px; background: var(--epsa-gold);
    transform: scaleX(0); transform-origin: left;
}
.js-anim.is-ready .u-draw::after { animation: drawLine .9s 1.3s var(--ease-out) forwards; }
html:not(.js-anim) .u-draw::after { transform: none; }
@keyframes drawLine { to { transform: scaleX(1); } }

/* ---------- hero: eyebrow, badges, floating chips ---------- */
.hero-eyebrow {
    display: inline-block; margin-bottom: 20px; padding: 7px 16px;
    border-radius: 30px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--epsa-gold); background: rgba(255, 198, 0, .12); border: 1px solid rgba(255, 198, 0, .35);
}
.hero-badges { margin: 26px 0 0; padding: 0; list-style: none; }
.hero-badges li {
    display: inline-block; margin: 0 22px 8px 0; font-size: 14px; color: #c5d3e3;
}
.hero-badges li i { color: var(--epsa-gold); margin-right: 8px; }

.hero-crest .crest-wrap { position: relative; display: inline-block; width: 100%; max-width: 380px; }
.hero-crest .crest-wrap::before {
    content: ""; position: absolute; inset: 2% 2% 8%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 198, 0, .32), transparent 66%);
    animation: haloPulse 4.5s ease-in-out infinite;
}
.hero-crest .crest-orbit {
    position: absolute; inset: -9% -6% -3%; border-radius: 50%;
    border: 2px dashed rgba(255, 198, 0, .38); animation: spin 48s linear infinite;
}
.hero-crest .crest-img { position: relative; }
@keyframes haloPulse { 0%, 100% { transform: scale(.95); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }

.hero-chip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; white-space: nowrap;
    color: #fff; background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    animation: floatY 5s ease-in-out infinite;
}
.hero-chip i { color: var(--epsa-gold); }
.hero-chip.chip-a { top: 4%; left: -26%; animation-delay: .3s; }
.hero-chip.chip-b { bottom: 6%; right: -20%; animation-delay: 1.4s; animation-duration: 6s; }

/* ---------- floating decorative shapes (mouse-tracked layers hold the shapes) ---------- */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-shapes .hs { position: absolute; display: block; transition: transform .35s ease-out; will-change: transform; }
.hero-shapes .hs > i { display: block; width: 100%; height: 100%; }
.epsa-hero > .container, .epsa-online > .container { position: relative; z-index: 2; }

.hs .blob { animation: morph 15s ease-in-out infinite; }
.hs .blob.gold  { background: radial-gradient(circle at 30% 30%, rgba(255, 198, 0, .55), rgba(255, 198, 0, .10)); }
.hs .blob.green { background: linear-gradient(135deg, rgba(30, 107, 58, .75), rgba(30, 107, 58, .12)); animation-duration: 19s; animation-direction: reverse; }
.hs .blob.royal { background: linear-gradient(135deg, rgba(29, 79, 163, .65), rgba(29, 79, 163, .08)); animation-duration: 22s; }
@keyframes morph {
    0%, 100% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; transform: rotate(0deg); }
    25% { border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%; }
    50% { border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%; transform: rotate(40deg); }
    75% { border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%; }
}
.hs .ring { border: 2px dashed rgba(255, 198, 0, .45); border-radius: 50%; animation: spin 32s linear infinite; }
.hs .dots {
    background-image: radial-gradient(rgba(255, 255, 255, .38) 2px, transparent 2px);
    background-size: 18px 18px; animation: floatY 9s ease-in-out infinite;
}
.hs .plus { position: relative; animation: spin 18s linear infinite; }
.hs .plus::before, .hs .plus::after { content: ""; position: absolute; background: var(--epsa-gold); border-radius: 2px; }
.hs .plus::before { left: 0; right: 0; top: calc(50% - 2px); height: 4px; }
.hs .plus::after { top: 0; bottom: 0; left: calc(50% - 2px); width: 4px; }
.hs .square { border: 3px solid rgba(255, 255, 255, .35); border-radius: 6px; animation: swing 8s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(18deg) translateY(-12px); } }

.hero-shapes .hs-1 { width: 96px;  height: 96px;  top: 10%;    left: 1.5%; }
.hero-shapes .hs-2 { width: 150px; height: 150px; top: -64px;  left: 46%; }
.hero-shapes .hs-3 { width: 150px; height: 108px; top: 10%;    right: 6%; }
.hero-shapes .hs-4 { width: 190px; height: 190px; bottom: -70px; right: 22%; }
.hero-shapes .hs-5 { width: 34px;  height: 34px;  top: 64%;    right: 3%; }
.hero-shapes .hs-6 { width: 44px;  height: 44px;  bottom: 9%;  left: 52%; }

/* ---------- buttons & links: small, tactile motion ---------- */
.main-btn { transition: transform .25s var(--ease-out), box-shadow .25s, background .3s, color .3s, border-color .3s; }
.main-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(7, 41, 77, .22); }
.epsa-hero .main-btn:hover, .epsa-online .main-btn:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.btn-arrow i { margin-left: 10px; transition: transform .25s var(--ease-out); }
.btn-arrow:hover i { transform: translateX(5px); }
.main-btn.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.main-btn.btn-ghost:hover { background: #fff; color: var(--epsa-navy); border-color: #fff; }

.epsa-value { transition: transform .35s var(--ease-out), box-shadow .35s; }
.epsa-value:hover { transform: translateY(-10px); box-shadow: 0 22px 46px rgba(7, 41, 77, .2); }
.epsa-value .v-icon { transition: transform .5s var(--ease-out); }
.epsa-value:hover .v-icon { transform: rotateY(360deg) scale(1.08); }
.epsa-why { transition: transform .3s var(--ease-out), box-shadow .3s; }
.epsa-why:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(7, 41, 77, .16); }
.epsa-why .w-icon { transition: transform .4s var(--ease-out); }
.epsa-why:hover .w-icon { transform: scale(1.12) rotate(-6deg); }
.epsa-uniform { position: relative; }
.epsa-uniform::before {
    content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 6px;
    border: 3px solid var(--epsa-gold); z-index: 0; transition: transform .5s var(--ease-out);
}
.epsa-uniform img { position: relative; z-index: 1; transition: transform .5s var(--ease-out); }
.epsa-uniform:hover::before { transform: translate(10px, 10px); }
.epsa-uniform:hover img { transform: translate(-6px, -6px); }
.epsa-uniform-list li { transition: padding-left .25s var(--ease-out), background .25s; }
.epsa-uniform-list li:hover { padding-left: 42px; background: #f5f8fb; }

/* =====================================================================
   SUBJECT GROUPS
   ===================================================================== */
.epsa-subjects { position: relative; overflow: hidden; }
.epsa-subjects::before {
    content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 198, 0, .16), transparent 70%);
}
.subjects-head .main-btn { cursor: pointer; }
#subjects-toggle .t-open { display: none; }
#subjects-toggle.is-open .t-open { display: inline; }
#subjects-toggle.is-open .t-closed { display: none; }
#subjects-toggle i { margin-left: 10px; transition: transform .35s var(--ease-out); }
#subjects-toggle.is-open i { transform: rotate(180deg); }

.subject-card {
    --c: var(--epsa-navy);
    position: relative; height: 100%; padding: 34px 28px 28px; overflow: hidden;
    background: #fff; border: 1px solid #e3e9ef; border-radius: 8px;
    box-shadow: 0 4px 22px rgba(7, 41, 77, .06);
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.subject-card::before {                 /* colour wash that rises on hover */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 0;
    background: var(--c); transition: height .5s var(--ease-out);
}
.subject-card > * { position: relative; z-index: 1; }
.subject-card:hover { transform: translateY(-12px); box-shadow: 0 26px 50px rgba(7, 41, 77, .22); border-color: var(--c); }
.subject-card:hover::before { height: 100%; }
.subject-card .sc-icon {
    width: 68px; height: 68px; line-height: 64px; margin-bottom: 20px; text-align: center; font-size: 28px;
    border-radius: 50%; color: var(--c); background: #fff; border: 2px solid var(--c);
    transition: transform .5s var(--ease-out), color .3s, background .3s;
}
.subject-card:hover .sc-icon { transform: rotate(360deg) scale(1.06); color: var(--c); background: #fff; }
.subject-card h4 { font-size: 23px; color: var(--epsa-navy); margin-bottom: 8px; transition: color .3s; }
.subject-card p { font-size: 15px; margin-bottom: 16px; transition: color .3s; }
.subject-card .sc-tags { list-style: none; margin: 0 0 20px; padding: 0; }
.subject-card .sc-tags li {
    display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 20px;
    font-size: 13px; font-weight: 600; color: var(--epsa-navy); background: #eef3f8; transition: background .3s, color .3s;
}
.subject-card .sc-count { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c); transition: color .3s; }
.subject-card .sc-link {
    display: inline-block; margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: var(--epsa-navy); transition: color .3s;
}
.subject-card .sc-link i { margin-left: 8px; transition: transform .3s var(--ease-out); }
.subject-card:hover h4, .subject-card:hover p, .subject-card:hover .sc-link, .subject-card:hover .sc-count { color: #fff; }
.subject-card:hover .sc-tags li { background: rgba(255, 255, 255, .16); color: #fff; }
.subject-card:hover .sc-link i { transform: translateX(6px); }
.subject-card.g-arts:hover h4, .subject-card.g-arts:hover p, .subject-card.g-arts:hover .sc-link,
.subject-card.g-arts:hover .sc-count { color: var(--epsa-navy); }
.subject-card.g-arts:hover .sc-tags li { background: rgba(7, 41, 77, .1); color: var(--epsa-navy); }
.subject-card.g-languages { --c: var(--epsa-navy); }
.subject-card.g-sciences  { --c: var(--epsa-green); }
.subject-card.g-arts      { --c: var(--epsa-gold); }
.subject-card.g-social    { --c: var(--epsa-royal); }
.subject-card.g-arts .sc-icon { color: #9a7600; }
.subject-card.g-arts .sc-count { color: #9a7600; }

/* expandable "all subjects" panel */
.subjects-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.subjects-panel.is-open { grid-template-rows: 1fr; }
.subjects-panel-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .6s; }
.subjects-panel.is-open .subjects-panel-inner { visibility: visible; transition-delay: 0s; }
.subjects-box {
    margin-top: 44px; padding: 34px 34px 26px; border-radius: 8px; color: #fff;
    background: linear-gradient(125deg, var(--epsa-navy-deep), var(--epsa-navy) 70%, #0d3a6b);
    border-left: 6px solid var(--epsa-gold);
}
.subjects-box h3 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.subjects-box .subjects-count { color: var(--epsa-gold); font-size: 14px; font-weight: 600; }
.subject-filters { margin: 18px 0 22px; padding: 0; list-style: none; }
.subject-filters li { display: inline-block; margin: 0 8px 8px 0; }
.subject-filters button {
    padding: 8px 20px; border-radius: 30px; cursor: pointer; font-size: 14px; font-weight: 600; color: #fff;
    background: transparent; border: 1px solid rgba(255, 255, 255, .4); transition: all .25s;
}
.subject-filters button:hover { background: rgba(255, 255, 255, .14); }
.subject-filters button.is-active { background: var(--epsa-gold); border-color: var(--epsa-gold); color: var(--epsa-navy); }
.subject-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.subject-item {
    padding: 13px 16px 13px 44px; position: relative; border-radius: 6px; font-weight: 500;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    transition: background .25s, transform .25s var(--ease-out);
}
.subject-item::before {
    font-family: FontAwesome; content: "\f19d"; position: absolute; left: 16px; top: 12px; color: var(--epsa-gold);
}
.subject-item small { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #9fb4cb; }
.subject-item:hover { background: rgba(255, 255, 255, .17); transform: translateY(-3px); }
.subject-item.pop { animation: popIn .5s var(--ease-out) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.subjects-note { margin: 18px 0 0; font-size: 13px; color: #9fb4cb; }

/* =====================================================================
   ONLINE LEARNING
   ===================================================================== */
.epsa-online {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 198, 0, .16), transparent 38%),
        radial-gradient(circle at 92% 85%, rgba(30, 107, 58, .45), transparent 42%),
        linear-gradient(135deg, var(--epsa-navy-deep) 0%, var(--epsa-navy) 55%, #0b3560 100%);
}
.epsa-online .hero-shapes .hs-1 { top: 8%; left: auto; right: 4%; width: 120px; height: 120px; }
.epsa-online .hero-shapes .hs-2 { bottom: 6%; left: 3%; width: 130px; height: 130px; }
.epsa-online .hero-shapes .hs-3 { top: 14%; left: 42%; }
.epsa-online .hero-shapes .hs-4 { bottom: -80px; right: 6%; }
.online-tag {
    display: inline-block; padding: 7px 16px; margin-bottom: 18px; border-radius: 30px;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--epsa-navy); background: var(--epsa-gold);
}
.online-tag i { margin-right: 8px; }
.epsa-online h2 { color: #fff; font-size: 40px; line-height: 1.25; margin-bottom: 18px; }
.epsa-online h2 span { color: var(--epsa-gold); }
.epsa-online .online-lead { font-size: 17px; line-height: 1.8; color: #d0dcea; margin-bottom: 26px; max-width: 560px; }
.online-points { margin: 0 0 30px; padding: 0; list-style: none; }
.online-points li { position: relative; padding: 7px 0 7px 36px; color: #e6eef7; }
.online-points li::before {
    font-family: FontAwesome; content: "\f00c"; position: absolute; left: 0; top: 8px;
    width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 12px; border-radius: 50%;
    color: var(--epsa-navy); background: var(--epsa-gold);
}
.online-steps { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.online-steps li {
    flex: 1 1 150px; padding: 16px 18px; border-radius: 8px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
    transition: background .3s, transform .3s var(--ease-out);
}
.online-steps li:hover { background: rgba(255, 255, 255, .14); transform: translateY(-5px); }
.online-steps b { display: block; font-family: 'Montserrat', sans-serif; font-size: 26px; line-height: 1; color: var(--epsa-gold); margin-bottom: 6px; }
.online-steps span { font-size: 14px; color: #d0dcea; }
.online-cta .main-btn { margin: 0 12px 12px 0; }

/* illustrative dashboard mock-up (pure CSS) */
.mock-wrap { position: relative; padding: 30px 10px 40px; }
.mock {
    position: relative; z-index: 2; border-radius: 12px; overflow: hidden; background: #fff; color: var(--epsa-navy);
    box-shadow: 0 34px 70px rgba(0, 0, 0, .45); animation: floatY 8s ease-in-out infinite;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #e9eef4; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c5ced8; }
.mock-bar i:nth-child(1) { background: #ff6f6f; }
.mock-bar i:nth-child(2) { background: var(--epsa-gold); }
.mock-bar i:nth-child(3) { background: #43b26b; }
.mock-bar span { margin-left: 12px; padding: 3px 14px; border-radius: 20px; font-size: 12px; color: #6b7785; background: #fff; }
.mock-body { padding: 24px 26px 26px; }
.mock-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.mock-head img { height: 46px; width: auto; }
.mock-head strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; }
.mock-head small { color: #8a95a3; font-size: 12px; }
.mock-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #edf1f5; }
.mock-row .mr-ic {
    flex: 0 0 42px; height: 42px; line-height: 42px; text-align: center; border-radius: 10px; color: #fff; font-size: 18px;
}
.mock-row.r1 .mr-ic { background: var(--epsa-navy); }
.mock-row.r2 .mr-ic { background: var(--epsa-green); }
.mock-row.r3 .mr-ic { background: var(--epsa-gold); color: var(--epsa-navy); }
.mock-row.r4 .mr-ic { background: var(--epsa-royal); }
.mock-row .mr-txt { flex: 1; }
.mock-row b { display: block; font-size: 14px; margin-bottom: 7px; }
.mock-row .bar { display: block; height: 8px; border-radius: 6px; background: #e8eef4; overflow: hidden; }
.mock-row .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--epsa-gold), var(--epsa-green)); transition: width 1.6s var(--ease-out) .5s; }
.is-in .mock-row .bar i, html:not(.js-reveal) .mock-row .bar i { width: var(--w); }
.mock-play {
    position: absolute; right: 26px; top: 20px; width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 50%;
    color: var(--epsa-navy); background: var(--epsa-gold); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 198, 0, .55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(255, 198, 0, 0); } }
.mock-caption { text-align: center; margin: 14px 0 0; font-size: 12px; color: #9fb4cb; }
.mock-wrap .hero-chip.chip-c { top: 6%; left: -2%; }
.mock-wrap .hero-chip.chip-d { bottom: 9%; right: -2%; animation-delay: 1.2s; }

/* ---------- responsive tuning for the new pieces ---------- */
@media (max-width: 991px) {
    .epsa-online h2 { font-size: 32px; }
    .hero-chip.chip-a { left: 0; }
    .hero-chip.chip-b { right: 0; }
    .hero-shapes .hs-2, .hero-shapes .hs-5, .hero-shapes .hs-6 { display: none; }
    .mock-wrap { margin-top: 40px; }
    .mock-wrap .hero-chip.chip-c { left: 0; }
    .mock-wrap .hero-chip.chip-d { right: 0; }
    .epsa-uniform::before { inset: 14px -10px -14px 10px; }
}
@media (max-width: 575px) {
    .epsa-online h2 { font-size: 27px; }
    .hero-chip { font-size: 12px; padding: 7px 12px; }
    .subjects-box { padding: 26px 20px 20px; }
    .subject-list { grid-template-columns: 1fr 1fr; }
    .subject-item { padding-left: 38px; font-size: 14px; }
    .subject-item::before { left: 12px; }
}

/* ---------- respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .u-draw::after { transform: none; }
}

/* ---------- polish ---------- */
#footer-part .footer-address a, #footer-part .footer-about a { color: #fff; }
#footer-part .footer-address a:hover { color: var(--epsa-gold); }
.gray-bg + #apply-aprt { padding-top: 100px; }

/* chips that sit on the dashboard mock-up need a solid fill to stay legible */
.mock-wrap .hero-chip { background: var(--epsa-navy); border-color: rgba(255, 198, 0, .55); }
.mock-wrap .hero-chip.chip-c { top: 0; left: -7%; }
.mock-wrap .hero-chip.chip-d { bottom: 2%; right: -6%; }
.hero-chip.chip-b { bottom: -6%; right: -14%; }

/* ---------- mobile: keep decoration from covering text, keep chips on screen ---------- */
@media (max-width: 991px) {
    .hero-shapes .hs-1, .hero-shapes .hs-3 { display: none; }
    .hero-crest .crest-wrap { max-width: 300px; }
    .hero-chip.chip-a { top: 2%; left: -4%; }
    .hero-chip.chip-b { bottom: -4%; right: -4%; }
    .mock-wrap .hero-chip.chip-c { top: 0; left: 0; }
    .mock-wrap .hero-chip.chip-d { bottom: 2%; right: 0; }
}
@media (max-width: 575px) {
    .hero-eyebrow { font-size: 11px; border-radius: 14px; padding: 6px 12px; }
    .hero-crest .crest-wrap { max-width: 250px; }
}
@media (max-width: 991px) {
    .hero-crest .hero-chip { display: none; }   /* duplicates the badges above; would cover the crest lettering */
}


/* =====================================================================
   REUSABLE SECTION PATTERNS
   1. split section  - highlighted headline + scribble + dot list + cut-out on a brush stroke
   2. circle wave    - overlapping circles that pop in, then float
   3. orbit          - icon composition for pages without a photo
   ===================================================================== */

/* extra reveal styles: bouncy pop and a left-to-right wipe */
.js-reveal [data-reveal="pop"] { transform: scale(.35) translateY(36px); transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.js-reveal [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out) var(--d, 0s); }
.js-reveal [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

.main-btn.btn-outline { background: transparent; color: var(--epsa-navy); border-color: var(--epsa-navy); margin-left: 12px; }
.main-btn.btn-outline:hover { background: var(--epsa-navy); color: #fff; border-color: var(--epsa-navy); }
.section-title-center h5::before { left: 50%; transform: translateX(-50%); }

/* ---------- 1. split section ---------- */
.epsa-split { position: relative; overflow: hidden; }
.epsa-split .split-kicker {
    display: inline-block; margin-bottom: 14px; padding: 5px 16px; border-radius: 30px;
    font: 700 13px/1.4 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase;
    color: var(--epsa-royal); background: rgba(29, 79, 163, .09);
}
.epsa-split h2 { font-size: 42px; line-height: 1.3; font-weight: 700; color: var(--epsa-navy); margin-bottom: 8px; }
.epsa-split p { color: #6b7785; font-size: 17px; line-height: 1.85; margin-top: 18px; }

.hl { position: relative; display: inline-block; color: var(--epsa-royal); }
.scribble { position: absolute; left: -2%; bottom: -13px; width: 104%; height: 14px; overflow: visible; pointer-events: none; }
.scribble path {
    fill: none; stroke: var(--epsa-gold); stroke-width: 3.4; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s var(--ease-out) .8s;
}
.scribble path + path { stroke-width: 2.2; transition-delay: 1.15s; }
.js-reveal .scribble path { stroke-dashoffset: 1; }
.js-reveal .is-in .scribble path { stroke-dashoffset: 0; }

.dot-list { list-style: none; margin: 26px 0 0; padding: 0; }
.dot-list li { position: relative; padding: 8px 0 8px 30px; font-size: 17px; font-weight: 600; color: var(--epsa-navy); }
.dot-list li::before {
    content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--epsa-royal); box-shadow: 0 0 0 5px rgba(29, 79, 163, .14);
    transition: transform .3s var(--ease-out), background .3s;
}
.dot-list li:hover::before { transform: scale(1.35); background: var(--epsa-gold); }
.dot-list li small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: #6b7785; }
.split-cta { margin-top: 32px; }
.split-cta .main-btn { margin-bottom: 10px; }
.split-cta .main-btn.btn-outline { margin-left: 12px; }

/* cut-out image on a brush stroke, with a floating accent circle */
.cutout { position: relative; width: 100%; max-width: 470px; margin: 0 auto; aspect-ratio: 1 / 1.08; }
.cutout .brush { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cutout .cut-dot { position: absolute; top: 9%; left: 15%; width: 76px; height: 76px; z-index: 3; transition: transform .35s ease-out; }
.cutout .cut-dot i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--epsa-royal); box-shadow: 0 14px 30px rgba(29, 79, 163, .35); animation: floatY 5s ease-in-out infinite; }
.cutout .cut-ring { position: absolute; bottom: 9%; left: 4%; width: 54px; height: 54px; z-index: 3; transition: transform .35s ease-out; }
.cutout .cut-ring i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--epsa-green); animation: floatY 6.5s ease-in-out infinite reverse; }
.cutout .cut-media { position: absolute; inset: 7% 8% 0 12%; display: flex; align-items: flex-end; justify-content: center; z-index: 2; }
.cutout .cut-media img.crest { width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(7, 41, 77, .35)); animation: floatY 7s ease-in-out infinite; }
.cutout .cut-media img.photo {
    width: 76%; height: 100%; object-fit: cover; object-position: 50% 45%;
    border-radius: 240px 240px 14px 14px; box-shadow: 0 26px 54px rgba(7, 41, 77, .32);
}
.cutout.is-orbit { aspect-ratio: 1 / 1; }
.cutout.is-orbit .cut-media { inset: 0; align-items: center; }
.cutout.is-mock { aspect-ratio: auto; padding: 46px 0 40px; }
.cutout.is-mock .cut-media { position: relative; inset: auto; display: block; padding: 0 8px 0 24px; }
.cutout .hero-chip { background: var(--epsa-navy); border-color: rgba(255, 198, 0, .55); }
.cutout .hero-chip.chip-c { top: 4%; left: -3%; }
.cutout .hero-chip.chip-d { bottom: 3%; right: -3%; animation-delay: 1.2s; }
.split-visual { min-height: 1px; }

/* ---------- 2. circle wave ---------- */
.wave { display: flex; justify-content: center; padding: 10px 0 96px; }
.wave-cell { flex: 0 0 auto; margin: 0 -15px; }
.wave-cell:nth-child(even) { margin-top: 66px; }
.wave-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    width: 184px; height: 184px; padding: 22px; border-radius: 50%; color: var(--epsa-navy); text-decoration: none;
    background: #fff; box-shadow: 0 24px 64px rgba(7, 41, 77, .15);
    animation: waveFloat 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.85s);
    transition: background .35s, color .35s, box-shadow .35s;
}
.wave-item i { font-size: 36px; margin-bottom: 10px; color: var(--wc, var(--epsa-navy)); transition: transform .6s var(--ease-out), color .35s; }
.wave-item h5 { margin: 0; font: 700 16px/1.25 'Montserrat', sans-serif; color: inherit; }
.wave-item span { margin-top: 5px; font-size: 12px; letter-spacing: .04em; color: #8a95a3; transition: color .35s; }
.wave-item:hover { background: var(--epsa-navy); color: #fff; box-shadow: 0 32px 74px rgba(7, 41, 77, .34); animation-play-state: paused; }
.wave-item:hover i { color: var(--epsa-gold); transform: rotateY(360deg) scale(1.15); }
.wave-item:hover span { color: #b8c4d2; }
@keyframes waveFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 3. orbit composition ---------- */
.orbit { position: relative; width: 400px; height: 400px; margin: 0 auto; --r: 162px; --s: 66px; }
.orbit-core {
    position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--epsa-gold); background: var(--epsa-navy);
    box-shadow: 0 0 0 14px rgba(7, 41, 77, .1), 0 0 0 34px rgba(255, 198, 0, .16), 0 24px 50px rgba(7, 41, 77, .35);
    animation: haloPulse 4.5s ease-in-out infinite;
}
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; animation: spin 46s linear infinite; }
.orbit-ring::before { content: ""; position: absolute; inset: calc(50% - var(--r)); border: 2px dashed rgba(7, 41, 77, .25); border-radius: 50%; }
.orbit-sat {
    position: absolute; top: 50%; left: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.orbit-sat i {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
    font-size: 26px; color: #fff; background: var(--c); box-shadow: 0 14px 28px rgba(7, 41, 77, .28);
    animation: spinRev 46s linear infinite;
}
@keyframes spinRev { to { transform: rotate(-360deg); } }

/* ---------- process step cards (online page) ---------- */
.step-card {
    position: relative; height: 100%; padding: 40px 30px 32px; overflow: hidden; background: #fff; border-radius: 8px;
    box-shadow: 0 8px 34px rgba(7, 41, 77, .09); transition: transform .4s var(--ease-out), box-shadow .4s;
}
.step-card b { display: block; margin-bottom: 14px; font: 800 66px/1 'Montserrat', sans-serif; color: #e3e9ef; transition: color .4s; }
.step-card h4 { font-size: 22px; color: var(--epsa-navy); margin-bottom: 10px; }
.step-card p { margin: 0; font-size: 15px; }
.step-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: linear-gradient(90deg, var(--epsa-gold), var(--epsa-green)); transition: width .5s var(--ease-out); }
.step-card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(7, 41, 77, .18); }
.step-card:hover b { color: var(--epsa-gold); }
.step-card:hover::after { width: 100%; }

/* about page: motto & promise band */
.motto-panel h3 { margin-top: 0; }
.motto-panel p { font-size: 18px; margin-bottom: 0; }

/* ---------- inner-page banner: floating shapes + entrance ---------- */
.epsa-banner { position: relative; overflow: hidden; }
.epsa-banner > .container { position: relative; z-index: 2; }
.epsa-banner .hero-shapes .hs-1 { width: 84px; height: 84px; top: 16%; left: auto; right: 14%; }
.epsa-banner .hero-shapes .hs-2 { width: 130px; height: 130px; top: auto; bottom: -46px; left: 40%; }
.epsa-banner .hero-shapes .hs-3 { width: 150px; height: 108px; top: 12%; right: 2%; }
.epsa-banner .hero-shapes .hs-4 { width: 170px; height: 170px; bottom: -80px; right: 26%; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .wave-item { width: 150px; height: 150px; padding: 16px; }
    .wave-item i { font-size: 28px; margin-bottom: 6px; }
    .wave-item h5 { font-size: 14px; }
    .wave-cell { margin: 0 -10px; }
    .wave-cell:nth-child(even) { margin-top: 54px; }
}
@media (max-width: 991px) {
    .epsa-split h2 { font-size: 34px; }
    .wave { flex-wrap: wrap; padding-bottom: 30px; }
    .wave-cell, .wave-cell:nth-child(even) { margin: 8px; }
    .wave-item { width: 152px; height: 152px; }
    .cutout { max-width: 400px; }
    .epsa-banner .hero-shapes .hs-1, .epsa-banner .hero-shapes .hs-3 { display: none; }
    .cutout .hero-chip.chip-c { left: 0; }
    .cutout .hero-chip.chip-d { right: 0; }
}
@media (max-width: 575px) {
    .epsa-split h2 { font-size: 28px; }
    .dot-list li { font-size: 16px; }
    .wave-item { width: 140px; height: 140px; }
    .wave-item h5 { font-size: 13px; }
    .orbit { width: 300px; height: 300px; --r: 122px; --s: 54px; }
    .orbit-core { width: 110px; height: 110px; margin: -55px 0 0 -55px; font-size: 44px; }
    .orbit-sat i { font-size: 21px; }
    .main-btn.btn-outline, .split-cta .main-btn.btn-outline { margin-left: 0; }
}

/* ---------- fixes: core circle, mock-up layout, button spacing ---------- */
.orbit-core { animation: corePulse 4.5s ease-in-out infinite; }
@keyframes corePulse { 0%, 100% { transform: scale(.97); } 50% { transform: scale(1.04); } }

.split-cta .main-btn, .split-cta .main-btn.btn-outline { margin: 0 12px 10px 0; }
.online-cta .main-btn { margin: 0 12px 12px 0; }

/* dashboard mock-up on a brush stroke: keep the decoration peeking out around it */
.cutout.is-mock .brush { inset: -2% -9% -4% -6%; width: 115%; height: 106%; }
.cutout.is-mock .cut-dot { z-index: 1; top: 12%; left: -3%; width: 62px; height: 62px; }
.cutout.is-mock .cut-ring { z-index: 1; bottom: 16%; left: -5%; width: 46px; height: 46px; }
.cutout.is-mock .hero-chip.chip-d { top: 0; bottom: auto; right: 20%; }
.cutout.is-mock .hero-chip.chip-c { top: auto; bottom: 0; left: 8%; }
@media (max-width: 991px) {
    .cutout.is-mock .hero-chip.chip-d { right: 6%; }
    .cutout.is-mock .hero-chip.chip-c { left: 4%; }
}

/* photo variant: sit the photo off-centre so the brush stroke shows around it */
.cutout.is-photo .cut-media { inset: 6% 3% 0 6%; justify-content: flex-end; }
.cutout.is-photo .cut-media img.photo { width: 64%; height: 88%; margin: 0; }

/* ---------- never scroll sideways because of an element waiting to slide in ---------- */
body { overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
@media (max-width: 991px) {
    .js-reveal [data-reveal="right"] { transform: translate3d(0, 40px, 0); }
    .js-reveal [data-reveal="left"]  { transform: translate3d(0, 40px, 0); }
}
@media (max-width: 767px) { .motto-panel .col-md-6 + .col-md-6 { margin-top: 26px; } }


/* =====================================================================
   TEACHERS & STUDENTS PAGES
   ===================================================================== */

/* ---------- home: entry cards to the two pages ---------- */
.people-card {
    display: block; position: relative; height: 100%; padding: 46px 40px 40px; overflow: hidden; border-radius: 12px;
    color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--epsa-navy-deep), var(--epsa-navy) 70%, #0d3a6b);
    transition: transform .45s var(--ease-out), box-shadow .45s;
}
.people-card.pc-green { background: #093e77; }
.people-card::after {
    content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 198, 0, .38), transparent 70%); transition: transform .7s var(--ease-out);
}
.people-card:hover { transform: translateY(-12px); box-shadow: 0 30px 60px rgba(7, 41, 77, .32); color: #fff; }
.people-card:hover::after { transform: scale(1.6); }
.people-card .pc-icon {
    display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 24px; border-radius: 50%;
    font-size: 30px; color: var(--epsa-navy); background: var(--epsa-gold); transition: transform .7s var(--ease-out);
}
.people-card:hover .pc-icon { transform: rotate(360deg) scale(1.08); }
.people-card h4 { position: relative; z-index: 1; color: #fff; font-size: 26px; margin-bottom: 12px; }
.people-card p { position: relative; z-index: 1; color: #d0dcea; margin-bottom: 22px; }
.people-card .pc-link { position: relative; z-index: 1; font: 700 15px 'Montserrat', sans-serif; color: var(--epsa-gold); }
.people-card .pc-link i { margin-left: 10px; transition: transform .3s var(--ease-out); }
.people-card:hover .pc-link i { transform: translateX(8px); }

/* ---------- notices ---------- */
.demo-banner {
    padding: 12px 16px; text-align: center; font-weight: 600; color: #5c4400; background: #fff3cd; border-bottom: 3px solid #e0a800;
}
.data-empty { text-align: center; padding: 56px 30px; border: 2px dashed #cfd8e2; border-radius: 12px; background: rgba(255, 255, 255, .65); }
.data-empty i { font-size: 46px; color: var(--epsa-gold); margin-bottom: 16px; }
.data-empty h4 { color: var(--epsa-navy); font-size: 24px; margin-bottom: 8px; }
.data-empty p { margin: 0 auto; max-width: 520px; }
.epsa-online .data-empty { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.epsa-online .data-empty h4 { color: #fff; }
.epsa-online .data-empty p { color: #b8c4d2; }

/* ---------- filter controls (light background) ---------- */
.teacher-filters { margin-bottom: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-row button {
    padding: 9px 20px; border-radius: 30px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--epsa-navy);
    background: #fff; border: 1px solid #cfd8e2; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.pill-row button em { margin-left: 8px; padding: 1px 9px; border-radius: 12px; font-style: normal; font-size: 12px; background: #eef3f8; transition: background .25s, color .25s; }
.pill-row button:hover { border-color: var(--epsa-navy); transform: translateY(-2px); }
.pill-row button.is-active { color: #fff; background: var(--epsa-navy); border-color: var(--epsa-navy); }
.pill-row button.is-active em { color: var(--epsa-navy); background: var(--epsa-gold); }
.pill-row button.is-empty { opacity: .55; }
.filter-status { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: #6b7785; }

/* ---------- teacher cards ---------- */
.teacher-card {
    --c: var(--epsa-navy);
    position: relative; height: 100%; padding: 36px 26px 28px; overflow: hidden; text-align: center; background: #fff;
    border: 1px solid #e3e9ef; border-radius: 10px; box-shadow: 0 4px 22px rgba(7, 41, 77, .06);
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.teacher-card:hover { transform: translateY(-10px); border-color: var(--c); box-shadow: 0 26px 52px rgba(7, 41, 77, .2); }
.teacher-card > * { position: relative; }
.tc-avatar {
    position: relative; width: 112px; height: 112px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font: 800 34px 'Montserrat', sans-serif; color: #fff; background: var(--c); box-shadow: 0 14px 28px rgba(7, 41, 77, .2);
}
.tc-avatar::after {
    content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px dashed var(--c); opacity: .45;
    transition: transform 1.2s var(--ease-out), opacity .3s;
}
.teacher-card:hover .tc-avatar::after { transform: rotate(180deg); opacity: 1; }
.tc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tc-sample { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5c4400; background: #fff3cd; }
.teacher-card h4 { margin: 0 0 4px; font-size: 21px; color: var(--epsa-navy); }
.tc-role { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--c); }
.tc-subjects { margin: 0 0 14px; padding: 0; list-style: none; }
.tc-subjects li {
    display: inline-block; margin: 0 4px 6px; padding: 3px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
    color: var(--c); border: 1px solid var(--c);
}
.tc-qual { margin: 0 0 8px; font-size: 13.5px; color: #6b7785; }
.tc-qual i { margin-right: 4px; color: var(--c); }
.tc-bio { margin: 10px 0 0; font-size: 14px; line-height: 1.7; }
.teacher-card.pop { animation: popIn .5s var(--ease-out) both; }

/* ---------- statistic tiles ---------- */
.stat-tile {
    --tc: var(--epsa-navy);
    height: 100%; padding: 32px 22px 26px; text-align: center; background: #fff; border-top: 4px solid var(--tc); border-radius: 10px;
    box-shadow: 0 8px 32px rgba(7, 41, 77, .09); transition: transform .4s var(--ease-out), box-shadow .4s;
}
.stat-tile.t-green { --tc: var(--epsa-green); }
.stat-tile.t-gold { --tc: var(--epsa-gold); }
.stat-tile.t-royal { --tc: var(--epsa-royal); }
.stat-tile:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(7, 41, 77, .18); }
.stat-tile .st-icon {
    display: block; width: 60px; height: 60px; line-height: 60px; margin: 0 auto 16px; border-radius: 50%; font-size: 25px; color: #fff;
    background: var(--tc); transition: transform .6s var(--ease-out);
}
.stat-tile.t-gold .st-icon { color: var(--epsa-navy); }
.stat-tile:hover .st-icon { transform: rotateY(360deg) scale(1.08); }
.stat-tile .st-num, .stat-tile .stat-text { font: 800 44px/1 'Montserrat', sans-serif; color: var(--epsa-navy); }
.stat-tile .st-num small { margin-left: 3px; font-size: 24px; color: var(--tc); }
.stat-tile.t-gold .st-num small { color: #b88a00; }
.stat-tile p { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: #6b7785; }
.stat-tile.on-dark { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-top: 4px solid var(--tc); box-shadow: none; }
.stat-tile.on-dark .st-num, .stat-tile.on-dark .stat-text { color: #fff; }
.stat-tile.on-dark p { color: #b8c4d2; }
.stat-tile.on-dark .st-num { font-size: 36px; }

/* ---------- chart cards ---------- */
.chart-card { height: 100%; padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(7, 41, 77, .09); }
.chart-card h4 { margin: 0 0 24px; font-size: 20px; color: var(--epsa-navy); }
.chart-card.on-dark { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.chart-card.on-dark h4 { color: #fff; }
.right-charts .chart-card + .chart-card { margin-top: 30px; }
.epsa-msce .col-lg-4 .chart-card { margin-top: 30px; }

.hbars { margin: 0; padding: 0; list-style: none; }
.hbars li { margin-bottom: 18px; }
.hbars li:last-child { margin-bottom: 0; }
.hb-top { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 15px; color: var(--epsa-navy); }
.hb-top b { font-weight: 700; }
.hb-track { height: 12px; overflow: hidden; border-radius: 8px; background: #e8eef4; }
.hb-fill { display: block; width: 0; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--epsa-gold), var(--epsa-green)); transition: width 1.5s var(--ease-out) .35s; }
.is-in .hb-fill, html:not(.js-reveal) .hb-fill { width: var(--w); }
.hbars.on-dark .hb-top { color: #fff; }
.hbars.on-dark .hb-track { background: rgba(255, 255, 255, .15); }

.donut { position: relative; width: 200px; height: 200px; margin: 6px auto 20px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 4.4; }
.donut .track { stroke: #e8eef4; }
.donut.on-dark .track { stroke: rgba(255, 255, 255, .14); }
.donut .arc { stroke-dasharray: 0 100; stroke-dashoffset: var(--o); transition: stroke-dasharray 1.7s var(--ease-out) .3s; }
.is-in .donut .arc, html:not(.js-reveal) .donut .arc { stroke-dasharray: var(--a) 100; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-center b { font: 800 38px/1 'Montserrat', sans-serif; color: var(--epsa-navy); }
.donut-center > span { margin-top: 5px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #6b7785; }
.donut.on-dark .donut-center b { color: #fff; }
.donut.on-dark .donut-center > span { color: #b8c4d2; }
.legend { margin: 0; padding: 0; list-style: none; text-align: center; }
.legend li { display: inline-block; margin: 0 12px 6px; font-size: 14px; color: #6b7785; }
.legend li i { display: inline-block; width: 11px; height: 11px; margin-right: 7px; border-radius: 50%; }
.legend li b { color: var(--epsa-navy); }
.legend.on-dark li { color: #b8c4d2; }
.legend.on-dark li b { color: #fff; }

.colchart { display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; }
.col-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.col-item b { margin-bottom: 8px; font: 800 24px/1 'Montserrat', sans-serif; color: #fff; }
.col-track { display: flex; align-items: flex-end; width: 100%; max-width: 80px; height: 180px; border-radius: 10px 10px 0 0; background: rgba(255, 255, 255, .07); }
.col-bar { display: block; width: 100%; height: 0; border-radius: 10px 10px 0 0; transition: height 1.5s var(--ease-out) .4s; }
.col-bar.cb0 { background: var(--epsa-gold); }
.col-bar.cb1 { background: #43b26b; }
.col-bar.cb2 { background: #5a8fe0; }
.col-bar.cb3 { background: #e57373; }
.is-in .col-bar, html:not(.js-reveal) .col-bar { height: var(--h); }
.col-item span { margin-top: 12px; font-size: 14px; font-weight: 700; color: #fff; }
.col-item small { color: #9fb4cb; font-size: 12px; }

@media (max-width: 991px) {
    .epsa-msce .col-lg-4 .chart-card { margin-top: 30px; }
}
@media (max-width: 575px) {
    .chart-card { padding: 22px 18px; }
    .colchart { gap: 6px; }
    .col-track { height: 140px; }
    .stat-tile .st-num, .stat-tile .stat-text { font-size: 36px; }
}

/* MSCE panel: cards size to their content (they must not stretch to the tallest column) */
.epsa-msce .chart-card { height: auto; }
.epsa-msce .ring-card { text-align: center; }
.epsa-msce .hero-shapes .hs-3 { left: auto; right: 14%; top: 5%; }
.epsa-msce .right-charts .chart-card:first-child { margin-top: 0; }
.donut-center b .count-up { font: inherit; }

/* narrow desktops (992-1199px): keep the header on tidy single lines */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-top .header-contact ul li:nth-child(2) { display: none; }   /* phone is shown again in the header below */
    .support-button .support { margin-right: 14px; }
    .support-button .support .cont span { font-size: 18px; }
    .support-button .button .main-btn { padding: 0 22px; }
}

/* portraits: keep the face in frame when a tall photo is cropped to a circle */
.tc-avatar img { object-position: 50% 20%; }

/* =====================================================================
   PRINCIPAL PROFILE  (photo | name + role + text | divider + details)
   ===================================================================== */
.principal-profile { display: flex; align-items: stretch; gap: 46px; margin-top: 10px; }
.pp-photo {
    position: relative; flex: 0 0 322px; width: 322px; height: 322px; overflow: hidden; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font: 800 64px 'Montserrat', sans-serif; color: var(--epsa-navy);
    background: var(--epsa-gold); box-shadow: 0 20px 46px rgba(7, 41, 77, .22);
}
.pp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1s var(--ease-out); }
.pp-photo:hover img { transform: scale(1.07); }
.pp-photo::after {                     /* tri-colour edge, like the menu stripe */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    background: linear-gradient(90deg, var(--epsa-navy) 0 34%, var(--epsa-gold) 34% 67%, var(--epsa-green) 67% 100%);
}
.pp-body { flex: 1 1 auto; align-self: center; }
.pp-body h3 { margin: 0 0 12px; font-size: 36px; white-space: nowrap; font-weight: 700; line-height: 1.15; color: var(--epsa-navy); }
.pp-role { margin: 0 0 22px; font-size: 19px; font-weight: 700; color: var(--epsa-royal); }
.pp-text { margin: 0; font-size: 17px; line-height: 1.95; color: #6b7785; }
.pp-details { flex: 0 0 330px; margin: 0; padding: 6px 0 6px 46px; list-style: none; border-left: 1px solid #dfe5eb; align-self: stretch; }
.pp-details li { padding: 9px 0; font-size: 17px; line-height: 1.6; color: #6b7785; }
.pp-details b { margin-right: 8px; color: var(--epsa-navy); }
.pp-details a { color: #6b7785; transition: color .25s; }
.pp-details a:hover { color: var(--epsa-royal); }
.pp-icons { display: flex; gap: 12px; margin-top: 20px; }
.pp-ic {
    width: 48px; height: 48px; line-height: 48px; text-align: center; border-radius: 50%; font-size: 19px; color: #fff !important;
    transition: transform .35s var(--ease-out), box-shadow .35s;
}
.pp-ic.ic-navy { background: var(--epsa-navy); }
.pp-ic.ic-green { background: var(--epsa-green); }
.pp-ic.ic-gold { background: var(--epsa-gold); color: var(--epsa-navy) !important; }
.pp-ic:hover { transform: translateY(-6px) scale(1.1); box-shadow: 0 14px 26px rgba(7, 41, 77, .28); }

@media (max-width: 1199px) {
    .principal-profile { gap: 32px; }
    .pp-photo { flex-basis: 270px; width: 270px; height: 270px; }
    .pp-body h3 { font-size: 30px; }
    .pp-details { flex-basis: 290px; padding-left: 32px; }
}
@media (max-width: 991px) {
    .principal-profile { flex-direction: column; gap: 28px; }
    .pp-photo { flex: none; width: 100%; max-width: 340px; height: 340px; }
    .pp-body { align-self: stretch; }
    .pp-details { flex: none; padding: 22px 0 0; border-left: 0; border-top: 1px solid #dfe5eb; }
}
@media (max-width: 575px) {
    .pp-body h3 { font-size: 30px; }
    .pp-photo { max-width: none; height: 320px; }
}
@media (max-width: 991px) { .pp-body h3 { font-size: 36px; } }
@media (max-width: 400px) { .pp-body h3 { font-size: 27px; } }

/* details still to be supplied by the school */
.pp-tba { font-style: italic; color: #9aa6b4; border-bottom: 1px dashed #c3ccd6; }
.pp-details a[href^="mailto:"] { word-break: break-all; }

/* narrow desktops (992-1199px): header button beside the phone number, hero chips clear of the headline */
@media (min-width: 992px) and (max-width: 1199px) {
    .support-button .support .icon { display: none; }
    .support-button .support { margin-right: 0; }
    .support-button .button { margin-left: 22px; }
    .hero-crest .hero-chip { display: none; }   /* repeats the badges under the buttons; no room beside the crest here */
}


/* =====================================================================
   REGISTRATION PAGE
   ===================================================================== */
.reg-card { padding: 44px 46px 40px; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(7, 41, 77, .12); }
.reg-head h2 { margin: 0 0 8px; font-size: 36px; color: var(--epsa-navy); }
.reg-head .hl { color: var(--epsa-royal); }
.reg-head p { margin: 14px 0 0; }
.reg-head em, .reg-field em { font-style: normal; color: #d64545; }

/* stepper */
.reg-steps { --p: 0%; position: relative; display: flex; justify-content: space-between; margin: 34px 0 38px; padding: 0; list-style: none; counter-reset: none; }
.reg-steps::before, .reg-steps::after { content: ""; position: absolute; top: 20px; left: 20px; height: 3px; border-radius: 2px; }
.reg-steps::before { right: 20px; background: #e3e9ef; }
.reg-steps::after { width: calc((100% - 40px) * var(--p) / 100%); background: linear-gradient(90deg, var(--epsa-gold), var(--epsa-green)); transition: width .6s var(--ease-out); }
.reg-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.rs-num {
    position: relative; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font: 700 16px 'Montserrat', sans-serif; color: #8a95a3; background: #fff; border: 3px solid #e3e9ef;
    transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease-out);
}
.rs-num i { display: none; }
.rs-txt { font-size: 13px; font-weight: 600; color: #8a95a3; transition: color .3s; }
.reg-steps li.is-current .rs-num { color: var(--epsa-navy); background: var(--epsa-gold); border-color: var(--epsa-gold); transform: scale(1.12); box-shadow: 0 8px 20px rgba(255, 198, 0, .45); }
.reg-steps li.is-current .rs-txt { color: var(--epsa-navy); }
.reg-steps li.is-done .rs-num { color: #fff; background: var(--epsa-green); border-color: var(--epsa-green); }
.reg-steps li.is-done .rs-num b { display: none; }
.reg-steps li.is-done .rs-num i { display: block; }
.reg-steps li.is-done .rs-txt { color: var(--epsa-green); }

/* steps */
.reg-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.reg-step.is-active { animation: stepIn .55s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
.reg-step legend { width: auto; margin: 0 0 22px; padding: 0; font: 700 22px 'Montserrat', sans-serif; color: var(--epsa-navy); }
.reg-lead { margin: 0 0 20px; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.reg-field.wide { grid-column: 1 / -1; }
.reg-field { position: relative; margin-bottom: 4px; transition: opacity .3s; }
.reg-field.is-off { opacity: .45; }
.reg-field label, .reg-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--epsa-navy); }
.reg-field label small { font-weight: 500; color: #8a95a3; }
.reg-field input[type="text"], .reg-field input[type="tel"], .reg-field input[type="date"], .reg-field select, .reg-field textarea {
    width: 100%; padding: 14px 16px; font-size: 16px; color: #1c2b3a; background: #fff; border: 1.5px solid #cfd8e2; border-radius: 8px;
    outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.reg-field textarea { resize: vertical; min-height: 92px; }
.reg-field input:focus, .reg-field select:focus, .reg-field textarea:focus { border-color: var(--epsa-navy); box-shadow: 0 0 0 4px rgba(255, 198, 0, .3); }
.reg-field input:disabled { background: #f1f4f7; cursor: not-allowed; }
.reg-field.has-error input, .reg-field.has-error select, .reg-field.has-error textarea { border-color: #d64545; background: #fff8f8; }
.reg-err { min-height: 0; margin: 0; font-size: 13px; font-weight: 600; color: #d64545; }
.reg-field.has-error .reg-err { min-height: 18px; margin-top: 7px; animation: errIn .3s var(--ease-out); }
@keyframes errIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.reg-hint { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--epsa-green); }
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* radio pills + choice cards + checkboxes */
.pill-choice { display: flex; gap: 12px; }
.pill-choice label, .choice { position: relative; margin: 0; cursor: pointer; }
.pill-choice input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill-choice label span {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-size: 16px; font-weight: 600; color: var(--epsa-navy);
    border: 1.5px solid #cfd8e2; border-radius: 30px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.pill-choice label:hover span { border-color: var(--epsa-navy); transform: translateY(-2px); }
.pill-choice input:checked + span { color: #fff; background: var(--epsa-navy); border-color: var(--epsa-navy); }
.pill-choice input:focus-visible + span, .choice input:focus-visible + .ch-body { box-shadow: 0 0 0 4px rgba(255, 198, 0, .45); }
.reg-field.has-error .pill-choice span, .reg-field.has-error .ch-body { border-color: #d64545; }

.choice-cards { display: grid; gap: 14px; margin-bottom: 10px; }
.choice-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.choice-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ch-body {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 18px 12px;
    text-align: center; color: var(--epsa-navy); background: #fff; border: 1.5px solid #cfd8e2; border-radius: 12px;
    transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.ch-body b { font: 700 19px 'Montserrat', sans-serif; }
.ch-body i { margin-bottom: 4px; font-size: 26px; color: var(--epsa-royal); transition: color .3s, transform .5s var(--ease-out); }
.ch-body small { font-size: 13px; color: #6b7785; transition: color .3s; }
.choice:hover .ch-body { transform: translateY(-4px); border-color: var(--epsa-navy); box-shadow: 0 12px 26px rgba(7, 41, 77, .14); }
.choice input:checked + .ch-body { color: #fff; background: var(--epsa-navy); border-color: var(--epsa-navy); box-shadow: 0 14px 30px rgba(7, 41, 77, .28); }
.choice input:checked + .ch-body i { color: var(--epsa-gold); transform: scale(1.15); }
.choice input:checked + .ch-body small { color: #b8c4d2; }
.choice input:checked + .ch-body::after {
    content: "\f00c"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; line-height: 22px; text-align: center;
    font: 12px FontAwesome; color: var(--epsa-navy); background: var(--epsa-gold); border-radius: 50%; animation: popIn .35s var(--ease-out) both;
}
.reg-check { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; cursor: pointer; font-weight: 500; color: #4a5563; line-height: 1.6; }
.reg-check input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--epsa-navy); cursor: pointer; }

/* review summary */
.reg-sum section { margin-bottom: 22px; padding: 22px 26px; background: #f5f8fb; border-radius: 10px; border-left: 4px solid var(--epsa-gold); }
.reg-sum section:nth-child(2) { border-left-color: var(--epsa-green); }
.reg-sum section:nth-child(3) { border-left-color: var(--epsa-royal); }
.reg-sum h5 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--epsa-navy); }
.reg-edit { padding: 4px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--epsa-royal); background: #fff; border: 1px solid #cfd8e2; border-radius: 20px; cursor: pointer; transition: background .25s, color .25s; }
.reg-edit:hover { color: #fff; background: var(--epsa-royal); }
.reg-sum dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.reg-sum dt { font-weight: 600; color: #6b7785; }
.reg-sum dd { margin: 0; font-weight: 700; color: var(--epsa-navy); word-break: break-word; }

/* navigation buttons */
.reg-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid #e6ebf0; }
.reg-nav .main-btn { cursor: pointer; margin: 0; }
.reg-nav .btn-outline { margin-right: auto; margin-left: 0; }
.rs-spin { display: none; width: 18px; height: 18px; margin-left: 10px; vertical-align: -3px; border: 3px solid rgba(7, 41, 77, .25); border-top-color: var(--epsa-navy); border-radius: 50%; animation: spin .8s linear infinite; }
#reg-submit.is-loading .rs-spin { display: inline-block; }
#reg-submit:disabled { opacity: .7; cursor: wait; }

/* result panel */
.reg-done { text-align: center; animation: stepIn .6s var(--ease-out) both; }
.rd-icon { width: 92px; height: 92px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 40px; color: var(--epsa-navy); background: rgba(255, 198, 0, .25); }
.reg-done.is-sent .rd-icon { background: rgba(30, 107, 58, .14); }
.reg-done.is-failed .rd-icon { color: #b3261e; background: rgba(214, 69, 69, .14); }
.rd-icon svg { width: 84px; height: 84px; }
.rd-icon svg circle { fill: none; stroke: var(--epsa-green); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: drawTick .8s var(--ease-out) .1s forwards; }
.rd-icon svg path { fill: none; stroke: var(--epsa-green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawTick .5s var(--ease-out) .7s forwards; }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
.reg-done h3 { margin: 0 0 12px; font-size: 28px; color: var(--epsa-navy); }
.reg-done > p { max-width: 560px; margin: 0 auto 28px; }
.reg-done .reg-sum { text-align: left; }
.reg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.reg-actions .main-btn { margin: 0; cursor: pointer; }
.reg-print-head { display: none; }

/* side panels */
.reg-aside { position: sticky; top: 100px; }
.reg-info { margin-bottom: 26px; padding: 30px 28px; background: #fff; border-radius: 12px; box-shadow: 0 10px 34px rgba(7, 41, 77, .09); border-top: 4px solid var(--epsa-gold); }
.reg-info h4 { margin: 0 0 16px; font-size: 21px; color: var(--epsa-navy); }
.reg-info ul { margin: 0; padding: 0; list-style: none; }
.reg-info li { position: relative; margin-bottom: 14px; padding-left: 40px; line-height: 1.6; }
.reg-info li i { position: absolute; left: 0; top: 0; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; font-size: 13px; color: #fff; background: var(--epsa-navy); }
.reg-help { color: #d0dcea; background: linear-gradient(135deg, var(--epsa-navy-deep), var(--epsa-navy)); border-top-color: var(--epsa-green); }
.reg-help h4 { color: #fff; }
.reg-help p { color: #d0dcea; }
.reg-call { display: block; margin: 4px 0 14px; font: 800 24px 'Montserrat', sans-serif; color: var(--epsa-gold); }
.reg-call i { margin-right: 10px; }
.reg-addr i { margin-right: 8px; color: var(--epsa-gold); }
.reg-help .main-btn { margin-top: 6px; }

@media (max-width: 991px) {
    .reg-aside { position: static; margin-top: 30px; }
    .reg-card { padding: 34px 26px 30px; }
}
@media (max-width: 575px) {
    .reg-card { padding: 28px 18px 26px; }
    .reg-head h2 { font-size: 28px; }
    .reg-grid { grid-template-columns: 1fr; }
    .choice-cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .choice-cards.cols-3 { grid-template-columns: 1fr; }
    .rs-txt { font-size: 11px; }
    .rs-num { width: 36px; height: 36px; }
    .reg-steps::before, .reg-steps::after { top: 17px; }
    .reg-sum dl { grid-template-columns: 1fr; gap: 2px; }
    .reg-sum dd { margin-bottom: 8px; }
    .reg-nav { flex-wrap: wrap; }
}

/* print / save as PDF: only the registration summary */
@media print {
    body * { visibility: hidden !important; }
    #reg-done, #reg-done * { visibility: visible !important; }
    #reg-done { position: absolute; left: 0; top: 0; width: 100%; padding: 0; animation: none; }
    #reg-done-actions, #reg-done-icon { display: none !important; }
    .reg-print-head { display: block !important; margin-bottom: 18px; text-align: left; }
    .reg-print-head b { display: block; font-size: 24px; }
    .reg-sum section { break-inside: avoid; }
}

/* the template turns every <select> into a custom widget; the registration form keeps the native, full-width control */
.reg-field select { display: block !important; }
.reg-field .nice-select { display: none !important; }
.reg-field select { appearance: auto; height: auto; }
.reg-field select { min-height: 54px; }
