/* project (donation) details page */

/* the theme sets overflow-x: hidden on html and body, which stops position: sticky working */
html:has(.bwc-project-aside),
body:has(.bwc-project-aside) {
  overflow-x: clip;
}

.bwc-project {
  --p-navy: #08427c;
  --p-navy-dark: #06325e;
  --p-gold: #c8b530;
  --p-gold-text: #7a6c0e;
  --p-red: #d63336;
  --p-ink: #0d1b2e;
  --p-text: #4f5d73;
  --p-muted: #5f6b7d;
  --p-line: #e3e9f1;
  --p-soft: #f5f8fc;
  padding: 32px 0 90px;
  background: #fff;
  color: var(--p-text);
}

.bwc-project [hidden] {
  display: none !important;
}

/* ---------- main column ---------- */
.bwc-project-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f0f9;
  color: var(--p-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.bwc-project-title {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-project-media {
  overflow: hidden;
  border-radius: 16px;
  background: var(--p-soft);
}

.bwc-project-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bwc-project-progress {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: #fff;
}

.bwc-progress-figures {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bwc-progress-amount {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-progress-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--p-muted);
}

.bwc-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
}

.bwc-progress-fill {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--p-navy), var(--p-gold));
}

.bwc-progress-note {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-navy);
}

.bwc-project-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 50px;
  border-radius: 10px;
  background: var(--p-navy);
  color: #fff;
  font-weight: 700;
}

.bwc-project-jump:hover,
.bwc-project-jump:focus {
  background: var(--p-navy-dark);
  color: #fff;
}

.bwc-project-jump i {
  color: var(--p-gold);
}

/* description written in the admin editor */
.bwc-project-body {
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--p-text);
}

.bwc-project-body h1,
.bwc-project-body h2,
.bwc-project-body h3,
.bwc-project-body h4 {
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-project-body > h3:first-child,
.bwc-project-body > h2:first-child {
  margin-top: 0;
}

.bwc-project-body h4,
.bwc-project-body h5 {
  font-size: 18px;
}

.bwc-project-body p {
  margin: 0 0 16px;
  color: var(--p-text);
}

.bwc-project-body strong,
.bwc-project-body b {
  color: var(--p-ink);
}

.bwc-project-body a {
  color: var(--p-navy);
  text-decoration: underline;
}

.bwc-project-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* bulleted lists in the description show as a grid of cards */
.bwc-project-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.bwc-project-body ul li {
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.bwc-project-body ul li::before {
  content: "\f00c";
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--p-navy);
  border-radius: 8px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: var(--p-navy);
}

.bwc-project-body ul li strong,
.bwc-project-body ul li b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.bwc-project-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

/* text pasted from other apps: drop its inline layout and the empty lines it leaves */
.bwc-project-body div,
.bwc-project-body p,
.bwc-project-body span {
  white-space: normal !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background: none !important;
}

.bwc-project-body div {
  margin: 0 0 16px;
}

.bwc-project-body p:empty,
.bwc-project-body div:empty,
.bwc-project-body p:has(> br:only-child),
.bwc-project-body div:has(> br:only-child) {
  display: none;
}

/* structured sections (config/project-content.php) */
.bwc-project-sections {
  margin-top: 40px;
}

.bwc-project-section + .bwc-project-section {
  margin-top: 40px;
}

.bwc-section-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-project-section > p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--p-text);
}

.bwc-project-section > p:last-child {
  margin-bottom: 0;
}

.bwc-teach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.bwc-teach-card {
  padding: 22px 20px 20px;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.bwc-teach-card:hover {
  border-color: #c9d6e6;
  box-shadow: 0 8px 22px rgba(13, 27, 46, .06);
}

.bwc-teach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1.5px solid var(--p-navy);
  border-radius: 12px;
  color: var(--p-navy);
  font-size: 18px;
}

.bwc-teach-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--p-ink);
}

.bwc-teach-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--p-text);
}

/* ---------- donate card ---------- */
/* layout: content left, donate card right (spanning the full height so it can stick),
   recent donors under the content */
