/* International Development – purple */
.wp-block-post.category-international-development .wp-block-post-title {
    color: #9B59B6 !important;
}

/* Education & Young People – navy */
.wp-block-post.category-education-and-young-people .wp-block-post-title {
    color: #34495E !important;
}

/* Health & Wellbeing – green */
.wp-block-post.category-health-and-wellbeing .wp-block-post-title {
    color: #2ECC71 !important;
}

/* Environmental Sustainability – lime */
.wp-block-post.category-environmental-sustainability .wp-block-post-title {
    color: #A3E635 !important;
}

/* Social Justice & Community Action – yellow */
.wp-block-post.category-social-justice-community-action .wp-block-post-title {
    color: #F1C40F !important;
}

/* Refugees & Asylum Seekers – orange */
.wp-block-post.category-refugees-asylum-seekers .wp-block-post-title {
    color: #E67E22 !important;
}
/* ================================
   PEOPLE CARD – HOVER TO COLOUR
   ================================ */

/* Card container */
.person-card {
  background-color: #2e275d; /* adjust to match brand purple */
  padding: 28px;
  border-radius: 4px;
  overflow: hidden;
}

/* Image base state: greyscale + slightly darker */
.person-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: grayscale(100%) contrast(1.1);
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}

/* Hover: return to colour + subtle zoom */
.person-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Typography refinements (optional but recommended) */
.person-card h3,
.person-card h4,
.person-card p {
  color: #ffffff;
}

.person-card h3 {
  margin-top: 0;
  margin-bottom: 0.25em;
  font-weight: 700;
}

.person-card h4 {
  margin-top: 0;
  margin-bottom: 0.75em;
  font-weight: 400;
  opacity: 0.9;
}

