/* --- Root Variables & Configuration --- */
:root {
  /* Brand Colors */
  --brand-olive: #4a6927;
  --brand-olive-dark: #3a521e;
  --brand-gold: #ffc107;
  --brand-dark: #212529;
  --brand-light: #f8f9fa;

  /* Bootstrap Variable Overrides (Logical) */
  --bs-primary: var(--brand-olive);
  --bs-primary-rgb: 74, 105, 39;
  --bs-body-font-family: 'Inter', sans-serif;
}

/* --- Base Elements --- */
body {
  font-family: var(--bs-body-font-family);
  color: #4a4a4a;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Global Utilities --- */
.text-olive {
  color: var(--brand-olive) !important;
}

.bg-olive {
  background-color: var(--brand-olive) !important;
}

.text-gold {
  color: var(--brand-gold) !important;
}

/* Smooth transitions for all interactive elements */
a,
button,
.btn,
.card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Buttons --- */
.btn-primary {
  background-color: var(--brand-olive);
  border-color: var(--brand-olive);
}

.btn-primary:hover {
  background-color: var(--brand-olive-dark);
  border-color: var(--brand-olive-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--brand-olive);
  border-color: var(--brand-olive);
}

.btn-outline-primary:hover {
  background-color: var(--brand-olive);
  border-color: var(--brand-olive);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* --- Navigation --- */
.navbar {
  padding-top: .15rem !important;
  padding-bottom: .15rem !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  max-height: 50px; /* Reduced for mobile */
  max-width: 150px;
  width: auto;
  display: block;
  height: auto;
}

/* Increase logo size on larger screens */
@media (min-width: 992px) {
  .navbar-brand img {
    max-height: 80px;
  }
}

.nav-link {
  font-weight: 600;
  color: var(--brand-dark) !important;
  margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-olive) !important;
}


/* --- Hero Section --- */
.hero-wrapper {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../images/let_the_good_thoughts_grow.jpg') center/cover no-repeat;
  color: white;
}

.hero-content h1 {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content .btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.9);
}

/* --- Cards Global --- */
.hover-card {
  border: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  overflow: hidden;
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Impact Section --- */
.icon-circle {
  width: 80px;
  height: 80px;
  background-color: rgba(74, 105, 39, 0.1);
  /* light olive */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand-olive);
  font-size: 2rem;
}

/* --- Projects Section --- */
.projects-header-bg {
  background-color: var(--brand-dark);
  color: white;
  padding: 80px 0 120px 0;
  /* Extra bottom padding for overlap */
  position: relative;
}

.projects-header-bg::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-gold);
  margin: 20px auto 0;
  border-radius: 2px;
}

.projects-overlap-grid {
  margin-top: -80px; /* The overlap magic */
  position: relative;
  z-index: 10;
}