.bwc-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "main aside"
    "donors aside";
  grid-template-rows: auto 1fr;
  column-gap: 40px;
}

.bwc-project-main { grid-area: main; }
.bwc-project-aside { grid-area: aside; }
.bwc-project-grid > .bwc-donors { grid-area: donors; align-self: start; margin-top: 40px; }

.bwc-donate-card {
  position: sticky;
  top: 110px;
}

/* one-time / monthly */
.bwc-frequency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f8;
}

.bwc-frequency label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.bwc-frequency input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bwc-frequency span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-muted);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.bwc-frequency input:checked + span {
  background: #fff;
  color: var(--p-navy);
  box-shadow: 0 2px 6px rgba(13, 27, 46, .1);
}

.bwc-frequency input:focus-visible + span {
  outline: 3px solid rgba(200, 181, 48, .55);
  outline-offset: 1px;
}

.bwc-gateway.is-disabled {
  cursor: not-allowed;
}

.bwc-gateway.is-disabled .bwc-gateway-box {
  opacity: .4;
  filter: grayscale(1);
}

/* 3-column cards and icon list in structured content */
.bwc-teach-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bwc-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.bwc-item-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--p-ink);
}

.bwc-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e8f0f9;
  color: var(--p-navy);
  font-size: 15px;
}

.bwc-donate-card,
.bwc-donors {
  border: 1px solid var(--p-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(13, 27, 46, .07);
}

.bwc-donate-card {
  padding: 26px 24px 20px;
  scroll-margin-top: 100px;
}

.bwc-donate-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-donate-errors {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f3c2c3;
  border-radius: 10px;
  background: #fdf1f1;
  color: #a12326;
  font-size: 14px;
}

.bwc-donate-errors ul {
  margin: 0;
  padding-left: 18px;
}

.bwc-step {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.bwc-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-ink);
}

.bwc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* amounts */
.bwc-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bwc-amount {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.bwc-amount input,
.bwc-gateway input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bwc-amount span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 6px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--p-ink);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.bwc-amount:hover span {
  border-color: var(--p-navy);
}

.bwc-amount input:checked + span {
  border-color: var(--p-navy);
  background: var(--p-navy);
  color: #fff;
}

.bwc-amount input:focus-visible + span,
.bwc-gateway input:focus-visible + .bwc-gateway-box {
  outline: 3px solid rgba(200, 181, 48, .55);
  outline-offset: 2px;
}

.bwc-other-amount {
  display: flex;
  align-items: center;
  margin: 10px 0 0;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.bwc-other-amount:focus-within {
  border-color: var(--p-navy);
  box-shadow: 0 0 0 3px rgba(8, 66, 124, .12);
}

.bwc-currency {
  padding: 0 4px 0 14px;
  font-weight: 700;
  color: var(--p-muted);
}

.bwc-project .bwc-other-amount input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px 0 4px;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--p-ink);
  box-shadow: none;
  outline: none;
}

/* details */
.bwc-field {
  margin-bottom: 12px;
}

.bwc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-ink);
}

.bwc-project .bwc-field input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: var(--p-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.bwc-project .bwc-field input:focus {
  border-color: var(--p-navy);
  box-shadow: 0 0 0 3px rgba(8, 66, 124, .12);
  outline: none;
}

.bwc-project .bwc-field input.is-invalid {
  border-color: var(--p-red);
}

.bwc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--p-ink);
  cursor: pointer;
}

.bwc-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--p-navy);
}

.bwc-field-error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-red);
}

/* payment methods */
.bwc-gateways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bwc-gateway {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.bwc-gateway-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 88px;
  padding: 14px 10px;
  border: 1.5px solid var(--p-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.bwc-gateway:hover .bwc-gateway-box {
  border-color: #b9c8db;
}

.bwc-gateway input:checked + .bwc-gateway-box {
  border-color: var(--p-navy);
  box-shadow: 0 0 0 3px rgba(200, 181, 48, .6);
}

.bwc-gateway-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--p-navy);
  color: #fff;
  font-size: 10px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease;
}

