/* ── Blog Sidebar ── */

/* Override base sidebar width for blog page */
.side-skyscraper.right {
    width: 280px !important;
    min-width: 280px;
    max-width: 280px;
}

.side-skyscraper.left {
    width: 0 !important;
    min-width: 0;
    max-width: 0;
    overflow: hidden;
}

@media (min-width: 992px) {
    .blog-sidebar-sticky {
        position: sticky;
        top: 80px;
    }
}

/* Sidebar widgets */
.blog-sidebar-sticky {
    overflow: hidden;
}

.blog-sidebar-sticky .sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.blog-sidebar-sticky .sidebar-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1c3966;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-sidebar-sticky .sidebar-widget-title i {
    color: #1c3966;
    font-size: 0.9rem;
}

/* About widget */
.sidebar-about-text {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Recent posts widget */
.sidebar-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent-item {
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-recent-item:last-child {
    border-bottom: none;
}

.sidebar-recent-link {
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem 0;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 6px;
}

.sidebar-recent-link:hover {
    background: #f8f9fa;
}

.sidebar-recent-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.sidebar-recent-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.2rem;
}

.sidebar-recent-info {
    flex: 1;
    min-width: 0;
}

.sidebar-recent-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-recent-link:hover .sidebar-recent-title {
    color: #1c3966;
}

.sidebar-recent-date {
    font-size: 0.72rem;
    color: #999;
}

/* Rank number (most viewed) */
.sidebar-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1c3966;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-recent-item:nth-child(1) .sidebar-rank {
    background: #f59e0b;
}

.sidebar-recent-item:nth-child(2) .sidebar-rank {
    background: #94a3b8;
}

.sidebar-recent-item:nth-child(3) .sidebar-rank {
    background: #cd7f32;
}

/* Views count */
.sidebar-recent-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: #999;
}

.sidebar-views-count {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #1c3966;
    font-weight: 500;
}

.sidebar-views-count i {
    font-size: 0.65rem;
}

/* Editor's pick star color */
.sidebar-widget-title .bi-star-fill {
    color: #f59e0b;
}

/* Most viewed fire color */
.sidebar-widget-title .bi-fire {
    color: #ef4444;
}

/* Archive widget */
.sidebar-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-archive-list li {
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-archive-list li:last-child {
    border-bottom: none;
}

.sidebar-archive-list li a {
    font-size: 0.82rem;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.sidebar-archive-list li a:hover {
    color: #1c3966;
    background: #f8f9fa;
}

.sidebar-archive-list li a.active {
    color: #1c3966;
    background: #e8f0fe;
    font-weight: 600;
}

.sidebar-archive-list li a i {
    font-size: 0.7rem;
    color: #bbb;
}

.sidebar-archive-list li a.active i {
    color: #1c3966;
}

.sidebar-archive-count {
    margin-right: auto;
    font-size: 0.72rem;
    background: #f0f2f5;
    color: #888;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 500;
}

.sidebar-archive-list li a.active .sidebar-archive-count {
    background: #1c3966;
    color: #fff;
}

/* Blog header breadcrumb */
.blog-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    direction: rtl;
}

.blog-header-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-header-breadcrumb a:hover {
    color: #fff;
}

.blog-header-breadcrumb i {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

.blog-header-breadcrumb span {
    color: #fff;
    font-weight: 600;
}

/* Hide sidebar on small screens */
@media (max-width: 1199px) {
    .side-skyscraper.right {
        width: 0 !important;
        min-width: 0;
        max-width: 0;
        overflow: hidden;
    }
}
