/* ==========================================================================
   CIHO: Community Integrated Health Organisation
   Public website styles (Bootstrap 5.3 base)
   Brand: navy #002866 · yellow #FFEE00 · red #D8232A (from the logo)
   ========================================================================== */
:root {
  --navy: #002866;
  --navy-900: #001a44;
  --navy-700: #0b3a80;
  --navy-300: #4D6995;
  --yellow: #FFEE00;
  --yellow-600: #f2d900;
  --red: #D8232A;
  --ink: #16233a;
  --muted: #5d6b82;
  --soft: #f3f6fb;
  --line: #e3e8f1;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(0, 40, 102, .06);
  --shadow: 0 14px 40px rgba(0, 40, 102, .12);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bs-primary: var(--navy);
  --bs-primary-rgb: 0, 40, 102;
  --bs-link-color: var(--navy-700);
  --bs-link-hover-color: var(--navy);
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
}

body { font-family: var(--font-body); color: var(--ink); background: #fff; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
a { color: var(--navy-700); }
img { max-width: 100%; }
::selection { background: var(--yellow); color: var(--navy); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--yellow); color: var(--navy); padding: .5rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: 50px; padding: .6rem 1.4rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-900); --bs-btn-hover-border-color: var(--navy-900); --bs-btn-active-bg: var(--navy-900); }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-active-bg: var(--navy); }
.btn-yellow { background: var(--yellow); color: var(--navy); border: 0; }
.btn-yellow:hover, .btn-yellow:focus { background: var(--yellow-600); color: var(--navy); transform: translateY(-1px); }
.btn-outline-light:hover { color: var(--navy); }

/* ---------- Header ---------- */
.admin-preview-bar { background: var(--red); color: #fff; text-align: center; font-size: .85rem; padding: .4rem; }
.admin-preview-bar a { color: var(--yellow); font-weight: 600; }
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: .82rem; padding: .5rem 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar i { color: var(--yellow); margin-right: .35rem; }
.topbar-social a { font-size: .95rem; }
.topbar-follow { font-size: .8rem; opacity: .8; }
.offcanvas-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.offcanvas-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; text-decoration: none; }
.offcanvas-social a:hover, .offcanvas-social a:focus-visible { background: var(--yellow); color: var(--navy); }

