:root {
  --primary: #11A8D0;
  --primary-hover: #0D8FB3;
  --navy: #123B50;
  --deep: #082F43;
  --teal: #35B8A5;
  --background: #FFFFFF;
  --soft: #EFF9FC;
  --border: #DCE8ED;
  --muted: #5B7280;
  --shadow: 0 12px 32px rgba(18, 59, 80, .10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--background);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(220,232,237,.8);
  transition: box-shadow .25s;
}
.topbar.scrolled { box-shadow: 0 6px 24px rgba(18,59,80,.08); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  width: 54px; height: 54px; border: 2px solid var(--primary); border-radius: 50%;
  display: grid; place-items: center; color: var(--primary); font-size: 27px; font-weight: 800;
  position: relative; flex-shrink: 0; transition: transform .4s;
}
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-mark::after { content: ""; position: absolute; width: 35px; height: 16px; border: 3px solid var(--primary); border-top: 0; border-radius: 0 0 50% 50%; bottom: 10px; transform: rotate(-24deg); }
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.brand-sub { display: block; font-size: .69rem; font-weight: 500; line-height: 1.25; margin-top: 4px; max-width: 170px; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); font-size: .9rem; }
.nav-links a:not(.btn) { position: relative; padding: 6px 0; }
.nav-links a:not(.btn):not(.search-link)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--primary-hover); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.search-link { display: grid; place-items: center; font-size: 1.15rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 22px;
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: .2s ease;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,168,208,.3); }
.btn-outline { border-color: rgba(255,255,255,.8); color: white; background: rgba(0,0,0,.08); }
.btn-outline:hover { background: white; color: var(--navy); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); font-size: 1.8rem; cursor: pointer; padding: 4px; }

