/* blog section */

.blog-section {
    display: flex;
    flex-direction: column;
    padding: 0;
    /* margin: 2rem 0; */
    background-color: #FAFAFA;
    padding: 2rem 0 4rem 0;
}

.blog-section .blogs-header {
    width: 70%;

}

.blog-section .section-heading {
    font-family: myFirstFont2;
    font-size: 40px;
    line-height: 40px;
    color: #003564;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.blog-section .sub-heading {
    font-family: myFirstFont3;
    font-size: 20px;
    line-height: 24px;
    color: #7C8189;
    font-weight: 400;
    margin-top: 1rem;
    /* width: 403px; */
    margin-left: auto;
    margin-right: auto;
}

/* 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: 40px;
}

.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: 600;
    font-size: 14px;
    line-height: 17.36px;
    font-family: myFirstFont3;
    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: #FB4D08;
    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: #FFC100;
    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(90deg, #F40846, #FFAA00);
    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: #FEF6E0;
    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: #003564;
}

.blogs-card-7-content .blogs-card-author p {
    color: #003564;
}

.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: #ffffff;
    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: 205px;
    height: 50px;
    padding: 0 1rem;
    border-radius: 115px;
    display: block;
    align-content: center;
    background-color: #FB4D08;
    /* border: 1.5px solid #003564; */
    border: 0;
}

.blogs-view-all a:hover {
    background-color: #FB4D35;
}

.card-containers {
    width: 70%;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.card-container {
    width: 336px;
    height: 286px;
    background-color: #fff;
    border-radius: 20px;
    margin: auto;
    margin-bottom: 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #D2D6DB;
}

.card-image img {
    height: 207px;
    width: 100%;
    border-radius: 20px 20px 0 0;
    background-size: cover;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    /* justify-content: center; */
    height: 79px;
}

.card-body h1 {
    font-size: 16px;
    margin: 8px 0;
}

.card-body p {
    font-size: 14px;
    margin: 0 auto;
    font-size: 14px;
    font-family: myFirstFont3;
    color: #002349;
    font-weight: 400;
    line-height: 18px;

}



@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: 18px;
    }
}

@media (max-width: 426px) {
    .blog-section {
        padding: 2rem 1rem;
    }

    .blog-section .blogs-header {
        width: 100%;
    }

    .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;
    }

    .video-view-all a,
    .blogs-view-all a {
        font-size: 12px;
        /* width: auto; */
        margin-top: 1rem;
        width: fit-content;
        height: 40px;
    }

    .blog-section hr {
        margin-bottom: 1rem;
    }

    .blog-section .sub-heading {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .blogs-cards-row-common {
        gap: 10px;
        margin: 5px 0.5rem;
    }

    .blog-section .section-heading {
        margin-bottom: 1rem;
    }

    .card-containers {
        width: 90%;
        margin: 1rem auto;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        overflow-x: scroll;
    }

    .card-container {
        width: 281px;
        height: 459px;

    }

    .card-image img {
        height: 343px;
        width: 100%;
    }

    .card-body {
        height: 116px;
        justify-content: center;
    }
}

@media (max-width: 321px) {
    .blogs-view-all a {
        font-size: 12px;
        height: 40px;
    }

    .card-containers {
        width: 100%;
        gap: 10px;
    }
}