/* Sidebar Container */
.custom-sidebar-container {
    width: 100%;
    max-width: 509px; /* Adjust based on your column width */
    font-family: 'Helvetica', sans-serif;
}

/* Individual Widgets (Search and Recent Blogs) */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
}

/* --- Search Form Styling --- */
.sidebar-search-form {
    display: flex;
    align-items: center;
    background-color: #f4f5f7;
    border-radius: 6px;
    padding: 8px 16px;
}

.sidebar-search-form .search-field {
    border: none;
    background: transparent;
    flex-grow: 1;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #333;
}

.sidebar-search-form .search-field::placeholder {
    color: #999;
}

.sidebar-search-form .search-field:focus {
    outline: none;
    box-shadow: none;
}

.sidebar-search-form .search-submit {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Recent Blogs Styling --- */
.recent-blog-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* Remove bottom border and spacing from the last item */
.recent-blog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.recent-blog-thumb {
    flex-shrink: 0;
}

.recent-blog-thumb img {
    width: 124px;
    height: 124px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.recent-blog-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-blog-date {
    font-size: 0.8rem;
    color: #888;
}

.recent-blog-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.recent-blog-title a {
    color: #1a1a1a;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.recent-blog-title a:hover {
    color: #0056b3; /* Change to your theme's primary color */
}