.bwc-gateway input:checked + .bwc-gateway-box .bwc-gateway-check {
  opacity: 1;
  transform: scale(1);
}

.bwc-gateway-logo img {
  display: block;
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
}

.bwc-gateway-icon {
  font-size: 20px;
  color: var(--p-navy);
}

.bwc-gateway-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--p-ink);
}

.bwc-gateway-cards {
  display: flex;
  gap: 4px;
  font-size: 18px;
  color: #1a1f71;
}

.bwc-gateway-cards .fa-cc-mastercard { color: #eb001b; }
.bwc-gateway-cards .fa-cc-amex { color: #2e77bc; }
.bwc-gateway-cards .fa-cc-discover { color: #f58220; }

.bwc-gateway-panel {
  margin-top: 12px;
}

.bwc-gateway-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  color: var(--p-text);
}

/* bank transfer */
.bwc-bank-details {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--p-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--p-text);
  overflow-wrap: anywhere;
}

.bwc-bank-details p:last-child {
  margin-bottom: 0;
}

.bwc-upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 20px 16px;
  border: 1.5px dashed var(--p-navy);
  border-radius: 12px;
  background: #f3f7fc;
  color: var(--p-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}

.bwc-upload-zone:hover,
.bwc-upload-zone.is-dragging {
  background: #e6eef8;
}

.bwc-upload-zone:focus-within {
  outline: 3px solid rgba(200, 181, 48, .55);
  outline-offset: 2px;
}

.bwc-upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.bwc-upload-zone > i {
  font-size: 20px;
  color: var(--p-navy);
}

.bwc-upload-text strong {
  display: block;
  font-size: 14px;
  color: var(--p-ink);
}

.bwc-upload-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--p-muted);
}

.bwc-upload-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  background: #fff;
}

.bwc-upload-file > i {
  font-size: 20px;
  color: var(--p-navy);
}

.bwc-upload-file-info {
  flex: 1;
  min-width: 0;
}

.bwc-upload-file-name {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bwc-upload-file-info small {
  font-size: 12px;
  color: var(--p-muted);
}

.bwc-upload-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #fdf1f1;
  color: var(--p-red);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .15s ease;
}

.bwc-upload-remove:hover,
.bwc-upload-remove:focus {
  background: #fadcdc;
  outline: none;
}

/* submit */
.bwc-donate-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--p-navy);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}

.bwc-donate-submit:hover,
.bwc-donate-submit:focus {
  background: var(--p-navy-dark);
  outline: none;
}

.bwc-donate-submit:focus-visible {
  outline: 3px solid rgba(200, 181, 48, .6);
  outline-offset: 2px;
}

.bwc-donate-submit.is-loading {
  color: transparent;
  pointer-events: none;
}

.bwc-donate-submit.is-loading::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bwc-spin .7s linear infinite;
}

@keyframes bwc-spin {
  to { transform: rotate(360deg); }
}

.bwc-secure {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--p-muted);
}

.bwc-secure i {
  margin-right: 4px;
  color: var(--p-gold-text);
}

/* recent donors */
.bwc-donors {
  margin-top: 20px;
  padding: 22px 24px;
}

.bwc-donors-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-donors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bwc-donor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--p-line);
}

.bwc-donor:first-child {
  border-top: 0;
  padding-top: 0;
}

.bwc-donor-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f0f9;
  color: var(--p-navy);
  font-size: 14px;
  font-weight: 700;
}

.bwc-donor-avatar i {
  font-size: 13px;
}

.bwc-donor-info {
  flex: 1;
  min-width: 0;
}

.bwc-donor-name {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  color: var(--p-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bwc-donor-info small {
  font-size: 12px;
  color: var(--p-muted);
}

.bwc-donor-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--p-navy);
}

.bwc-donors-empty {
  margin: 0;
  font-size: 14px;
  color: var(--p-muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .bwc-project-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 30px;
  }

  .bwc-project-title {
    font-size: 34px;
  }
}

