﻿.news-bg {
    background: rgba(42, 50, 86, 0.05);
    border: 1px solid rgba(42, 50, 86, 0.12);
}

.rounded-custom {
    border-radius: 40px 40px 40px 0;
}


.blog-img-wrapper {
    width: 175px;
    height: 182px;
    border-radius: 45px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .blog-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease, border 0.3s ease;
        border-radius: 45px;
    }


    .blog-img-wrapper:hover {
        border: 8px solid #2A3256;
    }

        .blog-img-wrapper:hover img {
            transform: scale(1.1);
        }


.blogDetail-img-wrapper {
    width: 215px;
    height: 206px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

    .blogDetail-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease, border 0.4s ease;
        border-radius: 20px;
    }


    .blogDetail-img-wrapper:hover {
        border: 8px solid #2A3256;
    }

        .blogDetail-img-wrapper:hover img {
            transform: scale(1.1);
        }


.last-img-wrapper {
    width: 100%;
    height: 206px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

    .last-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease, border 0.4s ease;
        border-radius: 20px;
    }


    .last-img-wrapper:hover {
        border: 8px solid #2A3256;
    }

        .last-img-wrapper:hover img {
            transform: scale(1.1);
        }

.title-blog {
    font-size: 21px;
    font-weight: 700;
}

.blog-description {
    font-size: 15px;
    font-weight: 400;
}

.blog-meta {
    color: #555;
}


.last-title-blog{
    font-size: 17px;
    font-weight: 700;
    line-height: 2;
}


.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    border-radius: 10px;
    border: 2px solid #2F4497;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

    .pagination-wrapper .page-btn {
        padding: 8px 14px;
        border: none;
        background: #fff;
        cursor: pointer;
        transition: 0.3s;
        font-size: 14px;
    }

        .pagination-wrapper .page-btn.active {
            border-radius: 10px;
            background: #2F4497;
            color: #fff;
            pointer-events: none;
            padding: 5px 13px;
        }

        .pagination-wrapper .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

.page-btn img.page-icon {
    width: 6px;
    height: 12px;
    flex-shrink: 0;
    fill: #2F4497;
}

.page-btn.prev img.page-icon {
    transform: rotate(180deg);
}

@media(max-width: 992px) and (min-width: 577px){
    .main-section {
        position: relative;
        top: 70px;
    }
}

@media (max-width: 576px) {
    .main-section{
        position:relative;
        top: 57px;
    }
    .blog-img-wrapper {
        width: 100%;
        height: 250px;
        border-radius: 30px;
    }

        .blog-img-wrapper img {
            border-radius: 30px;
        }

        .blog-img-wrapper:hover {
            border: 6px solid #2A3256;
        }

            .blog-img-wrapper:hover img {
                transform: scale(1.05);
            }

    .title-blog {
        font-size: 16px;
    }


    .blogDetail-img-wrapper {
        width: 100%;
        height: 206px;
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.4s ease;
    }
}
.page-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}