/* ==========================================================================
   Mazingira Yetu — Component Styles
   Location: assets/css/main.css
   Depends on: assets/css/variables.css, Bootstrap 5.3 (grid/container only)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--mzy-font-body);
  color: var(--mzy-dark-grey);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: var(--mzy-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mzy-font-heading);
  color: var(--mzy-green-dark);
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--mzy-green-dark);
  transition: color var(--mzy-transition-fast);
}

a:hover { color: var(--mzy-blue); }
a:visited { color: var(--mzy-green-dark); }

.container,
.mzy-container {
  width: min( var(--mzy-content-width), calc(100% - var(--mzy-content-gutter)) );
  max-width: var(--mzy-content-width);
  margin-inline: auto;
}

.mzy-skip-link {
  position: absolute;
  top: -60px;
  left: var(--mzy-space-sm);
  background: var(--mzy-green-dark);
  color: var(--mzy-white);
  padding: var(--mzy-space-xs) var(--mzy-space-sm);
  border-radius: var(--mzy-radius-sm);
  z-index: 1200;
  transition: top var(--mzy-transition-fast);
}
.mzy-skip-link:focus { top: var(--mzy-space-sm); color: var(--mzy-white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--mzy-shadow-focus);
  border-radius: var(--mzy-radius-sm);
}

/* ==========================================================================
   Header — Row 1 (logo / lang / search) + Row 2 (nav)
   ========================================================================== */

.mzy-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--mzy-white);
  box-shadow: var(--mzy-shadow-sm);
}

/* Slim full-width dark-blue skirt at the very top of the header */
.mzy-header-skirt {
  height: 3px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--mzy-navy);
}

.mzy-header-top {
  background: var(--mzy-header-bg, var(--mzy-white));
  border-bottom: 1px solid var(--mzy-border);
  height: var(--mzy-header-top-height);
  display: flex;
  align-items: center;
  transition: height var(--mzy-transition-med);
}

.mzy-header.is-scrolled .mzy-header-top {
  height: var(--mzy-header-sticky-top-height);
}

.mzy-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mzy-space-md);
  width: 100%;
}

.mzy-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mzy-logo-mark svg { display: block; width: 34px; height: 34px; }

.mzy-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.mzy-logo-title {
  font-family: var(--mzy-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--mzy-green-dark);
}
.mzy-logo-tagline { font-size: 0.66rem; color: var(--mzy-medium-grey); font-weight: 500; }

.mzy-logo img,
.custom-logo {
  width: auto;
  max-width: var(--mzy-logo-width, 220px);
  height: auto;
  max-height: calc(var(--mzy-header-top-height) - 20px);
}

.mzy-logo-mobile-only { display: none; }

@media (max-width: 640px) {
  .mzy-logo-desktop-only { display: none; }
  .mzy-logo-mobile-only { display: block; }
  .mzy-mobile-logo-img { width: auto; max-width: 150px; height: auto; max-height: calc(var(--mzy-header-top-height) - 20px); }
}

.mzy-header-actions {
  display: flex;
  align-items: center;
  gap: var(--mzy-space-md);
}

.mzy-webmail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mzy-medium-grey);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.mzy-webmail-link:hover { color: var(--mzy-navy); }
.mzy-webmail-link svg { flex-shrink: 0; }

/* Language switcher — EN / SW, square + slim, matching the Partner
   With Us button proportions. Inactive = black, active = red, both
   with white text (Section 1–3 of the final header/footer spec). */
