.topic-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 25px 0;
}

.topic-cards .card {
    background: inherit;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.topic-cards .card {
    transition: box-shadow 0.2s ease;
}

.topic-cards .card:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.topic-cards .excerpt {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* HEADER */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* AVATAR */
.card-header .avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* META */
.card-header .meta {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.card-header .author {
    font-weight: 600;
}

.card-header .date {
    color: #888;
    font-size: 11px;
}

/* TITLE */
.topic-cards h3 {
    font-size: 15px;
    margin: 10px 0;
}

.topic-cards h3 a {
    text-decoration: none;
    color: inherit;
}

.topic-cards h3 a:hover {
    color: #898d91;
}

/* BUTTON */
.topic-cards .read-more {
    display: block;
    margin-top: 12px;
    text-align: center;
    padding: 7px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
}

.topic-cards .read-more:hover {
    background: #abc3d6; 
}