﻿/* ============================================================
   EIM Projects ï¿½ Shared Stylesheet  v5.5.0
   Brand: #292746 dark | #514d8c primary | #36ab9c secondary | #ffaf7f accent
   Fonts: Libre Baskerville 700 (headings) | Inter 400/500/600 (body)
   ============================================================ */

/* ============================================================
   FIX: 24px gap above nav on all Elementor-loaded pages
   WordPress's theme.json "appearanceTools" generates a block-gap
   that propagates upward and shifts #page down by --wp--style--block-gap.
   Applies to ALL pages with elementor-page-{N} body class (both
   custom PHP templates and true Elementor-built pages).
   ============================================================ */
body[class*="elementor-page-"] > #page {
  margin-top: calc(0px - var(--wp--style--block-gap, 24px));
}

/* ============================================================
   GLOBAL BUTTON RESET ï¿½ Defeat Elementor/Hello theme pink defaults
   on every interactive state: default, hover, focus, active, visited
   ============================================================ */
.eim-init-hero-btn,
.eim-init-hero-btn:focus,
.eim-init-hero-btn:focus-visible {
  background: #514d8c !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-init-hero-btn:hover,
.eim-init-hero-btn:active {
  background: #3e3a70 !important;
  color: #fff !important;
}

.eim-init-sidebar-btn,
.eim-init-sidebar-btn:hover,
.eim-init-sidebar-btn:focus,
.eim-init-sidebar-btn:active,
.eim-init-sidebar-btn:focus-visible {
  background: #514d8c !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-init-sidebar-btn:hover,
.eim-init-sidebar-btn:active {
  background: #3e3a70 !important;
}

.eim-init-tier-btn,
.eim-init-tier-btn:hover,
.eim-init-tier-btn:focus,
.eim-init-tier-btn:active,
.eim-init-tier-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
/* Default state ï¿½ must use !important to beat Hello theme [type=button] rule */
.eim-init-tier-btn {
  background: #514d8c !important;
  border: none !important;
  color: #fff !important;
}
.eim-init-tier-btn:hover,
.eim-init-tier-btn:active {
  background: #3e3a70 !important;
  color: #fff !important;
}

.eim-school-hero-btn,
.eim-school-hero-btn:hover,
.eim-school-hero-btn:focus,
.eim-school-hero-btn:active,
.eim-school-hero-btn:focus-visible {
  background: #ff914d !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-school-hero-btn:hover,
.eim-school-hero-btn:active {
  background: #e07a3a !important;
}

.eim-school-tier-btn,
.eim-school-tier-btn:hover,
.eim-school-tier-btn:focus,
.eim-school-tier-btn:active,
.eim-school-tier-btn:focus-visible {
  background: #ffffff !important;
  color: #292746 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-block !important;
  width: auto !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 36px !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-school-tier-btn:hover,
.eim-school-tier-btn:active {
  background: #f0eef8 !important;
  color: #292746 !important;
}

.eim-church-give-btn,
.eim-church-give-btn:hover,
.eim-church-give-btn:focus,
.eim-church-give-btn:active,
.eim-church-give-btn:focus-visible {
  background: #ff914d !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-church-give-btn:hover,
.eim-church-give-btn:active {
  background: #e07a3a !important;
}

.eim-church-family-btn,
.eim-church-family-btn:hover,
.eim-church-family-btn:focus,
.eim-church-family-btn:active,
.eim-church-family-btn:focus-visible {
  background: #ffaf7f !important;
  color: #292746 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-church-family-btn:hover,
.eim-church-family-btn:active {
  background: #e89660 !important;
}

button.eim-sidebar-cta,
.eim-sidebar-box .eim-sidebar-cta,
button.eim-sidebar-cta:hover,
button.eim-sidebar-cta:focus,
button.eim-sidebar-cta:active,
button.eim-sidebar-cta:focus-visible,
.eim-sidebar-box .eim-sidebar-cta:hover,
.eim-sidebar-box .eim-sidebar-cta:focus,
.eim-sidebar-box .eim-sidebar-cta:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.eim-donate-card-btn,
.eim-donate-card-btn:hover,
.eim-donate-card-btn:focus,
.eim-donate-card-btn:active,
.eim-donate-card-btn:focus-visible {
  background: #514d8c !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-donate-card-btn:hover,
.eim-donate-card-btn:active {
  background: #3e3a70 !important;
}
.eim-donate-card-btn--soon,
.eim-donate-card-btn--soon:hover,
.eim-donate-card-btn--soon:focus,
.eim-donate-card-btn--soon:active {
  background: #e0dff0 !important;
  color: #9893bb !important;
  border: none !important;
}

.eim-givers-toggle,
.eim-givers-toggle:hover,
.eim-givers-toggle:focus,
.eim-givers-toggle:active,
.eim-givers-toggle:focus-visible {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #514d8c !important;
  -webkit-tap-highlight-color: transparent;
}
.eim-givers-toggle:hover,
.eim-givers-toggle:active {
  color: #292746 !important;
}

/* ===================== CARD SHARED ===================== */

.eim-project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Image wrapper */
.eim-project-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}
.eim-project-img-wrap.eim-no-img {
  background: linear-gradient(135deg, #292746 0%, #514d8c 55%, #ff914d 100%);
}
.eim-project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Category badge on image */
.eim-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(41, 39, 70, 0.85);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  text-decoration: none;
  z-index: 2;
}

/* Card body */
.eim-project-body {
  padding: 14px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eim-project-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #292746;
  line-height: 1.4;
  margin: 0 0 10px;
}
.eim-project-title a {
  color: inherit;
  text-decoration: none;
}
.eim-project-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.eim-project-title a:hover {
  color: #514d8c;
}

.eim-project-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta row ï¿½ location + status */
.eim-project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.eim-project-location {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Status badge */
.eim-status-badge {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.eim-status-active {
  background: #e9fbe9;
  color: #1d7a2c;
}
.eim-status-ongoing {
  background: #eeebf8;
  color: #514d8c;
}
.eim-status-completed {
  background: #f3f3f3;
  color: #666;
}

/* Progress bar */
.eim-progress-wrap {
  margin-bottom: 14px;
}
.eim-progress-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.eim-progress-fill {
  height: 100%;
  background: #ff914d;
  border-radius: 6px 0 0 6px;
  transition: width 0.6s ease;
}
.eim-progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.eim-progress-labels strong {
  color: #292746;
  font-size: 14px;
}

/* Card CTA link */
.eim-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffaf7f;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}
.eim-card-cta:hover {
  color: #e89660;
}
.eim-card-cta:hover svg {
  transform: translateX(3px);
}
.eim-card-cta svg {
  transition: transform 0.2s;
}

/* ===================== SHORTCODE GRID (home page) ===================== */

.eim-projects-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}
.eim-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

/* ===================== HOME CAMPAIGNS SECTION [eim_home_projects] ===================== */

.eim-home-projects {
  max-width: 1100px;
  margin: 0 auto;
}

/* Top split row */
.eim-home-proj-top {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

/* Intro column */
.eim-home-proj-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.eim-home-proj-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #ff914d;
}
.eim-home-proj-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #292746;
  margin: 0;
  line-height: 1.25;
}
.eim-home-proj-sub {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #6b668f;
  line-height: 1.7;
  margin: 0;
}
.eim-home-proj-viewall {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #514d8c;
  text-decoration: none;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.eim-home-proj-viewall:hover {
  color: #ff914d;
}
.eim-home-proj-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #514d8c;
}
.eim-home-proj-trust svg {
  flex-shrink: 0;
  color: #ff914d;
}

/* Featured project card */
.eim-home-proj-featured {
  min-height: 420px;
}
.eim-home-proj-feat-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  background-color: #292746;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 6px 32px rgba(18, 16, 44, 0.14);
}
.eim-home-proj-feat-card:hover {
  box-shadow: 0 14px 48px rgba(18, 16, 44, 0.22);
}
.eim-home-proj-feat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 16, 44, 0.9) 0%,
    rgba(18, 16, 44, 0.35) 55%,
    transparent 100%
  );
}
.eim-home-proj-feat-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 32px 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.eim-home-proj-feat-body .eim-cat-badge {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 16px;
  align-self: flex-start;
}
.eim-home-proj-feat-title {
  margin-bottom: 10px;
}
.eim-home-proj-feat-excerpt {
  margin-bottom: 14px;
}
.eim-home-proj-feat-progress {
  margin-bottom: 14px;
}
.eim-home-proj-feat-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}
.eim-home-proj-feat-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eim-home-proj-feat-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eim-home-proj-feat-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.eim-home-proj-feat-fill {
  height: 100%;
  background: #ff914d;
  border-radius: 3px;
}
.eim-home-proj-feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffaf7f;
  margin-top: 4px;
}

/* Bottom 3 cards */
.eim-home-proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.eim-home-proj-more {
  text-align: center;
  margin-top: 28px;
}
.eim-home-proj-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #514d8c;
  text-decoration: none;
}
.eim-home-proj-more-link:hover {
  color: #ff914d;
}