.mzy-lang-switch,
.mzy-mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mzy-lang-btn {
  border: 2px solid transparent;
  background: var(--mzy-switch-black);
  color: var(--mzy-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  min-height: 34px;
  line-height: 1.2;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mzy-lang-btn:hover { background: var(--mzy-switch-black-dark); color: var(--mzy-white); }

.mzy-lang-btn.is-active,
.mzy-lang-btn[aria-pressed="true"] {
  background: var(--mzy-switch-red);
  color: var(--mzy-white);
}

.mzy-lang-btn.is-active:hover,
.mzy-lang-btn[aria-pressed="true"]:hover {
  background: var(--mzy-switch-red-dark);
  color: var(--mzy-white);
}

.mzy-header-cta-desktop .mzy-btn { padding: 8px 16px; font-size: 0.8rem; min-height: 34px; }

/* Header "Partner With Us" CTA only — yellow/black per Section 4–6 of
   the final spec. Every other primary button on the site stays the
   standard dark-blue (see .mzy-btn-primary above), so this override is
   deliberately scoped to the header wrappers only. */
.mzy-header-cta-desktop .mzy-btn-primary,
.mzy-mobile-cta .mzy-btn-primary {
  background: var(--mzy-yellow);
  color: var(--mzy-white);
  border-color: transparent;
}
.mzy-header-cta-desktop .mzy-btn-primary:hover,
.mzy-mobile-cta .mzy-btn-primary:hover {
  background: var(--mzy-switch-black);
  color: var(--mzy-white);
}

/* Row 2 — Navigation */
.mzy-header-nav-row {
  background: var(--mzy-nav-bg, var(--mzy-navy));
  height: var(--mzy-header-nav-height);
}

.mzy-header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.mzy-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.mzy-nav-item { position: relative; height: 100%; display: flex; align-items: center; }

.mzy-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mzy-nav-text, var(--mzy-white));
  font-weight: 600;
  font-size: 0.84rem;
  padding: 10px 13px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--mzy-transition-fast), border-color var(--mzy-transition-fast), background-color var(--mzy-transition-fast);
}

/* Guards against the global a:visited rule (see base styles) darkening
   Home/Contact once clicked — nav links must always stay white. */
.mzy-nav-link:visited { color: var(--mzy-nav-text, var(--mzy-white)); }
.mzy-nav-link:hover:visited { color: var(--mzy-white); }

.mzy-nav-link:hover,
.mzy-nav-item.current-menu-item > .mzy-nav-link {
  color: var(--mzy-white);
  border-bottom-color: var(--mzy-nav-hover, var(--mzy-blue));
  background: rgba(255, 255, 255, 0.08);
}

.mzy-caret { font-size: 0.6rem; margin-left: 2px; }

/* Dropdown (desktop) — plain white panel, thin dividers, generous
   padding, underline-only hover state (reference screenshot: simple
   stacked list, no background fill on hover/active). */
.mzy-dropdown {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--mzy-white);
  border-radius: var(--mzy-radius-sm);
  box-shadow: var(--mzy-shadow-md);
  border: 1px solid var(--mzy-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--mzy-transition-fast), transform var(--mzy-transition-fast), visibility var(--mzy-transition-fast);
  z-index: 50;
}

.mzy-nav-item.has-dropdown:hover .mzy-dropdown,
.mzy-nav-item.has-dropdown:focus-within .mzy-dropdown,
.mzy-nav-item.has-dropdown.is-open .mzy-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mzy-dropdown > li { border-bottom: 1px solid var(--mzy-border); }
.mzy-dropdown > li:last-child { border-bottom: none; }

.mzy-dropdown a {
  display: block;
  padding: 16px 22px;
  color: var(--mzy-navy);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color var(--mzy-transition-fast);
}
.mzy-dropdown a:hover,
.mzy-dropdown a:focus-visible {
  color: var(--mzy-navy);
  text-decoration: underline;
}

/* Nested group inside a dropdown (About Us → Who We Are, Partnerships → Our Partners) */
.mzy-dropdown-group { padding: 0; }
.mzy-dropdown-group-title {
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  color: var(--mzy-navy) !important;
  padding-bottom: 8px !important;
}
.mzy-dropdown-subgroup { list-style: none; margin: 0; padding: 0 0 8px; }
.mzy-dropdown-subgroup li { border-bottom: none !important; }
.mzy-dropdown-subgroup a { padding: 8px 22px 8px 34px; font-size: 0.86rem; color: var(--mzy-medium-grey); }
.mzy-dropdown-subgroup a:hover { color: var(--mzy-navy); }

.mzy-mobile-lang-switch { display: none; }
.mzy-mobile-cta { display: none; }

.mzy-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mzy-nav-toggle-bar {
  width: 24px; height: 2px;
  background: var(--mzy-green-dark);
  transition: transform var(--mzy-transition-fast), opacity var(--mzy-transition-fast);
}
.mzy-nav-toggle.is-open .mzy-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mzy-nav-toggle.is-open .mzy-nav-toggle-bar:nth-child(2) { opacity: 0; }
.mzy-nav-toggle.is-open .mzy-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile accordion items (rendered inside .mzy-nav-list on small screens) */
.mzy-mobile-accordion-toggle {
  display: none;
}
.mzy-mobile-accordion-panel { display: none; }

