/* =====================================
   Modern Causes Section
===================================== */

.causes-section {
    background: #f8fafc;
}

/* Heading */

.cause-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(13,110,253,.1);
    color: #0d6efd;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: .5px;
}

.cause-title {
    font-size: 42px;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 10px;
}

.cause-subtitle {
    max-width: 650px;
    margin: auto;
    color: #6c757d;
}

/* Card */

.cause-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: all .4s ease;
    display: flex;
    flex-direction: column;
}

.cause-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

/* Image */

.cause-image {
    position: relative;
    overflow: hidden;
}

.cause-image img {
    width: 100%;
    height: 280px; /* Fixed Height */
    object-fit: cover;
    transition: all .6s ease;
}

/* Overlay */

.cause-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.cause-overlay span {
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

/* Content */

.cause-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cause-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cause-content p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Button */

.cause-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #0d6efd;
    transition: .3s;
}

.cause-btn:hover {
    color: #084298;
    gap: 12px;
}

/* Hover Effects */

.cause-card:hover .cause-image img {
    transform: scale(1.1);
}

/* Responsive */

@media (max-width: 991px) {
    .cause-title {
        font-size: 34px;
    }

    .cause-image img {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .cause-title {
        font-size: 28px;
    }

    .cause-image img {
        height: 220px;
    }

    .cause-content {
        padding: 20px;
    }
}
/* Counter Section */
.counterareas {
    background: linear-gradient(135deg, #f4f7ff, #eef2ff);
    position: relative;
    overflow: hidden;
}

/* Card */
.counters {
    background: #fff;
    border-radius: 24px;
    padding: 35px 20px;
    text-align: center;
    height: 240px; /* Fixed Height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Top Gradient Line */
.counters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,#0d6efd,#00c6ff);
}

.counters:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(13,110,253,0.18);
}

/* Icon */
.counter-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg,#0d6efd,#00c6ff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(13,110,253,0.25);
}

/* Number */
.counter-card h3 {
    font-size: 42px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 10px;
}

/* Text */
.counter-card p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 767px) {
    .counter-card {
        height: 220px;
        padding: 25px 15px;
    }

    .counter-card h3 {
        font-size: 32px;
    }

    .counter-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
}
/* ==========================
   Modern Gallery
========================== */

.modern-gallery {
    background: #f8fafc;
}

.modern-gallery .section-title .sub-title {
    color: #0d6efd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modern-gallery .section-title h2 {
    font-size: 42px;
    font-weight: 700;
    margin-top: 10px;
}

.gallery-item {
    padding: 10px;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Fixed Height */
.gallery-image-wrapper img {
    object-fit: cover;
    transition: all .5s ease;
    display: block;
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.1),
        rgba(0,0,0,0.65)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .4s ease;
}

.gallery-overlay i {
    color: #fff;
    font-size: 40px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    line-height: 80px;
    text-align: center;
    transform: scale(.7);
    transition: .4s;
}

/* Hover Effect */
.gallery-image-wrapper:hover img {
    transform: scale(1.12);
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image-wrapper:hover .gallery-overlay i {
    transform: scale(1);
}

/* Owl spacing */
.gallery-slider .owl-stage {
    padding: 15px 0;
}

/* Mobile */
@media (max-width:768px) {
    .gallery-image-wrapper img {
        height: 250px;
    }

    .modern-gallery .section-title h2 {
        font-size: 30px;
    }
}