/* =========================================================
   Kogi SUBEB - Public Website Stylesheet
   Formal Nigerian Government style
   Palette: Green (primary), White, Blue (secondary), Gold (accent)
   ========================================================= */

:root {
  --green: #006837;
  --green-dark: #004d29;
  --green-light: #2e8b57;
  --gold: #d4a017;
  --gold-light: #f0c14b;
  --blue: #0b3d91;
  --blue-light: #1d63d1;
  --white: #ffffff;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --danger: #b91c1c;
  --success: #15803d;
  --warning: #b45309;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --header-h: 72px;
  --bar-h: 38px;
  --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--green-dark); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-title::after {
  content: ""; display: block; width: 70px; height: 4px;
  background: var(--gold); margin: 14px auto 0; border-radius: 2px;
}

/* ---------- Top contact bar ---------- */
.topbar {
  background: var(--green-dark); color: #e9f4ee; font-size: 13px;
  height: var(--bar-h); display: flex; align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e9f4ee; }
.topbar .tb-info span { margin-right: 18px; }
.topbar .tb-info i { color: var(--gold-light); margin-right: 6px; }
.topbar .tb-social a { margin-left: 12px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white); border-bottom: 3px solid var(--green);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  border: 2px solid #d9e5de;
  overflow: hidden;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text { line-height: 1.1; }
.brand-text .b1 { font-family: var(--font-display); font-weight: 700; color: var(--green-dark); font-size: 16px; display:block; }
.brand-text .b2 { color: var(--text-muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }

/* Nav */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .sub-trigger {
  color: var(--text); padding: 10px 14px; border-radius: 6px;
  font-weight: 500; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit;
}
.nav a:hover, .nav a.active, .sub-trigger:hover, .sub-trigger.active { background: #eef6f0; color: var(--green-dark); }
.nav .has-sub { position: relative; }
.nav .caret { font-size: 12px; line-height: 1; transition: transform .2s; }
.nav .has-sub.open .caret { transform: rotate(180deg); }
.nav .submenu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 220px; box-shadow: var(--shadow);
  border-radius: var(--radius-sm); padding: 8px; border: 1px solid var(--border);
}
.nav .submenu a { display: block; padding: 8px 12px; }
.nav .has-sub:hover .submenu,
.nav .has-sub.open .submenu { display: block; }

.nav-logo-link {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  border: 2px solid #cfded6;
  display: inline-grid;
  place-items: center;
  padding: 4px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.nav-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-logo-link:hover {
  border-color: var(--green);
  transform: translateY(-2px) scale(1.02);
}

.menu-toggle {
  display: none; background: var(--green); color: var(--white);
  border: none; width: 42px; height: 42px; border-radius: 6px; font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 77, 41, 0.795), rgba(11,61,145,.58)),
              url('../images/hero-default.jpg') center/cover;
  padding: 90px 0;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 18px; text-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hero p { font-size: 1.1rem; max-width: 720px; opacity: .95; }
.hero .container { text-align: center; }
.hero .hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 50px;
}
.hero-stats .stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 20px; border-radius: var(--radius); backdrop-filter: blur(6px);
}
.hero-stats .stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); }
.hero-stats .stat .lbl { font-size: 13px; opacity: .9; text-transform: uppercase; letter-spacing: .5px; }

