/* =======================================
   🌗 SIDEBAR (Uses Global Theme Variables)
======================================= */

/* Wrapper */
.sidebar-wrapper {
    position: sticky;
    top: 80px;
}

/* Sidebar Card */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    transition: background .3s, box-shadow .3s, border .3s, color .3s;
}

/* Section Title */
.sidebar-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* News Item – Thumbnail Type */
.sidebar-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    text-decoration: none;
    color: var(--text-color);
    transition: color .25s;
}

.sidebar-item:hover .sidebar-heading {
    color: var(--theme-red);
}

/* Thumbnail */
.sidebar-thumb {
    width: 75px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
}

/* Info Block */
.sidebar-info { flex: 1; }

.sidebar-heading {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-color);
    transition: color .25s;
}

/* List Style Items – Latest/Random */
.sidebar-list-link {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color .25s;
}

.sidebar-list-link:hover {
    color: var(--theme-red);
    text-decoration: underline;
}

/* Muted text like dates */
.sidebar-card small,
.sidebar-card .text-muted {
    color: var(--text-light) !important;
    opacity: 0.8;
}

/* Ads */
.sidebar-card img {
    max-width: 100%;
    border-radius: 6px;
}
/* === SIDEBAR THEME FIX (FORCE APPLY) === */

.sidebar-wrapper .sidebar-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
    box-shadow: var(--shadow) !important;
    transition: background .3s, color .3s, border .3s;
}

.sidebar-wrapper .sidebar-title,
.sidebar-wrapper .sidebar-heading,
.sidebar-wrapper .sidebar-list-link,
.sidebar-wrapper .text-muted {
    color: var(--text-color) !important;
}

/* Muted text should be lighter */
.sidebar-wrapper .text-muted,
.sidebar-wrapper small {
    opacity: .75;
}

/* Mobile: disable sticky sidebar */
@media (max-width: 992px) {
    .sidebar-wrapper {
        position: static !important;
        top: auto !important;
    }
}

