/* ===== Category Sidebar Plugin Styles ===== */

/* Page layout */
.csp-page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

.csp-main-content {
    flex: 1;
    min-width: 0;
}

.csp-sidebar-col {
    width: 320px;
    flex-shrink: 0;
}

/* Search form */
.csp-category-widget-area .widget_search .search-form {
    display: flex;
    align-items: stretch;
    border: 2px solid #c0392b;
    border-radius: 4px;
    overflow: hidden !important;
    gap: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.csp-category-widget-area .widget_search .search-field {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    outline: none !important;
    padding: 10px 14px !important;
    font-size: 14px;
    background: #fff !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.csp-category-widget-area .widget_search .search-submit {
    flex: 0 0 auto;
    background: #c0392b !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0 !important;
    margin: 0 !important;
    align-self: stretch;
    line-height: 1;
    font-family: inherit;
    transition: background 0.2s ease;
}

.csp-category-widget-area .widget_search .search-submit:hover {
    background: #a93226 !important;
}

.csp-category-widget-area .widget_search .search-form > *:not(.search-field):not(.search-submit) {
    display: none !important;
}

/* Widget titles */
.csp-category-widget-area .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c0392b;
}

.csp-category-widget-area .widget-title a {
    color: inherit;
    text-decoration: none;
}

.csp-category-widget-area .widget-title a:hover {
    color: #c0392b;
}

/* Post list */
.csp-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.csp-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.csp-post-item:last-child { border-bottom: none; }

.csp-thumb { flex-shrink: 0; }

.csp-thumb img {
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.csp-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.csp-label {
    font-size: 10px;
    font-weight: 700;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.csp-dot { font-size: 7px; }

.csp-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

.csp-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.csp-post-title a:hover { color: #c0392b; }

.csp-meta { font-size: 11px; color: #aaa; }

/* Responsive */
@media ( max-width: 768px ) {
    .csp-page-wrapper {
        flex-direction: column;
    }
    .csp-sidebar-col {
        width: 100%;
    }
}