@media (max-width: 991.98px) {
  .bwc-project {
    padding: 24px 0 60px;
  }

  .bwc-project-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "aside"
      "donors";
    grid-template-rows: auto;
  }

  .bwc-project-aside {
    margin-top: 40px;
  }

  .bwc-donate-card {
    position: static;
  }

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

@media (max-width: 575.98px) {
  .bwc-project-title {
    font-size: 28px;
  }

  .bwc-project-media {
    border-radius: 12px;
  }

  .bwc-project-media img {
    aspect-ratio: 4 / 3;
  }

  .bwc-progress-amount {
    font-size: 22px;
  }

  .bwc-project-body {
    margin-top: 32px;
  }

  .bwc-project-body h1,
  .bwc-project-body h2,
  .bwc-project-body h3 {
    font-size: 22px;
  }

  .bwc-project-body ul,
  .bwc-teach-grid,
  .bwc-item-grid {
    grid-template-columns: 1fr;
  }

  .bwc-project-sections {
    margin-top: 32px;
  }

  .bwc-project-section + .bwc-project-section {
    margin-top: 32px;
  }

  .bwc-section-title {
    font-size: 22px;
  }

  .bwc-donate-card,
  .bwc-donors {
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 14px;
  }

  /* keep tap targets comfortable and stop iOS zooming into fields */
  .bwc-project .bwc-field input,
  .bwc-project .bwc-other-amount input {
    font-size: 16px;
  }
}

@media (max-width: 359.98px) {
  .bwc-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bwc-project * {
    transition: none !important;
    animation-duration: 1.5s !important;
  }
}

/* ---------- back button + breadcrumbs (replace the banner on project pages) ---------- */
.bwc-project-topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--p-line);
}

.bwc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--p-ink);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.bwc-back-btn i {
  font-size: 13px;
  color: var(--p-navy);
  transition: transform .15s ease;
}

.bwc-back-btn:hover,
.bwc-back-btn:focus {
  border-color: var(--p-navy);
  background: #f3f7fc;
  color: var(--p-navy);
}

.bwc-back-btn:hover i {
  transform: translateX(-2px);
}

.bwc-back-btn:focus-visible {
  outline: 3px solid rgba(200, 181, 48, .55);
  outline-offset: 2px;
}

.bwc-breadcrumb {
  min-width: 0;
}

.bwc-breadcrumb ol {
  display: flex;
  counter-reset: none;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.bwc-breadcrumb li {
  display: inline-flex;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  align-items: center;
  color: var(--p-muted);
}

.bwc-breadcrumb li::before {
  content: none;
}

.bwc-breadcrumb li + li::before {
  content: "\f054";
  margin: 0 10px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 9px;
  color: #a9b4c4;
}

.bwc-breadcrumb a {
  color: var(--p-text);
  text-decoration: none;
}

.bwc-breadcrumb a:hover,
.bwc-breadcrumb a:focus {
  color: var(--p-navy);
  text-decoration: underline;
}

.bwc-breadcrumb li[aria-current="page"] {
  font-weight: 600;
  color: var(--p-ink);
}

@media (max-width: 575.98px) {
  .bwc-project-topbar {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  /* on phones keep the trail short: hide the long project name, the page title says it */
  .bwc-breadcrumb li[aria-current="page"] {
    display: none;
  }

  .bwc-breadcrumb {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bwc-back-btn i { transition: none; }
}

/* ---------- project page header: kicker + headline ---------- */
.bwc-project-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p-navy);
}

.bwc-project-headline {
  margin-bottom: 14px;
}

.bwc-tricolor {
  display: inline-flex;
  margin-bottom: 26px;
}

.bwc-tricolor i {
  display: block;
  width: 16px;
  height: 4px;
}

.bwc-tricolor i:nth-child(1) { background: #08427c; border-radius: 4px 0 0 4px; }
.bwc-tricolor i:nth-child(2) { background: #c8b530; }
.bwc-tricolor i:nth-child(3) { background: #ed383b; border-radius: 0 4px 4px 0; }

/* ---------- structured sections (Donations > Page content) ---------- */
.bwc-ps {
  padding: 34px 0;
  border-top: 1px solid var(--p-line);
  font-size: 16px;
  line-height: 1.75;
  color: var(--p-text);
}

.bwc-ps:first-child {
  border-top: 0;
  padding-top: 8px;
}

.bwc-ps > p {
  margin: 0 0 14px;
}

.bwc-ps strong {
  color: var(--p-ink);
}

.bwc-ps-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-ps-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0 !important;
  font-weight: 700;
  color: var(--p-ink);
}

.bwc-ps-highlight-icon,
.bwc-ps-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f0f9;
  color: var(--p-navy);
  font-size: 14px;
}

.bwc-ps-label {
  margin: 22px 0 12px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p-navy);
}

/* cards */
.bwc-ps-cards {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.bwc-ps-cards-rich {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bwc-ps-cards-simple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bwc-ps-card {
  padding: 18px;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: #fff;
}

.bwc-ps-cards-simple .bwc-ps-card {
  border-color: #e1e9f4;
  background: #f3f7fc;
}

.bwc-ps-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bwc-ps-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--p-navy);
  border-radius: 10px;
  background: #fff;
  color: var(--p-navy);
  font-size: 16px;
}

.bwc-ps-icon-sm {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 13px;
}

.bwc-ps-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--p-ink);
}

