.yarpp-related {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.yarpp-related .related-post {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.yarpp-related .related-post:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.yarpp-thumbnail-container {
    position: relative;
    overflow: hidden;
    height: 150px;
    border-radius: 8px;
}

.yarpp-thumbnail {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yarpp-thumbnail-container:hover .yarpp-thumbnail {
    transform: scale(1.05);
}

.yarpp-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #f0f7ff;
    color: #3174cb;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    transition: all 0.3s ease;
}

.yarpp-category-tag:hover {
    background-color: #3174cb;
    color: #ffffff;
}

.yarpp-grid-date-separator {
    height: 2px;
    background: #f0f0f0;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.yarpp-related .related-post:hover .yarpp-grid-date-separator {
    background: #3174cb;
    box-shadow: 0 0 10px rgba(49, 116, 203, 0.3);
}

.yarpp-grid-content {
    padding: 15px;
}

.yarpp-grid-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yarpp-grid-title a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.yarpp-grid-title a:hover {
    color: #3174cb;
}

.yarpp-grid-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yarpp-grid-date {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yarpp-grid-date i {
    font-size: 14px;
    color: #3174cb;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .yarpp-related .related-post {
        flex: 0 0 calc(33.333% - 15px);
        max-width: calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
    .yarpp-related {
        gap: 20px;
    }
    
    .yarpp-related .related-post {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
        border-radius: 6px;
    }
    
    .yarpp-thumbnail-container {
        height: 120px;
    }
    
    .yarpp-grid-content {
        padding: 12px;
    }
    
    .yarpp-grid-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .yarpp-related .related-post {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .yarpp-thumbnail-container {
        height: 180px;
    }
}

/* Remove all text decorations */
.yarpp-related a {
    text-decoration: none !important;
}