.feeds-wrapper {
    background: rgba(243, 241, 239, 1);
    padding-block: clamp(3.125rem, 1.5341rem + 7.9545vw, 7.5rem);
}

.the-feed {
    h1 {
        font-weight: 700;
        font-style: Bold;
        font-size: 30.69px;
        margin-bottom: clamp(1.875rem, 0.7841rem + 5.4545vw, 4.875rem);
    }

    .feed-img-wrapper {
        border-radius: 8px;
        overflow: hidden;

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

    .feeds-heading {
        font-weight: 700;
        font-style: Bold;
        font-size: 30.69px;
        margin-bottom: 16px;
        margin-top: 10px;
    }

    .feeds-heading-link {
        text-decoration: none;
        color: inherit;
        display: block;
        transition: all 0.3s ease;

        &:hover {
            text-decoration: none;
        }

        .feeds-heading {
            font-weight: 700;
            font-style: Bold;
            font-size: 30.69px;
            margin-bottom: 16px;
            margin-top: 10px;
            color: inherit;
            transition: color 0.3s ease;
        }

        &:hover .feeds-heading {
            color: rgba(54, 132, 32, 1);
        }
    }

    .feed-details {
        font-family: Outfit;
        font-weight: 400;
        font-style: Regular;
        font-size: 19.78px;
        leading-trim: NONE;
        line-height: 100%;
        letter-spacing: 0%;

    }

    .read-more-btn {
        margin-top: 1.875rem;
        font-weight: 500;
        font-style: Bold;
        font-size: 19.78px;
        color: #fff;
        text-decoration: none;
        padding: 0.5rem 1rem;
        background-color: rgba(54, 132, 32, 1);
        border-radius: 4px;
        transition: background-color 0.3s;
        border-radius: 25px;

        &:hover {
            background-color: rgba(54, 132, 32, .5);
        }
    }
}

.the-feed-swiper {
    margin-top: clamp(3.125rem, -0.0795rem + 16.0227vw, 11.9375rem);

    .blogSwiper {
        position: relative;
        padding-bottom: 60px;

        .swiper-slide {
            background-color: transparent;
            border: none;
            box-shadow: none;
            padding: 0;

            a {
                font-weight: 700;
                font-style: Bold;
                font-size: 22.78px;
                line-height: 100%;
                letter-spacing: 0%;
                text-decoration: none;
                color: #000;
            }
        }

        .swiper-slide img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            object-fit: cover;
            aspect-ratio: 16 / 9;
            margin-top: 10px;
        }

        .swiper-btn-wrapper {
            position: relative !important;
            width: 100% !important;
            bottom: auto !important;
            left: auto !important;
            transform: none !important;
            text-align: center !important;
            z-index: 999 !important;
            margin-top: 20px !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            gap: 15px !important;
            height: auto !important;
        }

        .view-more-btn {
            font-weight: 400;
            font-size: 15.61px;
            color: #393939cc;
            text-decoration: none;
            line-height: 19.51px;
            letter-spacing: 0%;
            margin-right: 0;
            
            &:hover {
                color: inherit;
                text-decoration: none;
            }
        }

        .swiper-button-next,
        .swiper-button-prev {
            position: relative !important;
            width: 32px !important;
            height: 32px !important;
            margin-top: 0 !important;
            margin-left: 0 !important;
            left: auto !important;
            right: auto !important;
            top: auto !important;
            bottom: auto !important;
            background: #fff !important;
            border: 0.98px solid #3939391a !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer;
            
            &::after {
                font-size: 16px !important;
                color: #393939 !important;
                font-weight: 600;
                font-family: swiper-icons !important;
                text-transform: none !important;
                letter-spacing: 0;
            }
            
            &:hover {
                background: #f5f5f5 !important;
                color: #393939 !important;
            }
        }
    }
}

