﻿/* 12. Related Posts Cards Grid */
.related-posts-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 45px;
    margin-top: 50px;
    margin-bottom: 20px;
}
.related-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 25px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.related-grid > * {
    min-width: 0;
}
@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}
.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.05);
}
.related-img {
    height: 150px;
    overflow: hidden;
    position: relative;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.related-card:hover .related-img img {
    transform: scale(1.06);
}
.related-body {
    padding: 16px;
}
.related-date {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
}
.related-post-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
}
.related-card:hover .related-post-title {
    color: var(--primary);
}


