/* =====================================================================
   Apply Hub Educational Network — public stylesheet
   Design tokens, shared components, then page sections.
   ===================================================================== */

:root {
    --navy: #17131B;
    --navy-deep: #100D15;
    --blue: #4776B8;
    --gold: #873B91;
    --gold-dark: #6D2D7A;
    --white: #FFFFFF;
    --light: #F6F3F9;
    --text: #17131B;
    --muted: #6C6874;
    --line: #E6E0EA;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(35, 20, 42, .06), 0 4px 12px rgba(35, 20, 42, .05);
    --shadow: 0 8px 30px rgba(35, 20, 42, .10);
    --shadow-lg: 0 22px 60px rgba(35, 20, 42, .16);

    --font-body: 'Rajdhani', sans-serif;
    --font-head: 'Rajdhani', sans-serif;

    --header-h: 78px;
    --container: 1180px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: 0;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0; padding: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow { max-width: 820px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.muted { color: var(--muted); }

/* ---------------------------------------------------------------- Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: transform .18s var(--ease), background .18s var(--ease),
                color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(71, 118, 184, .4); outline-offset: 2px; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; box-shadow: var(--shadow); }

.btn-accent { background: var(--gold); color: #fff; }
.btn-accent:hover { background: var(--gold-dark); color: #fff; box-shadow: 0 10px 24px rgba(109, 45, 122, .3); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--light); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn-ghost-light { background: transparent; color: #fff; }
.btn-ghost-light:hover { color: var(--gold); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--blue);
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon { flex: 0 0 auto; vertical-align: middle; }

/* ---------------------------------------------------------------- Brand */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
    color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-logo { display: block; width: min(320px, 64vw); max-width: 100%; height: auto; max-height: 106px; object-fit: contain; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--blue));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 0;
    flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: 0; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- Announcement */

.announcement {
    background: var(--navy);
    color: #EAF2FB;
    font-size: .88rem;
}
.announcement-inner { padding: 9px 24px; text-align: center; }
.announcement a { color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------- Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s var(--ease);
}
.site-header::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--blue));
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-h);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--text);
    font-size: .92rem;
    font-weight: 500;
    white-space: nowrap;
}
.nav-link:hover { color: var(--navy); background: var(--light); }
.nav-link.is-active { color: var(--navy); font-weight: 600; background: var(--light); }

.nav-caret { color: var(--muted); }

.subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .18s var(--ease);
}
.nav-item:hover .subnav,
.nav-item:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
}
.subnav a:hover { background: var(--light); color: var(--navy); }

.primary-nav { display: flex; align-items: center; gap: 14px; }
.nav-cta { padding: 12px 22px; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}
.nav-toggle-close { display: none; }

