/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #16284b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f4fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e8f4fc;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #2563eb;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1e3a5f;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:first-child {
    padding-top: 0;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-content {
    flex: 1;
}

.recent-post-date {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.4;
    margin: 0;
}

.recent-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: #2563eb;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    color: #5a6a7a;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.category-item a:hover {
    color: #2563eb;
}

.category-count {
    background: #e8f4fc;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 40px;
        position: static;
    }
}