/* slider dots */
.hero-slider { position: absolute; inset: 0; z-index: -1; }
.hero-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slider .slide.active { opacity: .66; }
.hero-slider .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18));
}
.hero-slider .slide.active { animation: heroZoom 5s linear; }
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-copy-wrap { margin-top: 10px; min-height: 88px; position: relative; }
.hero-title-wrap { min-height: 110px; position: relative; margin-top: 6px; }
.hero-title {
  opacity: 0; transform: translateY(8px); position: absolute; inset: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-title.active { opacity: 1; transform: translateY(0); position: relative; }
.hero-copy {
  opacity: 0; transform: translateY(8px); position: absolute; inset: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-copy.active { opacity: 1; transform: translateY(0); position: relative; }
.hero-copy p { margin-bottom: 0; }
.hero-copy, .hero-title { max-width: 860px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; font-size: 15px;
  text-decoration: none; transition: all .2s;
}
.btn-primary { background: var(--gold); color: #1f2937; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); text-decoration: none; }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-light); color: var(--white); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; background: #eaeaea center/cover; }
.card-img-square { aspect-ratio: 1/1; background: #eaeaea center/cover; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 6px; font-family: var(--font-display); }
.card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.card-text { color: var(--text); font-size: 14px; flex: 1; }
.card-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }

/* Person card */
.person-card { text-align: center; padding-bottom: 18px; }
.person-card .photo {
  width: 160px; height: 160px; border-radius: 50%; margin: 22px auto 14px;
  background: #eaeaea center/cover; border: 4px solid var(--gold);
}
.person-card .name { font-family: var(--font-display); color: var(--green-dark); font-size: 1.1rem; margin-bottom: 2px; }
.person-card .role { color: var(--text-muted); font-size: 13px; }
.person-card .badge { margin: 8px auto; }

/* Badge */
.badge {
  display: inline-block; padding: 3px 10px; font-size: 11px;
  background: #eef6f0; color: var(--green-dark); border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.badge-gold { background: #fff5d4; color: #8a6300; }
.badge-blue { background: #e7efff; color: var(--blue); }
.badge-red  { background: #fde2e2; color: var(--danger); }
.badge-gray { background: #eef0f2; color: #374151; }

/* ---------- Statistics ---------- */
.stats { background: var(--green-dark); color: var(--white); }
.stats .grid-4 { gap: 30px; }
.stats .stat-box { text-align: center; padding: 12px; }
.stats .stat-box i { font-size: 32px; color: var(--gold-light); margin-bottom: 8px; }
.stats .stat-box .num { font-family: var(--font-display); font-size: 2.3rem; color: var(--gold-light); }
.stats .stat-box .lbl { text-transform: uppercase; letter-spacing: .5px; font-size: 13px; opacity: .9; }

/* ---------- Page Hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
  color: var(--white); padding: 60px 0 50px; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .crumb { color: #d8eee0; font-size: 14px; }
.page-hero .crumb a { color: var(--gold-light); }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: 14px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,104,55,.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.required { color: var(--danger); }

/* Filters */
.filters {
  display: flex; gap: 12px; flex-wrap: wrap; padding: 18px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 26px;
}
.filters .form-control { min-width: 170px; flex: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a3220; color: #d6e4dc; padding: 60px 0 0; margin-top: 60px; position: relative; overflow: hidden;
}
.footer-crest {
  position: absolute; width: 340px; height: 340px; right: -80px; bottom: 20px;
  border-radius: 50%; opacity: .09;
  background: radial-gradient(circle at 30% 30%, #fff, transparent 62%),
              linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.25);
}
.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -110px;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: url('../images/ubec_new.png') center/contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
.site-footer h4 { color: var(--white); font-family: var(--font-display); margin-bottom: 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; }
.site-footer a { color: #d6e4dc; }
.site-footer a:hover { color: var(--gold-light); text-decoration: none; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .footer-grid p { font-size: 14px; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 14px; }
.site-footer li i { color: var(--gold-light); width: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px;
  padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: 8px; color: var(--white); }
.footer-social a:hover { background: var(--gold); color: var(--green-dark); }

/* Newsletter */
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; padding: 10px; border-radius: 6px; border: none; }
.newsletter button { background: var(--gold); color: #1f2937; border: none; padding: 0 16px; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* Live chat / support widget */
.support-widget {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
}
.support-widget button {
  background: var(--green); color: var(--white); border: none;
  width: 58px; height: 58px; border-radius: 50%; font-size: 22px;
  cursor: pointer; box-shadow: var(--shadow-lg);
}
.news-flow {
  background: #083e2a;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.18);
}
.news-flow .container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: 10px;
}
.news-flow-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
}
.news-flow-track {
  white-space: nowrap;
  overflow: hidden;
}
.news-flow-items {
  display: inline-flex;
  gap: 30px;
  animation: ticker 28s linear infinite;
}
.news-flow-items a,
.news-flow-items span {
  color: #eefbf4;
  font-size: 14px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 320px;
  max-width: calc(100vw - 20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 210;
}
.chat-widget.open { display: block; }
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--green);
  color: #fff;
}
.chat-head button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.chat-preform {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f7faf8;
}
.chat-preform[hidden],
.chat-body[hidden],
.chat-form[hidden] {
  display: none !important;
}
.chat-help {
  margin: 0 0 4px;
  font-size: 13px;
  color: #475569;
}
.chat-preform input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
}
.chat-preform button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.chat-body {
  max-height: 310px;
  overflow-y: auto;
  padding: 10px;
  background: #f7faf8;
}
.chat-form {
  display: flex;
  border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1;
  border: 0;
  padding: 12px;
}
.chat-form button {
  border: 0;
  background: var(--green);
  color: #fff;
  width: 46px;
}
.msg {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 90%;
}
.msg small { display: block; margin-top: 6px; color: #6b7280; font-size: 11px; }
.msg.visitor {
  background: #dff4e8;
  margin-left: auto;
}
.msg.admin { background: #fff; border: 1px solid var(--border); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: #f0f5f2; color: var(--green-dark); text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: #fafdfb; }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); width: 100%;
  max-width: 540px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg);
}
.modal-header, .modal-body, .modal-footer { padding: 18px 20px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; }
.modal-footer { border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 22px; }
.tabs button { background: none; border: none; padding: 12px 18px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.active { color: var(--green-dark); border-color: var(--green); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid .gitem { position: relative; aspect-ratio: 4/3; background: #eee center/cover; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.gallery-grid .gitem .cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); color: #fff; font-size: 12px; }

/* ---------- Alerts / Toast ---------- */
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f4ec; color: var(--success); border: 1px solid #b8e0c6; }
.alert-error   { background: #fde8e8; color: var(--danger); border: 1px solid #f6bcbc; }
.alert-info    { background: #e7efff; color: var(--blue); border: 1px solid #c2d4fa; }

#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 12px 20px; border-radius: 8px;
  z-index: 9999; box-shadow: var(--shadow-lg); display: none; font-size: 14px;
}
#toast.show { display: block; animation: toast .25s ease; }
@keyframes toast { from { opacity:0; transform: translateX(-50%) translateY(8px);} to { opacity:1; transform: translateX(-50%) translateY(0);} }

/* ---------- Misc ---------- */
.spacer-sm { height: 12px; } .spacer { height: 24px; } .spacer-lg { height: 48px; }
.text-center { text-align: center; } .text-muted { color: var(--text-muted); }
.muted-bg { background: #f0f5f2; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty i { font-size: 36px; color: var(--green-light); margin-bottom: 12px; display: block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Home New Sections ---------- */
.welcome-image {
  border-radius: var(--radius);
  min-height: 320px;
  background: linear-gradient(0deg, rgba(0,0,0,.2), rgba(0,0,0,.2)),
              url('../images/slide1.jpeg') center/cover;
  box-shadow: var(--shadow);
}
.mission-vision-grid { align-items: stretch; }
.mv-card {
  padding: 28px;
  border-top: 4px solid var(--green);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.mv-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -35px;
  top: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,104,55,.12), rgba(0,104,55,0));
}
.mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,77,41,.14);
}
.mv-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mv-head h2 { margin-bottom: 0; }
.governance-card .photo {
  height: 240px; border-radius: 10px 10px 0 0; background: #dce6e0 center/cover;
}
.governance-stack {
  display: grid;
  gap: 10px;
}
.governance-row {
  display: grid;
  grid-template-columns: minmax(180px, 250px) 1fr;
  background: linear-gradient(165deg, #f8fcfa, #edf6f1);
  border: 1px solid #dce9e1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.governance-row:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.governance-row-reverse { grid-template-columns: 1fr minmax(180px, 250px); }
.governance-row-reverse .gov-copy { order: 1; }
.governance-row-reverse .gov-visual { order: 2; }
.gov-visual {
  min-height: 280px;
  max-height: 300px;
  background: #dce6e0;
  position: relative;
}
.gov-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.2));
  pointer-events: none;
}
.gov-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.gov-copy {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.gov-copy h3 {
  margin-bottom: 10px;
  color: var(--green-dark);
}
.gov-copy p {
  font-size: 14px;
  line-height: 1.6;
  color: #2b3c34;
  max-width: 65ch;
}
.gov-copy-subeb {
  background: linear-gradient(145deg, #006837, #04552f);
  color: #effbf3;
}
.gov-copy-subeb .card-meta,
.gov-copy-subeb h3,
.gov-copy-subeb p {
  color: #effbf3;
}
.gov-copy-subeb::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), rgba(255,255,255,0));
}
.value-section {
  background:
    linear-gradient(rgba(243,252,245,.97), rgba(243,252,245,.97)),
    radial-gradient(circle at 20% 20%, rgba(0,104,55,.08), transparent 44%),
    radial-gradient(circle at 85% 15%, rgba(212,160,23,.08), transparent 38%),
    repeating-linear-gradient(135deg, rgba(0,104,55,.03) 0 6px, rgba(0,104,55,0) 6px 18px);
}
.values-wrap { display: grid; gap: 24px; grid-template-columns: 1fr 1.1fr; align-items: center; }
.values-image {
  min-height: 320px; border-radius: var(--radius);
  background: linear-gradient(0deg, rgba(0,77,41,.2), rgba(0,77,41,.2)),
              url('../images/new.jpeg') center/cover;
}
.service-band {
  background: linear-gradient(135deg, #02552f, #00753f);
  color: #f3fff8;
  position: relative;
  overflow: hidden;
}
.service-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.12), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.08), transparent 30%);
  pointer-events: none;
}
.service-band h2, .service-band h3 { color: #fff; }
.service-list { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.service-item {
  border: 1px solid rgba(255,255,255,.24); border-radius: var(--radius);
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(2px);
  padding: 22px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0,0,0,.2);
  background: rgba(255,255,255,.14);
}
.service-item i {
  color: #d7f5e3;
  font-size: 24px;
  margin-bottom: 10px;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.service-item p {
  color: #e4faee;
  line-height: 1.65;
}

.board-members-wrap {
  margin-top: 22px;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid #d7e8de;
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
  box-shadow: var(--shadow-sm);
}
.board-members-title {
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.board-members-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 22px;
}
.board-members-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.board-member-card {
  background: #fff;
  border: 1px solid #d8e5de;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(7, 54, 31, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.board-member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(7, 54, 31, .12);
  border-color: #b6d5c3;
}
.board-member-photo-wrap {
  background: linear-gradient(180deg, #f4faf7, #ebf5ef);
  padding: 14px 12px 6px;
  cursor: pointer;
}
.board-member-photo-flip {
  perspective: 900px;
}
.board-member-photo-flip-inner {
  position: relative;
  width: 100%;
  min-height: 128px;
  transform-style: preserve-3d;
  transition: transform .55s ease;
}
.board-member-card:hover .board-member-photo-flip-inner,
.board-member-card.is-flipped .board-member-photo-flip-inner {
  transform: rotateY(180deg);
}
.board-member-photo-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: grid;
  place-items: center;
}
.board-member-photo-front {
  z-index: 2;
}
.board-member-photo-back {
  transform: rotateY(180deg);
}
.board-member-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  border: 3px solid #e6f2ea;
  box-shadow: 0 3px 8px rgba(0, 77, 41, .14);
}
.board-member-photo-full {
  width: 100%;
  height: 128px;
  object-fit: contain;
  background: #f7faf8;
  border-radius: 10px;
  border: 1px solid #dce8df;
  box-shadow: 0 3px 8px rgba(0, 77, 41, .12);
}
.board-member-body {
  padding: 10px 12px 14px;
}
.board-member-name {
  margin: 0 0 4px;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--green-dark);
}
.board-member-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #1b6d44;
  font-weight: 700;
  margin-bottom: 7px;
}
.board-member-summary {
  margin: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .governance-row, .governance-row-reverse { grid-template-columns: 1fr; }
  .governance-row-reverse .gov-copy, .governance-row-reverse .gov-visual { order: initial; }
  .board-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0;
    width: 80%; max-width: 320px; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 16px; gap: 0; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .25s; overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-logo-link { margin: 14px 12px; width: 70px; height: 70px; }
  .nav .has-sub .submenu { position: static; box-shadow: none; border: none; padding-left: 12px; display: none; }
  .nav .has-sub.open .submenu { display: block; }
  .sub-trigger { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--border); border-radius: 0; padding: 14px 12px; }
  .topbar .tb-info span { display: inline-block; margin-bottom: 4px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .hero-title-wrap { min-height: 132px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .values-wrap, .service-list { grid-template-columns: 1fr; }
  .gov-visual { min-height: 220px; max-height: 240px; }
  .gov-copy { padding: 18px 16px; }
  .footer-watermark { width: 280px; height: 280px; bottom: -60px; opacity: .1; }
  .chat-widget { right: 10px; bottom: 76px; width: calc(100vw - 20px); }
  .board-members-wrap { padding: 20px 14px; }
  .board-members-grid { grid-template-columns: 1fr; }
}
