/* 
 * Recent Posts Widget Styling
 * Styling cho widget Recent Posts
 */

.recent-posts-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.recent-posts-widget .widget-title {
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #0066cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:hover {
    padding-left: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.recent-post-item:hover .recent-post-title a {
    color: #0066cc;
}

.recent-post-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-post-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.recent-post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.5;
}

.recent-post-title a:hover {
    color: #0066cc;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recent-post-date::before {
    content: "📅";
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .recent-posts-widget {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .recent-post-item {
        padding: 0.75rem 0;
    }
    
    .recent-post-title {
        font-size: 0.9rem;
    }
}

/* Style for sidebar */
#secondary .recent-posts-widget {
    margin-bottom: 0;
}

/* Style when in single post sidebar */
.single #secondary .recent-posts-widget {
    margin-bottom: 2rem;
}