.main-nav { background: #fff; padding: .55rem 0; box-shadow: var(--shadow-sm); transition: padding .2s, box-shadow .2s; }
.site-header { position: sticky; top: 0; z-index: 1030; }
@media (min-width: 992px) { .site-header { top: calc(-1 * var(--topbar-h, 37px)); } }
.main-nav.scrolled { padding: .3rem 0; box-shadow: 0 6px 24px rgba(0,40,102,.12); }
.navbar-brand { display: flex; align-items: center; gap: .75rem; padding: 0; }
.navbar-brand img { height: 58px; width: auto; transition: height .2s; }
.main-nav.scrolled .navbar-brand img { height: 48px; }
.brand-text { flex-direction: column; line-height: 1.1; border-left: 2px solid var(--line); padding-left: .75rem; }
.brand-text strong { font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; letter-spacing: .04em; }
.brand-text small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.navbar-toggler { border: 0; font-size: 2rem; color: var(--navy); padding: 0 .25rem; }
.navbar-toggler:focus { box-shadow: none; }
.main-nav .nav-link { font-family: var(--font-head); font-weight: 500; color: var(--ink); padding: .5rem .85rem !important; border-radius: 8px; position: relative; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--navy); }
.main-nav .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 3px; border-radius: 3px; background: var(--yellow); }
.btn-search { background: none; border: 0; }
.dropdown-menu { border: 0; box-shadow: var(--shadow); border-radius: 12px; padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .9rem; font-size: .93rem; }
.dropdown-item:hover { background: var(--soft); color: var(--navy); }
.btn-donate { background: var(--red); color: #fff; padding: .55rem 1.3rem; white-space: nowrap; }
.btn-donate:hover { background: #b81c22; color: #fff; }
@media (min-width: 992px) {
  .main-nav .offcanvas { position: static; visibility: visible !important; transform: none; background: transparent; border: 0; width: auto; flex-grow: 1; }
  .main-nav .offcanvas-header { display: none; }
  .main-nav .offcanvas-body { padding: 0; overflow: visible; display: flex; }
  .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
  .offcanvas .nav-link { font-size: 1.05rem; padding: .7rem .5rem !important; border-bottom: 1px solid var(--line); }
  .offcanvas .nav-link.active::after { display: none; }
  .offcanvas .btn-donate { width: 100%; }
  .navbar-brand img { height: 48px; }
}
.search-modal { border: 0; border-radius: 18px; }

/* ---------- Toasts ---------- */
.toast-container { z-index: 2000; }
.toast { border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--navy-900); }
.hero .carousel-item { height: min(86vh, 760px); min-height: 520px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,18,48,.82) 0%, rgba(0,26,68,.55) 50%, rgba(0,26,68,.15) 100%), linear-gradient(0deg, rgba(0,18,48,.55) 0%, transparent 45%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 1140px; }
.hero-eyebrow { align-self: flex-start; font-family: var(--font-head); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .9rem; padding-left: 2.4rem; position: relative; }
.hero-eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.8rem; height: 3px; border-radius: 3px; background: var(--yellow); }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; max-width: 820px; margin-bottom: 1.1rem; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-text { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; color: rgba(255,255,255,.92); max-width: 640px; margin-bottom: 1.9rem; }
.hero-btn { background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: .85rem 1.6rem; font-weight: 600; box-shadow: 0 10px 24px rgba(216,35,42,.3); }
.hero-btn:hover, .hero-btn:focus-visible { background: var(--yellow); color: var(--navy); }
.hero-btn i { transition: transform .2s; }
.hero-btn:hover i { transform: translateX(4px); }
.carousel-item.active .hero-title, .carousel-item.active .hero-text, .carousel-item.active .hero-eyebrow, .carousel-item.active .hero-content .d-flex { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.carousel-item.active .hero-text { animation-delay: .12s; }
.carousel-item.active .hero-content .d-flex { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* dots stacked on the right, like a vertical pager */
.hero .hero-dots { left: auto; right: 2.2rem; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; gap: .9rem; margin: 0; z-index: 3; }
.hero .hero-dots [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; margin: 0; border: 2px solid #fff; background: transparent; opacity: .8; text-indent: 0; transition: .3s; }
.hero .hero-dots .active { background: #fff; transform: scale(1.35); opacity: 1; }
.hero .hero-dots [data-bs-target]:hover { background: var(--yellow); border-color: var(--yellow); }
@media (max-width: 767.98px) { .hero .hero-dots { right: .8rem; } .hero-content { padding-right: 2.6rem; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 5.5rem 0 4.5rem; color: #fff; background: linear-gradient(100deg, rgba(0,26,68,.94), rgba(0,40,102,.78)), var(--hero-bg, none) center/cover no-repeat, var(--navy); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,238,0,.12); }
.page-hero-lg { padding: 8rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; margin-bottom: .5rem; max-width: 900px; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 720px; margin: 0; }
.breadcrumb { margin-bottom: 1rem; font-size: .85rem; }
.breadcrumb a { color: var(--yellow); text-decoration: none; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item.active, .article-hero .breadcrumb-item.active { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item + .breadcrumb-item::before, .article-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3rem 0; }
.bg-soft { background: var(--soft); }
.section-head { margin-bottom: 3rem; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--yellow); vertical-align: middle; margin-right: .6rem; border-radius: 3px; }
.eyebrow-light { color: var(--yellow); }
.eyebrow-light::before { background: var(--red); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.rich-text { color: #34425a; line-height: 1.8; }
.rich-text p { margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; color: #34425a; }
.check-list i { color: var(--navy-700); font-size: 1.1rem; margin-top: .1rem; }
.empty-state { text-align: center; color: var(--muted); background: var(--soft); border: 2px dashed var(--line); border-radius: var(--radius); padding: 3rem 1rem; }
.empty-state i { display: block; font-size: 2.5rem; color: var(--navy-300); margin-bottom: .75rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
.stats-strip { position: relative; z-index: 5; margin-top: -60px; }
.stats-strip .row { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stats-inline { margin-top: 0; padding: 0 0 4rem; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1rem; border-right: 1px solid var(--line); height: 100%; }
.col-6:nth-child(2n) .stat { border-right: 0; }
@media (min-width: 992px) { .col-lg-3 .stat { border-right: 1px solid var(--line); } .col-lg-3:last-child .stat { border-right: 0; } }
.stat i { font-size: 1.6rem; color: var(--navy); background: rgba(255,238,0,.35); width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; margin-bottom: .75rem; }
.stat-num, .stat-suffix { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.stat-suffix { color: var(--red); }
.stat p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- About collage ---------- */
.about-collage { position: relative; padding: 0 0 3rem 0; }
.about-collage .img-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.since-badge { position: absolute; left: -12px; top: 24px; background: var(--yellow); color: var(--navy); border-radius: 16px; padding: .9rem 1.2rem; text-align: center; box-shadow: var(--shadow); }
.since-badge strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; }
.since-badge span { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 575.98px) { .since-badge { left: 8px; } }

/* ---------- Mission band ---------- */
.mv-card { height: 100%; padding: 2rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.mv-card i { font-size: 2rem; color: var(--yellow); }
.mv-card h3 { color: #fff; font-size: 1.25rem; margin: .8rem 0 .6rem; }
.mv-card p { margin: 0; line-height: 1.7; }
.mv-card-light { background: #fff; border-color: var(--line); color: #34425a; box-shadow: var(--shadow-sm); }
.mv-card-light h3 { color: var(--navy); }
.mv-card-light i { color: var(--red); }

/* ---------- Programme cards ---------- */
.program-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.program-img { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-300); }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.program-card:hover .program-img img { transform: scale(1.06); }
.program-body { position: relative; padding: 2.2rem 1.6rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.program-icon { position: absolute; top: -28px; left: 1.6rem; width: 56px; height: 56px; border-radius: 14px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(0,40,102,.18); }
.program-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.program-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.read-more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--red); text-decoration: none; }
.read-more i { transition: transform .2s; display: inline-block; }
a:hover .read-more i, .read-more:hover i { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 5rem 0; color: #fff; background: linear-gradient(100deg, rgba(0,26,68,.95), rgba(0,40,102,.82)), var(--cta-bg, none) center/cover fixed, var(--navy); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
@media (max-width: 991.98px) { .cta-band { background-attachment: scroll; } }

/* ---------- Post cards ---------- */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--soft); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.date-badge { position: absolute; left: 1rem; bottom: 1rem; background: var(--yellow); color: var(--navy); border-radius: 10px; padding: .35rem .7rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; text-align: center; line-height: 1.1; }
.date-badge strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post-cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--red); text-decoration: none; margin-bottom: .4rem; }
.post-card h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: .6rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--navy-700); }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }

.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.filter-pills a { text-decoration: none; padding: .5rem 1.1rem; border-radius: 50px; background: var(--soft); color: var(--navy); font-weight: 500; font-size: .9rem; border: 1px solid var(--line); }
.filter-pills a span { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; margin-left: .25rem; border-radius: 50px; background: #fff; font-size: .75rem; }
.filter-pills a.active, .filter-pills a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-pills a.active span { background: var(--yellow); color: var(--navy); }

.pagination .page-link { border-radius: 10px !important; margin: 0 .2rem; color: var(--navy); border-color: var(--line); }
.pagination .active .page-link { background: var(--navy); border-color: var(--navy); }

/* ---------- Article ---------- */
.article-hero { background: var(--navy); padding: 4.5rem 0 3rem; color: #fff; }
.article-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 1rem; }
.article-meta i { color: var(--yellow); margin-right: .3rem; }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow); }
.article-lead { font-size: 1.2rem; color: var(--navy); font-weight: 500; line-height: 1.6; border-left: 4px solid var(--yellow); padding-left: 1rem; }
.article-body { font-size: 1.05rem; }
.article-body h2, .article-body h3 { margin: 2rem 0 1rem; }
.article-body img { border-radius: 14px; height: auto; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.article-body blockquote { border-left: 4px solid var(--yellow); background: var(--soft); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-style: italic; }
.article-body iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: 14px; border: 0; }
.article-body ul li, .article-body ol li { margin-bottom: .35rem; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 2.5rem 0; }
.share-bar span { font-weight: 600; color: var(--navy); margin-right: .5rem; }
.share-bar a, .share-bar button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); border: 0; text-decoration: none; transition: .2s; }
.share-bar a:hover, .share-bar button:hover { background: var(--navy); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { text-decoration: none; background: var(--soft); border-radius: 12px; padding: 1rem 1.2rem; color: var(--navy); font-weight: 600; font-size: .95rem; }
.post-nav a small { display: block; color: var(--red); font-weight: 600; font-size: .75rem; text-transform: uppercase; margin-bottom: .2rem; }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav a:hover { background: var(--navy); color: #fff; }

/* ---------- Sidebar ---------- */
.sidebar-box { background: var(--soft); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-box h3 { font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--yellow); display: inline-block; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; gap: .5rem; padding: .55rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: .94rem; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { color: var(--navy); padding-left: .3rem; }
.side-list i { color: var(--red); }
.mini-post { display: flex; gap: .8rem; align-items: center; text-decoration: none; padding: .5rem 0; }
.mini-post img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini-post strong { display: block; color: var(--navy); font-size: .9rem; line-height: 1.3; }
.mini-post small { color: var(--muted); }
.sidebar-cta { background: var(--navy); color: rgba(255,255,255,.85); text-align: center; }
.sidebar-cta > i { font-size: 2.2rem; color: var(--yellow); }
.sidebar-cta h3 { color: #fff; border: 0; display: block; padding: 0; margin: .5rem 0; }
.event-facts p { display: flex; gap: .8rem; margin-bottom: 1rem; }
.event-facts p i { font-size: 1.2rem; color: var(--red); }
.event-facts strong { display: block; color: var(--navy); font-size: .8rem; text-transform: uppercase; }

/* ---------- Objectives ---------- */
.objective { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: .25s; }
.objective:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-4px); }
.objective .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--yellow); -webkit-text-stroke: 1.5px var(--navy); line-height: 1; }
.objective p { margin: .8rem 0 0; color: #34425a; font-size: .95rem; }
.cert-frame { display: block; background: #fff; padding: 12px; border-radius: 18px; box-shadow: var(--shadow); transform: rotate(-2deg); transition: transform .3s; }
.cert-frame:hover { transform: rotate(0); }
.cert-frame img { width: 100%; border-radius: 10px; }

/* ---------- Team ---------- */

/* ---------- Events ---------- */
.event-card { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); height: 100%; transition: .25s; }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--ink); }
.event-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.event-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: .5rem 0; }
.event-date strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; color: var(--yellow); }
.event-date span { font-size: .75rem; text-transform: uppercase; font-weight: 600; }
.event-card-past { opacity: .8; background: var(--soft); box-shadow: none; }
.event-row { display: flex; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); height: 100%; }
.event-row:hover { box-shadow: var(--shadow); color: var(--ink); }
.event-row-img { position: relative; width: 38%; flex-shrink: 0; }
.event-row-img img { width: 100%; height: 100%; object-fit: cover; }
.event-row-img .event-date { position: absolute; top: 1rem; left: 1rem; }
.event-row-body { padding: 1.4rem; }
.event-row-body h3 { font-size: 1.15rem; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 300px; column-gap: 1rem; }
.masonry-item { position: relative; display: block; margin-bottom: 1rem; border-radius: 14px; overflow: hidden; break-inside: avoid; }
.masonry-item img { width: 100%; display: block; transition: transform .5s; }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-cap { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,40,102,.45); color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity .25s; }
.masonry-item:hover .masonry-cap { opacity: 1; }