.bwc-ps-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--p-text);
}

.bwc-ps-cards-simple .bwc-ps-card-text {
  font-weight: 600;
  color: var(--p-ink);
}

.bwc-ps-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bwc-ps-checks li {
  position: relative;
  padding: 3px 0 3px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--p-text);
}

.bwc-ps-checks li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 5px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 11px;
  color: var(--p-navy);
}

/* icon list (2 columns) */
.bwc-ps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}

.bwc-ps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--p-line);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--p-ink);
}

.bwc-ps-list .bwc-ps-icon-sm {
  border: 0;
  background: #e8f0f9;
}

/* tags */
.bwc-ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bwc-ps-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #cfdbea;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--p-ink);
}

.bwc-ps-tags li i {
  color: var(--p-navy);
}

/* callout */
.bwc-ps-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #d6e3f2;
  border-radius: 14px;
  background: #eef4fb;
}

.bwc-ps-callout p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--p-ink);
}

.bwc-ps-callout-icon {
  background: #fff;
  border: 1.5px solid var(--p-navy);
}

.bwc-ps-closing {
  margin: 18px 0 0 !important;
  color: var(--p-ink);
}

/* dark box (e.g. Our commitment) */
.bwc-ps-dark {
  margin-top: 10px;
  padding: 30px 30px 18px;
  border-top: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #08427c, #06325e);
  color: rgba(255, 255, 255, .88);
}

.bwc-ps-dark .bwc-ps-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.bwc-ps-dark strong {
  color: #fff;
}

.bwc-ps-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: var(--p-gold);
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .bwc-ps-cards-rich,
  .bwc-ps-cards-simple,
  .bwc-ps-list {
    grid-template-columns: 1fr;
  }

  .bwc-ps-title {
    font-size: 21px;
  }

  .bwc-ps-dark {
    padding: 24px 20px 12px;
  }
}

/* paragraph colours inside sections (the theme colours every <p> grey) */
.bwc-ps p,
.bwc-ps li {
  color: var(--p-text);
}

.bwc-ps .bwc-ps-highlight,
.bwc-ps .bwc-ps-closing,
.bwc-ps .bwc-ps-callout p,
.bwc-ps .bwc-ps-cards-simple .bwc-ps-card-text,
.bwc-ps .bwc-ps-list li,
.bwc-ps .bwc-ps-tags li {
  color: var(--p-ink);
}

.bwc-ps .bwc-ps-label {
  color: var(--p-navy);
}

.bwc-ps-dark p,
.bwc-ps-dark li {
  color: rgba(255, 255, 255, .9);
}
