/*
Theme Name: Gens
Theme URI: https://kkcsi.com/
Author: kkcsi.com
Author URI: https://kkcsi.com/
Description: A self-contained association website theme for the Green Energy Association of Sabah (GENS).
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gens
Tags: custom-logo, custom-menu, featured-images, full-width-template
*/

:root {
  --gens-ink: #10231f;
  --gens-muted: #51635f;
  --gens-green: #20a75a;
  --gens-green-dark: #0f7245;
  --gens-blue: #0a6fd6;
  --gens-sky: #dff4ff;
  --gens-lime: #dff869;
  --gens-line: #d9e8e0;
  --gens-soft: #f4faf6;
  --gens-cream: #fbfff2;
  --gens-white: #fff;
  --gens-shadow: 0 18px 50px rgba(16, 35, 31, 0.12);
  --gens-deep-shadow: 0 28px 70px rgba(12, 45, 37, 0.2);
  --gens-radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--gens-ink);
  background: var(--gens-white);
  font-family: var(--gens-font, Inter, ui-sans-serif, system-ui, sans-serif);
  line-height: 1.6;
}

a {
  color: var(--gens-green-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--gens-blue);
}

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

:focus-visible {
  outline: 3px solid rgba(32, 167, 90, 0.55);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gens-line);
  backdrop-filter: blur(14px);
  min-height: 88px;
}

.header-inner,
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 12px;
  min-width: 0;
  height: 88px;
  color: var(--gens-ink);
  font-weight: 800;
}

.brand-logo,
.custom-logo {
  display: block;
  width: 72px;
  height: 58px;
  max-width: 72px;
  max-height: 58px;
  object-fit: contain;
  flex: 0 0 72px;
}

.brand span:last-child {
  display: block;
  max-width: 360px;
  line-height: 1.15;
  font-size: 1.02rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--gens-line);
  border-radius: var(--gens-radius);
  padding: 9px 12px;
  background: var(--gens-white);
  color: var(--gens-ink);
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 44px;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: var(--gens-radius);
  color: var(--gens-ink);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu a[aria-current="page"],
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--gens-soft);
  border-color: var(--gens-line);
  color: var(--gens-green-dark);
}

.admin-bar .site-header {
  top: 32px;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--gens-white);
  background: #0b372f;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(32, 167, 90, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(8, 34, 30, 0.92), rgba(8, 34, 30, 0.48) 56%, rgba(8, 34, 30, 0.2)),
    linear-gradient(0deg, rgba(8, 34, 30, 0.76), rgba(8, 34, 30, 0.08) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gens-lime);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 710px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--gens-radius);
  border: 1px solid transparent;
  background: var(--gens-green);
  color: var(--gens-white);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(32, 167, 90, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  transform: translateY(-1px);
  background: var(--gens-green-dark);
  color: var(--gens-white);
  box-shadow: 0 14px 30px rgba(32, 167, 90, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gens-white);
}

.button.light {
  border-color: var(--gens-line);
  background: var(--gens-white);
  color: var(--gens-green-dark);
  box-shadow: none;
}

.section {
  padding: 84px 0;
}

.section.soft {
  background: var(--gens-soft);
}

.section.blueprint {
  background:
    linear-gradient(135deg, rgba(10, 111, 214, 0.1), rgba(32, 167, 90, 0.16)),
    var(--gens-white);
}

.feature-news {
  background:
    linear-gradient(135deg, rgba(223, 248, 105, 0.16), rgba(10, 111, 214, 0.08)),
    var(--gens-cream);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.entry-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--gens-muted);
  font-size: 1.05rem;
}

.page-hero {
  padding: 96px 0;
  color: var(--gens-white);
  background:
    radial-gradient(circle at 16% 20%, rgba(223, 248, 105, 0.24), transparent 26%),
    linear-gradient(135deg, #0b372f, #074f5b 58%, #0a6fd6);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pathway-grid article {
  padding: 24px;
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  border: 1px solid var(--gens-line);
  box-shadow: 0 12px 34px rgba(16, 35, 31, 0.07);
}

.pathway-grid span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gens-white);
  background: linear-gradient(135deg, var(--gens-green), var(--gens-blue));
  font-weight: 900;
}

.pathway-grid h3 {
  margin: 18px 0 8px;
}

