
:root {
  --primary-color: #2f8548;
  --secondary-color: #3d5144;
  --section-bg-color: #f1f7f1;
  --site-footer-bg-color: #263b2e;
  --custom-btn-bg-color: #e77f2f;
  --custom-btn-bg-hover-color: #246b3b;
  --dark-color: #18221b;
  --p-color: #555f58;
  --border-color: #dce6dd;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
}

/* Safety net: wrap nav items instead of overflowing past the viewport on narrow desktop widths */
.navbar-expand-xl .navbar-nav {
  flex-wrap: wrap;
  row-gap: 8px;
}

.hero-section-full-height {
  height: auto;
  min-height: 0;
}

#hero-slide .carousel-item {
  position: relative;
  min-height: 360px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#hero-slide .carousel-caption {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 60px 20px;
  margin: 0 auto;
  background: transparent;
  clip-path: none;
  text-align: center;
  z-index: 2;
}

#hero-slide .carousel-caption h1 {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
}

#hero-slide .carousel-caption p {
  color: #fff;
  font-size: 20px;
  margin-bottom: 0;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.custom-btn,
.navbar .custom-btn {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.custom-btn:hover,
.navbar .custom-btn:hover {
  color: #fff;
}

.custom-border-btn {
  background: var(--custom-btn-bg-color);
  color: #fff !important;
}

.custom-border-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  border-color: var(--custom-btn-bg-hover-color);
  color: #fff !important;
}

/* Keep the navbar Donate button as an outline so it stands apart from filled buttons */
.navbar .custom-border-btn {
  background: transparent;
  color: var(--custom-btn-bg-color) !important;
}

.navbar .custom-border-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  color: #fff !important;
}

.navbar .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.donate-section {
  background-image: none;
  background-color: var(--section-bg-color);
}

.news-detail-header-section {
  background-image: none;
  background-color: var(--primary-color);
}

.news-detail-header-section .section-overlay {
  background: rgba(0, 0, 0, 0.12);
}

.news-block-top {
  aspect-ratio: 4 / 3;
}

.news-block-top .news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-block-two-col-image-wrap {
  aspect-ratio: 1 / 1;
}

.news-block-two-col-image-wrap .news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

:focus-visible {
  outline: 3px solid var(--custom-btn-bg-color);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.team-card .volunteer-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}

@media screen and (max-width: 767px) {
  #hero-slide .carousel-caption {
    padding: 40px 20px;
  }

  #hero-slide .carousel-caption h1 {
    font-size: 30px;
  }

  #hero-slide .carousel-caption p {
    font-size: 15px;
  }

  #hero-slide .carousel-caption .custom-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .team-card .volunteer-image {
    width: 170px;
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
