/*
=================================================================
    SIDEBAR STYLES - UNIFIED FOR COURSES & BLOG POSTS
=================================================================

Custom styles for sidebar widgets and components
Applied to both single-course.php and single.php
Hides comment-related widgets and sections

IMPORTANT: Both blog posts and courses use "Sidebar 1"
Configure widgets in: WordPress Admin > Appearance > Widgets > Sidebar 1

Author: Poli Central
Version: 1.3.0
*/

/* ========================================
   HIDE COMMENT WIDGETS IN SIDEBAR
   ======================================== */

/* Hide Recent Comments Widget */
.widget_recent_comments,
#sidebar .widget_recent_comments,
.sidebar .widget_recent_comments,
.blog-right.sidebar .widget_recent_comments {
    display: none;
}

/* Hide default WordPress comment widgets */
.widget_comments,
#sidebar .widget_comments,
.sidebar .widget_comments,
.blog-right.sidebar .widget_comments {
    display: none;
}

/* Hide any comment-related sections */
.recent-comments,
#recentcomments,
.recentcomments,
.sidebar .recent-comments,
.sidebar #recentcomments,
.sidebar .recentcomments,
.blog-right.sidebar .recent-comments,
.blog-right.sidebar #recentcomments,
.blog-right.sidebar .recentcomments {
    display: none;
}

/* Hide comment count widgets if they exist */
.widget_comment_count,
.sidebar .widget_comment_count,
.blog-right.sidebar .widget_comment_count {
    display: none;
}

/* ========================================
   SIDEBAR CONTAINER
   ======================================== */

/* Blog-right sidebar container - Remove default padding/background */
.blog-right.sidebar,
.col-sm-4 .blog-right.sidebar {
    padding: 0;
    background: transparent;
}

/* ========================================
   WIDGET STYLES - UNIFIED
   ======================================== */

/* Widget spacing and card design */
.blog-right.sidebar .widget,
.sidebar .widget,
aside .widget {
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

/* Widget titles */
.blog-right.sidebar .widget-title,
.blog-right.sidebar .widgettitle,
.sidebar .widget-title,
.sidebar .widgettitle,
aside .widget-title,
aside .widgettitle {
    margin-bottom: 20px;
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Widget lists */
.blog-right.sidebar .widget ul,
.sidebar .widget ul,
aside .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-right.sidebar .widget ul li,
.sidebar .widget ul li,
aside .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.blog-right.sidebar .widget ul li:last-child,
.sidebar .widget ul li:last-child,
aside .widget ul li:last-child {
    border-bottom: none;
}

/* Widget links */
.blog-right.sidebar .widget ul li a,
.sidebar .widget ul li a,
aside .widget ul li a,
.blog-right.sidebar .widget a,
.sidebar .widget a,
aside .widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-right.sidebar .widget ul li a:hover,
.sidebar .widget ul li a:hover,
aside .widget ul li a:hover,
.blog-right.sidebar .widget a:hover,
.sidebar .widget a:hover,
aside .widget a:hover {
    color: #ff6b6b;
}

/* Widget paragraphs */
.blog-right.sidebar .widget p,
.sidebar .widget p,
aside .widget p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    .blog-right.sidebar,
    .sidebar,
    aside {
        margin-top: 40px;
    }

    .blog-right.sidebar .widget,
    .sidebar .widget,
    aside .widget {
        margin-bottom: 25px;
        padding: 20px;
    }

    .blog-right.sidebar .widget-title,
    .blog-right.sidebar .widgettitle,
    .sidebar .widget-title,
    .sidebar .widgettitle,
    aside .widget-title,
    aside .widgettitle {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .blog-right.sidebar .widget,
    .sidebar .widget,
    aside .widget {
        padding: 15px;
        margin-bottom: 20px;
    }

    .blog-right.sidebar .widget-title,
    .blog-right.sidebar .widgettitle,
    .sidebar .widget-title,
    .sidebar .widgettitle,
    aside .widget-title,
    aside .widgettitle {
        font-size: 15px;
    }
}