/* ---------------------------------------------------------------- Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #F0E4F2 0%, #E6EDF8 100%);
    color: var(--text);
    padding: clamp(54px, 7vw, 92px) 0;
    isolation: isolate;
}
.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(247, 243, 249, .78) 0%, rgba(240, 232, 244, .68) 55%, rgba(226, 236, 249, .56) 100%);
}
.hero-with-image .hero-shade { background: linear-gradient(100deg, rgba(247, 243, 249, .76) 0%, rgba(240, 232, 244, .64) 60%, rgba(226, 236, 249, .5) 100%); }

.hero-inner { max-width: 820px; }
.hero-center .hero-inner { margin: 0 auto; text-align: center; }
.hero-left .hero-inner { margin: 0; text-align: left; }

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(135, 59, 145, .1);
    border: 1px solid rgba(135, 59, 145, .24);
    color: #672B73;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-title {
    color: var(--text);
    max-width: 760px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.12;
    margin-bottom: .42em;
}
.hero-center .hero-title { margin-left: auto; margin-right: auto; }
.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: rgba(23, 19, 27, .82);
    max-width: 680px;
    margin: 0 0 2rem;
}
.hero-center .hero-description { margin: 0 auto 2rem; text-align: justify; }
.hero-left .hero-description { margin-left: 0; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}
.hero-center .hero-actions { justify-content: center; }
.hero-left .hero-actions { justify-content: flex-start; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    justify-content: flex-start;
    margin-top: 34px;
    padding: 0;
    list-style: none;
    font-size: .86rem;
    color: rgba(23, 19, 27, .78);
}
.hero-center .hero-trust { justify-content: center; }
.hero-left .hero-trust { justify-content: flex-start; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--gold); }
.hero .btn-outline-light { color: var(--text); border-color: rgba(23, 19, 27, .28); }
.hero .btn-outline-light:hover { color: var(--text); background: rgba(255, 255, 255, .55); border-color: var(--blue); }
.hero .btn-ghost-light { color: var(--text); }
.hero .btn-ghost-light:hover { color: var(--gold-dark); }

/* ---------------------------------------------------------------- Sections */

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-light { background: var(--light); }
.section-navy { background: linear-gradient(135deg, #49234F 0%, #253F68 100%); }

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(32px, 4vw, 52px);
    text-align: center;
}
.section-head-light .section-title { color: #fff; }
.section-head-light .section-lead { color: rgba(255, 255, 255, .78); }

.eyebrow {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow-light { color: var(--gold); }

.section-title { margin-bottom: .4em; }
.section-title-light { color: #fff; }

.section-lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0;
}

.section-foot { margin-top: 40px; text-align: center; }

.prose { font-size: 1.02rem; color: #3B4B5D; text-align: justify; }
.prose p:last-child { margin-bottom: 0; }
.prose-light { color: rgba(255, 255, 255, .86); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.page-block { margin-top: 2.5rem; }

/* ---------------------------------------------------------------- Split section */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.split-media img,
.split-media .media-placeholder {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.split-body .btn { margin-top: 12px; }

.media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, #F0E7F3, #E4EDF8);
    color: var(--blue);
}
.media-placeholder-sm { aspect-ratio: 4 / 3; border-radius: 0; }
.media-placeholder-light {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #AFC4E4;
}

/* ---------------------------------------------------------------- Feature grid */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card h3 { margin-bottom: .35em; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--light);
    color: var(--navy);
}
.feature-card:hover .feature-icon { background: var(--navy); color: var(--gold); }

/* ---------------------------------------------------------------- Card grid */

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

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-photo,
.university-cover {
    width: calc(100% + 52px);
    margin: -28px -26px 6px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.service-card-photo img,
.university-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.service-card h3 { margin-bottom: .4em; }
.service-card h3 a { color: var(--navy); }
.service-card p { color: var(--muted); font-size: .95rem; }
.service-card .link-arrow { margin-top: auto; }

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(71, 118, 184, .1);
    color: var(--blue);
}

.country-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.country-media { overflow: hidden; }
.country-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s var(--ease); }
.country-card:hover .country-media img { transform: scale(1.04); }
.country-body { padding: 22px 24px 26px; }
.country-body h3 { margin-bottom: .35em; }
.country-body h3 a { color: var(--navy); }
.country-body p { color: var(--muted); font-size: .93rem; }
.country-body .link-arrow { margin-top: 6px; }

.university-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.university-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.university-head { display: flex; align-items: flex-start; gap: 14px; }
.university-head h3 { font-size: 1.02rem; margin-bottom: .2em; }
.university-head h3 a { color: var(--navy); }
.university-head .muted { font-size: .85rem; margin: 0; }
.university-logo {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--light);
    color: var(--navy);
    overflow: hidden;
}
.university-logo img { width: 100%; height: 100%; object-fit: contain; }
.university-card .btn { align-self: flex-start; margin-top: auto; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tag {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--light);
    color: var(--navy);
    font-size: .76rem;
    font-weight: 600;
}

/* ---------------------------------------------------------------- Testimonials */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.testimonial-card {
    position: relative;
    margin: 0;
    padding: 32px 28px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .88);
}
.quote-mark { color: var(--gold); opacity: .85; }
.testimonial-card blockquote {
    margin: 14px 0 22px;
    font-size: .98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .9);
}
.testimonial-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card figcaption strong { color: #fff; font-family: var(--font-head); }
.testimonial-card figcaption span { font-size: .82rem; color: rgba(255, 255, 255, .62); }

/* ---------------------------------------------------------------- CTA band */

.cta-band {
    position: relative;
    padding: clamp(44px, 5vw, 64px) 0;
    background: linear-gradient(120deg, #F0E4F2 0%, #E6EDF8 100%);
    color: var(--text);
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-inner h2 { color: var(--text); margin-bottom: .25em; }
.cta-inner p { margin: 0; color: var(--muted); }
.cta-band .btn-accent { background: var(--navy); color: #fff; }
.cta-band .btn-accent:hover { background: var(--navy-deep); color: #fff; box-shadow: 0 12px 26px rgba(35, 20, 42, .24); }

/* ---------------------------------------------------------------- Latest news */

.latest-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 40px;
    align-items: start;
}
.latest-posts { display: grid; gap: 18px; }

.post-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s var(--ease);
}
.post-card:hover { box-shadow: var(--shadow); }
.post-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.post-body { padding: 20px 20px 20px 0; }
.post-meta { font-size: .78rem; font-weight: 600; color: var(--blue); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0; }
.post-body h3 { font-size: 1.05rem; margin-bottom: .35em; }
.post-body h3 a { color: var(--navy); }
.post-body p { font-size: .92rem; color: var(--muted); }

.event-panel {
    background: var(--light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.event-panel-title { font-size: 1.05rem; margin-bottom: 18px; }
.event-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.event-card-photo { width: 72px; height: 56px; flex: 0 0 72px; border-radius: var(--radius-sm); object-fit: cover; }
.event-card:last-of-type { border-bottom: 0; }
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
}
.event-day { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1; }
.event-month { font-size: .68rem; text-transform: uppercase; letter-spacing: 0; color: var(--gold); }
.event-card h4 { margin: 0 0 2px; font-size: .95rem; font-family: var(--font-head); }
.event-card h4 a { color: var(--navy); }
.event-card .muted { font-size: .8rem; margin: 0; }

/* ---------------------------------------------------------------- Page hero */

.page-hero {
    background: linear-gradient(120deg, #F0E4F2 0%, #E6EDF8 100%);
    color: var(--text);
    padding: clamp(52px, 6vw, 78px) 0;
}
.page-hero h1 { color: var(--text); margin-bottom: .25em; }
.page-hero-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------------------------------------------------------------- About extras */

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
}
.value-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .94rem;
}
.value-item .icon { color: var(--blue); margin-top: 2px; }

.step-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    counter-reset: step;
}
.step-item {
    position: relative;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
}
.step-number {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
}

.split-director .split-media img,
.split-director .split-media .media-placeholder { aspect-ratio: 4 / 4.4; }
.director-sign { display: flex; flex-direction: column; margin-top: 22px; }
.director-sign strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.director-sign span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.team-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.team-photo img,
.team-photo .media-placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.team-card h3 { font-size: 1rem; margin-bottom: .2em; }
.team-card .muted { font-size: .84rem; margin-bottom: .6em; }
.team-bio { font-size: .86rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- Pagination */

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: .9rem;
    font-weight: 500;
}
.page-link:hover { border-color: var(--navy); color: var(--navy); }
.page-link.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-gap { color: var(--muted); padding: 0 4px; }

/* ---------------------------------------------------------------- Status page */

.status-page { min-height: 58vh; display: grid; place-items: center; }
.status-inner { text-align: center; }
.status-code {
    font-family: var(--font-head);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    color: var(--line);
    margin: 0 0 .1em;
}
.status-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
    background: linear-gradient(135deg, #211328 0%, #172A49 100%);
    color: rgba(255, 255, 255, .74);
    padding-top: clamp(48px, 6vw, 72px);
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand p { margin: 18px 0; line-height: 1.7; }
.footer-logo { display: block; width: min(220px, 70vw); max-width: 100%; max-height: 58px; height: auto; object-fit: contain; }
.footer-company { display: block; margin-top: 10px; color: #fff; font-family: var(--font-head); }

.footer-heading {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 18px;
    letter-spacing: 0;
}
.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: var(--gold); }

.footer-contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-list .icon { color: var(--gold); margin-top: 3px; }
.footer-contact-list a { color: rgba(255, 255, 255, .72); }
.footer-contact-list a:hover { color: var(--gold); }

.footer-cta { margin-top: 20px; }

.social-list { display: flex; gap: 10px; list-style: none; padding: 0; }
.social-list a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.social-list a:hover { background: var(--gold); color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px;
    font-size: .82rem;
}
.footer-bottom-inner p { margin: 0; }
.footer-note { color: rgba(255, 255, 255, .45); }

/* ---------------------------------------------------------------- Cookie notice */

.cookie-notice {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
}
.cookie-notice p { margin: 0; flex: 1 1 260px; }
.cookie-notice[hidden] { display: none; }

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
    .feature-grid, .card-grid, .testimonial-grid, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .latest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .primary-nav {
        position: fixed;
        inset: calc(var(--header-h) + 61px) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 20px 28px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all .22s var(--ease);
    }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { padding: 13px 14px; border-radius: 10px; font-size: 1rem; justify-content: space-between; }
    .subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 14px;
        display: none;
    }
    .nav-item.is-open .subnav { display: block; }
    .nav-item.is-open .nav-caret { transform: rotate(180deg); }
    .nav-cta { margin-top: 14px; justify-content: center; }

    .split { grid-template-columns: 1fr; }
    .split-media { order: -1; }
    .hero-center .hero-inner { text-align: center; }
    .hero-actions, .hero-trust { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .feature-grid, .card-grid, .testimonial-grid, .value-grid, .team-grid { grid-template-columns: 1fr; }
    .step-list { grid-template-columns: 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .post-body { padding: 0 20px 20px; }
    .post-media img { aspect-ratio: 16 / 9; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .btn-lg { width: 100%; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}

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

/* =====================================================================
   Archive, detail and form components (added with the full page build)
   ===================================================================== */

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

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 16px; font-size: .82rem; }
.breadcrumbs ol {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    list-style: none; padding: 0; margin: 0;
    color: rgba(23, 19, 27, .66);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 4px; opacity: .5; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { color: var(--gold-dark); }

.page-hero-image { background-size: cover; background-position: center; }

/* Filters */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
    padding: 18px 20px; margin-bottom: 28px;
    background: var(--light); border: 1px solid var(--line); border-radius: var(--radius);
}
.filter-bar-stack { display: block; }
.filter-search { flex: 1 1 260px; }
.filter-search input,
.filter-field input,
.filter-field select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; font-family: var(--font-body); font-size: .93rem; color: var(--text);
}
.filter-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71, 118, 184, .14);
}
.filter-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.filter-field { display: grid; gap: 6px; }
.filter-field label { font-size: .8rem; font-weight: 600; color: var(--navy); }
.filter-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }

.notice {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 18px; margin-bottom: 24px;
    background: #FFF8E6; border: 1px solid #F0DFB0; border-radius: var(--radius-sm);
    color: #6E5310; font-size: .88rem;
}
.notice .icon { color: var(--gold-dark); margin-top: 2px; flex: 0 0 auto; }
.notice p { margin: 0; }

.empty-panel {
    display: grid; place-items: center; gap: 10px;
    padding: 56px 24px; text-align: center;
    background: var(--light); border: 1px dashed var(--line); border-radius: var(--radius);
    color: var(--muted);
}
.empty-panel .icon { color: #B9C9DA; }
.empty-panel h2 { margin: 0; font-size: 1.25rem; }
.empty-panel p { margin: 0; max-width: 440px; font-size: .93rem; }

/* Detail layout */
.detail-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 52px);
    align-items: start;
}
.detail-main { min-width: 0; }
.detail-side { display: grid; gap: 18px; position: sticky; top: 100px; }
.detail-image { width: 100%; border-radius: var(--radius); margin-bottom: 18px; object-fit: cover; }
.side-card {
    padding: 24px; background: var(--light);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.side-card h2 { font-size: 1.1rem; margin-bottom: .45em; }
.side-card p { font-size: .9rem; color: var(--muted); }
.side-card .btn + .btn { margin-top: 8px; }

.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact-card {
    padding: 18px 20px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.fact-card h2, .fact-card h3 { font-size: .95rem; margin-bottom: .4em; color: var(--navy); }
.fact-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.fact-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 18px; font-size: .9rem; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 500; }
.review-note { font-size: .82rem; color: var(--muted); margin-top: 24px; }

.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--blue); margin-top: 3px; flex: 0 0 auto; }
.check-list-tight { gap: 6px; font-size: .88rem; }