/* Nested group inside a mobile accordion panel (About Us → Who We Are, etc.) */
.mzy-mobile-subgroup-title {
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  letter-spacing: 0.03em;
  color: var(--mzy-blue) !important;
}
.mzy-mobile-subgroup-list { list-style: none; margin: 0; padding: 0; }
.mzy-mobile-subgroup-list a { padding-left: 44px !important; font-size: 0.85rem; }

/* ==========================================================================
   Buttons — dark-blue primary CTA system (Section 22 brand hierarchy)
   ========================================================================== */

.mzy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  min-height: 38px;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mzy-btn-primary {
  background: var(--mzy-navy);
  color: var(--mzy-white);
  box-shadow: var(--mzy-shadow-sm);
}
.mzy-btn-primary:hover { background: var(--mzy-navy-dark); color: var(--mzy-white); box-shadow: var(--mzy-shadow-md); }

.mzy-btn-secondary {
  background: transparent;
  color: var(--mzy-navy);
  border-color: var(--mzy-navy);
}
.mzy-btn-secondary:hover { background: var(--mzy-navy); color: var(--mzy-white); }

.mzy-btn-danger { background: var(--mzy-red); color: var(--mzy-white); }

/* ==========================================================================
   Mobile bottom nav (kept as quick-access strip on small screens)
   ========================================================================== */

.mzy-mobile-bottom-nav { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.mzy-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--mzy-green-dark) 0%, #1E7A3D 55%, var(--mzy-blue-dark) 130%);
  overflow: hidden;
}

.mzy-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(30, 150, 200, 0.25), transparent 55%);
}

.mzy-hero-content { position: relative; z-index: 1; max-width: 760px; color: var(--mzy-white); }

.mzy-eyebrow {
  color: #BFE8CF;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  margin-bottom: var(--mzy-space-sm);
}

.mzy-hero h1 { color: var(--mzy-white); font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: var(--mzy-space-sm); }
.mzy-hero-desc { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: var(--mzy-space-lg); max-width: 600px; }
.mzy-hero-actions { display: flex; flex-wrap: wrap; gap: var(--mzy-space-sm); }
.mzy-hero .mzy-btn-secondary { color: var(--mzy-white); border-color: rgba(255,255,255,0.7); }
.mzy-hero .mzy-btn-secondary:hover { background: var(--mzy-white); color: var(--mzy-navy); }

/* ==========================================================================
   Sections — generic
   ========================================================================== */

.mzy-section { padding: var(--mzy-space-2xl) 0; }
.mzy-bg-white { background: var(--mzy-white); }
.mzy-bg-sand { background: var(--mzy-sand); }
.mzy-bg-blue-light { background: var(--mzy-blue-light); }
.mzy-bg-green { background: var(--mzy-green-dark); color: rgba(255,255,255,0.92); }
.mzy-bg-green h2, .mzy-bg-green h3 { color: var(--mzy-white); }

.mzy-section-title { text-align: center; margin-bottom: var(--mzy-space-sm); }
.mzy-section-intro { text-align: center; max-width: 720px; margin: 0 auto var(--mzy-space-lg); color: var(--mzy-medium-grey); }
.mzy-section-cta { text-align: center; margin-top: var(--mzy-space-lg); }
.mzy-text-center { text-align: center; }

.mzy-card {
  background: var(--mzy-white);
  border-radius: var(--mzy-radius-md);
  box-shadow: var(--mzy-shadow-sm);
  border: 1px solid var(--mzy-border);
  transition: transform var(--mzy-transition-fast), box-shadow var(--mzy-transition-fast);
}

/* Who We Are */
.mzy-who-we-are { max-width: 760px; margin-inline: auto; text-align: center; }
.mzy-eyebrow-tag {
  display: inline-block;
  background: var(--mzy-green-light);
  color: var(--mzy-green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--mzy-radius-pill);
  margin-bottom: var(--mzy-space-sm);
}
.mzy-who-we-are .mzy-btn { margin-top: var(--mzy-space-sm); }