/* Responsive */
@media (max-width: 860px) {
  .eim-home-proj-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eim-home-proj-featured,
  .eim-home-proj-feat-card {
    min-height: 320px;
  }
  .eim-home-proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .eim-home-proj-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .eim-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .eim-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* View All button */
.eim-view-all-wrap {
  text-align: center;
  padding-bottom: 6px;
}
.eim-btn-outline {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #292746;
  border: 2px solid #292746;
  padding: 12px 34px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.eim-btn-outline:hover {
  background: #292746;
  color: #fff;
}

/* ===================== ARCHIVE PAGE ===================== */

/* Hero banner */
.eim-archive-hero {
  background: linear-gradient(135deg, #292746 0%, #514d8c 100%);
  padding: 90px 30px;
  text-align: center;
}
.eim-archive-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}
.eim-archive-hero p {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.7;
}

/* Wrap */
.eim-archive-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 30px 80px;
}

/* Category filter */
.eim-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.eim-filter-btn {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #514d8c;
  border: 1.5px solid #514d8c;
  background: transparent;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}
.eim-filter-btn:hover,
.eim-filter-btn.eim-active {
  background: #514d8c;
  color: #fff;
}

/* Archive card grid */
.eim-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .eim-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .eim-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagination */
.eim-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.eim-pagination .page-numbers {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #514d8c;
  border: 1.5px solid #e0ddf0;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.eim-pagination .page-numbers.current,
.eim-pagination .page-numbers:hover {
  background: #514d8c;
  color: #fff;
  border-color: #514d8c;
}
.eim-pagination .page-numbers.dots {
  border-color: transparent;
}

/* ===================== SINGLE CAMPAIGN PAGE ===================== */

/* Hero */
.eim-single-hero {
  position: relative;
  background: linear-gradient(to right, #292746 0%, #292746 55%, #3a2d5e 100%);
  margin: 24px 24px 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 440px;
}
.eim-single-hero-inner {
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  position: relative;
}
.eim-hero-breadcrumb {
  position: absolute;
  top: 32px;
  left: 44px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.eim-single-hero-bg {
  display: none;
}
img.eim-single-hero-bg {
  display: none;
}
.eim-single-hero-overlay {
  display: none;
}
.eim-single-hero-content {
  flex: 1;
  min-width: 0;
  align-self: flex-end;
  position: relative;
  z-index: 1;
  padding: 0 44px 52px;
}
.eim-single-hero-img-wrap {
  flex: 0 0 auto;
  padding: 36px 36px 36px 0;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.eim-single-hero-img-wrap img {
  height: calc(440px - 72px);
  width: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Breadcrumb */
.eim-breadcrumb {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}
.eim-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.eim-breadcrumb a:hover {
  color: #fff;
}
.eim-breadcrumb span {
  margin: 0 5px;
}

/* Hero title */
.eim-single-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

/* Category tags on hero */
.eim-single-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.eim-hero-cat {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #292746;
  background: rgba(255, 175, 127, 0.92);
  padding: 3px 11px;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Two-column layout */
.eim-single-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 64px 56px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .eim-single-wrap {
    grid-template-columns: 1fr;
  }
  /* Prevent grid items from expanding the 1fr column beyond available space. */
  .eim-single-content,
  .eim-single-sidebar {
    min-width: 0;
  }
  .eim-single-sidebar {
    order: -1;
  }
}

/* Main content */
.eim-single-content {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.82;
  color: #444;
}
.eim-single-content h2,
.eim-single-content h3,
.eim-single-content h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: #292746;
  line-height: 1.3;
}
.eim-single-content p {
  margin-top: 0;
}
.eim-single-content img {
  max-width: 100%;
  border-radius: 6px;
}

/* Sidebar box */
.eim-sidebar-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 30px;
}
.eim-sidebar-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f2f2f2;
}

/* Sidebar meta rows */
.eim-sidebar-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: #555;
}
.eim-sidebar-meta-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.eim-sidebar-meta-item strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 2px;
}

/* Sidebar progress */
.eim-sidebar-progress {
  border-top: 1px solid #f2f2f2;
  padding-top: 20px;
  margin: 4px 0 20px;
}
.eim-progress-header {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
}
.eim-goal-label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.eim-goal-number {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #292746;
}
.eim-sidebar-progress .eim-progress-bar {
  height: 22px;
  margin-bottom: 0;
  position: relative;
  border-radius: 6px;
}
.eim-progress-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(41, 39, 70, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}
.eim-tick-labels {
  position: relative;
  height: 18px;
}
.eim-tick-labels span {
  position: absolute;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #aaa;
  top: 2px;
}
.eim-raised-label {
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffaf7f;
  display: block;
  margin-top: 22px;
  margin-bottom: 2px;
}
.eim-pct-label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #514d8c;
  display: block;
  margin-top: 6px;
}

/* Sidebar CTA button */
button.eim-sidebar-cta,
.eim-sidebar-box .eim-sidebar-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff !important;
  background: #ff914d !important;
  padding: 16px 20px;
  border: none !important;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease;
}
button.eim-sidebar-cta:hover,
.eim-sidebar-box .eim-sidebar-cta:hover {
  background: #e07a38 !important;
  color: #ffffff !important;
}

/* ===================== GIVING TIERS ï¿½ project sidebar ===================== */
.eim-proj-tiers-wrap {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f2f2f2;
}
.eim-proj-tiers-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin: 0 0 10px;
}
.eim-proj-tiers-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}
.eim-proj-tier-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  background: #f8f7ff !important;
  border: 1.5px solid #e8e6f5 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: "Inter", sans-serif !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition:
    background 0.18s,
    border-color 0.18s !important;
}
.eim-proj-tier-card:hover {
  background: #ff914d !important;
  border-color: #ff914d !important;
}
.eim-proj-tier-card:hover .eim-proj-tier-amount,
.eim-proj-tier-card:hover .eim-proj-tier-desc {
  color: #fff !important;
}
.eim-proj-tier-amount {
  display: block !important;
  width: 100% !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #292746 !important;
  line-height: 1.1 !important;
  margin-bottom: 4px !important;
  transition: color 0.18s !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}
.eim-proj-tier-desc {
  display: block !important;
  width: 100% !important;
  font-size: 11px !important;
  color: #666 !important;
  line-height: 1.35 !important;
  transition: color 0.18s !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

/* ===================== SHARE BUTTON ï¿½ project sidebar ===================== */
.eim-proj-share-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f2f2f2;
}
.eim-proj-share-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #514d8c !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: color 0.18s !important;
}
.eim-proj-share-toggle:hover {
  color: #ff914d !important;
}
.eim-proj-share-links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.eim-proj-share-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #f2f1f9 !important;
  color: #514d8c !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative !important;
  transition:
    background 0.18s,
    color 0.18s !important;
}
.eim-proj-share-link:hover {
  background: #514d8c !important;
  color: #fff !important;
}
.eim-proj-share-link.eim-share-copied::after {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #292746;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

/* ===================== GALLERY (single page) ===================== */

.eim-project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid #f0f0f0;
}
.eim-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ===================== GIVERS (sidebar) ===================== */

.eim-givers-wrap {
  border-top: 1px solid #f2f2f2;
  padding-top: 20px;
  margin-top: 16px;
}
.eim-givers-heading {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #aaa;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.eim-givers-note {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: #888;
  line-height: 1.65;
  margin: 0 0 14px;
  font-style: italic;
}
.eim-givers-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.eim-givers-list li {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #444;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  line-height: 1.4;
}
.eim-givers-list li:last-child {
  border-bottom: none;
}
.eim-givers-toggle {
  background: none;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #514d8c;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.eim-givers-toggle:hover {
  color: #292746;
}

/* ===================== DONATE MODAL ===================== */

.eim-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55) !important;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Two-column box */
.eim-modal-box {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 880px;
  height: 86vh;
  max-height: 680px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff !important;
}

/* Close button ï¿½ top-right corner of the whole box */
.eim-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px !important;
  height: 36px !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.15) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1;
  font-size: 0;
}
.eim-modal-close svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  display: block;
}
.eim-modal-close:hover {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
}

/* -- Left panel -- */
.eim-modal-left {
  width: 36%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  background: #f8f7f4 !important;
  overflow-y: auto;
  border-right: 1px solid #e8e6e0;
  box-sizing: border-box;
}

.eim-modal-trust {
  padding: 0;
}

.eim-modal-trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.eim-modal-trust-badges li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #292746;
  padding: 16px 0;
  border-bottom: 1px solid #e0ddd7;
  line-height: 1.3;
}

.eim-modal-trust-badges li:first-child {
  border-top: 1px solid #e0ddd7;
}

.eim-modal-trust-badges li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* -- Right panel -- */
.eim-modal-right {
  flex: 1;
  background: #fff !important;
  overflow: hidden;
  padding: 0 16px 24px;
  box-sizing: border-box;
}

.eim-modal-right iframe {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  display: block;
}

/* Amount hint */
.eim-modal-amount-hint {
  padding: 0 0 20px;
  margin-bottom: 0;
  text-align: left;
}
.eim-modal-amount-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b668f;
  margin-bottom: 8px;
}
.eim-modal-amount-desc {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #292746;
  line-height: 1.5;
  margin-bottom: 8px;
}
.eim-modal-amount-value {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #ff914d;
  line-height: 1.1;
}

/* -- Responsive: stack on small screens -- */
@media (max-width: 680px) {
  .eim-modal-box {
    flex-direction: column;
    height: 92vh;
    max-height: none;
    border-radius: 12px;
  }
  .eim-modal-left {
    width: 100%;
    flex-direction: row;
    max-height: 120px;
    justify-content: flex-start;
  }
  .eim-modal-trust {
    padding: 12px 16px;
    width: 100%;
  }
  .eim-modal-trust-badges li {
    font-size: 12px;
    padding: 8px 0;
    gap: 10px;
  }
  .eim-modal-trust-badges li svg {
    width: 18px;
    height: 18px;
  }
  .eim-modal-right {
    flex: 1;
  }
}

/* "No projects" empty state */
.eim-empty {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #999;
  padding: 60px 20px;
}

/* Responsive hero */
@media (max-width: 900px) {
  .eim-single-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .eim-single-hero-content {
    align-self: auto;
    padding: 40px 28px 28px;
  }
  .eim-single-hero-img-wrap {
    padding: 0 20px 28px;
    justify-content: center;
  }
  .eim-single-hero-img-wrap img {
    height: auto;
    width: 100%;
    max-width: 560px;
    border-radius: 8px;
  }
}
@media (max-width: 600px) {
  .eim-single-hero {
    margin: 12px 12px 0;
  }
  .eim-single-hero-content {
    padding: 32px 20px 20px;
  }
  .eim-archive-hero {
    padding: 60px 20px;
  }
}

/* ===================== CONTACT PAGE (Elementor) ===================== */

/* Info column labels & values */
.eim-info-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff914d;
  margin: 0 0 6px;
}
.eim-info-value {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #1a1830;
  line-height: 1.6;
  margin: 0;
}
.eim-info-value a {
  color: #1a1830;
  text-decoration: none;
}
.eim-info-value a:hover {
  color: #514d8c;
}

/* Spacing between info widgets */
.eim-info-col .elementor-widget + .elementor-widget {
  margin-top: 32px !important;
  padding-top: 0 !important;
}

/* CF7 form inside Elementor right column */
.eim-contact-right-col .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eim-contact-right-col .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.eim-contact-right-col input[type="text"],
.eim-contact-right-col input[type="email"],
.eim-contact-right-col input[type="tel"],
.eim-contact-right-col select,
.eim-contact-right-col textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #1a1830;
  background: #f8f7f5;
  border: 1.5px solid #e0deda;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.eim-contact-right-col input:focus,
