.blog-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  font-family: 'Poppins', sans-serif;
}

.blog-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.blog-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.blog-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
  flex-grow: 1;
}

.blog-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  margin-top: auto;
  font-weight: 600;
  color: rgb(8, 8, 97);
  text-decoration: none;
  transition: 0.3s;
}

.read-more:hover {
  text-decoration: underline;
  color: rgb(73, 73, 184);
}

.donation-highlight {
  position: relative;
  width: 100%;
  height: 400px;
  margin-bottom: 40px;
  overflow: hidden; /* taşmaları engeller */
}

.donation-banner {
  width: 100%;
  height: 100%;
  background: url("../../media/homepage/page-header-bg.jpg") no-repeat center center;
  background-size: cover; /* tam otursun */
  position: relative;
}

/* Karanlık overlay efekti */
.donation-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* siyah yarı saydam overlay */
}

.banner-overlay {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 1; /* overlay üstünde olsun */
}

.banner-overlay h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #fff;
}

.banner-overlay p {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #fff;
}

.banner-details span {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

@media (max-width: 992px) {
  .blog-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .donation-highlight {
    height: 300px;
  }
  .banner-overlay {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
  }
  .banner-overlay h2 {
    font-size: 2em;
  }
  .banner-overlay p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .blog-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .donation-highlight {
    height: 250px;
  }
  .banner-overlay {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
  }
  .banner-overlay h2 {
    font-size: 1.8em;
  }
  .banner-overlay p {
    font-size: 0.95rem;
  }
  .blog-content h3 {
    font-size: 1.5rem;
  }
  .blog-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .donation-highlight {
    height: 200px;
  }
  .banner-overlay {
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
  }
  .banner-overlay h2 {
    font-size: 1.5em;
  }
  .banner-overlay p {
    font-size: 0.85rem;
  }
  .blog-content h3 {
    font-size: 1.2rem;
  }
  .blog-content p {
    font-size: 0.85rem;
  }
  .banner-details span {
    font-size: 0.8rem;
  }
}