/* FAQ accordion */
.faq-group { margin-bottom: 36px; }
.faq-group h2 { font-size: 1.2rem; margin-bottom: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-item summary {
    position: relative; padding: 16px 48px 16px 20px;
    font-weight: 600; color: var(--navy); cursor: pointer; list-style: none;
    font-size: .96rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%); font-size: 1.3rem; color: var(--blue); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); background: var(--light); }
.faq-answer { padding: 16px 20px 20px; font-size: .94rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-chips { margin-bottom: 28px; }

/* Blog archive */
.tab-bar { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--light); border-radius: 999px; }
.tab {
    padding: 9px 20px; border-radius: 999px;
    font-size: .9rem; font-weight: 600; color: var(--muted);
}
.tab:hover { color: var(--navy); }
.tab.is-active { background: var(--navy); color: #fff; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font-size: .83rem; font-weight: 600; color: var(--muted);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-tile {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.post-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-tile-media { display: block; }
.post-tile-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-tile-media .media-placeholder { aspect-ratio: 16 / 10; }
.post-tile-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-tile-body h2, .post-tile-body h3 { font-size: 1.08rem; margin: 0; }
.post-tile-body h2 a, .post-tile-body h3 a { color: var(--navy); }
.post-tile-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.post-tile-body .link-arrow { margin-top: auto; padding-top: 6px; }
.post-tile-plain { background: #fff; }

.event-archive { display: grid; gap: 18px; }
.event-archive-item {
    display: flex; gap: 20px; padding: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.event-archive-photo,
.event-tile-photo { width: 148px; height: 112px; flex: 0 0 148px; border-radius: var(--radius-sm); object-fit: cover; }
.event-archive-item h2 { font-size: 1.1rem; margin-bottom: .3em; }
.event-archive-item h2 a { color: var(--navy); }
.event-archive-item p { margin-bottom: .5em; }
.event-tile {
    display: flex; gap: 16px; padding: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.photo-caption { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.event-tile h3 { font-size: 1rem; margin-bottom: .3em; }
.event-tile h3 a { color: var(--navy); }
.event-tile p { margin-bottom: .4em; font-size: .84rem; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }

/* Article */
.article-image { width: 100%; border-radius: var(--radius); margin-bottom: 26px; object-fit: cover; }
.article-lead { font-size: 1.15rem; line-height: 1.7; color: var(--navy); font-weight: 500; margin-bottom: 24px; }
.article-body { font-size: 1.03rem; }
.article-tags { margin-top: 28px; }
.article-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 40px; padding: 26px 28px;
    background: var(--light); border: 1px solid var(--line); border-radius: var(--radius);
}
.article-cta h2 { font-size: 1.2rem; margin-bottom: .25em; }
.article-cta p { margin: 0; color: var(--muted); font-size: .92rem; }
.back-link { margin-top: 32px; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
    padding: 10px 14px; text-align: left;
    background: var(--light); color: var(--muted);
    font-size: .75rem; text-transform: uppercase; letter-spacing: 0;
    border-bottom: 1px solid var(--line);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.badge-note {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    background: #F1E8F3; color: #672B73; font-size: .72rem; font-weight: 600;
}
.card-excerpt { margin: 0; color: var(--muted); font-size: .9rem; }

/* Gallery */
.album-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.album-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .2s var(--ease);
}
.album-card:hover { box-shadow: var(--shadow); }
.album-card img, .album-card .media-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.album-card-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.album-card-body strong { font-family: var(--font-head); font-size: .92rem; color: var(--navy); }
.album-card-body small { color: var(--muted); font-size: .76rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--light); }
.gallery-item a { display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s var(--ease); }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 10px 12px; font-size: .82rem; color: var(--muted); }

.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 30px; background: rgba(8, 24, 40, .94);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: min(1100px, 90vw); text-align: center; }
.lightbox-figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox-figure figcaption { color: rgba(255, 255, 255, .8); font-size: .9rem; margin-top: 12px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    border: 0; background: rgba(255, 255, 255, .12); color: #fff;
    width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
    display: grid; place-items: center; font-size: 1.7rem; line-height: 1;
    flex: 0 0 auto;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { position: absolute; top: 20px; right: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 20px; margin: 20px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px;
    background: rgba(71, 118, 184, .1); color: var(--blue);
}
.contact-list strong { display: block; font-size: .85rem; color: var(--navy); font-family: var(--font-head); }
.contact-list p { margin: 0; font-size: .92rem; color: var(--muted); }
.map-embed { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

.contact-form-wrap {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 { font-size: 1.25rem; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--navy); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="date"], .field input[type="file"],
.field select, .field textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; font-family: var(--font-body); font-size: .94rem; color: var(--text);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71, 118, 184, .14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C33C3C; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { margin: 0; font-size: .79rem; color: var(--muted); }
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.55; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: 0 0 auto; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; border: 1px solid transparent; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #EAF7EF; border-color: #BFE6CE; color: #17603A; }
.alert-error { background: #FDEDED; border-color: #F3C7C7; color: #9B2B2B; }

/* Apply */
.apply-intro { margin-bottom: 26px; }
.apply-intro p { margin-bottom: .6em; }
.apply-form {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.steps-indicator {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 26px; position: relative;
}
.steps-indicator::before {
    content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px;
    background: var(--line); z-index: 0;
}
.step-dot {
    position: relative; z-index: 1;
    display: inline-grid; place-items: center;
    width: 34px; height: 34px; border-radius: 999px;
    background: #fff; border: 2px solid var(--line); color: var(--muted);
    font-size: .82rem; font-weight: 700;
}
.step-dot.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.step-dot.is-done { border-color: var(--navy); color: var(--navy); }

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step legend {
    padding: 0; margin-bottom: 18px;
    font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--navy);
}
.form-step .field-row, .form-step .field { margin-bottom: 16px; }
.form-step:last-of-type .field-row:last-of-type { margin-bottom: 0; }
.step-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.step-actions .btn-primary[data-next] { margin-left: auto; }
.apply-form.js-steps .form-step { display: none; }
.apply-form.js-steps .form-step.is-active { display: block; }
.consent-box {
    padding: 16px 18px; background: var(--light);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}

.apply-success {
    text-align: center; padding: clamp(30px, 5vw, 52px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.success-icon {
    display: inline-grid; place-items: center;
    width: 66px; height: 66px; margin-bottom: 16px; border-radius: 999px;
    background: #EAF7EF; color: #1F9254;
}
.reference-box {
    display: inline-flex; flex-direction: column; gap: 2px;
    margin: 18px 0; padding: 16px 28px;
    background: var(--light); border: 1px dashed var(--navy); border-radius: var(--radius-sm);
}
.reference-box span { font-size: .74rem; text-transform: uppercase; letter-spacing: 0; color: var(--muted); }
.reference-box strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); letter-spacing: 0; }
.apply-success .muted { max-width: 520px; margin: 0 auto; font-size: .9rem; }

@media (max-width: 1024px) {
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .album-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .filter-grid, .fact-grid, .event-facts, .field-row, .post-tile-grid, .album-row, .gallery-grid { grid-template-columns: 1fr; }
    .event-archive-item, .event-tile { flex-direction: column; }
        .event-archive-photo, .event-tile-photo { width: 100%; height: auto; flex-basis: auto; aspect-ratio: 16 / 9; order: -1; }
    .article-cta { flex-direction: column; align-items: flex-start; }
    .lightbox { padding: 16px; }
    .lightbox-prev, .lightbox-next { position: absolute; bottom: 18px; }
    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
}