.eim-contact-right-col select:focus,
.eim-contact-right-col textarea:focus {
  border-color: #514d8c;
  background: #fff;
}
.eim-contact-right-col textarea {
  min-height: 120px;
  resize: vertical;
}

/* Two-column first/last name row */
.eim-contact-right-col .wpcf7-form > .wpcf7-form-control-wrap:nth-child(1),
.eim-contact-right-col .wpcf7-form > .wpcf7-form-control-wrap:nth-child(2) {
  width: calc(50% - 7px);
  display: inline-block;
}
.eim-contact-right-col .wpcf7-form > .wpcf7-form-control-wrap:nth-child(1) {
  margin-right: 14px;
}

/* Submit button */
.eim-contact-right-col input[type="submit"],
.eim-contact-right-col .wpcf7-submit {
  background: #514d8c;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s;
  width: auto;
  align-self: flex-start;
}
.eim-contact-right-col input[type="submit"]:hover,
.eim-contact-right-col .wpcf7-submit:hover {
  background: #3e3a70;
}

/* Validation messages */
.eim-contact-right-col .wpcf7-not-valid-tip {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
}
.eim-contact-right-col .wpcf7-response-output {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 8px;
  border: none;
}

/* Mobile */
@media (max-width: 780px) {
  .eim-contact-right-col .wpcf7-form > .wpcf7-form-control-wrap:nth-child(1),
  .eim-contact-right-col .wpcf7-form > .wpcf7-form-control-wrap:nth-child(2) {
    width: 100%;
    display: block;
    margin-right: 0;
  }
}

/* ===================== TABS WIDGET (What We Do page) ===================== */
/* Remove inner padding so tab content can use full-bleed flex panels */
.eim-tabs-flush .elementor-tab-content {
  padding: 0 !important;
  border: none !important;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}
.eim-tabs-flush .elementor-tabs-wrapper {
  border: none !important;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.eim-tabs-flush .elementor-tab-title {
  border-radius: 4px 4px 0 0;
}
/* Stack tab panel on mobile */
@media (max-width: 720px) {
  .eim-tabs-flush .elementor-tab-content [style*="display:flex"] {
    flex-direction: column;
  }
  .eim-tabs-flush .elementor-tab-content [style*="flex:0 0 40%"] {
    min-height: 240px !important;
    width: 100% !important;
    flex: none !important;
  }
}

/* ===================== OUR CHURCHES ï¿½ CARD GRID ===================== */
.eim-churches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.eim-church-card-inner {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(41, 39, 70, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.eim-church-card-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(41, 39, 70, 0.15);
}
.eim-church-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #c8c4e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eim-church-card-img span {
  color: #7a77a8;
  font-family: Inter, sans-serif;
  font-size: 12px;
}
.eim-church-card-body {
  padding: 22px 24px 26px;
}
.eim-church-card-body h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 10px;
  line-height: 1.35;
}
.eim-church-loc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #7a77a8;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.eim-church-loc svg {
  flex-shrink: 0;
  color: #36ab9c;
}
.eim-church-pastor {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: #514d8c;
  font-weight: 500;
  margin: 4px 0 12px;
}
.eim-church-card-cta {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #514d8c;
  display: inline-block;
  margin-top: 4px;
}

/* ===================== SINGLE CHURCH PAGE ===================== */
.eim-church-hero {
  background: linear-gradient(to bottom, #292746 0%, #292746 55%, #3a2d5e 100%);
  position: relative;
}
.eim-church-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 480px;
}
.eim-church-hero-left {
  flex: 1 1 0;
  min-width: 0;
}
.eim-church-hero-right {
  flex: 0 0 510px;
  width: 510px;
  height: 340px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.eim-church-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.eim-church-hero-overlay {
  display: none;
}
.eim-church-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 60px;
  max-width: 860px;
}
.eim-church-hero-region {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #36ab9c;
  margin: 0 0 10px;
}
.eim-church-hero h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.4;
}
.eim-church-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.eim-church-hero-meta span {
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== SINGLE CHURCH: INTRO SECTION (white) ===== */
.eim-church-intro {
  background: #fff;
  padding: 80px 60px;
}
.eim-church-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.eim-church-intro-body {
  flex: 0 0 67%;
}
/* Read more toggle */
.eim-church-story-wrap {
  position: relative;
}
.eim-church-intro-body h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 28px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 24px;
  line-height: 1.3;
}
.eim-church-intro-body p {
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #4a4865;
  margin: 0 0 18px;
}
.eim-church-info-card {
  flex: 1;
  background: #f5f4fb;
  border-radius: 14px;
  padding: 32px 28px;
  position: sticky;
  top: 80px;
}
.eim-church-info-card-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 18px;
  display: block;
}
.eim-church-info-card-name {
  font-family: "Libre Baskerville", serif;
  font-size: 15px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 20px;
  line-height: 1.4;
}
.eim-church-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eim-church-info-list li {
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #4a4865;
  line-height: 1.5;
}
.eim-church-info-list li strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a77a8;
  margin-bottom: 2px;
}
.eim-church-give-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: #ff914d !important;
  color: #fff !important;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.3px;
  text-align: center;
  transition: background 0.18s;
}
.eim-church-give-btn:hover {
  background: #e07a38 !important;
}
.eim-church-family {
  background: #1c1938;
  padding: 80px 60px;
  margin: 32px;
  border-radius: 12px;
}
.eim-church-family-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: center;
}
.eim-church-family-inner--reverse {
  flex-direction: row-reverse;
}
.eim-church-family-entry--divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 64px;
  padding-top: 64px;
}
.eim-church-family-img-wrap {
  flex: 0 0 380px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #2d2652;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eim-church-family-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eim-church-family-placeholder {
  color: #7a77a8;
  font-family: Inter, sans-serif;
  font-size: 13px;
  text-align: center;
  padding: 40px;
}
.eim-church-family-content {
  flex: 1;
}
.eim-church-family-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #36ab9c;
  margin: 0 0 14px;
}
.eim-church-family-content h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.3;
}
.eim-church-family-content p {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 32px;
}
.eim-church-family-btn {
  display: inline-block;
  background: #ffaf7f !important;
  color: #292746 !important;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.eim-church-family-btn:hover {
  background: #e89660;
  color: #292746 !important;
  text-decoration: none !important;
}

/* -- Ministry Support Note -- */
.eim-church-family-ministry-note {
  padding: 40px 56px 52px;
  background: #f7f6ff;
}
.eim-church-family-ministry-note-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.eim-church-family-ministry-note-inner h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 22px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 16px;
}
.eim-church-family-ministry-note-inner p {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #4a4865;
  margin: 0 0 28px;
}
.eim-church-family-ministry-note-inner .eim-church-family-btn {
  display: inline-block;
}

/* ===== SINGLE CHURCH: LINKED CAMPAIGNS ===== */
.eim-church-projects {
  background: #f5f4fb;
  padding: 80px 60px;
}
.eim-church-projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.eim-church-projects h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 32px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 10px;
}
.eim-church-projects-sub {
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #7a77a8;
  margin: 0 0 44px;
}

/* ===== SINGLE CHURCH: LOWER SECTIONS (projects, gallery, map, back) ===== */
/* -- Church Tabs -- */
.eim-church-tabs-wrap {
  background: #fff;
}
.eim-tab-nav-sentinel {
  height: 0;
  overflow: hidden;
}
.eim-church-tab-nav {
  display: flex;
  padding: 0 60px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 600;
  background: #fff;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.eim-church-tab-nav.eim-tab-stuck {
  background: #292746 !important;
  box-shadow: 0 2px 8px rgba(18, 16, 44, 0.15);
}
.eim-church-tab-nav::-webkit-scrollbar {
  display: none;
}
.eim-church-tab-btn {
  background: none !important;
  border: none !important;
  border-bottom: 4px solid transparent !important;
  margin-bottom: 0;
  padding: 18px 28px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888 !important;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
}
.eim-church-tab-btn:hover,
.eim-church-tab-btn:focus,
.eim-church-tab-btn:focus-visible {
  background: none !important;
  color: #292746 !important;
  border-bottom: 4px solid transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.eim-church-tab-btn.eim-tab-active,
.eim-church-tab-btn.eim-tab-active:hover,
.eim-church-tab-btn.eim-tab-active:focus,
.eim-church-tab-btn.eim-tab-active:focus-visible {
  color: #514d8c !important;
  background: none !important;
  border-bottom: 4px solid #514d8c !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Stuck state ï¿½ dark background */
.eim-tab-stuck .eim-church-tab-btn {
  color: rgba(255, 255, 255, 0.55) !important;
}
.eim-tab-stuck .eim-church-tab-btn:hover {
  color: #fff !important;
}
.eim-tab-stuck .eim-church-tab-btn.eim-tab-active,
.eim-tab-stuck .eim-church-tab-btn.eim-tab-active:hover,
.eim-tab-stuck .eim-church-tab-btn.eim-tab-active:focus,
.eim-tab-stuck .eim-church-tab-btn.eim-tab-active:focus-visible {
  color: #fff !important;
  border-bottom-color: #ffaf7f !important;
}
.eim-church-tab-panel {
  display: none;
}
.eim-church-tab-panel.eim-tab-active {
  display: block;
}
/* Map inside About tab */
.eim-church-map-tab {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 60px;
}
.eim-church-map-tab #eim-church-mini-map {
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
}
/* Gallery inside tab */
.eim-church-gallery-tab {
  padding: 80px 60px;
}
/* Back link */
.eim-church-back {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 60px 72px;
}
.eim-church-lower {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 60px 100px;
}
.eim-church-section-title {
  font-family: "Libre Baskerville", serif;
  font-size: 26px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 28px;
  line-height: 1.3;
}

/* Gallery */
.eim-church-gallery-section {
  margin-bottom: 64px;
}
.eim-church-gallery {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.eim-church-gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.eim-church-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ongoing Projects */
.eim-church-projects-section {
  margin-bottom: 64px;
  background: #f5f4fb;
  border-radius: 12px;
  padding: 36px 40px;
}
.eim-church-projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eim-church-projects-list li {
  font-family: Inter, sans-serif;
  font-size: 15px;
  color: #292746;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.eim-church-projects-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36ab9c;
}

/* Mini map */
.eim-church-map-section {
  margin-bottom: 64px;
}
.eim-church-map-label {
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #7a77a8;
  margin: -18px 0 16px;
}
#eim-church-mini-map {
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(41, 39, 70, 0.1);
}

/* Back link */
.eim-church-back a {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #514d8c;
  text-decoration: none;
}
.eim-church-back a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .eim-church-hero-right {
    flex: 0 0 320px;
    width: 320px;
    height: 260px;
  }
}
@media (max-width: 900px) {
  .eim-church-hero-inner {
    flex-direction: column;
    padding: 52px 32px;
    gap: 36px;
  }
  .eim-church-hero-right {
    flex: none;
    width: 100%;
    height: 220px;
  }
  .eim-church-intro-inner,
  .eim-church-family-inner {
    flex-direction: column;
  }
  .eim-church-intro-body {
    flex: none;
    width: 100%;
  }
  .eim-church-family-img-wrap {
    flex: none;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .eim-church-hero-inner {
    padding: 40px 24px;
  }
  .eim-church-hero h1 {
    font-size: 30px;
  }
  .eim-church-intro,
  .eim-church-family,
  .eim-church-projects {
    padding: 48px 20px;
  }
  .eim-church-lower {
    padding: 48px 20px 60px;
  }
  .eim-church-projects-section {
    padding: 24px 20px;
  }
  .eim-churches-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   OUR CHURCHES PAGE ï¿½ page-our-churches.php
   =================================================================== */

/* Hero */
.oc-hero {
  background: #292746;
  padding: 90px 80px;
}
.oc-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.oc-hero-text {
  flex: 0 0 55%;
}
.oc-hero-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #36ab9c;
  margin: 0 0 18px;
}
.oc-hero-heading {
  font-family: "Libre Baskerville", serif;
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin: 0;
}
.oc-hero-image-wrap {
  flex: 1;
}
.oc-hero-image {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}
.oc-hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #3d3863;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a77a8;
  font-family: Inter, sans-serif;
  font-size: 13px;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

/* Shared section layout */
.oc-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.oc-section-heading {
  font-family: "Libre Baskerville", serif;
  font-size: 36px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 44px;
  text-align: center;
  line-height: 1.25;
}

/* Map section */
.oc-map-section {
  background: #fff;
  padding: 80px 60px;
}

/* Grid section */
.oc-grid-section {
  background: #f5f4fb;
  padding: 80px 60px 100px;
}

/* Responsive */
@media (max-width: 900px) {
  .oc-hero-inner {
    flex-direction: column;
  }
  .oc-hero-text {
    flex: none;
    width: 100%;
  }
  .oc-hero-heading {
    font-size: 44px;
  }
}
@media (max-width: 640px) {
  .oc-hero {
    padding: 50px 24px;
  }
  .oc-hero-heading {
    font-size: 36px;
  }
  .oc-map-section,
  .oc-grid-section {
    padding: 48px 20px;
  }
}

/* ===================== DONATION GRID ===================== */

.eim-donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.eim-donate-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(18, 16, 44, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  position: relative;
  min-height: 360px;
  background: #292746;
}
.eim-donate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(18, 16, 44, 0.22);
}