/* Four pillars */
.mzy-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--mzy-space-md);
}
.mzy-pillar-card { padding: var(--mzy-space-lg) var(--mzy-space-md); text-align: center; }
.mzy-pillar-card:hover { transform: translateY(-4px); box-shadow: var(--mzy-shadow-lg); }
.mzy-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  margin-bottom: var(--mzy-space-sm);
}
.mzy-pillar-people .mzy-pillar-icon { background: var(--mzy-green-light); color: var(--mzy-green-dark); }
.mzy-pillar-planet .mzy-pillar-icon { background: var(--mzy-blue-light); color: var(--mzy-blue-dark); }
.mzy-pillar-prosperity .mzy-pillar-icon { background: var(--mzy-sand); color: #8A6D1F; }
.mzy-pillar-partnership .mzy-pillar-icon { background: var(--mzy-green-light); color: var(--mzy-blue-dark); }
.mzy-pillar-tag { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mzy-medium-grey); margin-bottom: 4px; }
.mzy-pillar-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mzy-pillar-card p { font-size: 0.9rem; color: var(--mzy-medium-grey); margin: 0; }

/* Flagship areas */
.mzy-flagship-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--mzy-space-md); }
.mzy-flagship-card { padding: var(--mzy-space-lg) var(--mzy-space-md); position: relative; }
.mzy-flagship-card:hover { transform: translateY(-4px); box-shadow: var(--mzy-shadow-lg); }
.mzy-flagship-num {
  display: inline-block;
  font-family: var(--mzy-font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--mzy-green-light);
  -webkit-text-stroke: 1.5px var(--mzy-green);
  margin-bottom: var(--mzy-space-sm);
}
.mzy-flagship-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mzy-flagship-card p { font-size: 0.9rem; color: var(--mzy-medium-grey); margin-bottom: var(--mzy-space-sm); }
.mzy-card-link { font-weight: 700; font-size: 0.85rem; color: var(--mzy-blue-dark); }
.mzy-card-link:hover { color: var(--mzy-green-dark); }

/* Executive Director */
.mzy-ed-section { display: grid; grid-template-columns: 220px 1fr; gap: var(--mzy-space-xl); align-items: center; }
.mzy-ed-photo img, .mzy-ed-photo-placeholder {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.25);
}
.mzy-ed-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}
.mzy-ed-extract { font-size: 1.15rem; font-style: italic; max-width: 640px; margin-bottom: var(--mzy-space-md); }
.mzy-ed-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0; color: var(--mzy-white); }
.mzy-ed-title { font-size: 0.9rem; opacity: 0.85; margin-bottom: var(--mzy-space-md); }

/* Technical expertise */
.mzy-expertise-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--mzy-space-md); }
.mzy-expertise-card { display: block; padding: var(--mzy-space-md); }
.mzy-expertise-card:hover { transform: translateY(-4px); box-shadow: var(--mzy-shadow-lg); }
.mzy-expertise-card h3 { font-size: 0.98rem; margin-bottom: 6px; color: var(--mzy-green-dark); }
.mzy-expertise-card p { font-size: 0.85rem; color: var(--mzy-medium-grey); margin: 0; }

/* Research & Knowledge chips */
.mzy-resource-chip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.mzy-resource-chip {
  background: var(--mzy-white);
  border: 1px solid var(--mzy-border);
  border-radius: var(--mzy-radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mzy-green-dark);
}

/* Empty state */
.mzy-empty-state {
  max-width: 480px;
  margin: var(--mzy-space-lg) auto 0;
  text-align: center;
  padding: var(--mzy-space-lg);
  background: var(--mzy-white);
  border: 1px dashed var(--mzy-border);
  border-radius: var(--mzy-radius-lg);
  color: var(--mzy-medium-grey);
}
.mzy-empty-state-icon { display: inline-flex; color: var(--mzy-blue); margin-bottom: var(--mzy-space-sm); }

/* Partnerships */
.mzy-partnerships { max-width: 780px; margin-inline: auto; text-align: center; }
.mzy-partnerships .mzy-btn { margin-top: var(--mzy-space-sm); }

/* Final CTA */
.mzy-final-cta {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, var(--mzy-green-dark), var(--mzy-blue-dark));
  color: var(--mzy-white);
}
.mzy-final-cta h2 { color: var(--mzy-white); }
.mzy-final-cta p { max-width: 640px; margin: 0 auto var(--mzy-space-lg); font-size: 1.05rem; opacity: 0.92; }
.mzy-final-cta .mzy-hero-actions { justify-content: center; }
.mzy-final-cta .mzy-btn-secondary { color: var(--mzy-white); border-color: rgba(255,255,255,0.7); }
.mzy-final-cta .mzy-btn-secondary:hover { background: var(--mzy-white); color: var(--mzy-navy); }

