/* blogs grid section start */

.blogs-grid-row {
    row-gap: 35px;
}

.blogs-grid-row .col-4 {
    display: flex;
}

.blog-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    position: relative;
    height: 220px;
    display: block;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #eeeeee;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    position: relative;
    z-index: 2;
    min-height: 168px;
    margin-top: -10px;
    padding: 27px 18px 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--yellow);
    border-radius: 15px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.17);
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.blog-card-date span {
    width: 21px;
    height: 1px;
    display: block;
    flex-shrink: 0;
    background: #F9B42B;
}

.blog-card-content h2 {
    margin: 0 0 18px;
    color: var(--black);
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
}

.blog-card-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-content h2 a:hover {
    color: #004A92;
}

.blog-card-link {
    position: relative;
    width: fit-content;
    margin-top: auto;
    padding: 7px 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--black);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.blog-card-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 27px);
    height: 1px;
    background: #F9B42B;
    transition: width 0.3s ease;
}

.blog-card-link svg {
    color: #F9B42B;
    transition: transform 0.3s ease;
}

.blog-card-link:hover::after {
    width: 100%;
}

.blog-card-link:hover svg {
    transform: translateX(4px);
}

/* pagination */

.blogs-pagination {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blogs-pagination .page-numbers {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #F9B42B;
    border-radius: 8px;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.3s ease,
        color 0.3s ease;
	margin: 0;
}

.blogs-pagination .page-numbers:hover,
.blogs-pagination .page-numbers.current {
    background: #F9B42B;
    color: #000000;
}

.blogs-empty-message {
    padding: 40px 25px;
    background: #FFF4DA;
    border: 1px solid #F9B42B;
    border-radius: 15px;
    text-align: center;
}

.blogs-empty-message p {
    margin: 0;
    color: #202020;
    font-size: 16px;
}

/* blogs grid section end */

@media (max-width: 1199px) {

    .blog-card-image {
        height: 205px;
    }

    .blog-card-content h2 {
        font-size: 16px;
    }

}

@media (max-width: 991px) {

    .blogs-grid-row .col-4 {
        width: 50%;
    }

    .blog-card-image {
        height: 230px;
    }

}

@media (max-width: 767px) {

    .blogs-grid-row {
        row-gap: 25px;
    }

    .blogs-grid-row .col-4 {
        width: 100%;
    }

    .blog-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .blog-card-image {
        height: 250px;
    }

    .blog-card-content {
        min-height: auto;
        padding: 24px 18px 21px;
    }

}

@media (max-width: 575px) {

    .blog-card-image {
        height: 210px;
    }

    .blog-card-content h2 {
        font-size: 16px;
        line-height: 1.45;
    }

}