.pathway-grid p {
  margin: 0;
  color: var(--gens-muted);
}

.membership-layout,
.committee-layout,
.news-page-layout,
.resources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 34px;
  align-items: start;
}

.member-type-grid,
.role-grid,
.event-stack,
.resource-card-grid {
  display: grid;
  gap: 16px;
}

.member-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-type-grid article,
.role-grid article,
.event-stack article,
.resource-card-grid article {
  padding: 22px;
  border: 1px solid var(--gens-line);
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  box-shadow: 0 12px 34px rgba(16, 35, 31, 0.07);
}

.member-type-grid h3,
.event-stack h3 {
  margin: 0 0 8px;
}

.member-type-grid p,
.event-stack p,
.committee-copy p {
  margin: 0;
  color: var(--gens-muted);
}

.committee-photo,
.featured-story {
  overflow: hidden;
  margin: 0;
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  box-shadow: var(--gens-deep-shadow);
}

.committee-photo img,
.featured-story img {
  width: 100%;
  object-fit: cover;
}

.committee-photo img {
  aspect-ratio: 4 / 3;
}

.committee-photo figcaption {
  padding: 14px 18px;
  color: var(--gens-muted);
  font-weight: 750;
}

.committee-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.role-grid {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-grid span {
  display: block;
  color: var(--gens-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.featured-story {
  display: block;
}

.featured-story div {
  padding: 28px;
}

.featured-story h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.06;
}

.featured-story p:last-child {
  margin: 0;
  color: var(--gens-muted);
}

.event-stack time {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gens-green-dark);
  font-weight: 900;
}

.news-list-section {
  position: relative;
}

.news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover,
.news-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(8, 122, 76, 0.32);
  box-shadow: 0 20px 46px rgba(16, 35, 31, 0.12);
}

.news-card-trigger {
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.news-card-trigger:focus-visible {
  outline: 3px solid var(--gens-lime);
  outline-offset: 5px;
  border-radius: calc(var(--gens-radius) - 2px);
}

.news-card-body {
  display: grid;
  gap: 10px;
}

.featured-story .news-card-trigger {
  grid-template-columns: 1fr;
}

.featured-story .news-card-trigger > img {
  height: auto;
  max-height: none;
  padding: clamp(16px, 2.5vw, 26px);
  object-fit: contain;
  background: linear-gradient(135deg, rgba(8, 122, 76, 0.08), rgba(21, 111, 208, 0.08));
}

.featured-story .news-card-body {
  padding: 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
  align-content: center;
  justify-items: start;
}

.news-card-title {
  display: block;
  color: var(--gens-ink);
  font-weight: 900;
  line-height: 1.12;
}

.featured-story .news-card-title {
  max-width: 940px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.featured-story .news-card-excerpt {
  max-width: 880px;
  font-size: 1.08rem;
}

.event-stack .news-card-title {
  font-size: 1.25rem;
}

.news-card-excerpt {
  display: block;
  color: var(--gens-muted);
  line-height: 1.6;
}

.news-card-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: var(--gens-green-dark);
  font-weight: 900;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 20, 18, 0.68);
}

body.news-modal-open {
  overflow: hidden;
}

.news-modal[hidden] {
  display: none;
}

.news-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 34px;
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--gens-ink);
  background: rgba(8, 122, 76, 0.1);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.news-modal-close:hover,
.news-modal-close:focus-visible {
  color: var(--gens-white);
  background: var(--gens-green);
}

.news-modal-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 24px;
  padding: 14px;
  border-radius: calc(var(--gens-radius) - 2px);
  object-fit: contain;
  background: linear-gradient(135deg, rgba(8, 122, 76, 0.08), rgba(21, 111, 208, 0.08));
}

.news-modal-body h2 {
  margin: 0 42px 16px 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.news-modal-body p {
  color: var(--gens-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.news-modal-body p:last-child {
  margin-bottom: 0;
}

.resource-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card-grid article {
  position: relative;
  overflow: hidden;
}

.resource-card-grid article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gens-green), var(--gens-blue));
}

.resource-card-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gens-green-dark);
  font-weight: 950;
  letter-spacing: 0.12em;
}

.resource-card-grid h3 {
  margin: 0 0 8px;
}

.resource-card-grid p {
  margin: 0;
  color: var(--gens-muted);
}

