
/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
}

.widget-title {
    color: #1a1a2e;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--main-color);
    border-radius: 2px;
}

/* Search Widget */
.search-input-group {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #eee;
    border-radius: 35px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--main-color);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.recent-post-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-image:hover img {
    transform: scale(1.1);
}

.recent-post-content h6 {
    margin-bottom: 8px;
}

.recent-post-content h6 a {
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post-content h6 a:hover {
    color: var(--main-color);
}

.recent-post-meta {
    font-size: 12px;
    color: #999;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

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

.categories-list a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: var(--main-color);
    text-decoration: none;
}

.categories-list span {
    background: #f8f9fa;
    color: #999;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    background: #f8f9fa;
    color: #666;
    padding: 8px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tag-cloud-item:hover {
    background: var(--main-color);
    color: white;
    text-decoration: none;
    border-color: var(--main-color);
    transform: translateY(-2px);
}


@media (max-width: 768px) {

    .sidebar-widget {
        padding: 20px;
    }

    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
    
}

@media (max-width: 576px) {
    
    .recent-post-item {
        flex-direction: column;
        text-align: center;
    }

    .recent-post-image {
        width: 100%;
        height: 150px;
    }
    
}