.project-card {
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-card img.project-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img.project-bg {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: white;
}

.project-content {
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-card:hover .project-content {
  transform: translateY(0);
}

.project-desc {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card:hover .project-desc {
  height: auto;
  opacity: 1;
  margin-bottom: 1rem;
}
.carousel .project-card {
  min-height: 340px;
}

@media (min-width: 768px) {
  #projectsCarousel,
  #testimonialsCarousel {
    padding: 0 60px;
  }
  #projectsCarousel .carousel-control-prev,
  #testimonialsCarousel .carousel-control-prev {
    left: 0;
    width: 60px;
  }
  #projectsCarousel .carousel-control-next,
  #testimonialsCarousel .carousel-control-next {
    right: 0;
    width: 60px;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}
/* --- Testimonials --- */
.testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

/* --- Mission Section --- */
.mission-box {
  background: white;
  border-left: 5px solid var(--brand-olive);
  height: 100%;
}

/* --- How To Help --- */
.help-section {
  background-color: var(--brand-olive);
  color: white;
  position: relative;
  z-index: 5;
}

/* Abstract pattern overlay */
.help-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.overlap-image-wrapper {
  position: relative;
  z-index: 2;
}

.overlap-image {
  border-radius: 1rem;
  border: 8px solid #739655;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

@media (min-width: 992px) {
  .overlap-image {
    transform: translateY(-110px);
    position: relative;
    z-index: 10;
  }
}

/* --- Footer --- */
.footer-modern {
  background-color: #212529; /* Dark charcoal/gray R33 G37 B41 */
  color: #adb5bd;
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: none; /* No top border to mirror screenshot */
}

.footer-modern h5 {
  color: var(--brand-gold) !important; /* Gold headings */
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-modern a {
  color: #f8f9fa; /* White/off-white links */
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.footer-modern a:hover {
  color: #ffffff;
  text-decoration: underline; /* Standard subtle hover effect */
}

/* Specific styling for gold/bold links like Donate Now */
.footer-modern .donate-link-gold a,
.footer-modern a.donate-link-gold,
.footer-modern a[href*="donat"],
.footer-modern a[href*="donatenow"] {
  color: var(--brand-gold) !important;
  font-weight: 700;
}

.footer-modern .donate-link-gold a:hover,
.footer-modern a.donate-link-gold:hover,
.footer-modern a[href*="donat"]:hover,
.footer-modern a[href*="donatenow"]:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* About Us section text styling */
.footer-text {
  color: #adb5bd;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Monospace address block */
.footer-address {
  color: #ffffff;
  font-family: var(--bs-font-monospace), monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 1.5rem; /* Indented address list */
  margin-top: 1rem;
}

/* Divider styling */
@media (min-width: 992px) {
  .border-start-lg {
    border-left: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  }
}

/* Bottom elements */
.footer-site-link {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0 !important;
  display: inline-block !important;
}

.footer-copyright {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.section-padding {
  padding: 50px 0;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
  .projects-header-bg {
    padding-bottom: 60px;
  }
  .projects-overlap-grid {
    margin-top: -30px;
  }
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

/* ============================================================
   MINI-GRANTS PAGE — DESIGN SYSTEM
   ============================================================ */

/* --- Hero Banner --- */
.minigrants-hero {
  background: linear-gradient(135deg, #12306e 0%, #1d4b8f 45%, #3a75c4 100%);
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.minigrants-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S50 55.5 50 50zm-30 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S20 55.5 20 50zm30-30c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S50 25.5 50 20zm-30 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S20 25.5 20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.minigrants-hero-inner {
  position: relative;
  z-index: 2;
}

.minigrants-hero-content {
  max-width: 700px;
}

.minigrants-hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}

.minigrants-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.minigrants-hero-sub {
  margin-bottom: 2rem;
}

.minigrants-hero-sub p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.minigrants-hero-sub p:last-child {
  margin-bottom: 0;
}

.minigrants-hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.minigrants-hero-stats span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Sticky Year Filter Nav --- */
.minigrants-year-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.7rem 0;
}

.minigrants-year-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.minigrants-year-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #8a9098;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.year-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  background: #f0f2f5;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.year-pill:hover {
  background: #e0e7ff;
  color: #1d4b8f;
  text-decoration: none;
}

.year-pill.active {
  background: #1d4b8f;
  color: #ffffff;
  border-color: #1d4b8f;
  box-shadow: 0 2px 8px rgba(29, 75, 143, 0.3);
}

/* --- Main Content Area --- */
.minigrants-main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* --- Year Section --- */
.minigrants-year-section {
  margin-bottom: 3.5rem;
}

.minigrants-year-banner {
  margin-bottom: 1.75rem;
}

.minigrants-year-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.minigrants-year-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #12306e;
  margin: 0;
  line-height: 1;
  flex-shrink: 0;
}

.minigrants-year-line {
  height: 3px;
  flex: 1;
  background: linear-gradient(90deg, #1d4b8f 0%, rgba(29, 75, 143, 0.08) 100%);
  border-radius: 2px;
}

.minigrants-year-note {
  font-size: 0.88rem;
  color: #4a6927;
  background: rgba(74, 105, 39, 0.08);
  border-left: 3px solid #4a6927;
  padding: 0.5rem 0.85rem;
  border-radius: 0 6px 6px 0;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* --- Cards Grid --- */
.minigrants-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Grant Card --- */
.grant-card {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.grant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(29, 75, 143, 0.1);
}

/* Card Header */
.grant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  flex-wrap: wrap;
}

.bg-grant-mini-gradient {
  background: linear-gradient(135deg, #1d4b8f 0%, #3a75c4 100%);
}

.bg-grant-relief-gradient {
  background: linear-gradient(135deg, #4f5b66 0%, #768797 100%);
}

.grant-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.grant-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.grant-card-org {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffc107;
  letter-spacing: 0.3px;
}

/* Badge */
.badge-grant-year {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

/* Card Body */
.grant-card-body {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem;
  align-items: flex-start;
}

/* Image */
.grant-card-img-wrap {
  flex-shrink: 0;
  width: 160px;
}

.grant-card-img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  display: block;
  transition: transform 0.4s ease;
}

.grant-card:hover .grant-card-img {
  transform: scale(1.03);
}

/* Description */
.grant-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grant-card-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #4a5568;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.grant-card-desc p {
  margin: 0;
}

/* Visit Website Button */
.grant-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 50px;
  background: #1d4b8f;
  color: #ffffff;
  text-decoration: none;
  border: none;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.grant-card-btn:hover {
  background: #12306e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 75, 143, 0.3);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .grant-card-body {
    flex-direction: column;
  }

  .grant-card-img-wrap {
    width: 100%;
  }

  .grant-card-img {
    width: 100%;
    height: 180px;
  }

  .minigrants-year-number {
    font-size: 1.6rem;
  }

  .minigrants-hero {
    padding: 3rem 0 2.5rem;
  }
}

/* ============================================================
   WHO WE ARE PAGE — DESIGN SYSTEM
   ============================================================ */

.whoweare-hero {
  background: linear-gradient(135deg, #4a6927 0%, #3a521e 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.whoweare-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S50 55.5 50 50zm-30 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S20 55.5 20 50zm30-30c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S50 25.5 50 20zm-30 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S20 25.5 20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.whoweare-hero-inner {
  position: relative;
  z-index: 2;
}

.whoweare-hero-content {
  max-width: 700px;
}

.whoweare-hero-sub p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.whoweare-hero-sub p:last-child {
  margin-bottom: 0;
}

/* Custom WYSIWYG Content Styles inside Hero */
.whoweare-hero-custom-content h1,
.whoweare-hero-custom-content h2,
.whoweare-hero-custom-content h3,
.whoweare-hero-custom-content h4 {
  color: #ffffff;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1rem;
}

.whoweare-hero-custom-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.whoweare-hero-custom-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.whoweare-hero-custom-content p:last-child {
  margin-bottom: 0;
}

.whoweare-hero-sub p:last-child {
  margin-bottom: 0;
}

/* Board member card style */
.board-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(74, 105, 39, 0.08) !important;
}

/* Circular Avatar */
.board-avatar-wrapper {
  width: 130px;
  height: 130px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}

.board-card:hover .board-avatar-wrapper {
  transform: scale(1.05);
}

.board-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-avatar-placeholder {
  width: 100%;
  height: 100%;
}

.board-role {
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.board-bio {
  line-height: 1.6;
}

/* Toggle button */
.btn-bio-toggle {
  border-width: 1.5px;
  transition: all 0.2s ease;
}

.btn-bio-toggle:hover {
  transform: scale(1.03);
}

/* ============================================================
   NEWS AND RESOURCES — LIST STYLING & AUTO-ICONS
   ============================================================ */

/* Generic list overrides for our custom styled columns */
.sipp-press-releases-list ul,
.sipp-archive-list ul,
.sipp-updates-list ul,
.sipp-media-list ul,
.sipp-resources-list ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

/* Base item boxes layout */
.sipp-press-releases-list li,
.sipp-archive-list li,
.sipp-updates-list li,
.sipp-media-list li {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--brand-olive);
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sipp-press-releases-list li:hover,
.sipp-archive-list li:hover,
.sipp-updates-list li:hover,
.sipp-media-list li:hover {
  box-shadow: 0 8px 20px rgba(74, 105, 39, 0.1);
  transform: translateX(5px);
}

/* Link alignment and font styles */
.sipp-press-releases-list li a,
.sipp-archive-list li a,
.sipp-updates-list li a,
.sipp-media-list li a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sipp-press-releases-list li a:hover,
.sipp-archive-list li a:hover,
.sipp-updates-list li a:hover,
.sipp-media-list li a:hover {
  color: var(--brand-olive);
}

/* Archive Grid 2-column layout using columns */
.sipp-archive-list ul {
  columns: 2;
  column-gap: 1.5rem;
}

@media (max-width: 768px) {
  .sipp-archive-list ul {
    columns: 1;
  }
}

/* Section icon wrapper */
.section-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-olive);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.5rem;
}

/* Featured Newsletter card accent */
.featured-newsletter {
  border-color: var(--brand-olive) !important;
}

/* Additional Resources grid layout */
.sipp-resources-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.sipp-resources-list li {
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(74, 105, 39, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sipp-resources-list li:hover {
  box-shadow: 0 8px 25px rgba(74, 105, 39, 0.15);
  border-color: var(--brand-olive);
  transform: translateY(-2px);
}

.sipp-resources-list li a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sipp-resources-list li a:hover {
  color: var(--brand-olive);
}

/* --- Bootstrap Accordion overrides --- */
.accordion-button {
  background-color: var(--brand-olive) !important;
  color: white !important;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--brand-olive-dark) !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(74, 105, 39, 0.25) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

/* ============================================================
   AUTOMATIC ICON SYSTEM VIA CSS ATTRIBUTE SELECTORS
   ============================================================ */

/* Setup FontAwesome icons */
.sipp-archive-list li a::after,
.sipp-updates-list li a::after,
.sipp-media-list li a::after,
.sipp-resources-list li a::after {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.sipp-archive-list li a:hover::after,
.sipp-updates-list li a:hover::after,
.sipp-media-list li a:hover::after,
.sipp-resources-list li a:hover::after {
  transform: scale(1.15);
}

/* Default Link Icon */
.sipp-archive-list li a::after,
.sipp-updates-list li a::after,
.sipp-media-list li a::after,
.sipp-resources-list li a::after {
  content: "\f0c1"; /* fa-link */
  color: var(--brand-olive);
}

/* PDF Files */
.sipp-archive-list li a[href$=".pdf"]::after,
.sipp-updates-list li a[href$=".pdf"]::after,
.sipp-resources-list li a[href$=".pdf"]::after,
.sipp-archive-list li a[href*=".pdf?"]::after,
.sipp-updates-list li a[href*=".pdf?"]::after,
.sipp-resources-list li a[href*=".pdf?"]::after {
  content: "\f1c1" !important; /* fa-file-pdf */
  color: var(--brand-olive);
}

/* HTML Files in Archive */
.sipp-archive-list li a[href$=".html"]::after,
.sipp-archive-list li a[href$=".htm"]::after {
  content: "\f15b" !important; /* fa-file-code / fa-file-lines */
  color: var(--brand-olive);
}

/* YouTube Videos */
.sipp-media-list li a[href*="youtube.com"]::after,
.sipp-media-list li a[href*="youtu.be"]::after,
.sipp-media-list li a[href*="youtube-nocookie.com"]::after {
  content: "\f167" !important; /* fa-youtube */
  color: #dc3545 !important; /* YouTube Red */
}

/* MP3 Audio files */
.sipp-media-list li a[href$=".mp3"]::after,
.sipp-media-list li a[href*=".mp3?"]::after {
  content: "\f130" !important; /* fa-microphone */
  color: var(--brand-dark) !important;
}

/* Max Width Helpers */
.max-width-800 {
  max-width: 800px;
}

.max-width-600 {
  max-width: 600px;
}

/* ============================================================
   DONATIONS PAGE — DESIGN SYSTEM
   ============================================================ */

.donations-intro {
  line-height: 1.8;
}

.donations-intro a {
  color: var(--brand-olive);
  text-decoration: underline;
}

.donations-intro a:hover {
  color: var(--brand-olive-dark);
}

.donations-zeffy-card {
  border-radius: 1rem;
}

.donations-iframe-wrapper {
  position: relative;
  overflow: hidden;
  height: 1200px;
  width: 100%;
}

.donations-zeffy-iframe {
  position: absolute;
  border: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.donations-method-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.donations-method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(74, 105, 39, 0.1) !important;
}

.donations-card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(74, 105, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}