.resource-aside {
  overflow: hidden;
  border: 1px solid var(--gens-line);
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  box-shadow: var(--gens-deep-shadow);
}

.resource-aside img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.resource-aside div {
  padding: 28px;
}

.resource-aside h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.resource-aside p:not(.eyebrow) {
  color: var(--gens-muted);
}

.card,
.post-card {
  border: 1px solid var(--gens-line);
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(16, 35, 31, 0.02);
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gens-green), var(--gens-blue));
}

.page-card {
  color: inherit;
  display: block;
  min-height: 100%;
  padding-right: 42px;
}

.page-card::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--gens-green-dark);
  background: rgba(32, 167, 90, 0.12);
  content: ">";
  display: grid;
  font-weight: 900;
  line-height: 1;
  place-items: center;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.page-card span {
  color: var(--gens-green-dark);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-card:hover,
.page-card:focus {
  color: var(--gens-ink);
}

.page-card:hover::after,
.page-card:focus::after {
  color: var(--gens-white);
  background: var(--gens-green-dark);
  transform: translateX(4px);
}

.card h3,
.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.card p,
.post-card p {
  margin: 0;
  color: var(--gens-muted);
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.feature-media {
  overflow: hidden;
  border-radius: var(--gens-radius);
  box-shadow: var(--gens-shadow);
  background: var(--gens-white);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 22px;
  border-left: 4px solid var(--gens-green);
  background: var(--gens-white);
  border-radius: var(--gens-radius);
  box-shadow: 0 12px 34px rgba(16, 35, 31, 0.08);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 42px;
  align-items: center;
}

.news-copy > p:last-child {
  color: var(--gens-muted);
  font-size: 1.04rem;
}

blockquote {
  margin: 26px 0;
  padding: 24px;
  border-left: 5px solid var(--gens-green);
  border-radius: var(--gens-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 44px rgba(16, 35, 31, 0.08);
}

blockquote p {
  margin: 0 0 14px;
  color: var(--gens-ink);
  font-size: 1.16rem;
  font-weight: 650;
}

blockquote cite {
  color: var(--gens-muted);
  font-style: normal;
  font-weight: 800;
}

.portrait-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  box-shadow: var(--gens-deep-shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
}

.portrait-card div {
  padding: 20px;
}

.portrait-card strong,
.portrait-card span {
  display: block;
}

.portrait-card strong {
  font-size: 1.28rem;
}

.portrait-card span {
  color: var(--gens-muted);
}

.gallery-section {
  background:
    linear-gradient(180deg, var(--gens-white), var(--gens-soft));
}

.image-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.image-mosaic figure {
  position: relative;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--gens-radius);
  background: var(--gens-ink);
  box-shadow: var(--gens-shadow);
}

.gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.gallery-trigger:focus-visible {
  outline: 4px solid var(--gens-lime);
  outline-offset: 4px;
}

.image-mosaic .mosaic-large {
  grid-row: span 2;
}

.image-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-mosaic figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border-radius: var(--gens-radius);
  background: rgba(12, 28, 25, 0.78);
  color: var(--gens-white);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 20, 18, 0.78);
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(1040px, 100%);
  max-height: 88vh;
  padding: 18px;
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--gens-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus-visible {
  color: var(--gens-white);
  background: var(--gens-green);
}

.gallery-modal-image {
  display: block;
  width: 100%;
  max-height: calc(88vh - 96px);
  object-fit: contain;
  border-radius: calc(var(--gens-radius) - 2px);
  background: rgba(8, 122, 76, 0.08);
}

.gallery-modal-caption {
  margin: 0;
  color: var(--gens-ink);
  font-weight: 850;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--gens-muted);
  font-size: 0.94rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--gens-line);
  border-radius: var(--gens-radius);
  background: var(--gens-white);
}

.timeline-item time {
  color: var(--gens-green-dark);
  font-weight: 800;
}

.contact-section {
  background:
    linear-gradient(180deg, var(--gens-soft), var(--gens-white));
  padding-bottom: 96px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 30px;
  align-items: stretch;
  padding: 10px;
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  border: 1px solid var(--gens-line);
  box-shadow: var(--gens-deep-shadow);
}