/* ---------- Hero ---------- */
.hero {
  color: white; min-height: 560px; display: flex; align-items: center; position: relative; overflow: hidden;
  background: #07536d;
}
.hero-bg {
  position: absolute; inset: -40px 0; background: var(--hero-img) center 48% / cover;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5,36,53,.91) 0%, rgba(7,57,78,.73) 43%, rgba(7,57,78,.10) 100%);
}
.hero-content { position: relative; z-index: 3; padding: 74px 0 130px; max-width: 650px; }
.hero-script {
  position: absolute; z-index: 3; right: 6%; top: 60px; font-family: Caveat, cursive; font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: rgba(255,255,255,.9); transform: rotate(-10deg); line-height: 1.1; max-width: 260px; text-align: center;
}
.eyebrow { color: var(--teal); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
.hero .eyebrow, .page-hero .eyebrow { color: #9feaf2; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .99; letter-spacing: -.055em; margin: 18px 0; }
.hero p { font-size: 1.08rem; max-width: 540px; color: rgba(255,255,255,.91); margin: 0 0 27px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* animated waves at the bottom of hero sections */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; height: 90px; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { fill: rgba(255,255,255,.18); animation: wave 14s linear infinite; }
.waves .w2 { fill: rgba(255,255,255,.35); animation: wave 9s linear infinite reverse; }
.waves .w3 { fill: #fff; animation: wave 18s linear infinite; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* rising bubbles */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute; bottom: -20px; width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08);
  animation: rise var(--d, 12s) linear infinite; animation-delay: var(--delay, 0s); left: var(--x, 50%);
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(18px, -300px); }
  100% { transform: translate(-10px, -620px); opacity: 0; }
}

/* compact hero for inner pages */
.page-hero {
  color: white; position: relative; overflow: hidden; padding: 80px 0 120px;
  background: linear-gradient(90deg, rgba(5,36,53,.92), rgba(7,57,78,.65)), var(--hero-img) center / cover, #07536d;
}
.page-hero-content { position: relative; z-index: 3; max-width: 720px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 12px 0; }
.page-hero p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.05rem; }
.page-hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -58px; height: 95px; background: white; border-radius: 50% 50% 0 0 / 55% 55% 0 0; z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-heading { max-width: 650px; margin-bottom: 34px; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.045em; line-height: 1.08; margin: 9px 0 14px; }
.section-heading p, .mission-copy p { color: var(--muted); margin: 0; }
.mission-grid { display: grid; grid-template-columns: 1.25fr 2fr; gap: 55px; align-items: center; }
.mission-copy .btn { margin-top: 23px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { text-align: center; padding: 18px 14px; border-right: 1px solid var(--border); }
.pillar:last-child { border-right: 0; }
.icon-bubble {
  width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 14px;
  border-radius: 50%; color: var(--primary); background: #E5F7FB; font-size: 1.9rem; transition: transform .3s, background .3s, color .3s;
}
.pillar:hover .icon-bubble { transform: translateY(-4px) scale(1.06); background: var(--primary); color: white; }
.pillar h3 { margin: 0 0 6px; font-size: 1.08rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .9rem; }
.programs { background: linear-gradient(180deg, #F8FCFD 0%, #EAF7FB 100%); }
.section-topline { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-topline .section-heading { margin: 0; }
.section-topline .intro { max-width: 440px; color: var(--muted); margin: 0 0 4px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); border: 1px solid #A8C2CD; border-radius: 999px; padding: 10px 17px; font-weight: 700; font-size: .84rem; white-space: nowrap; transition: .2s; }
.text-link:hover { background: white; border-color: var(--primary); color: var(--primary-hover); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: 0 5px 22px rgba(18,59,80,.06); border: 1px solid rgba(220,232,237,.7); transition: transform .25s, box-shadow .25s; display: block; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-image { height: 205px; background: #b9e5ed center / cover; transition: transform .6s; }
.card-media { overflow: hidden; }
.card:hover .card-image, .news-card:hover .card-image { transform: scale(1.06); }
.card-body { padding: 22px; position: relative; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-top: -48px; position: relative; background: white; border-radius: 50%; color: var(--primary); font-size: 1.4rem; box-shadow: 0 4px 12px rgba(18,59,80,.12); }
.card h3 { margin: 10px 0 7px; font-size: 1.15rem; padding-right: 20px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
.card-arrow { position: absolute; right: 20px; top: 32px; color: var(--primary); transition: transform .2s; }
.card:hover .card-arrow { transform: translateX(4px); }
.stats {
  color: white; padding: 70px 0; position: relative; overflow: hidden; background:
    linear-gradient(90deg, rgba(5,42,60,.94), rgba(9,81,102,.88)),
    url("https://images.unsplash.com/photo-1546026423-cc4642628d2b?auto=format&fit=crop&w=1800&q=80") center / cover fixed;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; position: relative; z-index: 2; }
.stat { border-right: 1px solid rgba(255,255,255,.2); }
.stat:last-child { border-right: 0; }
.stat-icon { color: #61D7D0; font-size: 2.2rem; display: flex; justify-content: center; }
.stat strong { display: block; font-size: 2.3rem; line-height: 1.2; margin: 5px 0; font-variant-numeric: tabular-nums; }
.stat span { color: rgba(255,255,255,.82); font-size: .9rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: white; display: block; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .card-image { height: 180px; }
.news-card .card-body { padding: 18px; }
.date { color: var(--primary-hover); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.news-card h3 { font-size: 1.08rem; line-height: 1.3; margin: 7px 0; }
.news-card p { font-size: .87rem; color: var(--muted); margin: 0; }
.cta { padding: 62px 0; background: var(--soft); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0; }
.empty { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--border); border-radius: 14px; }

/* ---------- Article / detail ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article-image { border-radius: var(--radius); height: clamp(220px, 40vw, 420px); background: center / cover; margin: -70px 0 32px; position: relative; z-index: 4; box-shadow: var(--shadow); }
.article-body { font-size: 1.05rem; color: #2d4f60; }
.article-body p { margin: 0 0 1.2em; }
/* formatting from the admin rich-text editor */
.article-body h2, .article-body h3, .article-body h4 { color: var(--navy); margin: 1.6em 0 .6em; line-height: 1.25; }
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.article-body li { margin-bottom: .35em; }
.article-body blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 4px solid var(--primary); color: var(--navy); font-style: italic; }
.article-body hr { border: 0; border-top: 1px solid #DCE8ED; margin: 2em 0; }
.article-body a { color: var(--primary-hover); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-hover); font-weight: 700; margin-top: 18px; }
.back-link .icon { transform: rotate(180deg); }
.prose { color: #2d4f60; font-size: 1.03rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split-image { border-radius: var(--radius); min-height: 360px; background: center / cover; box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 260px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; background: none; }
.gallery-item img { width: 100%; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: white; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(5,36,53,.85)); opacity: 0; transition: opacity .3s; text-align: left; }
.gallery-item:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,24,36,.92); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox p { color: white; text-align: center; margin: 12px 0 0; }
.lightbox button { position: absolute; top: 18px; right: 18px; z-index: 2; background: rgba(255,255,255,.12); color: white; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }

/* ---------- Forms ---------- */
.form-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--navy); padding: 12px 14px; border: 1px solid #C9DCE3; border-radius: 10px; background: #FBFEFF; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17,168,208,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.field .error-text { color: #C0392B; font-size: .8rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.alert-success { background: #E6F7F2; color: #1E6E5C; border: 1px solid #B8E6D8; }
.alert-error { background: #FDECEA; color: #8E2A1F; border: 1px solid #F5C6C0; }
.type-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.type-tabs label { cursor: pointer; position: relative; }
/* visually hidden but focusable; anchored to its label so it can never stick out of the page */
.type-tabs input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.type-tabs span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid #C9DCE3; font-weight: 600; font-size: .88rem; transition: .2s; }
.type-tabs input:checked + span { background: var(--primary); border-color: var(--primary); color: white; }
.type-tabs input:focus-visible + span { box-shadow: 0 0 0 4px rgba(17,168,208,.25); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: 24px; }
.info-item { display: flex; gap: 14px; align-items: center; }
.info-item .icon-bubble { margin: 0; width: 50px; height: 50px; font-size: 1.3rem; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.way { padding: 28px; border-radius: var(--radius); background: var(--soft); transition: transform .25s; }
.way:hover { transform: translateY(-4px); }
.way .icon-bubble { margin: 0 0 14px; background: white; }
.way h3 { margin: 0 0 6px; }
.way p { margin: 0; color: var(--muted); font-size: .93rem; }

/* search + pagination */
.search-form { display: flex; gap: 10px; max-width: 620px; margin-bottom: 30px; }
.search-form input { flex: 1; font: inherit; padding: 13px 18px; border-radius: 999px; border: 1px solid #C9DCE3; }
.search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17,168,208,.15); }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; font-variant-numeric: tabular-nums; transition: .2s; }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.pagination .gap { border: 0; min-width: 20px; padding: 0; color: var(--muted); }
.pagination .disabled { opacity: .4; }
.result-count { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }

/* news archive filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid #C9DCE3; font-size: .86rem; font-weight: 600; transition: .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary-hover); }
.chip.on { background: var(--navy); border-color: var(--navy); color: white; }
.filter-bar select { font: inherit; font-size: .9rem; padding: 9px 14px; border-radius: 999px; border: 1px solid #C9DCE3; background: white; color: var(--navy); }

/* older / newer post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; transition: .2s; }
.post-nav a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.post-nav small { display: block; color: var(--primary-hover); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.post-nav strong { line-height: 1.3; }
.post-nav .next { text-align: right; grid-column: 2; }
.album-grid .gallery-item.extra { display: none; }
.album-grid.expanded .gallery-item.extra { display: block; }
.show-all { margin-top: 16px; }
@media (max-width: 680px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }

/* ---------- Footer ---------- */
footer { color: #d9eaf0; background: var(--deep); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 35px; padding: 55px 0 40px; }
footer .brand-name { color: white; }
footer .brand-mark { color: #42c7e4; border-color: #42c7e4; }
footer .brand-mark::after { border-color: #42c7e4; }
footer h4 { color: white; margin: 0 0 14px; }
footer p, footer a { color: #bdd1da; font-size: .87rem; }
.footer-links { display: grid; gap: 7px; }
.footer-links a:hover, footer .contact-line a:hover { color: white; }
.contact-line { display: flex; align-items: center; gap: 10px; }
.contact-line .icon { color: #42c7e4; font-size: 1.05rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: white; font-size: 1.1rem; transition: .2s; }
.socials a:hover { background: var(--primary); transform: translateY(-3px); }
.copyright { border-top: 1px solid rgba(255,255,255,.13); padding: 17px 0; font-size: .75rem; color: #a7c0cb; display: flex; justify-content: space-between; gap: 15px; }
.back-to-top {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: white; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 8px 20px rgba(17,168,208,.35);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s;
}
.back-to-top .icon { transform: rotate(-90deg); }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0s); }
.js .reveal.visible { opacity: 1; transform: none; }
.hero-content > * { animation: fadeUp .9s ease both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
.hero-script { animation: fadeIn 1.4s .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { gap: 12px; font-size: .82rem; }
  .brand { min-width: auto; }
  .brand-sub { display: none; }
  .hero-script { display: none; }
}
@media (max-width: 900px) {
  .mission-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ways { grid-template-columns: 1fr; }
  .stats { background-attachment: scroll; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 24px 24px; background: white; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; box-shadow: var(--shadow); font-size: .95rem; }
  .nav-links.open { display: flex; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links a { padding: 8px 0; }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin-top: 6px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1180px); }
  .nav { min-height: 70px; }
  .hero { min-height: 520px; }
  .hero-bg { background-position: 60% center; }
  .hero-content { padding: 62px 0 110px; }
  .hero p { font-size: 1rem; }
  .section { padding: 56px 0; }
  .pillars, .cards, .news-grid, .form-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px; }
  .pillar:last-child { border-bottom: 0; }
  .section-topline { align-items: start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(2) { border-right: 0; }
  .cta-inner { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .copyright { flex-direction: column; }
  .form-card { padding: 22px; }
}

/* ---------- Dropdown menu ---------- */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.caret { transform: rotate(90deg); font-size: .8em; transition: transform .2s; }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(-90deg); }
.dropdown {
  position: absolute; top: 100%; left: -14px; min-width: 200px; padding: 8px; margin-top: 8px;
  background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { padding: 9px 12px !important; border-radius: 8px; white-space: nowrap; }
.dropdown a::after { display: none; }
.dropdown a:hover, .dropdown a.current { background: var(--soft); color: var(--primary-hover); }
@media (max-width: 860px) {
  .has-dropdown > a .caret { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; margin: 0; min-width: 0; border-left: 2px solid var(--border); border-radius: 0; }
}

/* ---------- Vision & Mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { border-radius: var(--radius); padding: 36px; position: relative; overflow: hidden; }
.vm-card.vision { background: linear-gradient(135deg, #0B4F6C, #11A8D0); color: white; }
.vm-card.vision .eyebrow { color: #9feaf2; }
.vm-card.vision p { color: rgba(255,255,255,.92); font-size: 1.2rem; line-height: 1.55; }
.vm-card.mission { background: var(--soft); }
.vm-card .big-icon { position: absolute; right: -20px; bottom: -20px; font-size: 9rem; opacity: .12; }
.vm-card h2 { margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: white; display: grid; place-items: center; font-size: .9rem; margin-top: 1px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .num { font-size: 2.2rem; font-weight: 800; color: var(--primary); opacity: .35; line-height: 1; }
.value h3 { margin: 10px 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- News photo album ---------- */
.album { margin-top: 36px; }
.album h2 { font-size: 1.6rem; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.album-grid .gallery-item { margin: 0; aspect-ratio: 4 / 3; }
.album-grid .gallery-item img { height: 100%; object-fit: cover; }
.photo-count { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(5,36,53,.75); color: white; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.card-media { position: relative; }
.lightbox .nav-btn { top: 50%; transform: translateY(-50%); right: auto; }
.lightbox .nav-btn.prev { left: 18px; }
.lightbox .nav-btn.next { right: 18px; left: auto; }
.lightbox .nav-btn.prev .icon { transform: rotate(180deg); }
@media (max-width: 900px) {
  .vm-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .values-grid { grid-template-columns: 1fr; }
  .vm-card { padding: 26px; }
}

[hidden] { display: none !important; }

/* Uploaded logo (admin > Site Settings > Branding) */
.brand-logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; flex-shrink: 0; transition: transform .4s; }
.brand:hover .brand-logo { transform: scale(1.04); }
footer .brand-logo { height: 64px; }
@media (max-width: 680px) { .brand-logo { height: 46px; max-width: 170px; } }

/* ---------- Gallery albums ---------- */
.album-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.album-card { display: block; }
.album-cover { position: relative; border-radius: var(--radius); }
/* stacked-photos effect behind the cover */
.album-cover::before, .album-cover::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: #CFE9F0; z-index: -1; transition: transform .35s;
}
.album-cover::before { transform: rotate(-3deg) translateY(4px); background: #B9E1EB; }
.album-cover::after { transform: rotate(2.5deg) translateY(2px); }
.album-card:hover .album-cover::before { transform: rotate(-6deg) translate(-6px, 4px); }
.album-card:hover .album-cover::after { transform: rotate(5deg) translate(6px, 2px); }
.album-cover .card-image { height: 230px; border-radius: var(--radius); box-shadow: 0 8px 22px rgba(18,59,80,.14); transition: transform .35s; }
.album-card:hover .album-cover .card-image { transform: translateY(-4px); }
.album-info { padding: 16px 4px 0; }
.album-info h3 { margin: 4px 0 4px; font-size: 1.15rem; line-height: 1.3; }
.album-card:hover h3 { color: var(--primary-hover); }
.album-info p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .album-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .album-cards { grid-template-columns: 1fr; } }

/* ---------- Member registration ---------- */
.field .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: .9rem !important; color: #2d4f60; cursor: pointer; }
.consent input { width: 18px !important; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }

/* ---------- CAPTCHA ---------- */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-img { border-radius: 10px; border: 1px solid #C9DCE3; }
.captcha-refresh { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #C9DCE3; background: white; color: var(--navy); font-size: 1.2rem; cursor: pointer; }
.captcha-refresh:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Phone tap targets ---------- */
@media (max-width: 680px) {
  .footer-links { grid-template-columns: 1fr 1fr; column-gap: 16px; gap: 0 16px; }
  .footer-links a { display: flex; align-items: center; min-height: 40px; }
  footer .contact-line { min-height: 40px; margin: 0; }
  footer .contact-line a { display: inline-flex; align-items: center; min-height: 40px; }
  .back-link { min-height: 44px; }
  .field input, .field textarea, .field select, .search-form input, .filter-bar select { font-size: 16px; } /* stops iOS zoom-on-focus */
  .type-tabs span { min-height: 44px; }
  .pagination a, .pagination span { min-width: 44px; height: 44px; }
}

/* ---------- Donate ---------- */
.btn .icon-lead { transition: transform .2s; }
.btn:hover .icon-lead { transform: scale(1.15); }
.btn-donate { background: var(--teal); color: white; }
.btn-donate:hover { background: #2A9C8B; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(53,184,165,.35); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.nav-cta-mobile { display: none; }
.donate-band { background: linear-gradient(135deg, var(--soft), #E3F6F2); }
.donate-band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.donate-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 8px 0 10px; }
.donate-band p { color: var(--muted); margin: 0 0 24px; max-width: 520px; }
.donate-band .button-row { align-items: center; }
.bank-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; margin-top: 24px; }
.donate-band .bank-card { margin-top: 0; }
.bank-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.bank-logo { width: auto; max-width: 120px; height: 52px; object-fit: contain; }
.bank-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bank-card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.bank-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.bank-number strong { font-size: 1.35rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.copy-btn { flex-shrink: 0; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--primary); background: white; color: var(--primary-hover); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.copy-btn:hover { background: var(--primary); color: white; }
.bank-note { margin: 0; font-size: .9rem; color: var(--muted); }
.donate-steps { margin: 16px 0 0; padding-left: 22px; color: #2d4f60; display: grid; gap: 8px; }
.donate-steps li::marker { color: var(--teal); font-weight: 800; }
.form-title { margin: 0 0 18px; font-size: 1.25rem; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #C9DCE3; border-right: 0; border-radius: 10px 0 0 10px; background: var(--soft); font-weight: 700; color: var(--muted); }
.field .input-prefix input { border-radius: 0 10px 10px 0; }
.field input.file-input { padding: 10px; background: white; cursor: pointer; }
.file-note { font-size: .82rem; color: #1E6E5C; margin-top: 6px; }
.file-note:empty { display: none; }
.form-small { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .donate-band-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .nav-cta-mobile { display: inline-flex; margin-left: auto; padding: 9px 16px; font-size: .85rem; min-height: 40px; }
  .nav { gap: 12px; }
}
@media (max-width: 680px) {
  .bank-card { padding: 18px; }
  .bank-number strong { font-size: 1.15rem; }
  .hero .button-row .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .brand-logo { max-width: 120px; }
}