/* Photo background */
.eim-donate-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.eim-donate-card:hover .eim-donate-card-bg {
  transform: scale(1.04);
}

/* Gradient scrim over the photo */
.eim-donate-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 44, 0.08) 0%,
    rgba(18, 16, 44, 0.55) 50%,
    rgba(18, 16, 44, 0.88) 100%
  );
}

/* Icon shown when no photo */
.eim-donate-card-icon-wrap {
  position: absolute;
  top: 28px;
  left: 28px;
  color: rgba(255, 255, 255, 0.55);
}

/* Content sits at the bottom over the scrim */
.eim-donate-card-body {
  position: relative;
  margin-top: auto;
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.eim-donate-card-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}
.eim-donate-card-title-link {
  color: inherit;
  text-decoration: none;
}
.eim-donate-card-title-link:hover {
  color: #ffaf7f;
}

.eim-donate-card-desc {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin: 0 0 20px;
}

.eim-donate-card-btn {
  display: inline-block;
  background: #ff914d;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.18s ease;
  align-self: flex-start;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.eim-donate-card-btn:hover {
  background: #e07a38 !important;
  color: #fff !important;
}
.eim-donate-card-btn--soon {
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.eim-donate-card-btn--soon:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 900px) {
  .eim-donate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .eim-donate-grid {
    grid-template-columns: 1fr;
  }
}

/* Inline giving embed */
.eim-giving-embed-wrap {
  max-width: 860px;
  margin: 64px auto 0;
}

/* General Missions card ï¿½ full-width, horizontal, always last in grid */
.eim-donate-card--general {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  min-height: 200px;
  background: linear-gradient(120deg, #292746 0%, #1e1b40 100%);
  gap: 0;
}
.eim-donate-card-general-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(255, 145, 77, 0.2) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.eim-donate-card-general-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  align-self: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.eim-donate-card-general-body {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.eim-donate-card-general-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffaf7f;
  margin-bottom: 8px;
  display: block;
}
.eim-donate-card-general-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
}
.eim-donate-card-general-desc {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 560px;
}
.eim-donate-card--general .eim-donate-card-btn {
  align-self: flex-start;
  width: auto;
  padding: 12px 32px;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-block;
}
@media (max-width: 700px) {
  .eim-donate-card--general {
    flex-direction: column;
  }
  .eim-donate-card-general-icon {
    width: 100%;
    height: 80px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .eim-donate-card-general-body {
    padding: 28px 24px;
  }
}

/* ===================== CAMPAIGN PHASES & CHURCHES ===================== */

.eim-proj-section-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 26px);
  color: #292746;
  margin: 56px 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8e5f5;
}

/* Phase track */
.eim-phase-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.eim-phase-connector {
  width: 2px;
  height: 24px;
  background: #e2dff2;
  margin-left: 28px;
}
.eim-phase-card {
  display: flex;
  gap: 20px;
  border: 1px solid #e8e5f5;
  border-radius: 14px;
  padding: 0;
  background: #fdfcff;
  position: relative;
  overflow: hidden;
}
.eim-phase-card.eim-phase-active {
  border-color: #ff914d;
  background: #fffaf6;
}
.eim-phase-card.eim-phase-funded {
  border-color: #c8e6c9;
  background: #f9fff9;
}
/* Number badge ï¿½ sits outside the button, needs its own padding */
.eim-phase-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #292746;
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 24px 28px;
  align-self: flex-start;
}
.eim-phase-active .eim-phase-number {
  background: #ff914d;
}
.eim-phase-funded .eim-phase-number {
  background: #2e7d32;
}
.eim-phase-body {
  flex: 1;
  min-width: 0;
}
/* Accordion trigger */
.eim-phase-accordion-trigger {
  display: block;
  width: 100%;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 24px 28px 24px 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.eim-phase-accordion-trigger:focus-visible {
  outline: 2px solid #514d8c;
  outline-offset: -2px;
  border-radius: 4px;
}
.eim-phase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.eim-phase-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
/* Chevron */
.eim-phase-chevron {
  color: #b0aecb;
  transition:
    transform 0.25s ease,
    color 0.18s;
  margin-top: 2px;
}
.eim-phase-accordion-trigger[aria-expanded="true"] .eim-phase-chevron {
  transform: rotate(180deg);
  color: #514d8c;
}
/* Collapsible content */
.eim-phase-collapse {
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0 28px 0 0;
}
.eim-phase-collapse.eim-phase-open {
  max-height: 1000px;
  padding: 0 28px 24px 0;
}
.eim-phase-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9994b8;
  display: block;
  margin-bottom: 4px;
}
.eim-phase-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #292746;
  margin: 0;
  line-height: 1.3;
}
.eim-phase-budget {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #292746;
}
.eim-phase-status {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.eim-phase-desc {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #5a5770;
  line-height: 1.7;
  margin: 0 0 14px;
}
.eim-phase-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eim-phase-items li {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #6b668f;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.eim-phase-items li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c4c0de;
}
.eim-phase-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 16px 24px;
  background: #292746;
  border-radius: 10px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}
.eim-phase-total strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  color: #ff914d;
}

/* Churches grid */
.eim-proj-churches-intro {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #6b668f;
  margin: 0 0 24px;
  line-height: 1.6;
}
.eim-churches-grid-proj {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.eim-church-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #f8f7fd;
  border-radius: 10px;
  border: 1px solid #edeaf8;
}
.eim-church-num {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #b0aecb;
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.05em;
}
.eim-church-name {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #292746;
  display: block;
  margin-bottom: 3px;
  line-height: 1.4;
}
.eim-church-region {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #9994b8;
  display: block;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .eim-churches-grid-proj {
    grid-template-columns: 1fr;
  }
  .eim-phase-header {
    flex-direction: column;
    gap: 10px;
  }
  .eim-phase-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
  }
}

/* ===================== SINGLE INITIATIVE PAGE ===================== */

/* -- Section 1: Hero -- */

/*
  Blue zone = ::before pseudo-element, fixed height.
  The title sits on the blue. The card + image extend below it.
  No negative margins needed ï¿½ content just overflows the blue zone naturally.
*/
.eim-init-hero {
  display: flex;
  position: relative;
  min-height: 500px;
  margin-bottom: 64px;
  /* No background here ï¿½ the ::before provides the blue zone */
}
.eim-init-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: linear-gradient(135deg, #3d3872 0%, #292746 55%, #292746 100%);
  z-index: 0;
}

/* Left: title on blue bg, card extends below blue zone */
.eim-init-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* push title+card toward the top */
  padding: 52px 44px 0 52px;
  position: relative;
  z-index: 1;
}
.eim-init-hero-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #fff; /* white ï¿½ sits on the blue background */
  margin: 0 0 20px;
  line-height: 1.25;
}
.eim-init-hero-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  width: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  margin-top: 32px;
}
.eim-init-hero-desc {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #3a3760;
  line-height: 1.75;
}
.eim-init-hero-desc p,
.eim-init-hero-desc ul,
.eim-init-hero-desc ol {
  font-size: 15px !important;
  margin: 0 0 14px;
}
.eim-init-hero-desc p:last-child {
  margin-bottom: 0;
}
.eim-init-hero-desc ul,
.eim-init-hero-desc ol {
  padding-left: 20px;
}
.eim-init-hero-desc ul li,
.eim-init-hero-desc ol li {
  font-size: 15px !important;
  font-family: "Inter", sans-serif;
  line-height: 1.75;
  margin-bottom: 6px;
}