/* ==========================================================================
   Footer — dark-navy background matching the main nav bar, wide
   centered container. Content starts directly with the four equal
   columns (no top branding row); social icons sit inside Column 1
   underneath the institutional message text, then a divider and a
   compact legal bar.
   ========================================================================== */

.mzy-footer { background: var(--mzy-footer-bg); color: rgba(255,255,255,0.82); padding: 40px 0 0; }

/* Footer background stays full width (.mzy-footer has no width/max-width
   constraint above); the inner content uses the SAME global 1280px
   container as the header, hero, and main content via the shared
   .container rule above — no separate footer width system, so the
   footer visually aligns with everything else (Section 10 of the
   global-content-width spec). The .mzy-footer-container class on the
   markup is kept only as a styling hook; it carries no width rules of
   its own. */

.mzy-footer h4 { color: var(--mzy-white); font-size: 1rem; font-weight: 700; margin-bottom: var(--mzy-space-sm); }

/* Social icons — inside Column 1, under the institutional message */
.mzy-footer .mzy-footer-social { display: flex; align-items: center; gap: 14px; margin-top: var(--mzy-space-md); }
.mzy-footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mzy-white);
  color: var(--mzy-navy);
}
.mzy-footer-social-link svg { width: 20px; height: 20px; }
.mzy-footer-social-link:hover { background: var(--mzy-blue); color: var(--mzy-white); }

.mzy-footer-divider { border: none; border-top: 1px solid var(--mzy-footer-divider); margin: 32px 0 20px; }

.mzy-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--mzy-space-lg); }

.mzy-footer-col-brand h4 { font-family: var(--mzy-font-heading); }
.mzy-footer-col .mzy-footer-tagline { font-size: 0.95rem; color: var(--mzy-white); font-weight: 600; margin-bottom: 6px; }
.mzy-footer-col .mzy-footer-pillars, .mzy-footer-col .mzy-footer-message { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 6px; }

.mzy-footer-links, .mzy-footer-contact, .mzy-footer-visitors { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mzy-footer-links a, .mzy-footer-contact a { color: var(--mzy-white); font-size: 0.95rem; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }
.mzy-footer-links a:hover, .mzy-footer-contact a:hover { color: var(--mzy-blue); text-decoration-color: var(--mzy-blue); }
.mzy-footer-contact li span { display: block; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.mzy-footer-area { font-size: 0.85rem; opacity: 0.75; }

/* Visitors column */
.mzy-footer-visitors li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
}
.mzy-visitor-label { color: rgba(255,255,255,0.75); }
.mzy-visitor-value { color: var(--mzy-white); font-weight: 700; font-variant-numeric: tabular-nums; }

.mzy-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--mzy-space-sm);
  padding-bottom: 28px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.mzy-footer-copyright { margin: 0; }
.mzy-footer-legal { list-style: none; display: flex; gap: var(--mzy-space-md); margin: 0; padding: 0; }
.mzy-footer-legal a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }
.mzy-footer-legal a:hover { color: var(--mzy-blue); text-decoration-color: var(--mzy-blue); }

/* ==========================================================================
   Generic content area (index.php / page.php fallback)
   ========================================================================== */

.mzy-content-area { padding: var(--mzy-space-2xl) 0; }
.mzy-page-title { margin-bottom: var(--mzy-space-md); }
.mzy-page-thumbnail { border-radius: var(--mzy-radius-lg); overflow: hidden; margin-bottom: var(--mzy-space-lg); box-shadow: var(--mzy-shadow-md); }
.mzy-article-content { max-width: 760px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .mzy-expertise-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .container,
  .mzy-container {
    width: calc(100% - 48px);
    max-width: none;
  }
}

