/* === FEATURED IMAGES === */
.featured-container {
  position: relative;
}

.featured-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.feature-card {
  flex: 0 0 300px;
  height: 350px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.feature-text {
  position: absolute;
  bottom: 1.5rem;
  width: 100%;
  color: #fff;
  padding: 1rem;
  z-index: 2;
}

.feature-text h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s, background 0.3s;
}

.scroll-btn.left {
  left: -10px;
}

.scroll-btn.right {
  right: -10px;
}

.scroll-btn.disabled {
  color: #888;
  background: rgba(0, 0, 0, 0.3);
  cursor: default;
}

@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}

/* === STORIES MASONRY === */
.left-image {
  height: 300px;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}

.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.masonry-item {
  flex: 1 1 100%;
}

.masonry-grid[data-count="3"] .masonry-item:nth-child(1),
.masonry-grid[data-count="2"] .masonry-item {
  flex: 1 1 100%;
}

.masonry-grid[data-count="3"] .masonry-item:nth-child(2),
.masonry-grid[data-count="3"] .masonry-item:nth-child(3),
.masonry-grid[data-count="4"] .masonry-item {
  flex: 1 1 calc(50% - 0.75rem);
}

.masonry-item img,
.left-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* === RECENT POSTS === */
.recent-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2rem;
}

.recent-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.recent-card:hover {
  transform: translateY(-5px);
}

.recent-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recent-content {
  padding: 1.5rem;
  padding-bottom: 3.5rem;
}

.recent-date {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.3rem;
}

.recent-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.recent-excerpt {
  font-size: 0.95rem;
  color: #495057;
}

.read-more-btn-recent {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background-color: #2c5f2d;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.read-more-btn-recent:hover {
  background-color: #084298;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .blog-card {

    margin-bottom: 0!important;
  }
}

/* === BLOG SECTION === */
.blog-card {
  display: flex;
  width: 100%;
  align-items: stretch;
  margin-bottom: 5rem;
}

.blog-card:nth-of-type(even) {
  flex-direction: row-reverse;
}

.blog-content {
  width: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-image {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
}

.blog-title::after {
  display: block;
  width: 60px;
  height: 10px;
  margin-top: 24px;
  content: "";
  background-color: #feba65;
}

.blog-excerpt {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  width: 40px;
  height: 40px;
  background-color: #0d6efd;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background-color: #084298;
  transform: scale(1.05);
}

.read-more-text-btn {
  display: inline-block;
  font-weight: 500;
  font-size: 1rem;
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more-text-btn .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.read-more-text-btn:hover {
  color: #084298;
}

.read-more-text-btn:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .blog-card {
    flex-direction: column !important;
  }

  .blog-content,
  .blog-image {
    width: 100%;
    max-width: 100%;
  }

  .blog-title {
    font-size: 1.5rem;
  }

  .blog-excerpt {
    font-size: 0.95rem;
  }
}

/* === UTILITIES & CUSTOM === */
.custom-btn {
  border: 1px solid white;
  background-color: transparent;
  color: white;
  transition: all 0.3s ease;
  border-radius: 0;
}

.custom-btn:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.donate-btn {
  border: 1px solid white;
  background-color: #444;
  color: rgb(255, 255, 255);
  transition: all 0.3s ease;
  border-radius: 0;
}

.donate-btn:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.post-image.mx-lg-n4 {
  margin-left: -3rem;
  margin-right: -3rem;
  width: calc(100% + 6rem);
}

@media (max-width: 768px) {
  .post-image.mx-lg-n4 {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  .post-content {
    font-size: 1rem;
    padding: 0 15px;
  }

  .post-content .lead {
    font-size: 1.125rem;
  }
}

.image-caption {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-left: 3px solid #2c5f2d;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.7;
  /*max-width: 720px;*/
  margin: 0 auto;
}

.post-content p {
  font-size: 1.125rem;
  line-height: 1.6;
}
.shadow-lg{box-shadow:none!important;}

@media (min-width: 992px) {
  .row.mx-lg-n3 {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }
}

.post-image img,
.row.mx-lg-n3 img {
  border-radius: 0 !important;
}

.category-list {
  margin-bottom: 0.5rem;
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #2c5f2d;
  padding: 0.25rem 0.75rem;
  background-color: #e9f5eb;
  border-radius: 1rem;
  margin-right: 0.5rem;
  text-decoration: none!important;
}
.post-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.list-unstyled a{text-decoration: none!important;}
ul.list-unstyled li a:hover span {
  color: yellow !important;
}
.bg-rotary {
  background-color: #0c3c7c !important;
  color: #ffffff; /* Optional: for contrast */
  margin-top: 20px;
}

.rotary-leaders-section h2 {
  padding-bottom: 0.5rem;
}

.img-leaderwrapper {
  max-height: 400px;
  overflow: hidden;
}

.img-leaderwrapper img {
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 100%;
}

.bg-grey {
  background-color: #e1e9f0; /* Light grey similar to Bootstrap's bg-light */
}
.col .card {
    background-color: transparent !important;
}

.stats-wrapper {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
  }

  .stats-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* ✅ Ensure it's scrollable */
    z-index: 1;
  }

  .stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
  }

  .stats-content {
    position: relative;
    z-index: 3;
    padding: 6rem 1rem;
  }

  .stat-number {
    font-size: 4rem;
    font-weight: 700;
  }

  .stat-label {
    font-size: 1.25rem;
    font-weight: 500;
  }

  @media (max-width: 767.98px) {
    .stat-number {
      font-size: 2.5rem;
    }

    .stat-label {
      font-size: 1rem;
    }
  }