/* ============================================
   RELATED ARTICLES COMPONENT
   ============================================ */

.related-article-item {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--background-color);
    transition: all 0.3s ease;
}

.related-article-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-item:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 1rem;
    color: white;
}

.related-article-badge {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.related-article-no-image {
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-article-no-image .related-article-badge {
    margin-bottom: 0.75rem;
}

.related-article-no-image .related-article-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.related-article-no-image .related-article-date {
    color: var(--text-secondary);
}