@media (max-width: 991px) {
  .mzy-header-nav-row { background: var(--mzy-nav-bg, var(--mzy-navy)); }
  .mzy-header-nav-inner { justify-content: flex-start; }
  .mzy-header-cta-desktop { display: none; }
  .mzy-webmail-link { display: none; }

  .mzy-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--mzy-nav-bg, var(--mzy-navy));
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--mzy-transition-med);
    box-shadow: var(--mzy-shadow-lg);
  }
  .mzy-nav.is-open { max-height: 85vh; overflow-y: auto; }

  .mzy-nav-list { flex-direction: column; align-items: stretch; height: auto; padding: var(--mzy-space-sm) 0; }
  .mzy-nav-item { height: auto; display: block; }
  .mzy-nav-link { width: 100%; border-bottom: none; border-left: 3px solid transparent; padding: 12px var(--mzy-space-md); }
  .mzy-nav-link:hover { border-left-color: var(--mzy-blue); border-bottom-color: transparent; background: rgba(255,255,255,0.06); }

  /* Mobile accordion dropdown behavior */
  .mzy-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    background: rgba(0,0,0,0.18);
    display: none;
    min-width: 0;
  }
  .mzy-dropdown > li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .mzy-nav-item.is-open .mzy-dropdown { display: block; }
  .mzy-dropdown a { color: rgba(255,255,255,0.85); padding: 10px var(--mzy-space-lg); }
  .mzy-dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--mzy-white); text-decoration: none; }
  .mzy-dropdown-group-title { color: rgba(255,255,255,0.55) !important; }
  .mzy-dropdown-subgroup a { padding-left: 44px; }

  .mzy-mobile-lang-switch { display: flex; gap: 6px; margin: var(--mzy-space-sm) var(--mzy-space-md) 0; }
  .mzy-mobile-lang-switch .mzy-lang-btn { border-color: rgba(255,255,255,0.35); }

  .mzy-mobile-cta { display: block; margin: var(--mzy-space-md) var(--mzy-space-md) var(--mzy-space-sm); }
  .mzy-mobile-cta .mzy-btn { width: 100%; min-height: 44px; }

  .mzy-nav-toggle { display: flex; }

  .mzy-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .mzy-flagship-grid { grid-template-columns: repeat(2, 1fr); }
  .mzy-expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .mzy-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mzy-ed-section { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 640px) {
  .mzy-header-top-inner { flex-wrap: nowrap; }
  .mzy-header-cta-desktop { display: none; }
  .mzy-logo-title { font-size: 1.05rem; }
  .mzy-logo-tagline { display: none; }
  .mzy-pillars-grid, .mzy-flagship-grid, .mzy-expertise-grid, .mzy-footer-grid { grid-template-columns: 1fr; }
  .mzy-hero { min-height: 90vh; }
  .container,
  .mzy-container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .mzy-footer { padding: 32px 0 0; }
  .mzy-footer-social-link { width: 38px; height: 38px; }
  .mzy-footer-social-link svg { width: 19px; height: 19px; }
  .mzy-footer .mzy-footer-social { gap: 16px; }
  .mzy-footer-divider { margin: 20px 0; }
  .mzy-footer-grid { gap: var(--mzy-space-lg) var(--mzy-space-md); }
  .mzy-footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Keep buttons square/slim but ensure a comfortable touch target */
  .mzy-btn { min-height: 44px; padding: 11px 20px; }
}

/* ==========================================================================
   Inner-page hero (programme / contact / basic pages)
   ========================================================================== */

.mzy-programme-hero {
  position: relative;
  padding: 72px 0 56px;
  background: linear-gradient(135deg, var(--mzy-green-dark), var(--mzy-blue-dark));
  color: var(--mzy-white);
}
.mzy-programme-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(30,150,200,0.25), transparent 55%);
}
.mzy-programme-hero-content { position: relative; z-index: 1; }
.mzy-programme-hero h1 { color: var(--mzy-white); font-size: clamp(1.75rem, 3.5vw, 2.6rem); margin-bottom: 6px; }
.mzy-programme-hero p { color: rgba(255,255,255,0.88); max-width: 680px; }

/* Global/individual Page Header background image — dimensions, title
   position, typography, and the existing overlay above are untouched;
   only the background becomes a photo instead of the flat gradient. */
.mzy-programme-hero.has-header-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.mzy-page-hero { padding: 56px 0 32px; background: var(--mzy-sand); }
.mzy-page-hero h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* Post Header Image — applied only when a custom/featured image is
   resolved (see mzy_get_post_header_image_url()); otherwise the plain
   background above is left untouched. */
.mzy-page-hero.has-header-image {
  position: relative;
  padding: 110px 0 68px;
  background-size: cover;
  background-position: center;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}
.mzy-page-hero.has-header-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,61,102,0.35) 0%, rgba(11,61,102,0.75) 100%);
}
.mzy-page-hero.has-header-image .container { position: relative; z-index: 1; }
.mzy-page-hero.has-header-image h1,
.mzy-page-hero.has-header-image .mzy-eyebrow-tag,
.mzy-page-hero.has-header-image .mzy-event-date { color: var(--mzy-white); }