/* Right: image floats with space at top + right, extends below blue zone */
.eim-init-hero-right {
  width: 38%;
  flex-shrink: 0;
  align-self: flex-start; /* don't stretch to hero height ï¿½ image defines own size */
  display: flex;
  flex-direction: column;
  padding: 48px 48px 0 0; /* prominent 48px gap at top and right */
  position: relative;
  z-index: 1;
}
.eim-init-hero-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1; /* always a square regardless of content height */
  overflow: hidden;
  border-radius: 14px;
}
.eim-init-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eim-init-hero-cta-wrap {
  background: transparent; /* no dark strip ï¿½ button sits below the blue zone */
  padding: 20px 0 16px;
  display: flex;
  justify-content: center;
}
.eim-init-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #514d8c !important;
  color: #fff !important;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s;
}
.eim-init-hero-btn:hover {
  background: #3e3a70 !important;
}

/* -- Section 1B: Image + Text -- */
.eim-init-s2 {
  display: flex;
  background: #fff;
  min-height: 420px;
  padding: 0 48px 0 52px;
  margin-bottom: 60px;
}
.eim-init-s2-img {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.eim-init-s2-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.eim-init-s2-text {
  flex: 1;
  padding: 20px 48px 20px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #3a3760;
}
.eim-init-s2-text p {
  margin: 0 0 14px;
}
.eim-init-s2-text p:last-child {
  margin-bottom: 0;
}
.eim-init-s2-text h2,
.eim-init-s2-text h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  color: #292746;
  margin: 0 0 16px;
}
.eim-init-s2-text h2 {
  font-size: 28px;
}
.eim-init-s2-text h3 {
  font-size: 22px;
}

/* -- Section 2: Image + Stats -- */
.eim-init-img-stats {
  display: flex;
  background: #f8f7f5;
  padding: 0 48px 0 52px;
}
.eim-init-img-stats-inner {
  width: 100%;
  display: flex;
  min-height: 380px;
}
.eim-init-body-img {
  flex: 0 0 45%;
  overflow: hidden;
  border-radius: 0;
  align-self: stretch;
}
.eim-init-body-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Video embed variant */
.eim-init-body-video {
  position: relative;
  display: flex;
  align-items: center;
  background: #000;
}
.eim-init-body-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.eim-init-stats-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 52px 64px 40px;
  background: #292746;
}
.eim-init-stats-heading-wrap {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0;
}
.eim-init-stats-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.eim-init-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  flex: 1;
  gap: 0;
}
.eim-init-stat-item {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.eim-init-stat-item:nth-child(2n) {
  border-right: none;
}
.eim-init-stat-item:nth-last-child(-n + 2) {
  border-bottom: none;
}
.eim-init-stat-num {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.eim-init-stat-label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 8px;
}
.eim-init-stat-desc {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-top: 8px;
}

/* -- Section 3: Giving Tiers -- */
.eim-init-tiers-section {
  background: #fff;
  padding: 72px 40px 80px;
}
.eim-init-tiers-inner {
  max-width: 1060px;
  margin: 0 auto;
}
.eim-init-tiers-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #292746;
  margin: 0 0 8px;
}
.eim-init-tiers-sub {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #6b6796;
  margin: 0 0 40px;
  line-height: 1.6;
}
.eim-init-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.eim-init-tier-card {
  background: #fff;
  border: 1.5px solid #e8e6f5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.eim-init-tier-tag {
  background: #514d8c;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  display: inline-block;
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 50%,
    calc(100% - 12px) 100%,
    0 100%
  );
  width: fit-content;
  min-width: 72px;
}
.eim-init-tier-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.eim-init-tier-amount {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #ff914d;
  line-height: 1.1;
  margin-bottom: 10px;
  display: block;
}
.eim-init-tier-desc {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #3a3760;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 20px;
}
.eim-init-tier-btn {
  display: block;
  width: 100%;
  background: #514d8c !important;
  color: #fff !important;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.eim-init-tier-btn:hover {
  background: #3e3a70 !important;
}

/* -- Current Projects -- */
.eim-init-projects {
  background: #f8f7f5;
  padding: 64px 52px 72px;
}
.eim-init-projects-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.eim-init-projects-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 36px;
}
.eim-init-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.eim-init-projects .eim-proj-card {
  background: #fff;
  border: 1.5px solid #e8e6f5;
  border-radius: 12px;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: auto !important;
  height: auto !important;
  position: static !important;
}
.eim-init-projects .eim-proj-card::before,
.eim-init-projects .eim-proj-card::after {
  display: none !important;
}
.eim-init-projects .eim-proj-card:hover {
  opacity: 1;
}
.eim-init-projects .eim-proj-card-img {
  height: 190px;
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
}
.eim-init-projects .eim-proj-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.eim-init-projects .eim-proj-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.eim-proj-status {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
}
.eim-proj-status--active {
  background: #d4f0ec;
  color: #1a7a71;
}
.eim-proj-status--ongoing {
  background: #e5e3f7;
  color: #514d8c;
}
.eim-proj-status--completed {
  background: #e8e8e8;
  color: #555;
}
.eim-proj-location {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #888;
}
.eim-init-projects .eim-proj-card-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 14px;
  line-height: 1.35;
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  text-shadow: none !important;
}
.eim-proj-progress {
  height: 6px;
  background: #e8e6f5;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.eim-proj-progress-bar {
  height: 100%;
  background: #36ab9c;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.eim-proj-progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}
.eim-proj-cta {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #514d8c;
  margin-top: auto;
  padding-top: 12px;
}

/* -- Placeholder to avoid removing sidebar-title rule used by other selectors -- */
.eim-init-sidebar-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 10px;
  line-height: 1.3;
}
.eim-init-sidebar-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #6b6796;
  line-height: 1.65;
  margin: 0 0 20px;
}
/* -- Responsive -- */
@media (max-width: 900px) {
  .eim-init-hero {
    flex-direction: column;
    background: #292746; /* solid blue on mobile ï¿½ ::before won't work well stacked */
    min-height: 0;
  }
  .eim-init-hero::before {
    display: none;
  }
  .eim-init-hero-left {
    padding: 48px 24px 32px;
    justify-content: flex-start;
  }
  .eim-init-hero-card {
    max-width: 100%;
    padding: 28px 24px;
  }
  .eim-init-hero-right {
    width: 100%;
    padding: 0 16px 0;
    min-height: 260px;
  }
  .eim-init-hero-img-wrap {
    border-radius: 10px;
    min-height: 260px;
  }
  .eim-init-hero-cta-wrap {
    padding: 16px 0 24px;
  }
  .eim-init-hero-btn {
    background: #fff !important;
    color: #292746 !important;
  }
  /* Section 1B: stack image above text */
  .eim-init-s2 {
    flex-direction: column;
    padding: 0;
    min-height: 0;
    margin-bottom: 40px;
  }
  .eim-init-s2-img {
    flex: none;
    width: 100%;
    min-height: 0;
    height: auto;
    overflow: visible;
  }
  .eim-init-s2-img img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
    object-position: unset;
  }
  .eim-init-s2-text {
    padding: 28px 20px 32px;
  }

  .eim-init-img-stats {
    padding: 0 20px 48px 20px;
  }
  .eim-init-img-stats-inner {
    flex-direction: column;
  }
  .eim-init-body-img {
    flex: 0 0 280px;
    min-height: 280px;
  }
  .eim-init-stats-panel {
    padding: 32px 24px;
  }
  .eim-init-tiers-section {
    padding: 48px 20px 60px;
  }
  .eim-init-projects {
    padding: 48px 20px 56px;
  }
  .eim-init-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .eim-init-tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== INITIATIVES LIST (archive page) ===================== */

/* 3-column grid of vertical cards */
.eim-initlist-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 0 16px;
}
.eim-initlist-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(18, 16, 44, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.eim-initlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(18, 16, 44, 0.13);
}

/* Dark icon header */
.eim-initlist-icon-wrap {
  background: #292746;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  color: #ff914d;
}
.eim-initlist-icon-wrap svg {
  width: 48px;
  height: 48px;
}

/* White body */
.eim-initlist-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.eim-initlist-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 10px;
  line-height: 1.3;
}
.eim-initlist-title a,
.eim-initlist-title a:visited {
  color: #292746 !important;
  text-decoration: none;
}
.eim-initlist-title a:hover {
  color: #514d8c !important;
}
.eim-initlist-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #5a5770;
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}
.eim-initlist-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.eim-initlist-btn-learn {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #514d8c;
  text-decoration: none;
  padding: 9px 18px;
  border: 2px solid #514d8c;
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s;
  flex: 1;
  text-align: center;
}
.eim-initlist-btn-learn:hover {
  background: #514d8c;
  color: #fff;
}
.eim-initlist-btn-give,
.eim-initlist-btn-give:hover,
.eim-initlist-btn-give:focus,
.eim-initlist-btn-give:active {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: #ff914d !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s;
  flex: 1;
  box-shadow: none !important;
}
.eim-initlist-btn-give:hover {
  background: #e07a3a !important;
}

@media (max-width: 900px) {
  .eim-initlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 560px) {
  .eim-initlist-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Initiatives page ï¿½ grid max-width constraint ===== */

/* ==========================================================
   SCHOOLS ï¿½ List cards  [eim_schools_list]
   ========================================================== */

.eim-schools-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 0 16px;
}

.eim-school-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(18, 16, 44, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.eim-school-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(18, 16, 44, 0.13);
}

.eim-school-card-img-link {
  display: block;
}
.eim-school-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #292746 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eim-school-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eim-school-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.eim-school-badge {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.eim-school-badge--own {
  background: #292746;
  color: #fff;
}
.eim-school-badge--sponsored {
  background: #514d8c;
  color: #fff;
}
.eim-school-badge--partnership {
  background: #e8f4ea;
  color: #2a7a3b;
}
.eim-school-badge--type {
  background: #f5f4fc;
  color: #514d8c;
}

.eim-school-card-name {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #292746;
  margin: 0 0 8px;
  line-height: 1.3;
}
.eim-school-card-name a,
.eim-school-card-name a:visited {
  color: #292746 !important;
  text-decoration: none;
}
.eim-school-card-name a:hover {
  color: #514d8c !important;
}

