/*
Theme Name: HESS Modern
Theme URI: https://helpeducationssd.org/
Author: HelpEducation South Sudan
Description: A modern, accessible and responsive WordPress theme created for HelpEducation South Sudan (HESS).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hess-modern
Tags: education, nonprofit, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --hess-blue: #0b4f8a;
  --hess-blue-2: #0877bd;
  --hess-navy: #092842;
  --hess-gold: #f5b82e;
  --hess-green: #1e9b72;
  --hess-red: #db4c55;
  --hess-purple: #7968d8;
  --hess-text: #34495e;
  --hess-muted: #6d7d8e;
  --hess-bg: #f5f9fc;
  --hess-white: #ffffff;
  --hess-border: #dfe9f1;
  --hess-radius: 18px;
  --hess-shadow: 0 16px 42px rgba(9, 40, 66, .10);
  --hess-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hess-text);
  background: #fff;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: var(--hess-blue-2); text-decoration: none; }
a:hover { color: var(--hess-blue); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(245, 184, 46, .75); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 99999; width: auto; height: auto; padding: 10px 16px; clip: auto; background: #fff; color: var(--hess-navy); border-radius: 8px; }

.hess-container { width: min(calc(100% - 40px), var(--hess-container)); margin-inline: auto; }
.hess-section { padding: 88px 0; }
.hess-section--soft { background: var(--hess-bg); }
.hess-section--navy { color: #fff; background: var(--hess-navy); }
.hess-eyebrow { margin: 0 0 8px; color: var(--hess-blue-2); font-size: .79rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hess-heading { max-width: 760px; margin: 0 0 18px; color: var(--hess-navy); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.12; letter-spacing: -.035em; }
.hess-lead { max-width: 720px; margin: 0; color: var(--hess-muted); font-size: 1.08rem; }
.hess-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.hess-section-head > div { max-width: 760px; }

.hess-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--hess-blue-2);
  color: #fff;
  font-weight: 760;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hess-btn:hover { transform: translateY(-2px); background: var(--hess-blue); color: #fff; box-shadow: 0 10px 26px rgba(8,119,189,.25); }
.hess-btn--gold { background: var(--hess-gold); color: var(--hess-navy); }
.hess-btn--gold:hover { background: #ffd05b; color: var(--hess-navy); box-shadow: 0 10px 26px rgba(245,184,46,.25); }
.hess-btn--outline { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); color: #fff; }
.hess-btn--outline:hover { background: #fff; color: var(--hess-navy); }
.hess-text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 780; }
.hess-text-link::after { content: "\2192"; transition: transform .2s ease; }
.hess-text-link:hover::after { transform: translateX(4px); }

/* Header */
.hess-topbar { padding: 8px 0; background: var(--hess-navy); color: rgba(255,255,255,.86); font-size: .84rem; }
.hess-topbar__inner { display: flex; justify-content: space-between; gap: 20px; }
.hess-topbar__group { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hess-topbar a { color: inherit; }
.hess-topbar a:hover { color: #fff; }
.hess-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); box-shadow: 0 6px 24px rgba(9,40,66,.07); backdrop-filter: blur(12px); }
.admin-bar .hess-header { top: 32px; }
.hess-header__inner { display: flex; align-items: center; min-height: 82px; gap: 28px; }
.hess-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--hess-navy); }
.custom-logo { width: auto; max-width: 72px; max-height: 64px; object-fit: contain; }
.hess-brand__mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 12px; background: linear-gradient(145deg, var(--hess-blue-2), var(--hess-blue)); color: #fff; font-size: 1.15rem; font-weight: 900; box-shadow: 0 8px 20px rgba(8,119,189,.22); }
.hess-brand__text strong { display: block; color: var(--hess-blue); font-size: 1.05rem; line-height: 1.05; letter-spacing: -.02em; }
.hess-brand__text small { display: block; margin-top: 5px; color: var(--hess-muted); font-size: .68rem; line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.hess-nav { margin-left: auto; }
.hess-menu, .hess-menu ul { margin: 0; padding: 0; list-style: none; }
.hess-menu { display: flex; align-items: center; gap: 5px; }
.hess-menu a { display: block; padding: 11px 10px; color: var(--hess-navy); font-size: .91rem; font-weight: 680; border-radius: 8px; }
.hess-menu a:hover, .hess-menu .current-menu-item > a, .hess-menu .current_page_item > a { color: var(--hess-blue-2); background: #eef7fd; }
.hess-menu .menu-item-has-children { position: relative; }
.hess-menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 10px; visibility: hidden; opacity: 0; transform: translateY(8px); transition: .2s ease; background: #fff; border: 1px solid var(--hess-border); border-radius: 12px; box-shadow: var(--hess-shadow); }
.hess-menu .menu-item-has-children:hover > .sub-menu, .hess-menu .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.hess-header__donate { white-space: nowrap; }
.hess-menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 0; border-radius: 10px; background: #edf6fc; color: var(--hess-navy); }
.hess-menu-toggle span, .hess-menu-toggle::before, .hess-menu-toggle::after { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; content: ""; transition: .2s ease; }
.hess-menu-toggle[aria-expanded="true"] span { opacity: 0; }
.hess-menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.hess-menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hess-hero { position: relative; overflow: hidden; min-height: 650px; color: #fff; background: var(--hess-navy); }
.hess-hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,40,66,.98) 0%, rgba(9,40,66,.92) 47%, rgba(9,40,66,.35) 78%, rgba(9,40,66,.15) 100%); content: ""; z-index: 1; }
.hess-hero__media { position: absolute; inset: 0; background-image: url("assets/images/hero-hess.jpg"); background-position: center 38%; background-size: cover; }
.hess-hero__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 650px; padding: 86px 0 130px; }
.hess-hero__content { max-width: 700px; }
.hess-hero__kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; margin: 0 0 22px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); color: #dceeff; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hess-hero__kicker::before { width: 8px; height: 8px; border-radius: 50%; background: var(--hess-gold); content: ""; }
.hess-hero h1 { max-width: 660px; margin: 0 0 22px; color: #fff; font-size: clamp(3rem, 7vw, 5.25rem); line-height: .99; letter-spacing: -.055em; }
.hess-hero h1 span { color: var(--hess-gold); }
.hess-hero__lead { max-width: 620px; margin: 0 0 32px; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hess-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hess-impact-strip { position: relative; z-index: 5; margin-top: -74px; }
.hess-impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--hess-border); border-radius: 20px; box-shadow: var(--hess-shadow); }
.hess-stat { position: relative; display: flex; align-items: center; gap: 16px; min-height: 145px; padding: 27px; }
.hess-stat + .hess-stat::before { position: absolute; top: 28px; bottom: 28px; left: 0; width: 1px; background: var(--hess-border); content: ""; }
.hess-stat__icon { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #eaf5fd; color: var(--hess-blue-2); font-size: 1.45rem; }
.hess-stat:nth-child(2) .hess-stat__icon { background: #e8f7f2; color: var(--hess-green); }
.hess-stat:nth-child(3) .hess-stat__icon { background: #fff5dd; color: #cb8a00; }
.hess-stat:nth-child(4) .hess-stat__icon { background: #f0edff; color: var(--hess-purple); }
.hess-stat strong { display: block; color: var(--hess-navy); font-size: 1.7rem; line-height: 1.1; letter-spacing: -.03em; }
.hess-stat span { display: block; margin-top: 6px; color: var(--hess-muted); font-size: .84rem; line-height: 1.3; }

/* Sections and cards */
.hess-about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.hess-about__visual { position: relative; min-height: 460px; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg, #dff2fc, #f5fafc); box-shadow: var(--hess-shadow); }
.hess-about__visual img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.hess-about__badge { position: absolute; right: 20px; bottom: 20px; max-width: 180px; padding: 18px; border-radius: 16px; background: var(--hess-gold); color: var(--hess-navy); box-shadow: 0 10px 28px rgba(9,40,66,.16); }
.hess-about__badge strong { display: block; font-size: 1.7rem; line-height: 1; }
.hess-about__badge span { font-size: .8rem; font-weight: 700; }
.hess-checks { display: grid; gap: 11px; margin: 25px 0 30px; padding: 0; list-style: none; }
.hess-checks li { position: relative; padding-left: 30px; color: var(--hess-navy); font-weight: 650; }
.hess-checks li::before { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #e5f6f0; color: var(--hess-green); content: "\2713"; font-size: .75rem; font-weight: 900; }
.hess-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hess-program-card { position: relative; min-height: 285px; padding: 29px; overflow: hidden; border: 1px solid var(--hess-border); border-radius: var(--hess-radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hess-program-card:hover { transform: translateY(-6px); border-color: #c4dce9; box-shadow: var(--hess-shadow); }
.hess-program-card__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 16px; background: #eaf5fd; color: var(--hess-blue-2); font-size: 1.65rem; }
.hess-program-card:nth-child(2) .hess-program-card__icon { background: #e8f7f2; color: var(--hess-green); }
.hess-program-card:nth-child(3) .hess-program-card__icon { background: #f0edff; color: var(--hess-purple); }
.hess-program-card:nth-child(4) .hess-program-card__icon { background: #fff0f2; color: var(--hess-red); }
.hess-program-card:nth-child(5) .hess-program-card__icon { background: #fff5dd; color: #cb8a00; }
.hess-program-card:nth-child(6) .hess-program-card__icon { background: #e8f7f2; color: var(--hess-green); }
.hess-program-card h3 { margin: 0 0 10px; color: var(--hess-navy); font-size: 1.27rem; }
.hess-program-card p { margin: 0 0 20px; color: var(--hess-muted); font-size: .94rem; }
.hess-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hess-project-card { overflow: hidden; border: 1px solid var(--hess-border); border-radius: var(--hess-radius); background: #fff; box-shadow: 0 8px 24px rgba(9,40,66,.05); transition: transform .25s ease, box-shadow .25s ease; }
.hess-project-card:hover { transform: translateY(-5px); box-shadow: var(--hess-shadow); }
.hess-project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #d8eef9, #e9f7f2); }
.hess-project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hess-project-card:hover .hess-project-card__media img { transform: scale(1.04); }
.hess-project-card__media--one { background-image: url("assets/images/project-classroom.jpg"); background-size: cover; background-position: center; }
.hess-project-card__media--two { background-image: url("assets/images/project-wash.jpg"); background-size: cover; background-position: center; }
.hess-project-card__media--three { background-image: url("assets/images/project-community.jpg"); background-size: cover; background-position: center; }
.hess-project-card__tag { position: absolute; left: 16px; bottom: 16px; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--hess-blue); font-size: .72rem; font-weight: 820; box-shadow: 0 5px 18px rgba(9,40,66,.12); }
.hess-project-card__body { padding: 24px; }
.hess-project-card h3 { margin: 0 0 9px; color: var(--hess-navy); font-size: 1.25rem; line-height: 1.3; }
.hess-project-card p { margin: 0 0 18px; color: var(--hess-muted); font-size: .91rem; }
.hess-story-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; }
.hess-feature-story { position: relative; min-height: 480px; overflow: hidden; border-radius: 22px; background: var(--hess-navy) url("assets/images/story-support.jpg") center/cover no-repeat; }
.hess-feature-story::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,40,66,.95), rgba(9,40,66,.05) 70%); content: ""; }
.hess-feature-story__content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 34px; color: #fff; }
.hess-feature-story__content h3 { margin: 7px 0 10px; color: #fff; font-size: 1.8rem; line-height: 1.2; }
.hess-feature-story__content p { margin: 0 0 19px; color: rgba(255,255,255,.8); }
.hess-news-list { display: grid; gap: 15px; }
.hess-news-item { display: grid; grid-template-columns: 112px 1fr; gap: 17px; align-items: center; padding: 16px; border: 1px solid var(--hess-border); border-radius: 15px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.hess-news-item:hover { border-color: #bcd9e9; box-shadow: 0 10px 28px rgba(9,40,66,.07); }
.hess-news-item__thumb { aspect-ratio: 1; overflow: hidden; border-radius: 11px; background: #eaf5fd url("assets/images/news.svg") center/cover no-repeat; }
.hess-news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hess-news-item time { display: block; margin-bottom: 5px; color: var(--hess-blue-2); font-size: .75rem; font-weight: 750; }
.hess-news-item h3 { margin: 0; color: var(--hess-navy); font-size: 1rem; line-height: 1.35; }
.hess-partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.hess-partner { display: grid; place-items: center; min-height: 95px; padding: 16px; border: 1px solid var(--hess-border); border-radius: 14px; background: #fff; color: var(--hess-muted); font-size: .91rem; font-weight: 800; text-align: center; }
.hess-partner img { width: auto; max-width: 100%; height: 48px; object-fit: contain; }
.hess-cta { position: relative; overflow: hidden; padding: 58px; border-radius: 26px; background: linear-gradient(115deg, var(--hess-blue), var(--hess-navy)); color: #fff; }
.hess-cta::after { position: absolute; top: -100px; right: -70px; width: 360px; height: 360px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.hess-cta__content { position: relative; z-index: 2; max-width: 720px; }
.hess-cta h2 { margin: 0 0 14px; color: #fff; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; }
.hess-cta p { max-width: 650px; margin: 0 0 28px; color: rgba(255,255,255,.8); font-size: 1.07rem; }
.hess-cta__actions { display: flex; flex-wrap: wrap; gap: 13px; }

/* Inner pages */
.hess-page-hero { padding: 82px 0; color: #fff; background: linear-gradient(130deg, var(--hess-navy), var(--hess-blue)); }
.hess-page-hero .hess-eyebrow { color: #8fd0fb; }
.hess-page-hero h1 { max-width: 850px; margin: 0; color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -.045em; }
.hess-content-wrap { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 76px 0; }
.hess-entry-content > *:first-child { margin-top: 0; }
.hess-entry-content h2, .hess-entry-content h3, .hess-entry-content h4 { color: var(--hess-navy); line-height: 1.25; }
.hess-entry-content h2 { margin-top: 2.2em; font-size: 2rem; }
.hess-entry-content h3 { margin-top: 1.8em; font-size: 1.45rem; }
.hess-entry-content p, .hess-entry-content li { color: var(--hess-text); }
.hess-entry-content img { border-radius: 16px; }
.hess-entry-content blockquote { margin: 32px 0; padding: 20px 25px; border-left: 5px solid var(--hess-gold); background: var(--hess-bg); color: var(--hess-navy); font-size: 1.14rem; }
.hess-post-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: rgba(255,255,255,.72); font-size: .87rem; }
.hess-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.hess-pagination { margin-top: 45px; }
.hess-pagination .nav-links { display: flex; gap: 8px; }
.hess-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 9px; background: var(--hess-bg); color: var(--hess-navy); font-weight: 700; }
.hess-pagination .current { background: var(--hess-blue); color: #fff; }

/* Contact form */
.hess-contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; align-items: start; }
.hess-contact-panel { padding: 30px; border-radius: 18px; background: var(--hess-navy); color: #fff; }
.hess-contact-panel h2 { margin-top: 0; color: #fff; }
.hess-contact-panel a { color: #fff; }
.hess-contact-list { display: grid; gap: 18px; margin: 25px 0 0; padding: 0; list-style: none; }
.hess-contact-list strong { display: block; color: #7fc9f5; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.hess-contact-form { padding: 30px; border: 1px solid var(--hess-border); border-radius: 18px; background: #fff; box-shadow: 0 10px 32px rgba(9,40,66,.07); }
.hess-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hess-field { margin-bottom: 18px; }
.hess-field label { display: block; margin-bottom: 7px; color: var(--hess-navy); font-size: .88rem; font-weight: 750; }
.hess-field input, .hess-field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cad8e2; border-radius: 10px; background: #fbfdfe; color: var(--hess-navy); }
.hess-field input:focus, .hess-field textarea:focus { border-color: var(--hess-blue-2); box-shadow: 0 0 0 3px rgba(8,119,189,.12); outline: 0; }
.hess-alert { padding: 12px 15px; margin-bottom: 18px; border-radius: 10px; background: #e6f7f0; color: #0c6c4b; font-weight: 650; }
.hess-alert--error { background: #fff0f1; color: #a72f38; }

/* Complete organization pages */
.hess-subpage-hero { position: relative; overflow: hidden; padding: 96px 0 120px; color: #fff; background: linear-gradient(125deg, var(--hess-navy), var(--hess-blue) 72%, var(--hess-blue-2)); }
.hess-subpage-hero::after { position: absolute; right: -100px; bottom: -220px; width: 520px; height: 520px; border: 75px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.hess-subpage-hero__content { position: relative; z-index: 2; max-width: 850px; }
.hess-subpage-hero .hess-eyebrow { color: #91d4fa; }
.hess-subpage-hero h1 { margin: 0 0 20px; color: #fff; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.hess-subpage-hero__content > p:not(.hess-eyebrow) { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.14rem; }
.hess-profile-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hess-profile-meta span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: .78rem; font-weight: 720; }
.hess-intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 60px; }
.hess-copy h2 { margin: 0 0 18px; color: var(--hess-navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.13; letter-spacing: -.035em; }
.hess-copy p { color: var(--hess-muted); }
.hess-info-card { padding: 30px; border: 1px solid var(--hess-border); border-radius: 20px; background: #fff; box-shadow: var(--hess-shadow); }
.hess-info-card h3 { margin: 0 0 18px; color: var(--hess-navy); }
.hess-fact-list { display: grid; gap: 16px; margin: 0; }
.hess-fact-list div { padding-bottom: 15px; border-bottom: 1px solid var(--hess-border); }
.hess-fact-list div:last-child { padding-bottom: 0; border: 0; }
.hess-fact-list dt { color: var(--hess-blue-2); font-size: .74rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.hess-fact-list dd { margin: 4px 0 0; color: var(--hess-navy); font-weight: 650; }
.hess-vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hess-vision-card { min-height: 280px; padding: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--hess-border); }
.hess-vision-card:nth-child(2) { background: var(--hess-blue); border-color: var(--hess-blue); color: #fff; }
.hess-vision-card:nth-child(3) { background: #fff5dd; border-color: #ffe5a7; }
.hess-vision-card__number { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 22px; border-radius: 13px; background: #eaf5fd; color: var(--hess-blue-2); font-weight: 850; }
.hess-vision-card:nth-child(2) .hess-vision-card__number { background: rgba(255,255,255,.14); color: #fff; }
.hess-vision-card:nth-child(3) .hess-vision-card__number { background: #fff; color: #b57600; }
.hess-vision-card h3 { margin: 0 0 12px; color: var(--hess-navy); font-size: 1.35rem; }
.hess-vision-card:nth-child(2) h3 { color: #fff; }
.hess-vision-card p { margin: 0; color: var(--hess-muted); }
.hess-vision-card:nth-child(2) p { color: rgba(255,255,255,.8); }
.hess-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hess-value-card { padding: 24px; border-top: 4px solid var(--hess-blue-2); border-radius: 15px; background: #fff; box-shadow: 0 8px 25px rgba(9,40,66,.06); }
.hess-value-card:nth-child(2n) { border-top-color: var(--hess-green); }
.hess-value-card:nth-child(3n) { border-top-color: var(--hess-gold); }
.hess-value-card h3 { margin: 0 0 8px; color: var(--hess-navy); font-size: 1.05rem; }
.hess-value-card p { margin: 0; color: var(--hess-muted); font-size: .88rem; }
.hess-region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hess-region { padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--hess-blue), var(--hess-navy)); }
.hess-region:nth-child(2) { background: linear-gradient(145deg, var(--hess-green), #106248); }
.hess-region:nth-child(3) { background: linear-gradient(145deg, #8b6b18, #59450f); }
.hess-region h3 { margin: 0 0 9px; color: #fff; }
.hess-region p { margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; }
.hess-program-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hess-program-detail { position: relative; min-height: 325px; padding: 31px; overflow: hidden; border: 1px solid var(--hess-border); border-radius: 20px; background: #fff; }
.hess-program-detail::after { position: absolute; right: -38px; bottom: -38px; width: 120px; height: 120px; border-radius: 50%; background: #eaf5fd; content: ""; }
.hess-program-detail:nth-child(2n)::after { background: #e8f7f2; }
.hess-program-detail__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 16px; background: #eaf5fd; color: var(--hess-blue-2); font-size: 1.45rem; font-weight: 800; }
.hess-program-detail:nth-child(2n) .hess-program-detail__icon { background: #e8f7f2; color: var(--hess-green); }
.hess-program-detail h2 { margin: 0 0 11px; color: var(--hess-navy); font-size: 1.45rem; }
.hess-program-detail p { margin: 0 0 15px; color: var(--hess-muted); }
.hess-program-detail ul { margin: 0; padding-left: 19px; color: var(--hess-text); font-size: .9rem; }
.hess-impact-numbers { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: -58px; overflow: hidden; border-radius: 20px; background: var(--hess-border); box-shadow: var(--hess-shadow); }
.hess-impact-number { min-height: 155px; padding: 29px; background: #fff; }
.hess-impact-number strong { display: block; color: var(--hess-blue); font-size: 2rem; line-height: 1.1; }
.hess-impact-number span { display: block; margin-top: 8px; color: var(--hess-muted); font-size: .84rem; }
.hess-impact-records { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hess-impact-record { padding: 28px; border: 1px solid var(--hess-border); border-radius: 18px; background: #fff; }
.hess-impact-record__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.hess-impact-record h3 { margin: 0; color: var(--hess-navy); font-size: 1.2rem; }
.hess-impact-record__figure { flex: 0 0 auto; color: var(--hess-blue-2); font-size: 1.35rem; font-weight: 850; }
.hess-impact-record p { margin: 0; color: var(--hess-muted); font-size: .91rem; }
.hess-impact-note { padding: 17px 20px; margin-top: 24px; border-left: 4px solid var(--hess-gold); background: #fff9eb; color: #6b551d; font-size: .86rem; }
.hess-story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.hess-story-card { overflow: hidden; border: 1px solid var(--hess-border); border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(9,40,66,.06); }
.hess-story-card__visual { position: relative; display: flex; align-items: end; min-height: 220px; padding: 25px; color: #fff; background: linear-gradient(135deg, var(--hess-blue), var(--hess-navy)); }
.hess-story-card:nth-child(2) .hess-story-card__visual { background: linear-gradient(135deg, var(--hess-green), #106248); }
.hess-story-card:nth-child(3) .hess-story-card__visual { background: linear-gradient(135deg, #9a6a00, #563c00); }
.hess-story-card:nth-child(4) .hess-story-card__visual { background: linear-gradient(135deg, var(--hess-purple), #413286); }
.hess-story-card__visual::after { position: absolute; top: 28px; right: 30px; color: rgba(255,255,255,.22); content: "\201C"; font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.hess-story-card__visual span { position: relative; z-index: 2; font-size: .75rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.hess-story-card__body { padding: 27px; }
.hess-story-card h2 { margin: 0 0 11px; color: var(--hess-navy); font-size: 1.35rem; }
.hess-story-card p { margin: 0 0 18px; color: var(--hess-muted); }
.hess-logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hess-logo-card { display: grid; place-items: center; min-height: 145px; padding: 22px; border: 1px solid var(--hess-border); border-radius: 17px; background: #fff; color: var(--hess-navy); font-size: 1rem; font-weight: 830; line-height: 1.25; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.hess-logo-card:hover { transform: translateY(-4px); box-shadow: var(--hess-shadow); }
.hess-logo-card img { width: auto; max-width: 100%; height: 64px; margin: 0 auto 14px; object-fit: contain; }
.hess-logo-card small { display: block; margin-top: 7px; color: var(--hess-muted); font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.hess-memberships { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.hess-memberships span { padding: 9px 14px; border-radius: 999px; background: #eaf5fd; color: var(--hess-blue); font-size: .82rem; font-weight: 720; }
.hess-partner-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hess-partner-principle { padding: 27px; border-radius: 17px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.hess-partner-principle h3 { margin: 0 0 10px; color: #fff; }
.hess-partner-principle p { margin: 0; color: rgba(255,255,255,.72); }

/* Footer */
.hess-footer { background: #071f33; color: rgba(255,255,255,.72); }
.hess-footer__main { display: grid; grid-template-columns: 1.35fr .7fr .9fr 1.1fr; gap: 45px; padding: 68px 0 50px; }
.hess-footer h2, .hess-footer h3 { color: #fff; }
.hess-footer h3 { margin: 0 0 18px; font-size: 1rem; }
.hess-footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.hess-footer__brand .hess-brand__text strong { color: #fff; }
.hess-footer__brand .hess-brand__text small { color: rgba(255,255,255,.55); }
.hess-footer__about { max-width: 360px; margin: 18px 0 0; }
.hess-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.hess-footer a { color: rgba(255,255,255,.72); }
.hess-footer a:hover { color: #fff; }
.hess-footer__contact li { position: relative; padding-left: 25px; }
.hess-footer__contact li::before { position: absolute; left: 0; color: var(--hess-gold); content: "\2022"; font-size: 1.4rem; line-height: 1; }
.hess-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.hess-footer__bottom p { margin: 0; }

@media (max-width: 1060px) {
  .hess-header__donate { display: none; }
  .hess-menu a { padding-inline: 7px; font-size: .86rem; }
  .hess-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .hess-stat:nth-child(3)::before { display: none; }
  .hess-about { gap: 42px; }
  .hess-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hess-footer__main { grid-template-columns: 1.2fr 1fr 1fr; }
  .hess-footer__main > div:first-child { grid-column: 1 / -1; }
  .hess-values-grid, .hess-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .admin-bar .hess-header { top: 46px; }
  .hess-topbar__inner { justify-content: center; }
  .hess-topbar__group:first-child { display: none; }
  .hess-header__inner { min-height: 72px; }
  .hess-menu-toggle { display: block; }
  .hess-nav { position: fixed; top: var(--hess-mobile-nav-top, 72px); right: 0; bottom: 0; left: 0; display: none; overflow-y: auto; padding: 24px 20px; background: #fff; }
  .hess-nav.is-open { display: block; }
  .hess-menu { align-items: stretch; flex-direction: column; }
  .hess-menu a { padding: 13px 14px; font-size: 1rem; }
  .hess-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 18px; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; }
  .hess-hero, .hess-hero__inner { min-height: 590px; }
  .hess-hero::before { background: linear-gradient(90deg, rgba(9,40,66,.97), rgba(9,40,66,.79)); }
  .hess-about, .hess-story-layout, .hess-contact-grid { grid-template-columns: 1fr; }
  .hess-about__visual { min-height: 380px; }
  .hess-project-grid, .hess-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .hess-partners { grid-template-columns: repeat(3, 1fr); }
  .hess-section-head { align-items: start; flex-direction: column; }
  .hess-intro-grid { grid-template-columns: 1fr; }
  .hess-vision-grid, .hess-region-grid, .hess-partner-principles { grid-template-columns: 1fr; }
  .hess-impact-numbers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 590px) {
  .hess-container { width: min(calc(100% - 28px), var(--hess-container)); }
  .hess-section { padding: 64px 0; }
  .hess-brand__text strong { font-size: .93rem; }
  .hess-brand__text small { font-size: .59rem; }
  .hess-brand__mark { width: 46px; height: 46px; }
  .custom-logo { max-width: 58px; max-height: 52px; }
  .hess-hero__inner { padding-top: 65px; }
  .hess-hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hess-impact-grid { grid-template-columns: 1fr; }
  .hess-stat { min-height: 112px; padding: 20px; }
  .hess-stat + .hess-stat::before { top: 0; right: 20px; bottom: auto; left: 20px; width: auto; height: 1px; }
  .hess-stat:nth-child(3)::before { display: block; }
  .hess-impact-strip { margin-top: -42px; }
  .hess-card-grid, .hess-project-grid, .hess-archive-grid { grid-template-columns: 1fr; }
  .hess-partners { grid-template-columns: repeat(2, 1fr); }
  .hess-cta { padding: 38px 25px; }
  .hess-form-row { grid-template-columns: 1fr; gap: 0; }
  .hess-news-item { grid-template-columns: 86px 1fr; }
  .hess-footer__main { grid-template-columns: 1fr; gap: 32px; }
  .hess-footer__main > div:first-child { grid-column: auto; }
  .hess-footer__bottom { flex-direction: column; }
  .hess-values-grid, .hess-program-page-grid, .hess-impact-records, .hess-story-grid, .hess-logo-grid { grid-template-columns: 1fr; }
  .hess-impact-numbers { grid-template-columns: 1fr; }
  .hess-subpage-hero { padding: 72px 0 95px; }
}

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