.mzy-breadcrumbs { display: flex; gap: 8px; font-size: 0.85rem; color: var(--mzy-medium-grey); margin-bottom: var(--mzy-space-sm); }
.mzy-breadcrumbs a { color: var(--mzy-medium-grey); }
.mzy-breadcrumbs-light, .mzy-breadcrumbs-light a { color: rgba(255,255,255,0.75); }

.mzy-prose { max-width: 780px; margin: 0 auto var(--mzy-space-lg); }
.mzy-prose p { margin-bottom: 1em; }
.mzy-programme-overview { padding-top: var(--mzy-space-lg); }

.mzy-programme-block { max-width: 780px; margin: 0 auto var(--mzy-space-lg); padding: var(--mzy-space-lg); border-radius: var(--mzy-radius-lg); }
.mzy-programme-block.mzy-bg-sand { background: var(--mzy-sand); }
.mzy-programme-block h2 { margin-bottom: var(--mzy-space-sm); }

.mzy-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mzy-checklist li { padding-left: 28px; position: relative; }
.mzy-checklist li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--mzy-green-light);
  border: 2px solid var(--mzy-green);
}

.mzy-related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mzy-related-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--mzy-radius-pill);
  background: var(--mzy-blue-light);
  color: var(--mzy-blue-dark);
  font-weight: 600;
  font-size: 0.85rem;
}
.mzy-related-chip:hover { background: var(--mzy-blue); color: var(--mzy-white); }

/* ==========================================================================
   Filter bar + resource / project grids
   ========================================================================== */

.mzy-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: var(--mzy-space-lg); }
.mzy-filter-chip {
  border: 1px solid var(--mzy-border);
  background: var(--mzy-white);
  color: var(--mzy-dark-grey);
  padding: 8px 16px;
  border-radius: var(--mzy-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--mzy-transition-fast), color var(--mzy-transition-fast);
}
.mzy-filter-chip.is-active,
.mzy-filter-chip:hover { background: var(--mzy-green); color: var(--mzy-white); border-color: var(--mzy-green); }

.mzy-resource-grid,
.mzy-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mzy-space-md);
}

.mzy-resource-card,
.mzy-project-card { display: block; overflow: hidden; }
.mzy-resource-card:hover,
.mzy-project-card:hover { transform: translateY(-4px); box-shadow: var(--mzy-shadow-lg); }
.mzy-resource-card-image img,
.mzy-project-card-image img { width: 100%; height: 170px; object-fit: cover; }
.mzy-resource-card-body,
.mzy-project-card-body { padding: var(--mzy-space-md); }
.mzy-resource-chip-sm { display: inline-block; margin-bottom: 8px; padding: 4px 10px; font-size: 0.7rem; }
.mzy-resource-card-body h3,
.mzy-project-card-body h3 { font-size: 1rem; margin-bottom: 6px; }
.mzy-resource-card-body p,
.mzy-project-card-body p { font-size: 0.88rem; color: var(--mzy-medium-grey); margin: 0; }

.mzy-empty-state-lg { max-width: 560px; padding: var(--mzy-space-xl); }
.mzy-pagination { text-align: center; margin-top: var(--mzy-space-lg); }
.mzy-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0 3px;
  border-radius: 50%; background: var(--mzy-light-grey); color: var(--mzy-dark-grey);
  font-size: 0.85rem; font-weight: 600;
}
.mzy-pagination .page-numbers.current { background: var(--mzy-green); color: var(--mzy-white); }

/* ==========================================================================
   Contact page — two-column card layout (info card + form card),
   inspired by the reference screenshot's composition, in Mazingira
   Yetu's own colors.
   ========================================================================== */

.mzy-contact-hero { position: relative; }
.mzy-contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--mzy-space-xl); align-items: start; }

.mzy-contact-card {
  background: var(--mzy-white);
  border: 1px solid var(--mzy-border);
  border-top: 4px solid var(--mzy-navy);
  border-radius: var(--mzy-radius-md);
  padding: var(--mzy-space-lg);
  box-shadow: var(--mzy-shadow-sm);
}
.mzy-contact-card h2 { font-size: 1.25rem; margin-bottom: 4px; }