/* ---------- Testimonials / partners ---------- */
.testimonial { max-width: 780px; margin: 0 auto; text-align: center; padding: 0 3rem; }
.testimonial > i { font-size: 3rem; color: var(--yellow); }
.testimonial blockquote { font-size: 1.25rem; font-family: var(--font-head); color: var(--navy); line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.2rem; }
.testimonial figcaption img { width: 56px; height: 56px; object-fit: cover; }
.testimonial figcaption span { text-align: left; color: var(--muted); font-size: .9rem; }
.testimonial figcaption strong { display: block; color: var(--navy); }
.testimonials .carousel-control-prev-icon, .testimonials .carousel-control-next-icon { filter: invert(1); }
.partner-logo { max-height: 60px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; }
a:hover .partner-logo { filter: none; opacity: 1; }

/* ---------- Forms ---------- */
.form-panel { background: #fff; border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow); border-top: 5px solid var(--yellow); }
.form-label { font-weight: 500; color: var(--navy); font-size: .92rem; }
.form-control, .form-select { border-radius: 12px; padding: .7rem 1rem; border-color: var(--line); background-color: #fbfcfe; }
.form-control:focus, .form-select:focus { border-color: var(--navy-300); box-shadow: 0 0 0 .25rem rgba(0,40,102,.12); background: #fff; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { height: 100%; background: var(--soft); border-radius: var(--radius); padding: 1.8rem; }
.contact-card > i { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-size: 1.4rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.15rem; }
.contact-card a { word-break: break-word; }
.map-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 420px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.way-card { height: 100%; text-align: center; padding: 2.2rem 1.6rem; border-radius: var(--radius); background: var(--soft); transition: .25s; }
.way-card:hover { background: var(--navy); color: rgba(255,255,255,.85); transform: translateY(-4px); }
.way-card:hover h3 { color: #fff; }
.way-card:hover .read-more { color: var(--yellow); }
.way-card > i { font-size: 2.4rem; color: var(--red); }
.way-card:hover > i { color: var(--yellow); }
.way-card h3 { font-size: 1.2rem; margin: .8rem 0 .5rem; }
.impact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.impact-list > div { display: flex; gap: .8rem; background: var(--soft); border-radius: 14px; padding: 1rem; }
.impact-list i { font-size: 1.5rem; color: var(--red); }
.impact-list p { margin: 0; font-size: .88rem; color: var(--muted); }
.impact-list strong { display: block; color: var(--navy); font-size: .95rem; }
@media (max-width: 575.98px) { .impact-list { grid-template-columns: 1fr; } }
.give-ways { display: grid; gap: .8rem; }
.give-way { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.give-way > i { font-size: 1.4rem; color: var(--navy); }
.amount-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: var(--soft); color: var(--navy); border-radius: 50px; padding: .45rem 1rem; font-weight: 600; font-size: .85rem; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.search-result { display: flex; gap: 1.2rem; text-decoration: none; padding: 1.2rem; border-radius: 14px; color: var(--ink); border: 1px solid var(--line); margin-bottom: 1rem; }
.search-result:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); color: var(--ink); }
.search-result img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.search-result h3 { font-size: 1.1rem; margin: .3rem 0; }
.search-result p { margin: 0; color: var(--muted); font-size: .92rem; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--yellow); -webkit-text-stroke: 3px var(--navy); }

/* ---------- Newsletter + footer ---------- */
.newsletter-band { background: var(--yellow); padding: 2.6rem 0; }
.newsletter-band h2 { color: var(--navy); }
.newsletter-band p { color: var(--navy); opacity: .85; }
.newsletter-form { display: flex; background: #fff; border-radius: 50px; padding: .35rem; box-shadow: 0 10px 30px rgba(0,40,102,.15); }
.newsletter-form input { flex: 1; border: 0; padding: .7rem 1.2rem; border-radius: 50px; min-width: 0; outline: none; background: transparent; }
.newsletter-form button { border: 0; background: var(--navy); color: #fff; border-radius: 50px; padding: .7rem 1.4rem; font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.newsletter-form button:hover { background: var(--navy-900); }
@media (max-width: 420px) { .newsletter-form { flex-direction: column; border-radius: 18px; gap: .35rem; } }

.site-footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: .94rem; display: flow-root; }
.newsletter-band, .page-hero, .cta-band { display: flow-root; }
.footer-logo { display: inline-flex; padding: 6px 10px; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s; }
.footer-logo img { display: block; height: 76px; width: auto; }
.footer-logo:hover { transform: translateY(-2px); }
.footer-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--yellow); border-radius: 3px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; transition: .2s; }
.footer-links a::before { content: "\203A"; color: var(--yellow); margin-right: .5rem; }
.footer-links a:hover { color: var(--yellow); padding-left: .2rem; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--yellow); }
.footer-contact a { color: rgba(255,255,255,.85); text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: .2s; }
.footer-social a:hover { background: var(--yellow); color: var(--navy); transform: translateY(-3px); }
.footer-bottom { background: var(--navy-900); padding: 1rem 0; font-size: .85rem; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { color: var(--yellow); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }

.back-to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 1000; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--navy); color: var(--yellow); }

