.category-list .card {
    border: 1px solid #EAEAEA;
    padding: 0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin: 0 12px 24px;
    background-color: #fff;
    box-shadow: 0px 4px 24px rgba(0,0,0,0.04);
    overflow: hidden;
    height: calc(100% - 24px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-list .card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);
}

.category-list .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.category-list .card > a:first-child {
    display: block;
}

.category-list .card .text-small,
.category-list .card .blog-heading,
.category-list .card .blog-text,
.category-list .card > div {
    padding: 0 20px;
}

.category-list .text-small {
    color: #999;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-top: 16px;
}

.category-list .blog-heading {
    color: #2E2E2E;
    background-color: transparent;
    margin: 12px 0;
    padding: 0 20px;
    text-align: left;
    line-height: 1.4;
    font-size: 18px;
}

.category-list .blog-heading a {
    color: #2E2E2E;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;    
    transition: color 0.3s ease;
}

.category-list .blog-heading a:hover {
    color: var(--primary-color, #0d8ada);
}

.category-list .blog-text {
    color: #6B6B6B;
    background-color: transparent;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 89.6px;
}

.category-list .card > .mt-4 {
    padding: 20px;
    margin-top: 20px !important;
}

.category-list .blog-box {
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.category-list .card:hover .blog-box {
    background-color: var(--secondary-color, #05146f);
    transform: translateX(4px);
}

.category-list .card:hover .blog-box i {
    color: #fff !important;
}

.category-list .blog-user-name {
    color: #4F5665;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.category-list .no-bl {
    border-left: 0;
}

.category-list .card .card-img {
    display: block;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.category-list .card .card-img img {
    display: block;
    transition: transform 0.5s ease-in-out;
}

.category-list .card .card-img > a {
    display: block;
}

.category-list .card .card-img > a:hover img {
    transform: scale(1.15);
}

.badge-category-overlay {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;    
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    line-height: normal;
}

.badge-category-overlay a {
    background : transparent;
    color: #05146f;
    padding: 8px 18px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

/* Flex Grid for Desktop/Tablet/Mobile */
@media(min-width: 992px) {
    .col-lg-4.custom-col { width: 33.333%; flex: 0 0 33.333%; }
}
@media(min-width: 768px) and (max-width: 991px) {
    .col-md-6.custom-col { width: 50%; flex: 0 0 50%; }
}
@media(max-width: 767px) {
    .custom-col { width: 100%; flex: 0 0 100%; }
}