/* Subtle premium hover elevation — Contact page cards only. */
.mzy-contact-details,
.mzy-contact-form-wrap {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mzy-contact-details:hover,
.mzy-contact-form-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.mzy-contact-hq { font-weight: 700; color: var(--mzy-green-dark); margin: 0 0 var(--mzy-space-sm); }

.mzy-contact-list { list-style: none; padding: 0; margin: 0 0 var(--mzy-space-md); display: flex; flex-direction: column; gap: 14px; }
.mzy-contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mzy-contact-list li:hover { transform: translateX(4px); }
.mzy-contact-icon {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mzy-blue-light);
  color: var(--mzy-navy);
}
.mzy-contact-icon svg { width: 17px; height: 17px; }
.mzy-contact-list a { color: var(--mzy-dark-grey); font-weight: 600; }
.mzy-contact-list a:hover { color: var(--mzy-blue); }

.mzy-contact-view-location { display: inline-flex; margin-bottom: var(--mzy-space-md); }

/* Social links — icon + network name, each platform in its own brand
   color, contact page only (Section 4 of the targeted-refinements spec). */
.mzy-contact-social { display: flex; flex-wrap: wrap; gap: var(--mzy-space-md); }
.mzy-social-facebook  { --social-brand: #1877F2; }
.mzy-social-instagram { --social-brand: #E4405F; }
.mzy-social-youtube   { --social-brand: #FF0000; }
.mzy-social-linkedin  { --social-brand: #0A66C2; }
.mzy-social-x         { --social-brand: #000000; }

.mzy-contact-social .mzy-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 8px;
  color: var(--social-brand, var(--mzy-dark-grey));
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mzy-contact-social .mzy-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: transparent;
  color: var(--social-brand, var(--mzy-green-dark));
  flex-shrink: 0;
}
.mzy-contact-social .mzy-social-icon svg { width: 20px; height: 20px; }
.mzy-contact-social .mzy-social-link:hover {
  background-color: var(--social-brand);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.mzy-contact-social .mzy-social-link:hover .mzy-social-icon {
  background: transparent;
  color: #FFFFFF;
}

.mzy-contact-form-intro { color: var(--mzy-medium-grey); margin-bottom: var(--mzy-space-md); }

.mzy-honeypot { position: absolute; left: -9999px; opacity: 0; }
.mzy-form-row { margin-bottom: var(--mzy-space-sm); display: flex; flex-direction: column; gap: 6px; }
.mzy-form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mzy-space-sm); }
.mzy-form-row input,
.mzy-form-row select,
.mzy-form-row textarea {
  border: 1px solid var(--mzy-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--mzy-font-body);
  font-size: 0.92rem;
  color: var(--mzy-dark-grey);
  background: var(--mzy-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mzy-form-row input:focus,
.mzy-form-row select:focus,
.mzy-form-row textarea:focus {
  outline: none;
  border-color: var(--mzy-blue);
  box-shadow: 0 0 0 3px rgba(30, 150, 200, 0.12);
}
.mzy-form-row input[aria-invalid="true"],
.mzy-form-row textarea[aria-invalid="true"] { border-color: var(--mzy-red); }
.mzy-form-error { color: var(--mzy-red); font-size: 0.8rem; min-height: 1em; }

@media (prefers-reduced-motion: reduce) {
  .mzy-contact-details,
  .mzy-contact-form-wrap,
  .mzy-contact-list li,
  .mzy-contact-social .mzy-social-link {
    transition: none;
    transform: none;
  }
}

.mzy-contact-form .mzy-btn-primary {
  margin-top: var(--mzy-space-sm);
  width: 100%;
  background: var(--mzy-navy);
  color: var(--mzy-white);
  border-radius: 0;
}
.mzy-contact-form .mzy-btn-primary:hover { background: var(--mzy-navy-dark); }

.mzy-form-notice { padding: 12px 16px; border-radius: var(--mzy-radius-sm); margin-bottom: var(--mzy-space-md); font-size: 0.9rem; }
.mzy-form-notice-success { background: var(--mzy-green-light); color: var(--mzy-green-dark); border: 1px solid var(--mzy-green); }
.mzy-form-notice-warning { background: var(--mzy-blue-light); color: var(--mzy-navy); border: 1px solid var(--mzy-blue); }
.mzy-form-notice-error { background: #FBEAE9; color: var(--mzy-red); border: 1px solid var(--mzy-red); }

@media (max-width: 991px) {
  .mzy-contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--mzy-space-lg); }
  .mzy-resource-grid, .mzy-project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mzy-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mzy-form-row-group { grid-template-columns: 1fr; }
  .mzy-resource-grid, .mzy-project-grid { grid-template-columns: 1fr; }
  .mzy-ed-photo img, .mzy-ed-photo-placeholder { width: 150px; height: 150px; }
}