.eim-school-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #8b87aa;
  margin: 0 0 16px;
}
.eim-school-card-link {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #514d8c;
  text-decoration: none;
  margin-top: auto;
}
.eim-school-card-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .eim-schools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 560px) {
  .eim-schools-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   SCHOOLS ï¿½ Single page template
   ========================================================== */

/* Split hero */
.eim-school-hero {
  display: flex;
  min-height: 400px;
}
.eim-school-hero-photo {
  width: 55%;
  flex-shrink: 0;
  background: #292746 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eim-school-hero-photo-placeholder {
  opacity: 0.4;
}
.eim-school-hero-panel {
  flex: 1;
  background: #f8f7f4;
  display: flex;
  align-items: center;
  padding: 60px 48px;
}
.eim-school-hero-panel-inner {
  max-width: 420px;
}

/* Breadcrumb */
.eim-school-breadcrumb {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #8b87aa;
  margin-bottom: 20px;
}
.eim-school-breadcrumb a {
  color: #8b87aa;
  text-decoration: none;
}
.eim-school-breadcrumb a:hover {
  color: #514d8c;
}

/* Badges */
.eim-school-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Title */
.eim-school-hero-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #292746;
  margin: 0 0 14px;
  line-height: 1.2;
}

/* Location */
.eim-school-hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #514d8c;
  font-weight: 500;
  margin: 0 0 16px;
}
.eim-school-hero-grades {
  color: #8b87aa;
  font-weight: 400;
}

/* Excerpt */
.eim-school-hero-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #5a5770;
  line-height: 1.7;
  margin: 0 0 28px;
}

/* Give button */
.eim-school-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: #ff914d !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.eim-school-hero-btn:hover {
  background: #e07a3a !important;
}

/* Stats band */
.eim-school-stats-band {
  background: #f3f2fa;
  border-bottom: 1px solid #e2dff2;
}
.eim-school-stats-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}
.eim-school-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 44px;
  border-right: 1px solid #e2dff2;
  text-align: center;
}
.eim-school-stat-item:last-child {
  border-right: none;
}
.eim-school-stat-num {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #292746;
  line-height: 1;
}
.eim-school-stat-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #6b668f;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 6px;
}

/* Alternating content sections */
.eim-school-sections-wrap {
  background: #fff;
  overflow: hidden; /* clips the bleeding images */
}
.eim-school-section {
  display: flex;
  align-items: center;
}
.eim-school-section + .eim-school-section {
  border-top: 1px solid #f0eef8;
}

/* Text column ï¿½ carries the padding / max-width constraint */
.eim-school-section-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
}
.eim-school-section--img-right .eim-school-section-text {
  padding: 72px 56px 72px calc((100vw - 1200px) / 2 + 40px);
  padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px));
}
.eim-school-section--img-left .eim-school-section-text {
  padding: 72px calc((100vw - 1200px) / 2 + 40px) 72px 56px;
  padding-right: max(40px, calc((100vw - 1200px) / 2 + 40px));
}

/* Image column ï¿½ fixed 42%, bleeds to its outer edge, natural aspect ratio */
.eim-school-section-img {
  flex: 0 0 42%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.eim-school-section-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.eim-school-section-img:hover img {
  transform: scale(1.03);
}
.eim-school-content {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #3a3760;
  line-height: 1.8;
}
@media (max-width: 860px) {
  .eim-school-section,
  .eim-school-section--img-right,
  .eim-school-section--img-left {
    flex-direction: column !important;
    min-height: 0;
  }
  /* on mobile, photo always comes first */
  .eim-school-section--img-right .eim-school-section-img {
    order: -1;
  }
  .eim-school-section-text {
    padding: 48px 24px !important;
  }
  .eim-school-section-img {
    flex: none;
    width: 100%;
  }
  .eim-school-section-img img {
    width: 100%;
    height: auto;
  }
}

/* School gallery ï¿½ 3-up carousel */
.eim-school-gallery-section {
  background: #fff;
  padding: 64px 0 72px;
  border-top: 1px solid #f0eef8;
}
.eim-school-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.eim-school-gallery-heading {
  text-align: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(20px, 2.5vw, 28px);
  color: #292746;
  margin: 0 0 40px;
  letter-spacing: -0.3px;
}
/* Gallery row: arrow | viewport | arrow */
.eim-school-gallery-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.eim-school-gallery-viewport {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.eim-school-gallery-track {
  display: flex;
  will-change: transform;
}
.eim-school-gallery-slide {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  padding: 0 8px;
}
.eim-school-gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.eim-gallery-arrow {
  flex: 0 0 56px;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: #f3f2fa !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition:
    background 0.25s,
    box-shadow 0.25s !important;
  padding: 0 !important;
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 2px 12px rgba(81, 77, 140, 0.15);
}
.eim-gallery-arrow svg {
  width: 26px !important;
  height: 26px !important;
  display: block;
  stroke: #514d8c;
  transition: stroke 0.25s;
}
.eim-gallery-arrow:hover:not(:disabled) {
  background: #514d8c !important;
  box-shadow: 0 4px 18px rgba(18, 16, 44, 0.22);
}
.eim-gallery-arrow:hover:not(:disabled) svg {
  stroke: #faf9ff;
}
.eim-gallery-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}
@media (max-width: 700px) {
  .eim-school-gallery-slide {
    flex: 0 0 50%;
  }
}
@media (max-width: 480px) {
  .eim-school-gallery-slide {
    flex: 0 0 100%;
  }
}

.eim-school-content p {
  margin: 0 0 1.4em;
}
.eim-school-content h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  color: #292746;
  margin: 1.6em 0 0.6em;
}
.eim-school-content h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  color: #292746;
  margin: 1.4em 0 0.5em;
}

/* WP gallery blocks ï¿½ styled as picture strip */
.eim-school-content .wp-block-gallery {
  margin: 40px 0;
}
.eim-school-content .wp-block-gallery .wp-block-image img {
  border-radius: 8px;
  object-fit: cover;
}
.eim-school-content figure.wp-block-image {
  margin: 0;
}
.eim-school-content .wp-block-image figcaption {
  font-size: 12px;
  color: #8b87aa;
  text-align: center;
  margin-top: 6px;
}

/* Linked projects section */
.eim-school-projects-section {
  padding: 72px 24px;
  background: #f8f7fd;
}
.eim-school-projects-inner {
  max-width: 1060px;
  margin: 0 auto;
}
.eim-school-section-heading {
  font-family: "Libre Baskerville", Georgia, serif !important;
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 700 !important;
  color: #292746 !important;
  margin: 0 0 10px !important;
  line-height: 1.25 !important;
}
.eim-school-projects-sub {
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  color: #6b668f !important;
  margin: 0 0 36px !important;
  line-height: 1.6 !important;
}

/* Giving tiers section */
.eim-school-tiers-section {
  background: #292746;
  padding: 72px 24px;
}
.eim-school-tiers-inner {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}
.eim-school-tiers-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #ff914d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
}
.eim-school-tiers-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px);
  color: #fff;
  margin: 0 0 12px;
}
.eim-school-tiers-sub {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 48px;
  line-height: 1.6;
}
.eim-school-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.eim-school-tier-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.eim-school-tier-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.eim-school-tier-amount {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: #ff914d;
  line-height: 1;
}
.eim-school-tier-desc {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.eim-school-tier-btn,
.eim-school-tier-btn:hover,
.eim-school-tier-btn:focus,
.eim-school-tier-btn:active {
  font-family: "Inter", sans-serif;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  color: #292746 !important;
  border: none !important;
  border-radius: 7px;
  padding: 10px 36px !important;
  line-height: 1.5 !important;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block !important;
  width: auto !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.eim-school-tier-btn:hover {
  background: #f0eef8 !important;
}

/* Back link */
.eim-school-back-wrap {
  background: #f8f7f4;
  padding: 28px 24px;
  text-align: center;
}
.eim-school-back-link {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #514d8c;
  text-decoration: none;
  font-weight: 500;
}
.eim-school-back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .eim-school-hero {
    flex-direction: column;
    min-height: unset;
  }
  .eim-school-hero-photo {
    width: 100%;
    min-height: 280px;
  }
  .eim-school-hero-panel {
    padding: 40px 28px;
  }
  .eim-school-tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .eim-school-tiers-grid {
    grid-template-columns: 1fr;
  }
  .eim-school-stat-item {
    padding: 20px 24px;
  }
}

/* ==========================================================
   OUR SCHOOLS ï¿½ Archive page hero
   ========================================================== */

.eim-schools-page-hero {
  background: #292746;
  padding: 80px 24px 72px;
  text-align: center;
}
.eim-schools-page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.eim-schools-page-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #ff914d;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 14px;
}
.eim-schools-page-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.15;
}
.eim-schools-page-lead {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
  margin: 0;
}

.eim-schools-page-body {
  background: #f8f7f4;
  padding: 64px 24px 80px;
}

/* ============================================================
   HERO SLIDER  ï¿½ v5.1.7
   ============================================================ */