@media (max-width: 767.98px) {
  .section { padding: 3.8rem 0; }
  .hero .carousel-item { height: min(78vh, 640px); min-height: 520px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,26,68,.55), rgba(0,26,68,.92)); }
  .event-row { flex-direction: column; }
  .event-row-img { width: 100%; aspect-ratio: 16/9; }
  .stat-num, .stat-suffix { font-size: 1.9rem; }
  .form-panel { padding: 1.5rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .main-nav, .newsletter-band, .site-footer, .back-to-top, .share-bar, aside { display: none !important; }
  .page-hero, .article-hero { background: none !important; color: #000; padding: 1rem 0; }
  .page-hero h1, .article-hero h1 { color: #000; }
}

/* Keep wide gutters from overflowing the container on phones */
@media (max-width: 767.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .row.g-5 { --bs-gutter-y: 2rem; }
}

/* ==========================================================================
   Our Journey: rotating year dial (app/views/partials/journey_dial.php)
   ========================================================================== */
.jd-section { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); overflow: hidden; }
.jd-head { max-width: 680px; margin-bottom: 1.5rem; }
.jd-head .section-lead, .ld-intro .section-lead { margin-left: 0; }
.jd-panels { min-height: 300px; }
.jd-panel.active { animation: jdIn .55s ease both; }
@keyframes jdIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.jd-year { display: block; color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.jd-phase { color: var(--muted); font-weight: 600; }
.jd-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: .35rem 0 1.1rem; }
.jd-panel p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.jd-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.jd-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-size: 1.2rem; display: grid; place-items: center; transition: .2s; }
.jd-arrow:hover:not(:disabled), .jd-arrow:focus-visible { background: var(--navy); color: var(--yellow); }
.jd-arrow:disabled { opacity: .35; }
.jd-count { font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.jd-count strong { color: var(--navy); font-size: 1.25rem; }
.jd-wheel { --size: 430px; --r: calc(var(--size) / 2 + 26px); --step: 24deg; position: relative; width: var(--size); height: var(--size); margin: 2rem 1rem 2rem auto; touch-action: pan-y; }
.jd-ring { position: absolute; inset: -26px; border-radius: 50%; border: 2px solid var(--line); }
.jd-ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 210deg, transparent 0deg, var(--yellow) 40deg, var(--navy) 110deg, transparent 160deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.jd-photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--soft); box-shadow: var(--shadow); }
.jd-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform 1.2s ease; }
.jd-img.active { opacity: 1; transform: none; }
.jd-img-empty { display: grid; place-items: center; font-size: 5rem; color: var(--navy-300); }
.jd-markers { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.jd-marker { --off: calc(var(--i) - var(--cur)); position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; padding: 0; border: 0; background: none; border-radius: 50%;
  transform: rotate(calc(var(--off) * var(--step))) translateX(calc(var(--r) * -1)) rotate(calc(var(--off) * var(--step) * -1));
  transition: transform .8s cubic-bezier(.65,.05,.25,1), opacity .5s; }
.jd-dot { position: absolute; inset: 8px; border-radius: 50%; background: var(--navy-300); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: .4s; }
.jd-label { position: absolute; right: calc(100% + .45rem); top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--muted); transition: .4s; }
.jd-marker.active .jd-dot { inset: -2px; background: var(--navy); border-width: 5px; box-shadow: 0 0 0 6px rgba(255,238,0,.45); }
.jd-marker.active .jd-label { font-size: 1.9rem; color: var(--navy); right: calc(100% + .8rem); }
.jd-marker:hover .jd-label { color: var(--red); }
.jd-marker:hover .jd-dot { background: var(--red); }
.jd-marker.active:hover .jd-dot { background: var(--navy); }
.jd-marker:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.jd-marker.far { opacity: 0; pointer-events: none; }
@media (max-width: 1199.98px) { .jd-wheel { --size: 360px; } }
@media (max-width: 991.98px) { .jd-wheel { --size: 300px; margin: 2.5rem auto 1.5rem; left: 50px; } .jd-panels { min-height: 0; } .jd-head { text-align: center; margin-left: auto; margin-right: auto; } .jd-head .section-lead { margin-left: auto; } }
@media (max-width: 575.98px) { .jd-wheel { --size: 200px; --step: 30deg; left: 72px; } .jd-label { font-size: .95rem; } .jd-marker.active .jd-label { font-size: 1.45rem; } }
@media (max-width: 400px) { .jd-wheel { --size: 156px; --step: 32deg; left: 56px; } .jd-marker.active .jd-label { font-size: 1.2rem; right: calc(100% + .5rem); } .jd-title { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .jd-marker, .jd-img, .jd-panel.active { transition: none !important; animation: none !important; } }
.jt-band { background: var(--soft); border-top: 1px solid var(--line); }

/* ==========================================================================
   Our Team: leadership message and flip cards (app/views/team.php, partials/leader_card.php)
   ========================================================================== */
.ld-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.ld-msg-card { position: relative; background: linear-gradient(150deg, var(--navy), var(--navy-900)); color: #fff; border-radius: 1.5rem 1.5rem 1.5rem 0; padding: 2.4rem 2.2rem; overflow: hidden; box-shadow: var(--shadow); }
.ld-msg-card::after { content: ''; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255,238,0,.08); }
.ld-msg-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--yellow); margin-bottom: 1.2rem; }
.ld-msg-quote { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.4; margin: .4rem 0 1.4rem; }
.ld-msg-by { margin: 0; font-size: .95rem; color: rgba(255,255,255,.85); }
.ld-intro { max-width: 760px; }
.ld-group { margin-top: 2.6rem; scroll-margin-top: 120px; }
.ld-group-head { margin-bottom: 1.4rem; border-left: 4px solid var(--yellow); padding-left: .9rem; }
.ld-group-head h3 { font-size: 1.4rem; margin-bottom: .15rem; }
.ld-group-head p { color: var(--muted); font-weight: 500; margin: 0; }
.ld-empty { background: var(--soft); border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; color: var(--muted); font-weight: 600; }
.ld-empty i { color: var(--navy-300); margin-right: .4rem; }
.ld-grid > div:nth-child(4n+1) { --ld-tint: #eef2fb; --ld-tone: var(--navy); }
.ld-grid > div:nth-child(4n+2) { --ld-tint: #fffbd6; --ld-tone: var(--navy-700); }
.ld-grid > div:nth-child(4n+3) { --ld-tint: #fdecec; --ld-tone: #a8151b; }
.ld-grid > div:nth-child(4n+4) { --ld-tint: #e9eef6; --ld-tone: var(--navy-900); }
.ld-card { perspective: 1200px; height: 380px; outline: none; border-radius: 1.4rem; }
.ld-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.ld-front, .ld-back { position: absolute; inset: 0; border-radius: 1.4rem; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.ld-front { background: var(--ld-tint, #eef2fb); border: 1px solid rgba(0,40,102,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.6rem 1.2rem 2.4rem; }
.ld-photo { width: 132px; height: 132px; border-radius: 50%; padding: 5px; border: 2px solid var(--ld-tone, var(--navy)); margin-bottom: 1.3rem; transition: transform .4s; }
.ld-photo img, .ld-initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.ld-initials { background: var(--ld-tone, var(--navy)); color: var(--yellow); font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; }
.ld-name { font-size: 1.12rem; margin: 0 0 .35rem; }
.ld-role { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0; }
.ld-name, .ld-role { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ld-hint { position: absolute; bottom: 1rem; left: 0; right: 0; font-size: .75rem; color: var(--muted); }
.ld-back { transform: rotateY(180deg); background: var(--ld-tone, var(--navy)); color: #fff; display: flex; flex-direction: column; padding: 1.4rem 1.3rem 1rem; }
.ld-bio { flex: 1; overflow-y: auto; font-size: .92rem; line-height: 1.6; padding-right: .4rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.5) transparent; }
.ld-bio p { margin-bottom: .7rem; }
.ld-back-foot { display: flex; align-items: center; gap: .6rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: .8rem; margin-top: .6rem; }
.ld-mini { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--yellow); }
.ld-mini img, .ld-mini span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; background: rgba(255,255,255,.2); font-weight: 800; font-size: .85rem; }
.ld-mini-text { flex: 1; min-width: 0; line-height: 1.2; }
.ld-mini-text strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-mini-text small { font-size: .72rem; opacity: .85; }
.ld-links { display: flex; gap: .35rem; }
.ld-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.ld-links a:hover, .ld-links a:focus-visible { background: var(--yellow); color: var(--navy); }
.ld-card.flipped .ld-inner { transform: rotateY(180deg); }
@media (hover: hover) { .ld-card:not(.no-back):hover .ld-inner { transform: rotateY(180deg); } }
.ld-card:not(.no-back):hover .ld-photo { transform: scale(1.04); }
.ld-card:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--yellow); }
.ld-social { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; position: relative; z-index: 2; }
.ld-in { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #0a66c2; color: #fff; font-size: 1.15rem; }
.ld-in:hover, .ld-in:focus-visible { color: #fff; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .ld-inner { transition: none !important; } }

/* Main menu: keep seven items plus Donate on one line on smaller laptops */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-nav .nav-link { padding: .5rem .5rem !important; font-size: .92rem; }
  .main-nav .navbar-brand img { width: 100px; height: auto; }
  .btn-donate { padding: .5rem .9rem; }
}
.main-nav .dropdown-item { padding: .55rem 1.2rem; font-weight: 500; }

/* ==========================================================================
   Home page sections (app/views/home.php)
   ========================================================================== */
.hm-accent { color: var(--red); }
.hm-link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 600; color: var(--red); text-decoration: none; }
.hm-link:hover { color: var(--navy); }
.hm-link i { transition: transform .2s; }
.hm-link:hover i { transform: translateX(4px); }

/* Impact band: big heading beside a grid of numbers */
.hm-impact { background: var(--navy-900); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.hm-impact::after { content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 38%; background: linear-gradient(115deg, transparent 49.6%, rgba(255,238,0,.08) 50%, transparent 50.4%); pointer-events: none; }
.hm-impact-title { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.12; margin: 0; }
.hm-impact .hm-accent { color: var(--yellow); }
.hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.18); }
.hm-stat { padding: 1.6rem 1.2rem; border-right: 1px solid rgba(255,255,255,.18); }
.hm-stat:last-child { border-right: 0; }
.hm-stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: #fff; }
.hm-stat-suffix { color: var(--yellow); }
.hm-stat:last-child .hm-stat-num { color: var(--yellow); }
.hm-stat p { margin: .6rem 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@media (max-width: 767.98px) {
  .hm-stats { grid-template-columns: repeat(2, 1fr); }
  .hm-stat:nth-child(2) { border-right: 0; }
  .hm-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
}

/* Introduction: two-tone headline, text on the right, programme strip below */
.hm-intro.section { padding: 3.5rem 0; }
.hm-intro { position: relative; border-bottom: 1px solid var(--line); background: #fff; isolation: isolate; }
.hm-intro.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--intro-bg) center / cover no-repeat; opacity: var(--intro-op, .14); }
.hm-intro.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,.55) 100%); }
.hm-intro-title { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0; overflow-wrap: normal; hyphens: manual; text-wrap: balance; }
.hm-intro-text { color: var(--ink); font-size: clamp(.98rem, .94rem + .15vw, 1.05rem); line-height: 1.7; border-left: 3px solid var(--yellow); padding-left: 1.3rem; }
.hm-intro-text p { margin-bottom: .9rem; }
.hm-intro-text p:last-child { margin-bottom: 1rem; }
.hm-intro .hm-link { margin-left: 1.3rem; }
@media (max-width: 575.98px) {
  .hm-intro.section { padding: 2.75rem 0; }
  .hm-intro-text { padding-left: 1rem; }
  .hm-intro .hm-link { margin-left: 1rem; }
}
.hm-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .85rem; margin-top: 2.25rem; }
.hm-strip a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; text-align: center; padding: 1.1rem .8rem; min-height: 100%; font-family: var(--font-head); font-size: .85rem; font-weight: 600; line-height: 1.35; color: var(--navy); text-decoration: none; background: #fff; border: 1px solid #d5dbe6; border-top: 3px solid var(--red); border-radius: 10px; box-shadow: 0 4px 14px rgba(16, 37, 84, .08); transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s; }
.hm-strip a i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(214, 40, 40, .08); color: var(--red); font-size: 1.15rem; transition: background .2s, color .2s; }
.hm-strip a:hover, .hm-strip a:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); border-top-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16, 37, 84, .18); }
.hm-strip a:hover i, .hm-strip a:focus-visible i { background: rgba(255, 255, 255, .12); color: var(--yellow); }
@media (max-width: 991.98px) { .hm-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .hm-strip { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .hm-strip a { padding: .9rem .6rem; font-size: .8rem; } }

/* Mission & vision band with a round photo */
.hm-mission { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; padding: 4.5rem 0; position: relative; overflow: hidden; }
.hm-mission::before { content: ""; position: absolute; left: -140px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,238,0,.06); }
.hm-mv { display: flex; gap: 1.1rem; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
.hm-mv-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-size: 1.3rem; }
.hm-mv h3 { color: #fff; font-size: 1.25rem; margin: 0 0 .35rem; }
.hm-mv p { margin: 0; color: rgba(255,255,255,.85); line-height: 1.7; }
.hm-motto { color: rgba(255,255,255,.85); margin: 1.2rem 0 0; }
.hm-motto i { color: var(--yellow); }
.hm-circle { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; padding: 10px; background: conic-gradient(var(--yellow) 0 30%, rgba(255,255,255,.25) 30% 100%); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hm-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--navy); }