.post-wrapper {
    margin-top: clamp(3.125rem, 1.9886rem + 5.6818vw, 6.25rem);

    .post-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.875rem;
        gap: 20px;

        h2 {
            font-weight: 700;
            font-style: Bold;
            font-size: 22px;
            margin-bottom: 0;
        }

        .see-all-buttonn {
            font-weight: 500;
            font-size: 22px;
            color: rgba(54, 132, 32, .5);
            text-decoration: none;
            padding: 0.5rem 1rem;



        }
    }

    .post-card {
        padding: 15px;
        background-color: #fff;
        box-shadow: 0px 1px 8.94px 0px rgba(1, 1, 1, 0.13);
        border-radius: 8px;
        height: 100%;
        display: flex;
        flex-direction: column;

        .post-card-media {
            width: 100%;
            overflow: hidden;
            border-radius: 8px;
            margin-bottom: 10px;
            position: relative;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            height: 0;
            
            a {
                display: block;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                overflow: hidden;
                
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 8px;
                    display: block;
                }
                
                .embed-responsive {
                    width: 100% !important;
                    height: 100% !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    position: absolute;
                    top: 0;
                    left: 0;
                    
                    &::before {
                        display: none !important;
                    }
                    
                    iframe {
                        width: 100%;
                        height: 100%;
                        border: none;
                        border-radius: 8px;
                        position: absolute;
                        top: 0;
                        left: 0;
                    }
                }
            }
        }

        .post-title-link {
            text-decoration: none;
            color: inherit;
            display: block;
            transition: all 0.3s ease;

            &:hover {
                text-decoration: none;
            }

            h3 {
                font-weight: 700;
                font-style: Bold;
                font-size: clamp(1rem, 0.6364rem + 1.8182vw, 2rem);
                margin-top: 7px;
                margin-bottom: 30px;
                flex-grow: 1;
                color: inherit;
                transition: color 0.3s ease;
            }

            &:hover h3 {
                color: rgba(54, 132, 32, 1);
            }
        }

        h3 {
            font-weight: 700;
            font-style: Bold;
            font-size: clamp(1rem, 0.6364rem + 1.8182vw, 2rem);
            margin-top: 7px;
            margin-bottom: 30px;
            flex-grow: 1;
        }

        p {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;

            span {
                color: rgba(86, 86, 86, 1);
            }

            a {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 32px;
                width: 32px;
                background-color: rgba(238, 238, 238, 1);
                border-radius: 50%;
                padding: 10px;
            }
        }

        img {
            width: 100%;
            height: auto;
            object-fit: cover;
            aspect-ratio: 16 / 9;
        }

        .post-excerpt {
            font-family: Outfit;
            font-weight: 400;
            font-size: 15px;
            line-height: 1.6;
            color: rgba(86, 86, 86, 1);
            margin-top: 10px;
            margin-bottom: 0;
        }
    }

    /* Category page specific styles for uniform card sizes */
    .category-post-card {
        height: 100%;
        display: flex;
        flex-direction: column;

        .post-card-media {
            flex-shrink: 0;
            width: 100% !important;
            height: 250px !important;
            padding-bottom: 0 !important;
            min-height: 250px !important;
            max-height: 250px !important;
            overflow: hidden;
            position: relative;
            
            a {
                width: 100% !important;
                height: 100% !important;
                display: block;
                position: relative;
                
                img {
                    width: 100% !important;
                    height: 100% !important;
                    object-fit: cover !important;
                    object-position: center;
                    display: block;
                    min-height: 250px;
                    max-height: 250px;
                }
                
                .embed-responsive,
                .embed-responsive-21by9,
                .embed-responsive-16by9 {
                    width: 100% !important;
                    height: 100% !important;
                    padding: 0 !important;
                    margin: 0 !important;
                    position: absolute;
                    top: 0;
                    left: 0;
                    min-height: 250px !important;
                    max-height: 250px !important;
                    
                    &::before {
                        display: none !important;
                        padding-bottom: 0 !important;
                    }
                    
                    iframe {
                        width: 100% !important;
                        height: 100% !important;
                        position: absolute;
                        top: 0;
                        left: 0;
                        min-height: 250px !important;
                    }
                }
            }
        }

        .post-title-link {
            flex-grow: 0;
            display: block;
            margin-top: 10px;

            h3 {
                flex-grow: 0;
                margin-bottom: 0;
                margin-top: 0;
                font-size: 18px;
                line-height: 1.4;
                min-height: 50px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
        }
    }
    
    /* Ensure equal height cards in category pages */
    .feeds-wrapper .row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    
    .feeds-wrapper .row > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }
    
    .feeds-wrapper .category-post-card {
        width: 100%;
    }
    
    /* Force uniform image sizes in category pages - override inline styles */
    .feeds-wrapper .category-post-card .post-card-media {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
    
    .feeds-wrapper .category-post-card .post-card-media img,
    .feeds-wrapper .category-post-card .post-card-media .img-fluid,
    .feeds-wrapper .category-post-card .post-card-media a img {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .feeds-wrapper .category-post-card .post-card-media .embed-responsive,
    .feeds-wrapper .category-post-card .post-card-media .embed-responsive-21by9,
    .feeds-wrapper .category-post-card .post-card-media .embed-responsive-16by9 {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        padding-bottom: 0 !important;
    }
    
    .feeds-wrapper .category-post-card .post-card-media .embed-responsive iframe,
    .feeds-wrapper .category-post-card .post-card-media .embed-responsive-21by9 iframe,
    .feeds-wrapper .category-post-card .post-card-media .embed-responsive-16by9 iframe {
        height: 250px !important;
        min-height: 250px !important;
    }
}

.join-community-wrapper {
    background: rgba(54, 132, 32, 1);
    text-align: center;

    h1 {

        font-weight: 700;
        font-style: Bold;
        font-size: clamp(1.875rem, 1.5114rem + 1.8182vw, 2.875rem);
        margin-block: 13px;
        color: rgba(255, 255, 255, 1);
    }

    p {
        font-weight: 400;
        font-size: 19.1px;
        color: rgba(255, 255, 255, 1);
        margin-bottom: 1.875rem;
    }

    .form-control {
        height: 68px;
        border-radius: 0;
        padding-inline: 3%;
    }

    .btn {
        background-color: rgba(17, 53, 7, 1);
        font-family: Outfit;
        font-weight: 700;
        font-style: Bold;
        font-size: 27.5px;
        leading-trim: NONE;
        line-height: 100%;
        letter-spacing: 0%;
        color: rgba(255, 255, 255, 1);
        border-radius: 0;
        padding-inline: 10%;
        margin-left: 10px;
    }
}

.news-card-content {
    h3 {

        font-weight: 700;
        font-style: Bold;
        font-size: 30.69px;
        margin-bottom: 16px;
    }

    .news-title-link {
        text-decoration: none;
        color: inherit;
        display: block;
        transition: all 0.3s ease;

        &:hover {
            text-decoration: none;
        }

        h3 {
            font-weight: 700;
            font-style: Bold;
            font-size: 30.69px;
            margin-bottom: 16px;
            color: inherit;
            transition: color 0.3s ease;
        }

        &:hover h3 {
            color: rgba(54, 132, 32, 1);
        }
    }

    p {

        font-weight: 400;
        font-style: Regular;
        font-size: 19.78px;
        margin-bottom: 60px;

    }

    .see-artical-btn {
        font-weight: 500;
        font-style: Bold;
        font-size: 19.78px;
        color: #000;
        text-decoration: none;
        padding: 0.5rem 1rem;
        background-color: transparent;
        border-radius: 4px;
        transition: background-color 0.3s;
        border-radius: 25px;
        border: 1px solid #000;
        margin-bottom: 30px;

        &:hover {
            background-color: rgba(54, 132, 32, 1);
            border: 1px solid rgba(54, 132, 32, 1);
            color: #fff;
        }
    }
}

.news-card-img {
    border-radius: 8px;

    img {
        border-radius: 8px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 16 / 10;
    }
}

.news-card-wrapper {
    margin-block: clamp(1.5625rem, 0.5398rem + 5.1136vw, 4.375rem);
}

.pop-up-person {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 359px;
    height: 228px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 9999;

    .over-lay {
        position: absolute;
        width: 100%;
        height: 100%;
        inset: 0;
        background: linear-gradient(179.62deg, rgba(0, 0, 0, 0) 47.38%, #000000 99.67%);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: end;
        color: #fff;

        .pop-close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: fit-content;
            height: fit-content;
            padding: 0;
        }

        .marker-btn {
            position: absolute;
            top: 0px;
            left: 15px;
            width: fit-content;
            height: fit-content;
            padding: 0 0 6px 0;
            border-radius: 0 0 5px 5px;
            background: white;
        }

        .donate-btn {
            background: #4E8A39;
            border: none;
            border-radius: 100px;
            text-transform: capitalize;
        }
    }
}

@media (max-width: 768px) {
    .join-community-wrapper .input-group {
        flex-direction: column;

        .form-control {
            width: 100%;

        }

        .btn {
            width: 100%;
            height: 68px;
        }
    }
}