/**
 * ==================
 *  Blog Sidebar CSS
 * ==================
 * @package ThePRO
 * @author ThemeREC
 */

/* ======================
   Sidebar Container
   ====================== */
aside#secondary,
.widget-area.blog-sidebar {
    padding-left: 30px;
}

/* ======================
   Widget Box Styles
   ====================== */
aside#secondary .widget,
.blog-sidebar .widget {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

aside#secondary .widget:hover,
.blog-sidebar .widget:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

aside#secondary .widget:last-child,
.blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

/* ======================
   Widget Titles
   ====================== */
aside#secondary .widget h2,
aside#secondary .widget h4,
.blog-sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000000;
    position: relative;
}

/* ======================
   Search Widget
   ====================== */
aside#secondary .search-form,
.blog-sidebar .search-form {
    position: relative;
}

aside#secondary input[type="search"],
.blog-sidebar input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #eeeeee;
    background-color: #f8f8f8;
    color: #333333;
    transition: all 0.3s ease;
}

aside#secondary input[type="search"]:focus,
.blog-sidebar input[type="search"]:focus {
    background-color: #ffffff;
    border-color: #000000;
    outline: none;
}

aside#secondary button[type="submit"],
.blog-sidebar button[type="submit"] {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

aside#secondary button[type="submit"]:hover,
.blog-sidebar button[type="submit"]:hover {
    background-color: #333333;
}

/* ======================
   Categories & Lists
   ====================== */
aside#secondary ul,
.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside#secondary ul li,
.blog-sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

aside#secondary ul li:last-child,
.blog-sidebar ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

aside#secondary ul li a,
.blog-sidebar ul li a {
    color: #777777;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

aside#secondary ul li a:hover,
.blog-sidebar ul li a:hover {
    color: #000000;
    padding-left: 10px;
}

/* Post count badges */
aside#secondary .cat-item span,
.blog-sidebar .cat-item span,
.blog-sidebar ul li .count {
    background-color: #f0f0f0;
    color: #777777;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: auto;
}

/* ======================
   Dropdown Select
   ====================== */
aside#secondary select,
.blog-sidebar select,
.widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid #eeeeee;
    background-color: #f8f8f8;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

aside#secondary select option,
.blog-sidebar select option {
    color: #333333;
    background-color: #ffffff;
    padding: 5px;
}

aside#secondary select:hover,
.blog-sidebar select:hover {
    background-color: #ffffff;
    border-color: #000000;
}

aside#secondary select:focus,
.blog-sidebar select:focus {
    outline: none;
    border-color: #000000;
    background-color: #ffffff;
}

/* ======================
   Recent Posts Widget
   ====================== */
.blog-sidebar .wp-block-latest-posts__post-date,
.blog-sidebar .post-date {
    color: #999999;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* ======================
   Tag Cloud Widget
   ====================== */
aside#secondary .tagcloud a,
aside#secondary .wp-block-tag-cloud a,
.blog-sidebar .tagcloud a,
.blog-sidebar .wp-block-tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px 10px 0;
    background-color: #f0f0f0;
    color: #777777;
    font-size: 13px !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

aside#secondary .tagcloud a:hover,
aside#secondary .wp-block-tag-cloud a:hover,
.blog-sidebar .tagcloud a:hover,
.blog-sidebar .wp-block-tag-cloud a:hover {
    background-color: #000000;
    color: #ffffff;
}

/* ======================
   Responsive Design
   ====================== */
@media (max-width: 991.98px) {
    aside#secondary,
    .widget-area.blog-sidebar {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 50px;
    }
    
    aside#secondary .widget,
    .blog-sidebar .widget {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    aside#secondary,
    .widget-area.blog-sidebar {
        padding-left: 0;
        padding-right: 0;
    }
    
    aside#secondary .widget,
    .blog-sidebar .widget {
        border-left: none;
        border-right: none;
    }
}

/* ======================
   RTL Support
   ====================== */
.rtl aside#secondary,
.rtl .blog-sidebar {
    padding-left: 0;
    padding-right: 30px;
}

.rtl .blog-sidebar ul li a:hover {
    padding-left: 0;
    padding-right: 10px;
}

.rtl .blog-sidebar .search-form button[type="submit"] {
    right: auto;
    left: 0;
}

.rtl .blog-sidebar .search-form input[type="search"] {
    padding: 12px 15px 12px 50px;
}