/* Fade in animation on load */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}

.news-card-img {
    opacity: 0.9;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    animation: fadeIn 0.8s ease-in-out;
    transform: scale(1);
}

.news-card {
    overflow: hidden;
}

.news-card:hover .news-card-img {
    transform: scale(1.1);
    opacity: 1;
}

.news-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Sidebar blog list (Popular Posts) */
.blog-sidebar-list {
    padding: 0;
}

.blog-sidebar-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-link {
    color: inherit;
}

.blog-sidebar-link:hover {
    color: inherit;
}

.blog-sidebar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-sidebar-title {
    font-weight: 600;
    color: #1e3a5f;
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.blog-sidebar-link:hover .blog-sidebar-title {
    color: #2563eb;
}

.blog-sidebar-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.blog-sidebar-date .bi-calendar3 {
    color: #3b82f6;
}

/* Alternative: Animated underline effect */
.blog-link-animated {
    color: #18272F;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

    .blog-link-animated::after,
    .blog-link-animated::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #18272F, #98A7AF);
        bottom: -5px;
        left: 0;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s ease-out;
    }

    .blog-link-animated::before {
        top: -5px;
        transform-origin: left;
    }

    .blog-link-animated:hover::after,
    .blog-link-animated:hover::before {
        transform: scaleX(1);
    }
