/* ==========================
   Blog Listing Page
========================== */

/* ===================================
   HERO SECTION
=================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 380px;
    overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://manavkartavya.org/wp-content/uploads/2018/08/our-approach.jpg")
    center/cover no-repeat;
  filter: grayscale(30%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.25) 100%
  );
}

.hero-content {
  position: relative;
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  /*margin-bottom: 22px;*/
}

.hero-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.75;
  max-width: 520px;
}


.blog-listing {
    background: #f8f9fa;
}

.blog-listing .ngo-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-listing .ngo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.blog-listing .ngo-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-listing .ngo-card__img {
    height: 240px;
    overflow: hidden;
}

.blog-listing .ngo-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-listing .ngo-card:hover .ngo-card__img img {
    transform: scale(1.05);
}

.blog-listing .ngo-card__body {
    padding: 22px;
}

.blog-listing .ngo-cat {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.blog-listing .ngo-title-lg {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text);
    max-width: 330px;
}

.blog-listing .ngo-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 12px;
    text-align: justify;
}

.blog-listing .ngo-meta {
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

/*==============================*/


.overlay-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
}

.overlay-btn:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}


/*==============================*/
/* ==========================
   Pagination
========================== */

.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ==========================
   Responsive
========================== */

@media (max-width: 768px) {

    .blog-listing .ngo-card__img {
        height: 220px;
    }

    .blog-listing .ngo-title-lg {
        font-size: 20px;
    }

}

@media (max-width: 575px) {

    .blog-listing .ngo-card__img {
        height: 200px;
    }

    .blog-listing .ngo-card__body {
        padding: 18px;
    }

    .blog-listing .ngo-title-lg {
        font-size: 18px;
    }

    .blog-listing .ngo-desc {
        font-size: 14px;
    }

}