/* Partners: scrolling logo strip */
.hm-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-marquee-track { display: flex; width: max-content; animation: hmMarquee 40s linear infinite; }
.hm-marquee:hover .hm-marquee-track { animation-play-state: paused; }
.hm-partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-width: 200px; padding: 1.4rem 1.6rem; border-right: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: .8rem; font-weight: 600; text-align: center; }
.hm-partner .partner-logo { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: .3s; }
.hm-partner:hover .partner-logo { filter: none; opacity: 1; }
@keyframes hmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hm-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
html.a11y-motion .hm-marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }

/* Latest news: horizontal carousel of photo cards */
.hm-news-wrap { position: relative; }
.hm-news-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(85vw, 380px); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem max(1rem, calc((100vw - 1296px) / 2 + .75rem)) 1rem; scrollbar-width: none; }
.hm-news-track::-webkit-scrollbar { display: none; }
.hm-news-card { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; background: var(--navy); box-shadow: var(--shadow-sm); }
.hm-news-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hm-news-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,18,48,.92) 0%, rgba(0,18,48,.35) 55%, transparent 100%); }
.hm-news-card:hover img { transform: scale(1.06); }
.hm-news-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.hm-news-body strong { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.35; }
.hm-news-body small { color: rgba(255,255,255,.75); }
.hm-news-cat { align-self: flex-start; background: var(--yellow); color: var(--navy); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 4px; }
.hm-news-nav { position: absolute; top: 50%; transform: translateY(-60%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.2rem; }
.hm-news-nav:hover { background: var(--navy); color: var(--yellow); }
.hm-news-nav.prev { left: 1rem; }
.hm-news-nav.next { right: 1rem; }
@media (max-width: 767.98px) { .hm-news-nav { display: none; } }

/* Call to action band */
.hm-cta { background: var(--red); color: #fff; padding: 3rem 0; position: relative; overflow: hidden; }
.hm-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.08); }
.hm-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.hm-cta p { color: rgba(255,255,255,.9); }
.hm-cta-btn { background: #fff; color: var(--red); border-radius: 50px; padding: .8rem 1.6rem; font-weight: 600; }
.hm-cta-btn:hover { background: var(--navy); color: #fff; }
.hm-cta-btn-outline { border: 2px solid #fff; color: #fff; border-radius: 50px; padding: .7rem 1.5rem; font-weight: 600; }
.hm-cta-btn-outline:hover { background: #fff; color: var(--red); }

/* Utility bar between the top bar and the main menu (News room, Careers, Staff portal, language) */
.utilbar { background: #eef2f8; border-bottom: 1px solid var(--line); font-size: .85rem; }
.utilbar-links { gap: 1.8rem; }
.utilbar-links a, .utilbar-lang { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 0; font-family: var(--font-head); font-weight: 500; color: var(--navy); text-decoration: none; background: none; border: 0; }
.utilbar-links a:hover, .utilbar-lang:hover { color: var(--red); }
.utilbar-links i { font-size: 1rem; }
.utilbar .dropdown-menu { font-size: .85rem; min-width: 10rem; }
.utilbar .dropdown-item.active { background: var(--navy); }
.offcanvas-util { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .6rem; }
.offcanvas-util a { display: flex; align-items: center; gap: .6rem; color: var(--navy); text-decoration: none; font-weight: 500; }

/* Language switcher (Google website translator): hide Google's own bar and pop-ups */
.utilbar .dropdown-item { font-size: .9rem; }
.offcanvas-lang { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--navy); }
.offcanvas-lang button { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.offcanvas-lang button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
body { top: 0 !important; }
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }
