.tt-top-posts-wrapper {
    margin: 24px 0;
}

.tt-top-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tt-top-post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    background: #fff;
    transition: box-shadow 0.2s ease-in-out;
    color: #202124 !important;
}

.tt-top-post-card:hover,
.tt-top-post-card:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tt-top-post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f3f4;
    overflow: hidden;
    position: relative;
}

.tt-top-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tt-top-post-card:hover .tt-top-post-thumb img {
    transform: scale(1.03);
}

.tt-top-post-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tt-top-post-label {
    font-size: 13px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.tt-top-post-title {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #1a0dab !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-top-post-card:hover .tt-top-post-title {
    text-decoration: underline !important;
}

.tt-top-post-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #70757a;
}

.tt-top-post-meta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-top: -2px;
}

.tt-top-post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 600px) {
    .tt-top-posts-grid {
        grid-template-columns: 1fr;
    }
}
