/* ===== Smart Category Sidebar Plugin v3.0 ===== */

/* ─── DEFAULT PAGE LAYOUT (fallback themes) ─── */
.scs-page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}
.scs-main-content { flex: 1; min-width: 0; }
.scs-sidebar-col  { width: 320px; flex-shrink: 0; }

/* ─── FIX WHITE TEXT (some themes apply white color on hover) ─── */
.scs-page-wrapper *,
.scs-main-content h1,
.scs-main-content h2,
.scs-main-content h3,
.scs-main-content h4,
.scs-main-content p,
.scs-main-content span { color: inherit; }

/* ─── SEARCH FORM ─── */
.scs-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%;
}
.scs-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;
    color: #333 !important;
}
.scs-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;
}
.scs-category-widget-area .widget_search .search-submit:hover {
    background: #a93226 !important;
    color: #fff !important;
}
.scs-category-widget-area .widget_search .search-form > *:not(.search-field):not(.search-submit) {
    display: none !important;
}

/* ─── WIDGET TITLES ─── */
.scs-category-widget-area .widget-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c0392b;
}
.scs-category-widget-area .widget-title a {
    color: inherit !important;
    text-decoration: none;
}
.scs-category-widget-area .widget-title a:hover { color: #c0392b !important; }
.scs-category-widget-area .widget-title span { color: inherit !important; }

/* ─── SIDEBAR POST LIST ─── */
.scs-post-list  { list-style: none; padding: 0; margin: 0; }
.scs-post-item  {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.scs-post-item:last-child { border-bottom: none; }
.scs-thumb { flex-shrink: 0; }
.scs-thumb img {
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}
.scs-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.scs-label {
    font-size: 10px !important;
    font-weight: 700;
    color: #c0392b !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.scs-dot { font-size: 7px; }
.scs-post-title { font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0; }
.scs-post-title a { color: #1a1a1a !important; text-decoration: none; transition: color 0.2s ease; }
.scs-post-title a:hover { color: #c0392b !important; }
.scs-meta { font-size: 11px; color: #aaa !important; }

/* ─── NEWSROOM ELEMENTOR: Fix image sizing ─── */
/* The theme's .nekit-news-list-wrap already handles this correctly */
/* Just make sure images inside theme cards are not clipped by plugin wrapper */
.nekit-news-list-wrap .post-thumbnail img,
.nekit-news-list-wrap .wp-post-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
}

/* ─── RESPONSIVE ─── */
@media ( max-width: 768px ) {
    .scs-page-wrapper { flex-direction: column; }
    .scs-sidebar-col  { width: 100%; }
}
