#blog-section-1 {
    display: flex;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

#blog-section-1 ul {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
}

#blog-section-1 ul li {
    display: flex;
    justify-content: space-between;
    align-items: start;
    text-decoration: none;
    gap: 20px;
    min-height: 280px;
    position: relative;
}

#blog-section-1 ul li p:first-of-type:hover {
    color: #7f7f7f;
    transition: all .2s ease-out;
}

#blog-section-1 ul hr {
    width: 100%;
    height: 1px;
    background-color: #00000020;
    border: none;
}

#blog-section-1 ul li img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#blog-section-1 ul li p {
    font-size: 2.1rem;
    margin: 0;
    font-weight: 500;
    transition: all .2s ease-out;
}

#blog-section-1 ul li div {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 48%;
    height: 100%;
}
#blog-section-1 ul li a{
    width: 100%;
}
#blog-section-1 ul li div .page-heading {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    background: #be1e28;
    padding: 10px 18px;
    border-radius: 500px;
    width: fit-content;
    font-size: .9rem;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.img-container {
    position: absolute;
    width: 50%;
    border-radius: 15px;
    overflow: hidden;
    top: 0;
    right: 0;
}

@media(max-width:756px) {
    #blog-section-1 li a {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 20px;
        position: relative;
        height: 100%;
    }

    #blog-section-1 ul li .img-container {
        position: unset;
        padding: 0;
        width: 100%;
        z-index: 0;
    }

    #blog-section-1 ul li .img-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -2.5%;
        width: 105%;
        height: 100%;
        border-radius: 15px;
        background: linear-gradient(180deg, transparent 0%, #fff 100%);
    }

    #blog-section-1 ul li div {
        width: 100%;
        position: absolute;
        width: calc(100% - 20px);
        justify-content: end;
        padding: 0 10px 30px 10px;
        z-index: 1;
    }

    #blog-section-1 ul li p {
        font-size: 1.3rem;
    }

    #blog-section-1 ul li div .page-heading {
        margin-top: 10px;
        font-size: .8rem;
    }

    #blog-section-1 ul hr {
        display: none;
    }
}