
.sf-widget-box {
    margin-bottom: 30px;
    padding-bottom: 30px; 
    background: transparent; 
    border: none; 
    border-bottom: 1px dashed #E0E0E0; 
    border-radius: 0; 
    
    margin-left: 30px;  
    margin-right: 30px; 
}

.sf-widget-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sf-widget-title {
    font-size: 15px; 
    font-weight: 500;
    color: var(--sf-text-main);
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 0; 
    line-height: 1;
}


.sf-widget-recent-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sf-widget-recent-comments li {
    display: flex;
    align-items: flex-start; 
    gap: 12px; 
    margin-bottom: 20px;
}
.sf-widget-recent-comments li:last-child {
    margin-bottom: 0;
}

.comment-avatar {
    flex-shrink: 0; 
}
.comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid var(--sf-border-color);
}

.comment-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column; 
    gap: 4px;
}

.comment-author {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px; 
    color: #999999;
    
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comment-author strong {
    font-weight: 600; 
    color: inherit;
}
.comment-author i {
    font-size: 14px;
    color: #999999;
    color: var(--sf-accent-red);
}

.comment-text {
    font-size: 13px;
    color: #666666; 
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comment-text:hover {
    color: var(--sf-accent-red);
}

.sf-widget-hot-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sf-widget-hot-posts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.sf-widget-hot-posts li:last-child {
    margin-bottom: 0;
}
.hot-post-thumb {
    flex: 0 0 64px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}
.hot-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hot-post-thumb:hover img {
    transform: scale(1.08); 
}
.hot-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hot-post-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--sf-text-main);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.hot-post-title:hover {
    color: var(--sf-accent-red);
}
.hot-post-meta {
    font-size: 11px;
    color: var(--sf-text-muted);
}

.sf-single-sidebar .sf-widget-box {
    margin-bottom: 30px;
    padding-bottom: 30px; 
    background: transparent; 
    border: none; 
    border-bottom: 1px dashed #E0E0E0; 
    border-radius: 0; 
    
    margin-left: 20px;  
    margin-right: 20px; 
}


.sf-highlight-card-box {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.sf-highlight-card-box:hover {
    opacity: 0.85;
}
.highlight-main-title {
    font-size: 13px;
    font-weight: 400; 
    line-height: 1.5;
    color: #111111;
    margin: 0 0 8px 0;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.highlight-sub-title {
    font-size: 13px;
    color: #999999;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-highlight-card-box .highlight-text-wrap {
    border-bottom: 1px solid #EAECEF; 
    padding-bottom: 15px !important;  
}

.sf-highlight-card-box .highlight-text-wrap:hover {
    border-bottom-color: #DEDEDE;
}

.highlight-text-wrap + .highlight-img-wrap {
    margin-top: 24px !important; 
}
.highlight-img {
    width: 100%;
    height: 81px; 
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
}
.highlight-img img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
}


.sf-widget-box:last-child {
    border-bottom: none !important;
}

.sf-social-footer-box {
    padding-top: 10px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%; 
    box-sizing: border-box;
}

.sf-social-icons {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 15px; 
    margin-bottom: 2px; 
}

.sf-social-icons a {
    color: #CFCFCF; 
    font-size: 18px; 
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-social-icons a:hover {
    color: #888888;
    transform: translateY(-2px);
}

.sf-footer-links {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 12px; 
    width: 100%;
}

.sf-footer-links a {
    font-size: 11px; 
    color: #B0B0B0; 
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

.sf-footer-links a:hover {
    color: #555555;
}

.sf-right-sidebar {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px); 
}

.sf-right-sidebar > *:has(.sf-social-footer-box) {
    margin-top: auto !important; 
}


@media (max-width: 1024px) {
    .sf-right-sidebar {
        min-height: auto !important; 
    }

    .sf-widget-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 30px !important; 
    }

    .sf-widget-box:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .sf-social-footer-box {
        padding-top: 0 !important;
    }
}

.sf-widget-links-list {
    list-style: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0px 18px; 
}

.sf-widget-links-list li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sf-widget-links-list li a {
    display: inline-block;
    font-size: 13px !important; 
    font-weight: 400;
    line-height: 1.2; 
    padding: 0;
    color: var(--sf-text-muted, #8A8F98); 
    text-decoration: none;
    transition: color 0.2s ease;
}

.sf-widget-links-list li a:hover {
    color: var(--sf-text-main, #1D1E20);
}


@media (max-width: 768px) {

    .sf-right-sidebar {
        width: auto !important; 
        max-width: none !important;
        margin-left: -20px !important; 
        margin-right: -20px !important; 
        margin-top: 20px !important; 
        margin-bottom: 0 !important;
        padding: 30px 20px 20px 20px !important; 
        background-color: #F7F7F9 !important; 
        border-radius: 0 !important; 
        box-sizing: border-box !important;
    }

    .sf-widget-title {
        font-size: 17px !important; 
        margin-bottom: 20px !important; 
    }

    .hot-post-title {
        font-size: 15px !important;
    }
    .hot-post-meta {
        font-size: 12px !important;
    }

    .comment-author {
        font-size: 14px !important;
    }
    .comment-text {
        font-size: 14px !important;
    }

    .sf-widget-links-list li a {
        font-size: 14px !important; 
        padding: 0px 0 !important;
    }
    .sf-widget-links-list {
        gap: 0px 18px !important; 
    }

   

@media (max-width: 768px) {
    
    body.home .sf-right-sidebar {
        width: auto !important;
        max-width: none !important;
        margin-left: -20px !important; 
        margin-right: -20px !important;
        margin-top: 30px !important;
        margin-bottom: 0 !important;
        padding: 30px 20px 10px 20px !important;
        background-color: #F7F7F9 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    body.home .sf-right-sidebar .sf-widget-box {
        background-color: #FFFFFF !important;
        border-radius: 16px !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
        border: 1px solid #F0F2F5 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    body.home .sf-right-sidebar .sf-widget-box:has(.sf-social-footer-box),
    body.home .sf-right-sidebar .sf-social-footer-box {
        display: none !important;
    }

    body.home .sf-right-sidebar .sf-widget-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        border: none !important;
        padding-left: 0 !important;
        font-weight: 600 !important;
    }

    .hot-post-title, .comment-text {
        font-size: 14px !important;
    }

    .highlight-img {
        height: 130px !important;
    }
}