/* Blog Toolbar Styles */
.blog-toolbar {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

/* Ensure icons and text adapt to theme */
.blog-toolbar i,
.blog-toolbar label {
    color: var(--text-primary) !important;
    /* Override text-muted */
}

/* Form Controls (Input & Select) Adaptation */
.blog-toolbar .form-control,
.blog-toolbar .form-select,
.blog-toolbar .input-group-text {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.blog-toolbar .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.blog-toolbar .form-control:focus,
.blog-toolbar .form-select:focus {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--link-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    /* Bootstrap default focus shadow but adaptable if needed */
}

/* Specific wrappers */
.blog-toolbar .sort-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-toolbar .search-wrapper {
    flex: 1;
    /* Take remaining space */
    max-width: 400px;
    /* Limit width on large screens */
}

/* Mobile: Stack items */
@media (max-width: 768px) {
    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-toolbar .sort-wrapper,
    .blog-toolbar .search-wrapper {
        width: 100%;
        max-width: 100%;
    }
}



/* Adjust grid for full width */
.blog-container {
    max-width: 1200px;
    /* Or slightly wider if preferred */
    margin: 0 auto;
}