.blog-card{
    border: 1px solid rgba(1, 113, 192, 0.4);
    padding: 20px 20px;
    border-radius: 10px;
    height: 100%;
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.blog-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}
.blog-listing{
    padding: 100px 0;

}
.blog-card a{
    text-decoration: none;
}
.blog-img{
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 24px;
    height: 252px;
    overflow: hidden;
}
.blog-img img{
    transition: 0.5s ease-in-out;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-img img {
    transform: scale(1.08);
}
.blogitem-texts .title{
    font-size: 20px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 500;
     display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;

    min-height: 2.6em;   /* 1.4 × 2 lines */
    max-height: 2.6em;

    line-height: 1.2;
    max-height: calc(1.2em * 2);
}
.blog-card .description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 1.5;
    max-height: calc(1.5em * 3);
    color: #212529;
    margin-bottom: 15px;
}
.blogitem-foot{
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(1, 113, 192, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: #212529;
}
.readmore-cta{
    padding: 16px 20px;
    font-size: 14px;
    margin-left: 4px;
    background-color: #4267b2;
    color: #fff;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    text-align: center;
    gap: 5px;
    font-weight: 700;
    border-radius: 10px;
}
.blog-card:hover .readmore-cta  {
   background-color: #000;
}
.blog-pagination .page-numbers.current{
    background-color: #064f9e;
    color: #fff;
}
#blog-posts.loading {
    opacity: 0.5;
    pointer-events: none;
}

.blog-pagination {
    margin-top: 80px;
    gap: 15px;
}

.blog-pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.blog-pagination li {
    display: inline-flex;
}

.blog-pagination a,
.blog-pagination span {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #f2f2f2;
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.blog-pagination .current {
    background: #0d47a1; /* blue like screenshot */
    color: #fff;
}

.blog-pagination .dots {
    pointer-events: none;
}

.blog-pagination a:hover {
    background: #0d47a1;
    color: #fff;
}

#category-suggestions {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    display: none;
    z-index: 99;
}

#category-suggestions div {
    padding: 8px 12px;
    cursor: pointer;
}

#category-suggestions div:hover {
    background: #f5f5f5;
}

#blog-posts.loading {
    opacity: 0.5;
    pointer-events: none;
}
