/* Inner pages & layout utilities */
.font-display {
  font-family: var(--font-display);
}

.section-title.text-white {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.page-inner {
  position: relative;
  z-index: 1;
}

/* Page hero (blog, programs listing) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  overflow: hidden;
  background: linear-gradient(155deg, #241036 0%, var(--purple-800) 42%, var(--purple-900) 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(155, 126, 224, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(46, 204, 154, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 0.65rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-hero__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0;
}

.page-hero__breadcrumb {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.page-hero__breadcrumb a:hover {
  color: var(--green-400);
}

.page-hero__breadcrumb .active {
  color: rgba(255, 255, 255, 0.9);
}

/* Content listing on purple canvas */
.listing-section {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}

/* Detail article */
.article-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, var(--surface-2) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 92, 191, 0.12);
  box-shadow: 0 1rem 2.5rem rgba(61, 38, 102, 0.12);
}

.article-panel--content {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.content-rich {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.content-rich h1,
.content-rich h2,
.content-rich h3 {
  font-family: var(--font-display);
  color: var(--purple-800);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 0.65rem;
  margin: 1rem 0;
}

.content-rich p:last-child {
  margin-bottom: 0;
}

.content-rich a {
  color: var(--green-800);
  font-weight: 500;
}

.gallery-mosaic .album-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Footer enhancements */
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-400);
  margin-bottom: 1rem;
}

.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links__external {
  color: var(--green-400) !important;
}

.footer-divider {
  border-color: rgba(124, 92, 191, 0.25);
  opacity: 1;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-social .social-btn {
  font-size: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(124, 92, 191, 0.25);
}

.empty-state p {
  color: #5c5470;
  margin-bottom: 1rem;
}

/* Pagination on dark bg */
.listing-section .pagination .page-link {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(124, 92, 191, 0.15);
  color: var(--purple-700);
}

.listing-section .pagination .page-item.active .page-link {
  background: var(--purple-700);
  border-color: var(--purple-700);
}

/* Card link overlay */
.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.program-card,
.blog-card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.5rem rgba(61, 38, 102, 0.15);
}

.blog-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-600);
}

/* About page */
.page-about .page-hero {
  margin-bottom: 0;
}

.about-mission-card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--purple-800);
  border-left: 3px solid var(--green-500);
  padding-left: 1.25rem;
}

.about-story-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 92, 191, 0.12);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 0.75rem 2rem rgba(61, 38, 102, 0.08);
}

.about-vision-banner {
  background: linear-gradient(135deg, #fff 0%, var(--surface-2) 100%);
}

.tile-icon--sm {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
  line-height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-100), var(--green-100));
  color: var(--purple-700);
}

.team-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.5rem rgba(61, 38, 102, 0.12);
}

.team-card__media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--purple-700), var(--purple-900));
  overflow: hidden;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-400);
  letter-spacing: 0.05em;
}

.team-card__role {
  letter-spacing: 0.04em;
}

.team-card__email {
  color: var(--purple-600);
  text-decoration: none;
}

.team-card__email:hover {
  color: var(--green-700);
}

.team-card__bio-preview {
  line-height: 1.55;
}

.team-card__read-more {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: none;
}

.team-card__read-more:hover,
.team-card__read-more:focus {
  color: var(--green-700);
  text-decoration: underline;
}

.team-bio-modal .modal-content {
  background: #fff;
  color: var(--purple-900);
  border-radius: var(--radius-xl);
  box-shadow: 0 1.25rem 3rem rgba(36, 16, 54, 0.2);
}

.team-bio-modal .modal-title {
  color: var(--purple-900) !important;
}

.team-bio-modal__photo {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(124, 92, 191, 0.15);
}

.team-bio-modal__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-400);
  background: linear-gradient(160deg, var(--purple-700), var(--purple-900));
}

.team-bio-modal__role {
  letter-spacing: 0.04em;
  color: var(--purple-700) !important;
  text-shadow: none;
}

.team-bio-modal__bio {
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-line;
  min-height: 1rem;
  color: #5c5470 !important;
}

.about-cta {
  background: linear-gradient(155deg, #241036 0%, var(--purple-800) 50%, var(--purple-900) 100%);
}

.about-cta__img {
  min-height: 16rem;
  object-fit: cover;
}

/* Volunteer application form */
.volunteer-form-section {
  max-width: 48rem;
  margin-inline: auto;
}

.volunteer-form-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
}

.volunteer-form-card .form-label {
  font-weight: 600;
  color: var(--purple-900);
}

.volunteer-form-card .form-control {
  border-color: rgba(124, 92, 191, 0.2);
}

.volunteer-form-card .form-control:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 0.2rem rgba(124, 92, 191, 0.15);
}

.volunteer-alert {
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

/* GlobalGiving trust badges */
.global-giving-trust {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.global-giving-trust__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-600);
}

.global-giving-trust__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  text-decoration: none;
}

.global-giving-trust__badge {
  display: block;
  width: auto;
  height: 5.5rem;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.45rem 0.65rem;
  box-shadow: 0 0.35rem 1rem rgba(36, 16, 54, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.global-giving-trust__badges:hover .global-giving-trust__badge {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(36, 16, 54, 0.18);
}

.global-giving-trust__copy {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #5c5470;
  max-width: 36rem;
}

.global-giving-trust__copy a {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: none;
}

.global-giving-trust__copy a:hover {
  text-decoration: underline;
}

.global-giving-trust--featured {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.global-giving-trust--featured .global-giving-trust__eyebrow {
  color: var(--green-400);
}

.global-giving-trust--featured .global-giving-trust__copy {
  color: rgba(255, 255, 255, 0.78);
}

.global-giving-trust--featured .global-giving-trust__copy a {
  color: var(--green-400);
}

.global-giving-trust--footer {
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 92, 191, 0.22);
}

.global-giving-trust--footer .global-giving-trust__eyebrow {
  color: var(--green-400);
}

.global-giving-trust--footer .global-giving-trust__copy {
  color: rgba(255, 255, 255, 0.72);
  max-width: 42rem;
}

.global-giving-trust--footer .global-giving-trust__copy a {
  color: var(--green-400);
}

.global-giving-trust--footer .global-giving-trust__badges {
  justify-content: center;
}

@media (min-width: 768px) {
  .global-giving-trust__badge {
    height: 6.25rem;
  }
}
