/* =================================
   Related Articles Grid
   ================================= */

.related-articles-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.related-articles-grid .wp-block-post-template > * {
    border: none !important;
    margin: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .related-articles-grid .wp-block-post-template {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .related-articles-grid .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-articles-grid .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

/* =================================
   Article Card
   ================================= */

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.article-card:hover .article-card__image img {
    transform: scale(1.03);
}

/* Image */
.article-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0;
    border-radius: 8px;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Category */
.article-card__category {
    margin-bottom: 0.5rem;
}

.article-card__category a {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-decoration: none;
    pointer-events: none;
}

/* Title */
.article-card__title {
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.article-card__title a {
    text-decoration: none;
}

.article-card__title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Date */
.article-card__date {
    color: #6b7280;
    margin: 0;
}