.eim-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1350 / 628;
  min-height: 420px;
  max-height: 85vh;
  overflow: hidden;
  background: #1a1830;
}
/* Vignette ï¿½ clear centre, dark edges/corners */
.eim-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 90% 80% at 50% 50%,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.42) 100%
    );
  z-index: 4;
  pointer-events: none;
}
.eim-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.eim-slide.eim-active {
  opacity: 1;
  z-index: 3;
}
/* Projects slide has no photo bg â€” lift above vignette (z-index:4) so card titles aren't darkened */
.eim-slide--projects.eim-active {
  z-index: 5;
}
.eim-slide.eim-leaving {
  opacity: 1;
  z-index: 2;
}
/* Push transition â€” slides stay edge-to-edge, background never exposed */
@keyframes eim-slide-in-fwd {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes eim-slide-in-back {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes eim-slide-out-fwd {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes eim-slide-out-back {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
.eim-slide.eim-active.eim-entering-fwd {
  animation: eim-slide-in-fwd 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.eim-slide.eim-active.eim-entering-back {
  animation: eim-slide-in-back 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.eim-slide.eim-leaving.eim-leaving-fwd {
  animation: eim-slide-out-fwd 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.eim-slide.eim-leaving.eim-leaving-back {
  animation: eim-slide-out-back 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
/* Flat overlay between bg and vignette */
.eim-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 2;
  pointer-events: none;
}
/* Background layer ï¿½ Ken Burns target */
.eim-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1) translate(0%, 0%);
  will-change: transform;
  z-index: 1;
}
/* Ken Burns keyframe animations â€” one per slide variant (cycled by index) */
@keyframes eim-kb-0 {
  from {
    transform: scale(1) translate(0%, 0%);
  }
  to {
    transform: scale(1.18) translate(-5%, -3%);
  }
}
@keyframes eim-kb-1 {
  from {
    transform: scale(1) translate(0%, 0%);
  }
  to {
    transform: scale(1.18) translate(5%, 2%);
  }
}
@keyframes eim-kb-2 {
  from {
    transform: scale(1) translate(0%, 0%);
  }
  to {
    transform: scale(1.18) translate(-4%, 5%);
  }
}
@keyframes eim-kb-3 {
  from {
    transform: scale(1) translate(0%, 0%);
  }
  to {
    transform: scale(1.18) translate(4%, -4%);
  }
}
/* Text layer ï¿½ above everything */
.eim-slide-inner {
  position: relative;
  z-index: 5;
  text-align: left;
  max-width: 900px;
  width: 100%;
  padding: 0 120px;
  opacity: 0;
  margin-right: auto;
}
@keyframes eim-text-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes eim-text-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}
.eim-slide.eim-active .eim-slide-inner {
  animation: eim-text-in 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s both;
}
.eim-slide.eim-leaving .eim-slide-inner {
  animation: eim-text-out 0.4s ease both;
}
/* Typography */
.eim-slide-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.eim-slide-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 30px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.eim-slide-heading span {
  color: #ffaf7f;
}
/* Slider buttons */
.eim-slide-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.eim-btn-primary {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: #e07a3a !important;
  color: #fff !important;
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  border: none !important;
}
.eim-btn-primary:hover {
  background: #ffaf7f !important;
  color: #fff !important;
}
.eim-btn-secondary {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: #fff !important;
  color: #292746 !important;
  padding: 12px 30px;
  border-radius: 4px;
  border: 1px solid #fff !important;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.eim-btn-secondary:hover {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}
/* Pill-line dot indicators */
.eim-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.eim-dot {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
  box-shadow: none;
  transition:
    background 0.35s,
    width 0.35s;
  flex-shrink: 0;
}
.eim-dot:focus,
.eim-dot:active,
.eim-dot:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.38);
}
.eim-dot:focus.eim-dot-active,
.eim-dot:active.eim-dot-active,
.eim-dot:focus-visible.eim-dot-active {
  background: #ffaf7f !important;
}
.eim-dot:hover:not(.eim-dot-active) {
  background: #514d8c;
}
.eim-dot.eim-dot-active {
  background: #ffaf7f;
  width: 52px;
}

/* Prev / Next arrows */
.eim-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  padding: 0;
  user-select: none;
}
.eim-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}
.eim-arrow:focus,
.eim-arrow:focus-visible,
.eim-arrow:focus:not(:focus-visible),
.eim-arrow:active {
  outline: 0 !important;
  box-shadow: none !important;
}
.eim-arrow--prev {
  left: 20px;
}
.eim-arrow--next {
  right: 20px;
}
@media (max-width: 600px) {
  .eim-arrow {
    width: 36px;
    height: 36px;
  }
  .eim-arrow--prev {
    left: 10px;
  }
  .eim-arrow--next {
    right: 10px;
  }
}

/* ============================================================
   HERO SLIDER ï¿½ Projects-type slide
   ============================================================ */
/* Override centering for the projects slide */
.eim-slide--projects {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 36px;
}
/* Heading block ï¿½ left-aligned, stays on the left */
.eim-slide-inner--tl {
  position: relative;
  text-align: left;
  padding: 0 120px;
  max-width: 800px;
  align-self: flex-start;
}
/* Project cards strip ï¿½ centred below the heading */
.eim-proj-cards-strip {
  position: relative;
  display: flex;
  gap: 20px;
  z-index: 5;
  align-self: center;
}
.eim-slide.eim-leaving .eim-proj-cards-strip {
  animation: eim-text-out 0.4s ease both;
}
/* Individual project card */
.eim-proj-card {
  display: block;
  width: 320px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: #1a1830 center / cover no-repeat;
  flex-shrink: 0;
  white-space: normal;
  cursor: pointer;
}
/* No overlay on slider project cards â€” gradient suppressed, text-shadow provides contrast */
.eim-proj-card::before,
.eim-proj-card::after {
  display: none !important;
}
.eim-proj-card:hover {
  opacity: 0.9;
}
.eim-proj-card-title {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.9),
    0 3px 12px rgba(0, 0, 0, 0.7);
}
/* Responsive */
@media (max-width: 960px) {
  .eim-proj-card {
    width: 240px;
    height: 160px;
  }
  .eim-slide-inner--tl {
    padding: 0 36px;
  }
  .eim-slide--projects {
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .eim-proj-cards-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    align-self: stretch;
    margin: 0 20px;
    gap: 12px;
  }
  .eim-proj-cards-strip::-webkit-scrollbar {
    display: none;
  }
  .eim-proj-card {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 7px;
  }
  .eim-proj-card-title {
    font-size: 12px;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }
  .eim-slide-inner {
    padding: 0 20px;
    max-width: 100%;
  }
  .eim-slide-heading {
    font-size: clamp(20px, 5.5vw, 28px);
    margin-bottom: 20px;
  }
  .eim-slide-inner--tl {
    padding: 0 20px;
    max-width: 100%;
  }
  .eim-slide-inner--tl .eim-slide-heading {
    font-size: clamp(18px, 5.5vw, 26px);
    margin-bottom: 0;
  }
  .eim-slide--projects {
    gap: 14px;
  }
}

/* ============================================================
   SITE-WIDE FOOTER  v5.5.0
   Dark navy + gradient ï¿½ 3-col grid ï¿½ tagline bar
   ============================================================ */

/* -- Wrapper -- */
.eim-site-footer {
  background: linear-gradient(160deg, #1a1740 0%, #292746 55%, #0d0b20 100%);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* -- Main grid -- */
.eim-footer-main {
  padding: 72px 24px 56px;
}
.eim-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1.3fr;
  gap: 48px 64px;
  align-items: start;
}

/* -- Column shared -- */
.eim-footer-col-title {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff914d;
  margin: 0 0 14px;
  padding: 0;
}
.eim-footer-col-title--sub {
  margin-top: 32px;
}

/* -- COL 1 : Brand -- */
.eim-footer-logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 20px;
}
.eim-footer-logo-link {
  display: inline-block;
  line-height: 0;
}
.eim-footer-mission {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  max-width: 280px;
}

/* -- COL 2 : Links -- */
.eim-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eim-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease;
}
.eim-footer-links a:hover {
  color: #ff914d;
}
.eim-footer-links--initiatives {
  gap: 8px;
}
.eim-footer-links--initiatives a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.eim-footer-links--initiatives a:hover {
  color: #ffaf7f;
}

/* -- COL 3 : Get Involved -- */
.eim-footer-give-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff914d;
  color: #fff !important;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 6px;
  transition:
    background 0.18s ease,
    transform 0.15s ease;
  margin-bottom: 14px;
}
.eim-footer-give-btn:hover {
  background: #e87d3a;
  transform: translateY(-1px);
}
.eim-footer-partner-link {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.18s ease;
}
.eim-footer-partner-link:hover {
  color: #ff914d;
}

/* Contact block */
.eim-footer-contact {
  margin-bottom: 28px;
}
.eim-footer-contact-title {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 12px;
  padding: 0;
}
.eim-footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eim-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 255, 255, 0.7);
}
.eim-footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.eim-footer-contact-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.18s ease;
}
.eim-footer-contact-list a:hover {
  color: #ff914d;
}
.eim-footer-address span {
  font-size: 13px;
  line-height: 1.5;
}

/* Social block */
.eim-footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.eim-footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.eim-footer-social-links a:hover {
  background: #ff914d;
  border-color: #ff914d;
  color: #fff;
}

/* -- Divider -- */
.eim-footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* -- Tagline bar -- */
.eim-footer-tagline-bar {
  padding: 36px 24px 40px;
  text-align: center;
}
.eim-footer-tagline {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.18);
  margin: 0;
  line-height: 1;
}

/* -- Responsive -- */
@media (max-width: 960px) {
  .eim-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 40px;
  }
  .eim-footer-col--brand {
    grid-column: 1 / -1;
  }
  .eim-footer-mission {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .eim-footer-main {
    padding: 48px 20px 40px;
  }
  .eim-footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .eim-footer-tagline {
    font-size: clamp(20px, 7vw, 28px);
  }
  .eim-footer-tagline-bar {
    padding: 28px 20px 32px;
  }
}

/* -- Elementor footer template link styles (used by the HFE Elementor template) -- */

/* Nav links & initiative links inside Elementor HTML widgets */
.hfe-footer .elementor-widget-html a,
.hfe-footer .eim-footer-init-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  transition: color 0.18s ease;
}
.hfe-footer .elementor-widget-html a:hover,
.hfe-footer .eim-footer-init-link:hover {
  color: #ff914d;
}

/* Contact links inside Elementor HTML widgets */
.hfe-footer .elementor-widget-html a[href^="tel:"],
.hfe-footer .elementor-widget-html a[href^="mailto:"] {
  color: rgba(255, 255, 255, 0.75);
}
.hfe-footer .elementor-widget-html a[href^="tel:"]:hover,
.hfe-footer .elementor-widget-html a[href^="mailto:"]:hover {
  color: #ff914d;
}

/* Shortcode widget (initiatives list) link style */
.hfe-footer .elementor-widget-shortcode a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  transition: color 0.18s ease;
}
.hfe-footer .elementor-widget-shortcode a:hover {
  color: #ff914d;
}

/* Ensure Elementor heading widgets in the footer inherit the right color on dark bg */
.hfe-footer .elementor-widget-heading .elementor-heading-title {
  line-height: 1.2;
}

/* ==========================================================
   SMBEH Network Page
   ========================================================== */

/* -- Hero wrap -- */
.eim-smbeh-hero {
  width: 100%;
}
.eim-smbeh-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Tabs outer wrap -- */
.eim-smbeh-tabs-wrap {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

/* -- Tab bar -- */
.eim-smbeh-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8e6f5;
  margin-bottom: 48px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.eim-smbeh-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 14px 24px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #6b6887;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.eim-smbeh-tab-btn:hover {
  color: #292746;
}
.eim-smbeh-tab-btn.eim-smbeh-tab-active {
  color: #292746;
  border-bottom-color: #292746;
  font-weight: 600;
}