/* Reduced-motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .person-card img {
    transition: none;
  }
}

/* Base styling for Query Loop cards */
.wp-block-query .wp-block-post {
  border-radius: 8px;
  padding: 20px;
  transition: background-color 0.3s ease;
}
/* Greyscale by default: Trustees + Advisors & Associates */
.trustees-team img,
.advisors-associates-team img {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Hover: colour + zoom */
.trustees-team figure:hover img,
.trustees-team .wp-block-image:hover img,
.advisors-associates-team figure:hover img,
.advisors-associates-team .wp-block-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
/* Timeline excerpts: greyscale by default */
.timeline-excerpts img {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* On hover: colour + subtle zoom */
.timeline-excerpts figure:hover img,
.timeline-excerpts .wp-block-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.services-list img {
  filter: grayscale(100%) !important;
  transition: filter 0.3s ease;
}

.services-list img:hover {
  filter: grayscale(0%) !important;
}

/* SERVICES LIST – force grayscale on ALL raster images */
.services-list img,
.services-list picture img,
.services-list figure img,
.services-list .wp-block-image img {
  -webkit-filter: grayscale(1) !important;
  filter: grayscale(1) !important;
}
body {
  overflow-x: hidden;
}

.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

.wp-block-post-title {
  display: none;
}
.locked-cover {
  height: 440px;
  min-height: 400px;
}
/* Content Views: default greyscale per card */
.pt-cv-content-item {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover: only the hovered card returns to colour */
.pt-cv-content-item:hover {
  filter: grayscale(0%);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
/* Allow Meet the Team content to align left inside Cover */
.meet-the-team-cover .wp-block-cover__inner-container {
  max-width: none;
  margin-left: 0;
  margin-right: auto;
  padding-left: 4rem;
  padding-right: 2rem;
}

/* Ensure text is left aligned */
.meet-the-team-cover h1,
.meet-the-team-cover h2,
.meet-the-team-cover p {
  text-align: left;
}

.meet-the-team-cover .is-layout-constrained {
  max-width: none;
}
/* Break out of constrained layout */
.meet-the-team-breakout {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}


/* Left-align the inner content */
.meet-the-team-breakout > * {
  margin-left: 0;
  margin-right: auto;
  padding-left: clamp(2rem, 6vw, 6rem);
  padding-right: 2rem;
}

/* Safety: ensure text is left aligned */
.meet-the-team-breakout h1,
.meet-the-team-breakout h2,
.meet-the-team-breakout p {
  text-align: left;
}


/* ===============================
   BRANDED BAND (THEME-SAFE)
================================ */


.brand-band {
  background-color: #008080; /* TEAL */
  padding: 1.75rem 0;
}

.brand-band__inner {
  max-width: var(--wp--style--global--content-size, 1200px);
  margin-left: 0;        /* align to grid left */
  margin-right: auto;
  padding-left: 4rem;
  padding-right: 2rem;
}

.brand-band__inner h2,
.brand-band__inner p {
  color: #008080;
  text-align: left;
}
.brand-band {
  box-shadow: inset 0 0 0 100vmax #0b2a5a;
  clip-path: inset(0 -100vmax);
}
/* ------------------------------------------
   Cool Timeline – base text sizing (KEEP)
   ------------------------------------------ */

/* Body text */
.cool-vertical-timeline-body .timeline-content .story-time p,
.cool-vertical-timeline-body .timeline-content .story-time div {
  font-size: 22px !important;
  line-height: 1.4 !important;
}

/* Mobile / Tablet */
@media (max-width: 767px) {
  .cool-vertical-timeline-body .timeline-content .story-time p,
  .cool-vertical-timeline-body .timeline-content .story-time div {
    font-size: 22px !important;
    line-height: 1.4 !important;
  }
}

/* ------------------------------------------
   ONLY the FIRST YEAR (1966)
   ------------------------------------------ */

/* Desktop */
.cool-vertical-timeline-body
  .timeline-block:first-of-type
  .ctl_story_time,
.cool-vertical-timeline-body
  .timeline-block:first-of-type
  .story-time {
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .cool-vertical-timeline-body
    .timeline-block:first-of-type
    .ctl_story_time,
  .cool-vertical-timeline-body
    .timeline-block:first-of-type
    .story-time {
    font-size: 30px !important;
  }
}
/* Base value row */
.value-row {
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  border-radius: 8px;
  transform: scale(1);
}

/* Hover: gently enlarge entire row */
.value-row:hover {
  background-color: rgba(0, 0, 0, 0.03);
  transform: scale(1.015); /* subtle, professional */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Icon behaviour */
.value-row img {
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
  filter: grayscale(100%);
  transform: scale(1);
}

/* Icon hover state */
.value-row:hover img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* Optional: heading emphasis on hover */
.value-row h4,
.value-row h5 {
  transition: color 0.25s ease;
}

.value-row:hover h4,
.value-row:hover h5 {
  color: inherit; /* or use brand colour if desired */
}
/* Only affect titles on THIS page */
.page-id-110 .content-views .cv-title,
.page-id-110 .content-views .cv-title a {
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  font-weight: 600;
}
.at-a-glance-grid .cv-title,
.at-a-glance-grid .cv-title a {
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
}
/* Hidden by default */
.reveal-section-beyondbias {
    display: none;
}
/* Reveal when targeted by URL anchor */
.reveal-section-beyondbias:target {
    display: block;
}
.reveal-section-beyondbias {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reveal-section-beyondbias:target {
    display: block;
    opacity: 1;
}
.reveal-section-beyondbias {
    scroll-margin-top: 120px;
}
/* Hide Jetpack Share & Like ONLY on single posts */
.single-post .sharedaddy,
.single-post .jp-sharing-input-touch,
.single-post .jp-like-post-footer,
.single-post .jp-post-flair {
  display: none !important;
}

.single-post .wp-block-paragraph {
  text-align: justify;
}

/* Fix submenu width and spacing in Twenty Twenty-Three */
.wp-block-navigation__submenu-container {
  min-width: 260px;
  padding: 12px 0;
}

.wp-block-navigation__submenu-container a {
  display: block;
  padding: 6px 16px;
  white-space: normal;
  line-height: 1.4;
}


.wp-block-navigation__submenu-container {
  top: 100% !important;
  bottom: auto 
		
}

@media (max-width: 1199px) {
  .wp-block-navigation__container {
    margin-left: 0;
    justify-content: center;
  }
}
/* Optional: tighten space between menu items */
.wp-block-navigation-item {
  margin-right: 8px;
}
; /* pick brand colour */
  color: #ffffff;
  transition: background-color 0.9s ease;
}

/* Optional: improve submenu spacing */
.wp-block-navigation__submenu-container a {
  padding: 8px 16px;
}
/* Only underline top-level nav items */
.wp-block-navigation > .wp-block-navigation__container 
> .wp-block-navigation-item > a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: #0b3a53;
}
/* Base card state */
.card-hover {
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Hover state */
.card-hover:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

.wp-block-post-title {
  display: block !important;
}
/* ABSOLUTE OVERRIDE: remove theme post cards */
.page-alternative-our-impact ul.wp-block-post-template > li.wp-block-post {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-alternative-our-impact li.wp-block-post::before,
.page-alternative-our-impact li.wp-block-post::after {
  content: none !important;
  border: none !important;
}
.page-alternative-our-impact .wp-block-query {
  align-items: stretch;
}
.page-alternative-our-impact .alternative-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Remove theme margins on posts */
.page-alternative-our-impact li.wp-block-post {
  margin: 0 !important;
}

/* Control spacing between cards (Query Loop grid) */
.page-alternative-our-impact ul.wp-block-post-template {
  gap: 12px !important; /* adjust as needed */
}
/* ===============================
   STORY CARD – GREYSCALE UNTIL HOVER
   =============================== */

/* Base card state */
.story-card {
  filter: grayscale(100%);
  transition: filter 0.35s ease, transform 0.25s ease;
}

/* Ensure images inherit visual effect */
.story-card img,
.story-card picture img,
.story-card figure img,
.story-card .wp-block-image img {
  filter: inherit;
  transition: filter 0.35s ease, transform 0.25s ease;
}

/* Hover state: return to colour */
.story-card:hover {
  filter: grayscale(0%);
  transform: translateY(-3px);
}

/* Optional polish: subtle image lift */
.story-card:hover img {
  transform: scale(1.03);
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .story-card,
  .story-card img {
    transition: none;
  }
}
/* Hidden by default */
.mega-panel {
  display: none;
  position: absolute;
  left: 0;
  width: 100vw;
  z-index: 999;
}

/* When active */
.mega-panel.is-open {
  display: block;
}

.mega-panel {
  top: 100%;
}
@media (max-width: 781px) {
  .mega-panel {
    position: static;
    width: 100%;
  }
}

.mega-panel {
  z-index: 10000;
}
/* Submenu container */
.wp-block-navigation__submenu-container {
  background-color: #0f3f78; /* optional base blue */
  padding: 4px 0;
}

/* Submenu links (tiles) */
.wp-block-navigation__submenu-container a {
  display: block;
  padding: 12px 18px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* Hover + keyboard focus effect */
.wp-block-navigation__submenu-container a:hover,
.wp-block-navigation__submenu-container a:focus {
  background-color: #1e5fa8; /* lighter blue */
}
/* Target submenu item content (Twenty Twenty block nav) */
.wp-block-navigation__submenu-container 
.wp-block-navigation-item__content {
  display: block;
  padding: 12px 18px;
  background-color: transparent;
  color: #000;
  transition: background-color 0.2s ease;
}

/* Hover + keyboard focus */
.wp-block-navigation__submenu-container 
.wp-block-navigation-item__content:hover,
.wp-block-navigation__submenu-container 
.wp-block-navigation-item__content:focus {
  background-color: #2b6cb0; /* lighter blue */
  color: #fff;
}
/* Target submenu item content (Twenty Twenty block nav) */
.wp-block-navigation__submenu-container 
.wp-block-navigation-item__content {
  display: block;
  padding: 12px 18px;
  background-color: transparent;
  color: #000;
  transition: background-color 0.2s ease;
}

 /* lighter blue */
  color: #fff;
}
/* SUBMENU HOVER & FOCUS — FORCE TEAL */
.wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover,
.wp-block-navigation__submenu-container
.wp-block-navigation-item__content:focus {
  background-color: #008080 !important; /* TEAL */
  color: #ffffff !important;
}


/* Header search styling */
header .wp-block-search input {
  border-radius: 999px;
  padding: 8px 14px;
  border: 0.5px solid #ccc;
  font-size: 14px;
}

header .wp-block-search__button {
  border-radius: 999px;
  padding: 8px 12px;
}
/* HEADER SEARCH – Alegreya + brand border */
header .wp-block-search input {
  font-family: "Alegreya", serif;
  font-size: 15px;
  color: #0e4281;

  border: 2px solid #0e4281;
  border-radius: 999px;
  padding: 10px 18px;

  background-color: #ffffff;
}

/* Placeholder text */
header .wp-block-search input::placeholder {
  font-family: "Alegreya", serif;
  color: #6f88a6;
  opacity: 1;
}

/* Hover + focus state */
header .wp-block-search input:hover,
header .wp-block-search input:focus {
  outline: none;
  border-color: #0e4281;
  box-shadow: 0 0 0 3px rgba(14, 66, 129, 0.25);
}
.grey-hover-cards {
  filter: grayscale(100%);
  transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.grey-hover-cards:hover {
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.no-underline a {
  text-decoration: none;
}

.no-underline a:hover {
  text-decoration: none;
}


/* Spotlight block */
.foreground-block {
  position: relative;
  z-index: 10;
  box-shadow: 0 0 40px 9999px rgba(0, 0, 0, 0.09);
}
/* Disable author links */
a[rel="author"] {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: inherit;
}
/* YEAR — very large */
.cool-vertical-timeline-body .timeline-content .story-time p strong {
  font-size: 70px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}

/* SUBHEADER — very small */
.cool-vertical-timeline-body .timeline-content .story-time p em {
  font-size: 38px !important;
  line-height: 1.4 !important;
  display: block; /* ensures it sizes independently */
}
/* Enable smooth zoom on ALL timeline cards (left + right) */
.cool-vertical-timeline-body .timeline-block-detail {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Zoom on hover (both sides) */
.cool-vertical-timeline-body .timeline-block-detail:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  z-index: 9;
}
/* YEAR ONLY (e.g. 1994) */
.cool-vertical-timeline-body 
.timeline-content 
.story-time p strong {
  font-family: 'Alegreya', serif !important;
  color: #000 !important;
}
/* Sub-header — approx 50% black via hex */
.cool-vertical-timeline-body 
.timeline-content 
.story-time p em {
  color: #3b3b3b !important;
}
.card-hover {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.card-hover:hover {
  filter: grayscale(0%);
}
/* Enable layering */
.image-back,
.image-front {
  position: relative;
}

/* Send backward */
.image-back {
  z-index: 1;
}

/* Bring forward */
.image-front {
  z-index: 5;
}
/* ===============================
   MICHAEL TIMELINE — DUPLICATE
   =============================== */

/* YEAR — very large */
.michael-timeline .timeline-content .story-time p strong {
  font-size: 70px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}

/* SUBHEADER — very small */
.michael-timeline .timeline-content .story-time p em {
  font-size: 38px !important;
  line-height: 1.4 !important;
  display: block; /* ensures it sizes independently */
}

/* Enable smooth zoom on ALL timeline cards (left + right) */
.michael-timeline .timeline-block-detail {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Zoom on hover (both sides) */
.michael-timeline .timeline-block-detail:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  z-index: 9;
}

/* YEAR ONLY (e.g. 1994) */
.michael-timeline 
.timeline-content 
.story-time p strong {
  font-family: 'Alegreya', serif !important;
  color: #000 !important;
}

/* Sub-header — approx 50% black via hex */
.michael-timeline 
.timeline-content 
.story-time p em {
  color: #3b3b3b !important;
}

/* Card hover greyscale */
.michael-timeline .card-hover {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.michael-timeline .card-hover:hover {
  filter: grayscale(0%);
}
/* =====================================
   MICHAEL TIMELINE — YEAR + SUBHEADING
   ===================================== */

/* YEAR (e.g. 1966) */
.michael-timeline
.cool-vertical-timeline-body
.story-time > p {
  font-size: 55px !important; /* ~7 × 22px */
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #000000 !important;
  font-family: 'Alegreya', serif !important;
  margin-bottom: 0.3rem;
}

/* SUBHEADING — ONLY first line under the year */
.michael-timeline
.cool-vertical-timeline-body
.timeline-content > p:first-of-type {
  font-size: 22px !important;
}
/* SIMPLE MOBILE NAV OVERLAY */
@media (max-width: 900px) {
  .wp-block-navigation__responsive-container {
    background-color: #0f3f78; /* blue */
  }

  .wp-block-navigation__responsive-container a {
    color: #ffffff;
    font-size: 1.1rem;
    padding: 14px 20px;
    display: block;
  }

  .wp-block-navigation__responsive-container a:hover {
    background-color: #008080; /* teal */
  }
}
/* ============================
   DESKTOP NAV ALIGNMENT — CLEAN
   ============================ */

/* Wide desktops only */
@media (min-width: 1200px) {
  header .wp-block-navigation__container {
    margin-left: -30px;
  }
}

/* Narrow desktop / tablet */
@media (max-width: 1199px) {
  header .wp-block-navigation__container {
    margin-left: 0;
    justify-content: center;
  }
}
/* ===============================
   MOBILE NAV ONLY — MERGE PARENT + CHILDREN
   =============================== */
@media (max-width: 900px) {

  /* Parent item (e.g. "Who we are") */
  .wp-block-navigation__responsive-container
  .wp-block-navigation-item.has-child > a {
    background: transparent;
    padding: 12px 18px;
    font-weight: 400;
    border-bottom: 1px solid #e0e0e0;
  }

  /* Child items (About Michael, etc.) */
  .wp-block-navigation__responsive-container
  .wp-block-navigation__submenu-container a {
    background-color: #ffffff;
    padding: 12px 18px;
  }

}
/* ===============================
   MOBILE NAV OVERLAY – ACTIVE / HOVER STYLE
   =============================== */
@media (max-width: 900px) {

  /* Base submenu link */
  .wp-block-navigation__responsive-container
  .wp-block-navigation__submenu-container a {
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  /* Tap / focus / hover state */
  .wp-block-navigation__responsive-container
  .wp-block-navigation__submenu-container a:hover,
  .wp-block-navigation__responsive-container
  .wp-block-navigation__submenu-container a:focus,
  .wp-block-navigation__responsive-container
  .wp-block-navigation__submenu-container a:active {
    background-color: #008080; /* teal */
    color: #ffffff;
  }

}
/* =========================================
   NAV HOME ICON — LARGE CIRCLE + IMAGE (FIXED)
   ========================================= */

.nav-home-icon a {
  width: 69px;                 /* 50% bigger circle */
  height: 69px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #ffffff;
  border-radius: 999px;
  background-color: transparent;

  /* ✅ PUT IMAGE ON THE LINK ITSELF */
  background-image: url("https://civa.org.uk/wp-content/uploads/2026/05/Homepage_home-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;

  text-indent: -9999px;        /* hide "Home" text */

  transition: opacity 0.25s ease;
}

/* Hover: fade completely to transparent */
.nav-home-icon a:hover,
.nav-home-icon a:focus {
  opacity: 0;
}
/* =========================================
   REMOVE GAP ABOVE STORE FOOTER (COOKIE BAR)
   ========================================= */

/* Kill top spacing on the Store Footer block */
.store-footer,
.wp-block-group.store-footer,
.wp-site-blocks .store-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove theme block-gap between footer sections */
.wp-site-blocks > .store-footer {
  margin-block-start: 0 !important;
}

/* Safety: remove gap from the block ABOVE store footer */
.wp-site-blocks > *:has(+ .store-footer) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* =========================================
   SUCCESS STORIES GRID (SCOPED FIX)
   ========================================= */

/* Make each Content Views card a flex column */
.impact-success-grid .pt-cv-content-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Lock description to fixed line count */
.impact-success-grid .pt-cv-content-item .pt-cv-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* adjust if needed */
  overflow: hidden;
}

/* Push button + footer to bottom */
.impact-success-grid .pt-cv-readmore,
.impact-success-grid .pt-cv-meta-fields {
  margin-top: auto;
}

/* Remove footer’s internal top margin so it sits flush */
.impact-success-grid .pt-cv-meta-fields {
  margin-top: 0 !important;
}
/* Disable click-through on cards */
.no-click a {
  pointer-events: none;
  cursor: default;
}
/* Smooth base */
.impact-success-grid .pt-cv-content-item,
.impact-success-grid .pt-cv-content-item a {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover when card OR link is hovered */
.impact-success-grid .pt-cv-content-item:hover,
.impact-success-grid .pt-cv-content-item:hover a {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
/* =====================================
   ABOUT MICHAEL — TIMELINE (ISOLATED)
   ===================================== */

/* YEAR (e.g. 2001) */
.timeline-excerpts
.cool-vertical-timeline-body
.timeline-content
.story-time p strong {
  font-size: 56px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  font-family: "Alegreya", serif !important;
  color: #000000;
}
/* Hide title on the MSN Fund post only */
.postid-3253 .wp-block-post-title {
  display: none;
}
/* Hide title ONLY on the MSN Fund post */
.postid-3253 h1.entry-title,
.postid-3253 .wp-block-post-title,
.postid-3253 .wp-block-post-title__heading {
  display: none !important;
}
/* =====================================
   SITE-WIDE FADE-IN (SAFE VERSION)
   WordPress.com compatible
   ===================================== */

/* Default state */
.wp-site-blocks main > * {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.1s;
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .wp-site-blocks main > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
/* MOBILE ONLY: widen content area */
@media (max-width: 768px) {

  /* Main content wrapper – adjust selector if needed */
  .wp-site-blocks,
  .wp-block-group,
  main,
  .entry-content {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Improve large headings on mobile */
  h1 {
    font-size: 2rem;       /* optional: prevents overpowering wrap */
    line-height: 1.25;
  }
}
/* FORCE X LINK TO ACT AS MODAL CLOSE + NAV */
.popup-close-link {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #0b3a53;
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;

  z-index: 100005;
}

.popup-close-link:hover {
  background: #082a3d;
}
/* Make popup close a small box, not full width */
.popup-close-wrapper {
  width: fit-content;
  max-width: none;

  margin-left: auto;
  margin-right: 2rem;
  margin-top: 1rem;

  padding: 0;
}

/* Style the X itself */
.popup-close-wrapper a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  background-color: #0b3a53;
  color: #ffffff;
  text-decoration: none;

  font-size: 20px;
  font-weight: 700;

  border-radius: 4px;
}
header .wp-block-navigation {
  margin-left: 0;
}
header .wp-block-columns {
  padding-top: 0;
  margin-top: 0;
}
/* =========================================================
   HEADER FIXES
   1) Force navigation pane LEFT
   2) Remove white space above CIVA logo
   ========================================================= */

/* ---------- 2) REMOVE EXCESS WHITE SPACE ABOVE LOGO ---------- */

/* Kill theme padding/margin on header containers */
header,
header .wp-block-template-part,
header .wp-block-group,
header .wp-block-columns {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove spacer height if a Spacer block is present */
header .wp-block-spacer {
  display: none !important;
  height: 0 !important;
}

/* Tighten logo image spacing */
header img {
  margin-top: 0 !important;
}

/* Optional: tighten overall header vertical rhythm */
header .wp-block-group > * {
  margin-top: 0 !important;
}
/* HARD LEFT ANCHOR */
header .wp-block-navigation {
  position: relative;
  left: -5px;
}
/* SIMPLE vertical centring of header navigation */
header .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  line-height: 1;        /* kills top bias */
  height: 100%;
}
/* =========================================
   PAGE DIM OVERLAY — WP.COM SAFE VERSION
   ========================================= */

/* Adjust to sit just below your header/nav */
:root {
  --header-offset: 0px;
}

header {
  position: relative;
  z-index: 100;
}

/* Overlay lives on header */
header::after {
  content: "";
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;
  z-index: 10;
}

/* Trigger overlay */
header:hover::after {
  opacity: 1;
}

/* Keep menus and submenus bright */
header .wp-block-navigation,
header .wp-block-navigation__submenu-container {
  position: relative;
  z-index: 20;
}
/* =====================================================
   PAGE 288 – TRUSTEES
   FORCE TRUE SINGLE-COLUMN MOBILE LAYOUT
   ===================================================== */

@media (max-width: 780px) {

  /* 1. Force Gutenberg Columns to stack */
  .page-id-288 .wp-block-columns {
    flex-direction: column !important;
  }

  .page-id-288 .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2. Items block: force each person to stack vertically */
  .page-id-288 .wp-block-post-template,
  .page-id-288 .wp-block-group {
    display: block !important;
  }

  /* 3. Images: centered and not too wide */
  .page-id-288 img {
    display: block;
    margin: 0 auto 1.25rem;
    max-width: 260px;
    width: 100%;
    height: auto;
  }

  /* 4. Prevent broken names (Polloc k / Debor ah) */
  .page-id-288 h1,
  .page-id-288 h2,
  .page-id-288 h3,
  .page-id-288 h4 {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    text-align: center;
  }

  /* 5. Body text readable */
  .page-id-288 p {
    text-align: left;
  }
}
/* =========================================
   FRONT PAGE (HOME) — MOBILE-ONLY OVERRIDES
   ========================================= */

@media (max-width: 780px) {

  /* Force all Columns to stack */
  body.home .wp-block-columns {
    flex-direction: column !important;
  }

  body.home .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Collapse excessive spacing from Groups/Covers */
  body.home .wp-block-group,
  body.home .wp-block-cover {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  /* Kill large spacer blocks */
  body.home .wp-block-spacer {
    height: 1.25rem !important;
  }

  /* Prevent tall desktop Covers on mobile */
  body.home .wp-block-cover {
    min-height: auto !important;
  }
}
/* =========================================
   FRONT PAGE — HIDE HERO ON MOBILE
   ========================================= */


}
@media (max-width: 780px) {
  .hide-on-mobile {
    display: none !important;
  }
}
/* Hide white header everywhere by default */
.header-white {
  display: none;
}

/* Show on homepage (all devices) */
body.home .header-white {
  display: block;
}

/* Show on desktop everywhere */
@media (min-width: 781px) {
  .header-white {
    display: block;
  }
}
.picture-story {
    min-height: 700px;
}

.picture-story .wp-block-media-text__media img {
    height: 700px;
    object-fit: cover;
}
@media (max-width:768px){

.cool-timeline .timeline-post,
.cool-timeline .story-content{
    width:100% !important;
    max-width:100% !important;
}

.cool-timeline .story-title{
    font-size:36px !important;
    line-height:1.1 !important;
}

.cool-timeline .timeline-post-category{
    white-space:normal !important;
    height:auto !important;
    line-height:1.3 !important;
    padding:10px !important;
}

img{
    max-width:100%;
    height:auto;
}
}
@media (max-width:768px){

    /* Timeline category ribbon */
    .cool-timeline .timeline-post-category{
        white-space: normal !important;
        line-height: 1.3 !important;
        height: auto !important;
        padding: 10px !important;
    }

    /* Timeline titles */
    .cool-timeline h2,
    .cool-timeline .story-title{
        font-size: 36px !important;
        line-height: 1.1 !important;
    }

    /* Description spacing */
    .cool-timeline .story-content{
        margin-top: 15px !important;
    }

    /* Mobile card width */
    .cool-timeline .timeline-post{
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width:768px){

.trustees-section .wp-block-group{
    max-width:100% !important;
    width:100% !important;
}

}
@media (max-width:768px){

.case-study-mobile .timeline-post-category,
.case-study-mobile .ctl-category{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
}