/* Blog Cards Styling */
.blog-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent;
}

.blog-card .xb-item--img {
    height: 200px;
    overflow: hidden;
}

.blog-card .xb-item--img img {
    transition: transform 0.5s ease;
    height: 100%;
    object-fit: cover;
}

.blog-card:hover .xb-item--img img {
    transform: scale(1.05);
}

.blog-card .h5 {
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog-card .text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-card .text-primary {
    color: #0d6efd !important;
    transition: all 0.3s ease;
}

.blog-card .hover-primary:hover {
    color: #0d6efd !important;
}

.blog-card a:hover {
    text-decoration: none !important;
}

/* Line clamp for text */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    max-height: 4.5em;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .blog-card .xb-item--img {
        height: 180px;
    }
    
    .blog-card .h5 {
        font-size: 1rem;
    }
}

/* Animation for read more link */
@keyframes arrowSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.blog-card:hover .fa-arrow-right {
    animation: arrowSlide 1s infinite;
}