.contact-panel > div:first-child {
  padding: 34px;
  border-radius: var(--gens-radius);
  background:
    radial-gradient(circle at 20% 12%, rgba(223, 248, 105, 0.18), transparent 32%),
    linear-gradient(135deg, #0c312b, #0a5b52);
  color: var(--gens-white);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.contact-form-panel,
.location-card {
  padding: 30px;
  border: 1px solid var(--gens-line);
  border-radius: var(--gens-radius);
  background: var(--gens-white);
  box-shadow: var(--gens-shadow);
}

.gens-contact-form {
  display: grid;
  gap: 18px;
}

.gens-contact-form p {
  margin: 0;
}

.form-row.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gens-contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--gens-ink);
  font-weight: 800;
}

.gens-contact-form input,
.gens-contact-form select,
.gens-contact-form textarea {
  width: 100%;
  border: 1px solid var(--gens-line);
  border-radius: var(--gens-radius);
  padding: 12px 13px;
  color: var(--gens-ink);
  background: #fbfefc;
  font: inherit;
}

.gens-contact-form input:focus,
.gens-contact-form select:focus,
.gens-contact-form textarea:focus {
  outline: 3px solid rgba(32, 167, 90, 0.18);
  border-color: var(--gens-green);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--gens-radius);
  font-weight: 800;
}

.form-notice.is-success {
  color: #0d5131;
  background: #ddf8e9;
  border: 1px solid #a6e9c1;
}

.form-notice.is-error {
  color: #7a1f1f;
  background: #fff0f0;
  border: 1px solid #f0b5b5;
}

.location-panel {
  display: grid;
  gap: 18px;
}

