.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}
.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity .25s ease-in-out;
}
.blog-card:hover .overlay-gradient {
    opacity: 1;
}
.text-truncate-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.category-badge {
    font-size: .75rem;
}

.overlay-title {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.blog-card .overlay-gradient {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    padding: .5rem;
}

/* related articles cards */
.related-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    direction: rtl;
}
.related-card:hover {
    background: #f9f9f9;
    border-color: #e0e0e0;
    cursor: pointer;
}
.related-card.mb-0 {
    margin-bottom: 0;
}
.related-card .rc-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.related-card .rc-text {
    flex: 1 1 auto;
}
.related-card .rc-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin: 0 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.related-card .rc-meta {
    font-size: 11px;
    color: #9aa0a6;
}
.related-card .rc-meta i {
    font-size: 12px;
    vertical-align: middle;
    margin-left: 4px;
}
@media (max-width: 400px) {
    .related-card .rc-thumb {
        width: 48px;
        height: 48px;
    }
    .related-card .rc-title {
        font-size: 12px;
    }
}

/* article details */
.article-meta {
    direction: rtl;
    font-size: .875rem;
}
.article-meta .meta-author i {
    font-size: 20px;
}
.article-meta .meta-date i {
    margin-left: 4px;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.tag-pill {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .75rem;
    text-decoration: none;
    margin-left: 4px;
}
.tag-pill:hover {
    background: #e0e0e0;
}