/* -- Tab panels -- */
.eim-smbeh-tab-panel {
  display: block;
}
.eim-smbeh-tab-panel[hidden] {
  display: none;
}

/* -- Section eyebrow -- */
.eim-smbeh-section-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff914d;
  margin-bottom: 8px;
}

/* -- About section -- */
.eim-smbeh-about-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 56px;
}
.eim-smbeh-about-who {
  max-width: 780px;
}
.eim-smbeh-about-text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #3d3a5c;
}
.eim-smbeh-about-text p {
  margin: 0 0 1.1em;
}

/* -- Vision / Mission grid -- */
.eim-smbeh-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .eim-smbeh-vm-grid {
    grid-template-columns: 1fr;
  }
}
.eim-smbeh-vm-card {
  background: #f7f6fc;
  border: 1.5px solid #e8e6f5;
  border-radius: 14px;
  padding: 28px 28px 32px;
}
.eim-smbeh-vm-icon {
  width: 44px;
  height: 44px;
  background: #292746;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}
.eim-smbeh-vm-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff914d;
  margin: 0 0 8px;
}
.eim-smbeh-vm-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #3d3a5c;
  margin: 0;
}

/* -- Stats bar -- */
.eim-smbeh-stats-bar {
  display: flex;
  background: #292746;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 56px;
}
.eim-smbeh-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.eim-smbeh-stat-item:last-child {
  border-right: none;
}
.eim-smbeh-stat-value {
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.eim-smbeh-stat-label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .eim-smbeh-stats-bar {
    flex-wrap: wrap;
  }
  .eim-smbeh-stat-item {
    flex: 0 0 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
  }
  .eim-smbeh-stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* -- Map section -- */
.eim-smbeh-map-section {
  margin-bottom: 24px;
}

/* -- Directory section -- */
.eim-smbeh-directory-section {
  /* inherits [eim_churches_grid] styles */
}

/* -- Structure section -- */
.eim-smbeh-structure-section {
  min-height: 200px;
}

/* -- Documents section -- */
.eim-smbeh-documents-section {
  padding: 8px 0 32px;
}
.eim-smbeh-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.eim-smbeh-doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1.5px solid #e8e6f5;
  border-radius: 12px;
  padding: 28px 20px 24px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.eim-smbeh-doc-card:hover {
  border-color: #292746;
  background: #f7f6fc;
}
.eim-smbeh-doc-icon {
  width: 52px;
  height: 52px;
  background: #f0eefa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #292746;
  margin-bottom: 14px;
}
.eim-smbeh-doc-name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #292746;
  margin-bottom: 8px;
  line-height: 1.4;
}
.eim-smbeh-doc-dl {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #ff914d;
  font-weight: 500;
}

/* -- Placeholder note -- */
.eim-smbeh-placeholder-note {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #9a96b4;
  font-style: italic;
  padding: 40px 0;
  text-align: center;
}

/* ============================================================
   PARTNERSHIP PAGE  v1.0
   ============================================================ */

/* -- Icon color (Elementor 4.x doesn't generate this via icon_color setting) */
.eim-partner-card .elementor-icon,
.eim-partner-card .elementor-icon i,
.eim-partner-card .elementor-icon svg {
  color: #ff914d;
  fill: #ff914d;
}

/* -- Card wrapper --------------------------------------------- */
.eim-partner-card .elementor-icon-box-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 18px rgba(41, 39, 70, 0.07);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.eim-partner-card .elementor-icon-box-wrapper:hover {
  box-shadow: 0 8px 32px rgba(41, 39, 70, 0.14);
  transform: translateY(-4px);
}
.eim-partner-card .elementor-icon-box-content {
  flex: 1;
}

/* -- Equal-height columns ------------------------------------- */
.eim-partner-col > .elementor-column-wrap,
.eim-partner-col > .elementor-column-wrap > .elementor-widget-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.eim-partner-col .elementor-widget-icon-box {
  flex: 1;
}

/* -- Button overrides ----------------------------------------- */
.eim-partner-btn.elementor-button,
.eim-partner-btn.elementor-button:visited {
  background-color: #ff914d !important;
  color: #fff !important;
  border: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease;
}
.eim-partner-btn.elementor-button:hover,
.eim-partner-btn.elementor-button:focus {
  background-color: #e07835 !important;
  color: #fff !important;
}

/* -- OpenHub tiers table responsive -------------------------- */
/* Widget elementor-element-61bb133 is the Text Editor widget containing the table */
.elementor-element-61bb133 table {
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 767px) {
  /* Stack org cards to single column */
  .eim-partner-col {
    width: 100% !important;
  }
  /* Stack individual cards 2 per row */
  #for-individuals .eim-partner-col {
    width: 50% !important;
  }
  /* Tiers table: make horizontally scrollable on mobile */
  .elementor-element-61bb133 .elementor-widget-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .elementor-element-61bb133 table {
    font-size: 12px;
    min-width: 480px;
  }
  .elementor-element-61bb133 td,
  .elementor-element-61bb133 th {
    padding: 10px 12px !important;
    white-space: normal !important;
  }
}

/* â”€â”€ Mobile Accessibility: Minimum font sizes & touch targets â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   WCAG 2.1 SC 1.4.4 (Resize text) & SC 2.5.5 (Target Size)
   Applies to â‰¤767px (phones + tablets).
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 767px) {
  /* â”€â”€ Slider dots: expand invisible touch area to â‰¥44px (WCAG 2.5.5) â”€â”€ */
  .eim-dot {
    position: relative;
  }
  .eim-dot::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -8px;
    bottom: -20px;
    left: -8px;
  }

  /* â”€â”€ Badge / pill text: 10px â†’ 12px â”€â”€ */
  .eim-cat-badge,
  .eim-status-badge,
  .eim-donate-card-general-eyebrow,
  .eim-phase-label,
  .eim-phase-status,
  .eim-givers-heading,
  .eim-sidebar-meta-item strong,
  .eim-church-info-list li strong {
    font-size: 12px;
  }

  /* â”€â”€ Eyebrow / label / meta text: 11px â†’ 12px â”€â”€ */
  .eim-home-proj-eyebrow,
  .eim-hero-cat,
  .eim-hero-breadcrumb,
  .eim-church-family-eyebrow,
  .eim-proj-tiers-label,
  .eim-modal-amount-label,
  .eim-info-label,
  .eim-smbeh-vm-label,
  .eim-init-tier-tag,
  .eim-proj-status,
  .eim-school-badge,
  .eim-church-num {
    font-size: 12px;
  }

  /* Has !important in base rule */
  .eim-proj-tier-desc {
    font-size: 12px !important;
  }

  /* Tooltip "Copied!" â€” keep readable on touch */
  .eim-proj-share-link.eim-share-copied::after {
    font-size: 12px;
  }

  /* â”€â”€ Footer copyright h6 â€” override Elementor responsive size â”€â”€ */
  footer .elementor-widget-text-editor h6 {
    font-size: 12px !important;
  }
}


/* Footer nav menus: suppress HFE mobile toggle
   HFE Nav Menu widget collapses footer menus on mobile via .hfe-dropdown
   (height: 0 + toggle icon). Always show the links in the footer.
   ------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Hide the hamburger toggle button that HFE adds in the footer */
  .elementor-element-b96d149 .hfe-nav-menu__toggle {
    display: none !important;
  }
  /* Expand the collapsed nav - override HFE height:0, visibility:hidden, opacity:0 and white bg */
  .elementor-element-b96d149 nav.hfe-dropdown,
  .elementor-element-b96d149 .hfe-nav-menu__inner-container {
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: transparent !important;
  }
  .elementor-element-b96d149 nav.hfe-dropdown li,
  .elementor-element-b96d149 nav.hfe-dropdown a {
    visibility: visible !important;
    opacity: 1 !important;
    background-color: transparent !important;
    border: none !important;
  }
}

/* Homepage: remove excess padding-top on tagline section below hero */
@media (max-width: 767px) {
  .elementor-element-8d0c910 {
    padding-top: 5px !important;
  }
}

/* Homepage hero: suppress 90vh min-height that creates a ~340px blank gap on
   real mobile (iOS Safari / Android). The slider is 420px; no min-height needed. */
@media (max-width: 767px) {
  .elementor-21398 .elementor-element.elementor-element-hm001 > .elementor-container {
    min-height: 0 !important;
  }
}

/* ── Single project page: mobile layout fixes ──────────────────────────────
   Desktop is intentionally unchanged. All overrides scoped to ≤767px.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* 1. Main content+sidebar wrap: cut side padding from 56px → 20px.
        At 390px, 56px × 2 = 112px wasted → only 278px content. */
  .eim-single-wrap {
    padding: 32px 20px 48px;
  }

  /* 2. Hero breadcrumb: switch from absolute to in-flow so it sits clearly
        above the title. Absolute top:32px + content padding-top:32px causes
        the breadcrumb and title to overlap on real mobile. */
  .eim-hero-breadcrumb {
    position: relative;
    top: auto;
    left: auto;
    padding: 24px 20px 0;  /* breathing room from hero top; aligned with content */
    margin-bottom: 0;
  }

  /* 3. Hero content block: remove top padding – breadcrumb now flows above it.
        Add a comfortable gap (16px) between breadcrumb and h1. */
  .eim-single-hero-content {
    padding: 16px 20px 24px;
  }

  /* 4. Section headings inside main content: reduce oversized top margin. */
  .eim-proj-section-heading {
    margin: 36px 0 18px;
  }

  /* 5. Photo gallery block: reduce large top gap. */
  .eim-project-gallery {
    margin-top: 24px;
    padding-top: 20px;
  }

  /* 6. Project phase cards: compact badge and trigger padding for narrow screens.
        Also allow the phase title text to wrap (browser UA sets white-space:nowrap
        on <button> which can push a long title beyond 390px viewport). */
  .eim-phase-number {
    width: 36px;
    height: 36px;
    font-size: 15px;
    margin: 18px 0 18px 16px;
  }
  .eim-phase-accordion-trigger {
    padding: 18px 16px 18px 0 !important;
    white-space: normal !important;
  }
}
