/* Related Post Block - Frontend Styles */

.rpb-related-posts-wrapper {
    max-width: 400px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.rpb-category-title {
    background: linear-gradient(135deg, #439c04 0%, #439c04 100%);
    color: #ffffff;
    padding: 15px 20px;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    text-transform: capitalize;
}

.rpb-posts-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.rpb-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rpb-post-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.rpb-post-item:last-child {
    border-bottom: none;
}

.rpb-post-item:hover {
    background-color: #f8f9ff;
}

.rpb-post-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.rpb-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.rpb-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rpb-post-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.rpb-post-title {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.rpb-post-item:hover .rpb-post-title {
    color: #667eea;
}

.rpb-post-date {
    font-size: 12px;
    color: #888888;
}

.rpb-no-posts {
    padding: 20px;
    text-align: center;
    color: #666666;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px dashed #ddd;
}



/* Menu List Block Specific */
.rpb-menu-list-wrapper .rpb-post-link {
    justify-content: space-between;
}

.rpb-menu-arrow {
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rpb-post-item:hover .rpb-menu-arrow {
    opacity: 1;
    transform: translateX(5px);
}


/* Responsive */
@media (max-width: 480px) {
    .rpb-related-posts-wrapper {
        max-width: 100%;
    }

    .rpb-post-link {
        padding: 12px 15px;
    }

    .rpb-post-thumbnail {
        width: 50px;
        height: 50px;
    }

    .rpb-post-title {
        font-size: 14px;
    }
}