
.mb-20 {
    margin-bottom: 20px !important;
}

.font-12 {
    font-size: 12px!important;
}

.card {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #ffffff;
    background-clip: border-box;
    border: 0.0625rem solid rgba(245, 245, 245, 0.05);
    border-radius: 0.3rem;
}


.bg-white {
    background-color: #ffffff !important;
}

.border-variant-soft {
    border-color: #e8e8e8 !important;
}

.shadow-soft {
    -webkit-box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03) !important;
    box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03) !important;
}

.card {
    position: relative;
}

.rounded-top {
    border-top-left-radius: 0.3rem !important;
    border-top-right-radius: 0.3rem !important;
}

.card-body {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1.25rem;
    color: #003970;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.link-with-icon {
    display: inline-block;
}

.font-small {
    font-size: 0.875rem;
    font-weight: 300;
}

.text-default, .text-default:hover {
    color: #0648B3 !important;
}

a.text-default:hover, a.text-default:focus {
    color: #053e9a !important;
}

.link-with-icon span {
    vertical-align: middle;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.link-with-icon:hover span {
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
    margin-left: 8px;
}

.small{
    color: #003970 !important;
}

.small span{
    color: #991c1f !important;
}

.blog-img img{
    height: 170px !important;
}

.bg-blue{
    background-color: #003970 !important;
}

.search-card{
    background-color: #f5f5f5;
    margin-bottom: 20px;
}

.card-header{
    padding: 10px !important;
}

.card-title{
    margin: 0px;
}

.new-card-title{
    margin: 0px;
    font-size: 35px;
    color: #dc3545!important;
}

.blog-img{
    min-height: 150px;
    max-height: 150px;
    overflow: hidden;
}

.blog-img img{
    width: 100%;
    height: 100%;
}

/* Responsive */

@media (max-width: 767px){
    .cardtitle-2 {
        font-size: 25px;
    }
}

.custom-bg-color {
    background-color: #dbdbdb;
}

.custom-border-color {
    border-bottom: 1px solid#ad1f26;
    border-radius: 10px;
}

.single-news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    position: relative;
}

.single-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

/* Image */
.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-date {
    font-size: 13px;
    margin-bottom: 14px;
    position: absolute;
    bottom: 10px;
    right: 10px;

    background: #ad1f26;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.single-news-card:hover .news-image img {
    transform: scale(1.08);
}

.single-news-card:hover .news-date {
    background: #fff;
    color: #ad1f26;
    border: 1px solid #ad1f26;
}

/* Content */
.news-content {
    padding: 18px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.single-news-card:hover .news-title {
    color: #ad1f26
}

/* Read More Button */
.read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #ad1f26;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: "→";
    margin-left: 6px;
    transition: margin-left 0.3s ease;
}

.single-news-card:hover .read-more::after {
    margin-left: 12px;
}

.read-more:hover {
    color: #ad1f26;
}

.news-hor {
    background-color: #aa1f25;
}

.filters-custom-li {
    margin-bottom: 15px;
}

.filters-custom-li a {
    color: #000;
    align-items: center;
    border: 0px solid #aa1f25;
    border-radius: 3px;
    display: block;
    font-size: 12px;
    font-weight: 700;
    height: 100%;
    line-height: 1.08;
    padding: 20px 20px 14px;
    position: relative;
    text-transform: uppercase;
    transition: color .2s ease .1s;
    text-align: center;
}

.filters-custom-li a:before {
    background-color: #aa1f25;
    border-radius: 3px 0 0 3px;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: width .4s ease, border-radius .2s ease;
    width: 100%;
}


.active-year {
    border: 2px solid #aa1f25!important;
}

.active-year::before {
    background-color: #fff !important;
    color: #003970 !important;
}

.filters-custom-li a span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.14;
    margin-bottom: 5px;
    text-transform: uppercase;
    position: relative;
    color: #fff;
}

.active-year span {
    color: #000 !important;
}

.eblnews {
    margin-top: 0;
    padding: 10px 0;
    text-align: center;
    width: 30%;
    margin: 0px auto;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.bg-blue {
    background-color: #991c1f;
}

.text-theme-colored2 {
    color: #004ea5 !important;
}

.font-12 {
    font-size: 12px!important;
}

.color-white {
    color: #fff!important;
}

.eblnews h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 0px !important;
}

.rts-single-wized .wized-body .rts-search-wrapper input {
    padding-right: 10px;
    padding-left: 10px;
}


.search-btn{
    position: unset !important;
}

/* Pagination Wrapper */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

/* Each page item */
.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1.5px solid #dee2e6;
    background-color: #ffffff;
    color: #006341;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
    outline: none;
}

/* Hover state */
.pagination .page-item .page-link:hover {
    background-color: #006341;
    border-color: #006341;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.25);
    transform: translateY(-1px);
}

/* Active page */
.pagination .page-item.active .page-link {
    background-color: #006341;
    border-color: #006341;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.3);
    font-weight: 700;
    pointer-events: none;
}

/* Disabled (prev/next when no more pages) */
.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Prev / Next arrow buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    width: auto;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Focus outline remove */
.pagination .page-item .page-link:focus {
    box-shadow: 0 0 0 3px rgba(0, 99, 65, 0.2);
    outline: none;
}

.cus-col-8{
    order: 1;
}

.cus-col-4{
    order: 2;
}

/* ===== TABLET (max-width: 768px) ===== */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
        margin: 20px 0;
    }

    .pagination .page-item .page-link {
        width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 5px;
    }

    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 0 10px;
        font-size: 12px;
    }

    .cus-col-8{
        order: 2;
    }

    .cus-col-4{
        order: 1;
        margin-bottom: 20px;
    }

    .single-news-card{
        width: 90%;
        margin: 0 auto 20px;
    }
}


/* ===== MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .pagination {
        gap: 3px;
        margin: 16px 0;
    }

    .pagination .page-item .page-link {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 4px;
        border-width: 1px;
    }

    /* Prev / Next এ শুধু arrow দেখাও, text লুকাও */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 0; /* text hide */
    }

    /* Arrow add করো pseudo element দিয়ে */
    .pagination .page-item:first-child .page-link::before {
        content: '←';
        font-size: 14px;
    }

    .pagination .page-item:last-child .page-link::after {
        content: '→';
        font-size: 14px;
    }

    /* মাঝের page numbers — শুধু active ও তার আশেপাশের গুলো দেখাও */
    .pagination .page-item {
        display: none;
    }

    /* সবসময় দেখাবে */
    .pagination .page-item:first-child,
    .pagination .page-item:last-child,
    .pagination .page-item.active,
    .pagination .page-item.active + .page-item,
    .pagination .page-item.disabled {
        display: block;
    }
}