.map-frame {
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--gens-radius);
  box-shadow: var(--gens-deep-shadow);
  background: var(--gens-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.light-list li {
  border-color: var(--gens-line);
}

.light-list a {
  font-weight: 800;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-location-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 270px;
  padding: 34px;
  border-radius: var(--gens-radius);
  background:
    linear-gradient(135deg, rgba(32, 167, 90, 0.12), rgba(10, 111, 214, 0.08)),
    var(--gens-cream);
}

.contact-location-card span {
  color: var(--gens-green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-location-card strong {
  margin-top: 10px;
  color: var(--gens-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.contact-location-card p {
  margin: 12px 0 18px;
  color: var(--gens-muted);
  font-weight: 800;
}

.contact-location-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-location-card li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--gens-line);
  color: var(--gens-ink);
  font-weight: 700;
}

.contact-location-card li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gens-green);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-main {
  min-height: 52vh;
}

.content-area {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.entry-content {
  color: var(--gens-muted);
}

.entry-content > * {
  max-width: 760px;
}

.entry-content img,
.entry-content .alignwide {
  max-width: 100%;
}

.post-list {
  display: grid;
  gap: 18px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(223, 248, 105, 0.16), transparent 24%),
    radial-gradient(circle at 22% 0%, rgba(32, 167, 90, 0.28), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(10, 111, 214, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(4, 43, 35, 0.96), rgba(2, 22, 28, 0.98)),
    #071815;
  color: rgba(255, 255, 255, 0.78);
  padding: 46px 0 30px;
}

.site-footer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

.site-footer .wrap {
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--gens-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.footer-cta .eyebrow {
  margin-bottom: 8px;
}

.footer-cta h2 {
  max-width: 680px;
  margin: 0;
  color: var(--gens-white);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.footer-cta p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(230px, 0.75fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--gens-white);
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 440px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.footer-highlights li {
  padding: 7px 10px;
  border: 1px solid rgba(223, 248, 105, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(223, 248, 105, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-row img {
  width: 82px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-logo-row h2 {
  margin: 0;
}

.footer-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  min-width: 0;
}

.footer-menu a {
  display: inline-flex;
  width: fit-content;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.footer-menu a:hover,
.footer-menu a:focus,
.footer-menu a[aria-current="page"],
.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--gens-lime);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-visit {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--gens-radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.footer-visit-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.footer-visit-header h3 {
  margin-bottom: 14px;
}

.footer-visit-header span {
  color: var(--gens-lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-map {
  position: relative;
  display: block;
  width: 100%;
  min-height: 210px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(223, 248, 105, 0.24);
  border-radius: var(--gens-radius);
  background: rgba(255, 255, 255, 0.08);
}

.footer-map::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.footer-map:focus-visible {
  outline: 3px solid var(--gens-lime);
  outline-offset: 4px;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 210px;
  border: 0;
  pointer-events: none;
}

.footer-contact li {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: var(--gens-radius);
  background: rgba(255, 255, 255, 0.06);
}

.footer-contact strong {
  color: var(--gens-white);
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact a {
  color: var(--gens-lime);
  font-weight: 850;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.copyright {
  margin: 0;
}

.footer-bottom p {
  margin: 0;
}

/* Site-wide interaction polish */
a,
button,
.brand,
.card,
.post-card,
.stat,
.timeline-item,
.pathway-grid article,
.member-type-grid article,
.role-grid article,
.resource-card-grid article,
.resource-aside,
.feature-media,
.portrait-card,
.committee-photo,
.featured-story,
.contact-panel,
.contact-form-panel,
.location-card,
.contact-location-card,
.footer-cta,
.footer-map,
.image-mosaic figure,
.gallery-modal-panel,
.news-modal-panel {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--gens-green-dark);
  transform: translateY(-1px);
}

.brand-logo,
.custom-logo {
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo,
.brand:hover .custom-logo,
.brand:focus-visible .custom-logo {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 10px 18px rgba(32, 167, 90, 0.18));
}

.primary-menu a {
  position: relative;
  overflow: hidden;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-menu a::after,
.footer-menu a::after,
.footer-contact a::after,
.copyright a::after,
.light-list a::after {
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.footer-menu a,
.footer-contact a,
.copyright a,
.light-list a {
  position: relative;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  transform: translateY(-2px);
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after,
.footer-menu a:hover::after,
.footer-menu a:focus-visible::after,
.footer-contact a:hover::after,
.footer-contact a:focus-visible::after,
.copyright a:hover::after,
.copyright a:focus-visible::after,
.light-list a:hover::after,
.light-list a:focus-visible::after {
  transform: scaleX(1);
}

.button,
.wp-block-button__link,
.menu-toggle,
.news-card-trigger,
.gallery-trigger,
.news-modal-close,
.gallery-modal-close {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-3px);
}

.section-heading h2,
.entry-title,
.page-hero h1,
.hero h1 {
  transition: color 220ms ease, text-shadow 220ms ease, transform 220ms ease;
}

.section-heading:hover h2,
.page-hero:hover h1,
.hero:hover h1 {
  transform: translateY(-2px);
}

.section-heading:hover h2,
.entry-title:hover {
  color: var(--gens-green-dark);
}

.hero:hover h1,
.page-hero:hover h1 {
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.card:hover,
.card:focus-within,
.post-card:hover,
.post-card:focus-within,
.pathway-grid article:hover,
.member-type-grid article:hover,
.role-grid article:hover,
.resource-card-grid article:hover,
.timeline-item:hover,
.stat:hover,
.contact-form-panel:hover,
.location-card:hover,
.contact-location-card:hover {
  transform: translateY(-6px);
  border-color: rgba(32, 167, 90, 0.38);
  box-shadow: 0 24px 58px rgba(16, 35, 31, 0.14);
}

.card::before {
  transition: height 180ms ease, opacity 180ms ease;
}

.card:hover::before,
.card:focus-within::before {
  height: 7px;
}

.card h3,
.post-card h2,
.pathway-grid h3,
.resource-card-grid h3,
.event-stack h3,
.timeline-item strong {
  transition: color 180ms ease, transform 180ms ease;
}

.card:hover h3,
.post-card:hover h2,
.pathway-grid article:hover h3,
.resource-card-grid article:hover h3,
.event-stack article:hover h3,
.timeline-item:hover strong {
  color: var(--gens-green-dark);
  transform: translateX(3px);
}

.pathway-grid span,
.resource-card-grid span,
.stat strong {
  transition: transform 220ms ease, filter 220ms ease;
}

.pathway-grid article:hover span,
.resource-card-grid article:hover span,
.stat:hover strong {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.feature-media:hover,
.feature-media:focus-within,
.portrait-card:hover,
.committee-photo:hover,
.resource-aside:hover,
.image-mosaic figure:hover,
.image-mosaic figure:focus-within,
.footer-map:hover,
.footer-map:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(16, 35, 31, 0.18);
}

.feature-media img,
.portrait-card img,
.committee-photo img,
.resource-aside img,
.image-mosaic img,
.hero img {
  transition: transform 420ms ease, filter 280ms ease;
}

.feature-media:hover img,
.portrait-card:hover img,
.committee-photo:hover img,
.resource-aside:hover img,
.image-mosaic figure:hover img,
.image-mosaic figure:focus-within img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.hero:hover img {
  transform: scale(1.025);
  filter: saturate(1.06);
}

.image-mosaic figcaption {
  transition: transform 220ms ease, background-color 220ms ease;
}

.image-mosaic figure:hover figcaption,
.image-mosaic figure:focus-within figcaption {
  transform: translateY(-4px);
  background: rgba(12, 28, 25, 0.88);
}

.news-card:hover,
.news-card:focus-within,
.featured-story:hover,
.featured-story:focus-within {
  transform: translateY(-6px);
}

.news-card:hover .news-card-title,
.news-card:focus-within .news-card-title {
  color: var(--gens-green-dark);
}

.news-card-action {
  transition: transform 180ms ease, color 180ms ease;
}

.news-card:hover .news-card-action,
.news-card:focus-within .news-card-action {
  transform: translateX(5px);
  color: var(--gens-blue);
}

.gallery-trigger:hover,
.gallery-trigger:focus-visible {
  transform: scale(1.01);
}

.gens-contact-form input,
.gens-contact-form select,
.gens-contact-form textarea {
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.gens-contact-form input:hover,
.gens-contact-form select:hover,
.gens-contact-form textarea:hover {
  border-color: rgba(32, 167, 90, 0.48);
  background: var(--gens-white);
}

.gens-contact-form input:focus,
.gens-contact-form select:focus,
.gens-contact-form textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(32, 167, 90, 0.1);
}

.footer-cta:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 248, 105, 0.34);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.18);
}

.footer-logo-row img {
  transition: transform 220ms ease, filter 220ms ease;
}

.footer-brand:hover .footer-logo-row img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 12px 20px rgba(223, 248, 105, 0.18));
}

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

  .brand:hover,
  .primary-menu a:hover,
  .button:hover,
  .card:hover,
  .post-card:hover,
  .pathway-grid article:hover,
  .member-type-grid article:hover,
  .role-grid article:hover,
  .resource-card-grid article:hover,
  .timeline-item:hover,
  .stat:hover,
  .feature-media:hover,
  .portrait-card:hover,
  .committee-photo:hover,
  .resource-aside:hover,
  .image-mosaic figure:hover,
  .footer-map:hover,
  .news-card:hover,
  .featured-story:hover,
  .footer-cta:hover {
    transform: none !important;
  }
}

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

  .site-navigation {
    position: absolute;
    top: 88px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--gens-line);
    border-radius: var(--gens-radius);
    background: var(--gens-white);
    box-shadow: var(--gens-shadow);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: block;
  }

  .primary-menu a {
    padding: 12px;
  }

  .hero {
    min-height: 590px;
  }

  .feature-band,
  .news-layout,
  .contact-page-grid,
  .membership-layout,
  .committee-layout,
  .news-page-layout,
  .resources-layout,
  .featured-story,
  .grid.three,
  .grid.two,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .featured-story .news-card-trigger {
    grid-template-columns: 1fr;
  }

  .featured-story .news-card-trigger > img {
    min-height: 280px;
  }

  .footer-cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .image-mosaic .mosaic-large {
    grid-row: auto;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-inner,
  .wrap,
  .hero-content,
  .content-area {
    width: min(100% - 28px, 1180px);
  }

  .brand span:last-child {
    max-width: 210px;
    font-size: 0.9rem;
  }

  .brand-logo,
  .custom-logo {
    width: 64px;
    height: 52px;
    max-width: 64px;
    max-height: 52px;
    flex-basis: 64px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .section {
    padding: 58px 0;
  }

  .stats,
  .pathway-grid,
  .form-row.two,
  .footer-menu,
  .member-type-grid,
  .role-grid,
  .resource-card-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 0;
  }

  .contact-panel > div:first-child,
  .contact-location-card,
  .footer-cta {
    padding: 24px;
  }

  .news-modal {
    padding: 14px;
  }

  .news-modal-panel {
    padding: 28px 22px;
  }
}
