/* blog section */

.blog-section {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.blog-section .blogs-header {
    width: 70%;

}

.blog-section .section-heading {
    font-family: myFirstFont2;
    font-size: 60px;
    line-height: 60px;
    color: #240183;
    font-weight: 600;
}

.blog-section .sub-heading {
    font-family: myFirstFont3;
    font-size: 18px;
    line-height: 22px;
    color: #717171;
    font-weight: 400;
    margin-top: 1rem;
}

/* Styling of heading part */
.blog-section-heading {
    margin-left: 343px;
    /* display: flex;
     flex-direction: column; */

    /* justify-content: space-between; */
}

.blog-section-heading h2 {
    color: #1b1b1b;
    width: 455px;
    height: 38px;
    font-weight: 600;
    font-size: 40px;
    line-height: 38px;
}

.blog-section-heading p {
    color: #717171;
    width: 332px;
    height: 40px;
    font-weight: 400;
    font-size: 16px;
    line-height: 19.84px;
}

/* styling of cards */
.blogs-cards {
    display: flex;
    flex-direction: column;
}

.blogs-cards-row-common {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.blogs-cards-row-common::-webkit-scrollbar {
    display: none;
}

.blogs-cards-row-common a {
    text-decoration: none;
}

.blogs-card-5 img,
.blogs-card-4 img,
.blogs-card-2-img,
.blogs-card-1 img,
.blogs-card-8-content,
.blogs-card-7-content,
.blogs-card-6-content,
.blogs-card-3-content,
.blogs-card-2-content {
    height: 212px;
}

.blogs-card-1 img {
    width: 314px;
    border-radius: 20px;
    margin-left: -2rem;
    object-fit: cover;
}

.blogs-card-content {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    padding: 1.5rem 1rem;

}

.blogs-card-content h3 {
    font-weight: 700;
    font-size: 14px;
    line-height: 17.36px;
    font-family: myFirstFont2;
    z-index: 1;
    margin-left: 0;
    margin-top: 0;
}

.blogs-card-content-p {
    font-weight: 400;
    font-size: 12px;
    line-height: 14.88px;
    font-family: myFirstFont3;
    margin-top: 0px;
    color: #B3B3B3;
    z-index: 1;
    margin-bottom: 0;
    margin-left: 0;
}

.blogs-card-author {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 10px;
    margin-left: 0;
    position: relative;
    bottom: -2rem;
}

.blogs-card-2 {
    display: flex;
    flex-direction: row;
}

.blogs-card-2-img {
    width: 233px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    object-fit: cover;
}

.blogs-card-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.blogs-card-author p {
    color: #717171;
    /* width: 83px; */
    /* height: 15px; */
    font-weight: 400;
    font-size: 12px;
    line-height: 14.88px;
    margin-top: auto;
    margin-bottom: auto;
    font-family: myFirstFont3;
}

.blogs-card-2-content {
    background-color: #240183;
    width: 315px;
    /* z-index: -1; */
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;

}

.blogs-card-2-content h3 {
    /* width: 215px; */
    height: 75px;
    color: #ffffff;
}

.blogs-card-2-p {
    width: 249px;
    height: 25px;
    color: #ffffff;
}

.blogs-card-2-content .blogs-card-author p {
    color: #ffffff;
}

.blogs-card-3-content {
    background-color: #0074FF;
    width: 267px;
    /* z-index: -1; */
    border-radius: 20px;
}

.blogs-card-3-content h3 {
    /* width: 167px; */
    height: 75px;
    color: #FFFFFF;
}

.blogs-card-3-p {
    width: 207px;
    height: 25px;
    color: #ffffff;
}

.blogs-card-3-content .blogs-card-author p {
    color: #ffffff;
}

.blogs-card-4 img {
    width: 309px;
    border-radius: 20px;
    object-fit: cover;
}

/* animation on row 1 of cards */
.blogs-card-row-1 {
    display: flex;
    flex-direction: row;
    margin: 0.5rem 1rem;
    gap: 16px;
    overflow-x: scroll;
    overflow-y: hidden;
    animation-direction: alternate;
    justify-content: center;
    /* animation: row1 10s ease-in-out infinite alternate; */
}

@keyframes row1 {
    0% {
        transform: translateX(100px);
    }

    100% {
        transform: translateX(-100px);
    }

}

/* row-2 cards */

.blogs-card-5 img {
    width: 323px;
    margin-left: -3rem;
    border-radius: 20px;
    object-fit: cover;

}

.blogs-card-6-content {
    background: linear-gradient(135deg, #02FA72, #0074FF);
    width: 213px;
    /* z-index: -1; */
    border-radius: 20px;
}

.blogs-card-6-content h3 {
    /* width: 148px; */
    height: 75px;
    color: #ffffff;
}

.blogs-card-6-p {
    width: 166px;
    height: 25px;
    color: #ffffff;
}

.blogs-card-6-content .blogs-card-author p {
    color: #ffffff;
}

.blogs-card-7-content {
    background-color: #F7F7F7;
    width: 314px;
    /* z-index: -1; */
    border-radius: 20px;
}

.blogs-card-7-content h3 {
    /* width: 227px; */
    height: 75px;
    color: #000000;
}

.blogs-card-7-p {
    width: 234px;
    height: 25px;
    color: #240183;
}

.blogs-card-7-content .blogs-card-author p {
    color: #240183;
}

.blogs-card-8-content {
    width: 550px;
    object-fit: cover;
    background-size: cover;
    background-blend-mode: overlay;
    border-radius: 20px;
    gap: 50px;
}

.blogs-card-8-content h3 {
    color: #FFFFFF;
    width: 473px;
    height: 34px;
}

.blogs-card-8-content p {
    color: #FFFFFF;
}

.blogs-footer {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: 538px;
    margin-top: 20px;
}

.blogs-footer a {
    text-decoration: none;
    width: 113px;
    height: 17px;
    font-weight: 700;
    font-size: 14px;
    line-height: 17.36px;
    color: #1B1B1B;
}

.thin-line {
    width: 103px;
    border: 1px;
    height: 1px;
    /* Adjust thickness */
    background-color: #000000;
}

/* animation on row 2 of cards */
.blogs-card-row-2 {
    display: flex;
    flex-direction: row;
    margin: 0.5rem 1rem;
    gap: 16px;
    overflow-x: scroll;
    overflow-y: hidden;
    animation-direction: alternate;
    justify-content: center;
    /* animation: row2 7s ease-in-out infinite alternate; */

}

@keyframes row2 {
    0% {
        transform: translateX(100px);
    }

    100% {
        transform: translateX(-100px);
    }
}

.blogs-view-all {
    text-align: center;
    text-align: center;
    margin-top: 1rem;
}

.blogs-view-all a {
    font-family: myFirstFont3;
    font-size: 16px;
    line-height: 20px;
    color: #0080FF;
    font-weight: 400;
    margin-bottom: 0;
    text-align: center;
    margin: 1.5rem auto 0 auto;
    /* text-underline-offset: 10px; */
    text-decoration: none;
    border: 0;
    width: 242px;
    height: 50px;
    padding: 0 1rem;
    border-radius: 115px;
    display: block;
    align-content: center;
    background-color: #ffffff;
    background: linear-gradient(90deg, #02FA72, #0074FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    border: 2px solid;
    border-image: linear-gradient(90deg, #02FA72, #0074FF) 1;
    color: transparent;
}

.blog-section hr {
    width: 80%;
    color: #D2D6DB;
    border-width: 1px;
    margin: 32px auto;
    border-color: #4B5466;
    opacity: unset;
}

@media (max-width: 991px) {
    .blog-section .section-heading {
        font-size: 40px;
        line-height: 40px;
    }

    .blogs-cards-row-common {
        justify-content: start;
    }

    .blogs-card-content h3 {

        font-size: 14px;
        line-height: 16px;
    }

    .blogs-card-content-p {
        font-size: 12px;
        line-height: 15px;
    }
}

@media (max-width: 768px) {

    .blogs-card-1 img,
    .blogs-card-5 img {
        width: 323px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .blog-section .section-heading {
        font-size: 30px;
        line-height: 30px;
    }

    .blog-section .sub-heading {
        font-size: 16px;
        line-height: 20px;
    }
}

@media (max-width: 426px) {
    .blog-section .blogs-header {
        width: 90%;
    }

    .blogs-card-content h3 {
        font-size: 12px;
        line-height: 14px;
    }

    .blogs-card-author p,
    .blogs-card-content-p {
        font-size: 10px;
        line-height: 12px;
    }

    .blogs-card-author img {
        width: 30px;
        height: 30px;
    }

    .blogs-card-5 img,
    .blogs-card-4 img,
    .blogs-card-2-img,
    .blogs-card-1 img,
    .blogs-card-8-content,
    .blogs-card-7-content,
    .blogs-card-6-content,
    .blogs-card-3-content,
    .blogs-card-2-content {
        height: 170px;
    }

    .blogs-card-author {
        bottom: -1rem;
    }

    .blogs-view-all a {
        font-size: 14px;
        width: auto;
        margin-top: 0;
    }

    .blog-section hr {
        margin-bottom: 1rem;
    }
}

@media (max-width: 321px) {
    .blogs-view-all a {
        font-size: 12px;
    }
}