@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
}

/* Hero Section - No edits */
.donate-section {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  min-height: 400px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.donate-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:url('../images/resources/volunteer-hero.png') center center / cover no-repeat;
  z-index: 0;
}
    /* url('../images/resources/media-image.jpg') center center / cover no-repeat; */

.news-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}




.page-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter Buttons - No edits */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    color: #025836;
    border: 2px solid #025836;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.filter-btn:hover:not(.active) {
    background: #025836;
    color: white;
    border: none;
    padding: 14px 27px;     
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 88, 54, 0.4);
}

.filter-btn.active {
    background: #025836;
    color: white;
    border: none;
    padding: 14px 27px;        
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 88, 54, 0.4);
}

.filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(2, 88, 54, 0.5);
}

/* PROJECT CARDS SECTION - Updated */
.project-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  row-gap: 40px;
}

.project-card {
  background: #025836;
  border-radius: 8px;
  overflow: hidden;
  color: white;
  display: none;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Even numbered cards get light background */
.project-card:nth-child(even) {
  background: #F3F3F3;
  color: #333;
}

.project-card.visible {
  display: flex;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-image-section {
  width: 100%;
  height: 230px;
  background: #025836;
  overflow: hidden;
}

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

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cat-date{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.cat-date span{
    font-size: 12px;
}

.project-category {
  background: none;
  border: 1px solid white;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}


/* Adjust category background for light cards */
.project-card:nth-child(even) .project-category {
  color: #025836;
  border: 1px solid #025836;
}

.project-title {
  font-size: 20px;
  margin: 12px 0;
  font-weight: bold;
  line-height: 1.3;
}

.project-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: .92;
  text-align: justify;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more-btn {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

/* Adjust read more button color for light cards */
.project-card:nth-child(even) .read-more-btn {
  color: #025836;
}

.read-more-btn:hover {
  gap: 10px;
}

.read-more-btn::after {
  content: '➞';
  font-size: 20px;
}

/* Pagination - No edits */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    gap: 10px;
}

.pagination-btn {
    padding: 10px 15px;
    background: transparent;
    color: #025836;
    border: 1px solid #025836;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #025836;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        row-gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .project-filters {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .filter-btn {
        width: 100%;
        padding: 15px 20px;
    }

    .project-container {
        grid-template-columns: 1fr;
        gap: 24px;
        row-gap: 32px;
    }

    .project-image-section {
        height: 200px;
    }

    .project-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-section {
        padding: 0 3%;
    }

    .project-container {
        padding: 0 15px 30px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 13px;
    }
}

/* Visual Enhancement */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

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