.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;
    width: 100%;
    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;
}
.bootstrap-select .dropdown-menu {
    z-index: 9999 !important;
}

.blog-listing,
.custom-container,
.row {
    overflow: visible !important;
}


/*Archive css*/
.category-archive, .archive-wrapper{
    padding: 100px 0;
}
.category-archive .archive-header, .archive-wrapper .archive-header{
    padding: 0 0 50px;
}
.category-archive .archive-header h1, .archive-wrapper .archive-header h1{
    font-size: 60px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}
#blog-search{
    width: calc(100% - 300px);
}
.blog-filter {
  position: relative;
  z-index: 1000;
}

.category-select {
  position: relative;
  width: 300px;
}

.category-input-wrap {
  position: relative;
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #888;
}

#category-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border: 1px solid #ddd;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

#category-dropdown li {
  padding: 10px 12px;
  cursor: pointer;
}

#category-dropdown li:hover,
#category-dropdown li.active {
    background: #0d6efd;
    color: #fff;
}
/* Clear icon */
.category-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    display: none;
    color: #999;
}

.category-select.has-value .category-clear {
    display: block;
}
#blog-posts {
  position: relative;
  z-index: 1;
}

.blog-pagination a {
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
}

.blog-pagination a.active {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
    pointer-events: none;
}
@media only screen and (max-width: 768px){
    .blog-pagination a, .blog-pagination span{
        width: 30px;
        height: 30px;;
    }
    .blog-filter{
        flex-wrap: wrap;
    }
    #blog-search, .category-select{
        width: 100%;
    }
}