.widget-area {
    margin-top: 2rem;
    direction: rtl;
    text-align: right;
}

.sidebar .widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    direction: rtl;
    text-align: right;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar .widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .widget a {
    color: #34495e;
    text-decoration: none;
    display: block;
}

.sidebar .widget a:hover {
    color: #3498db;
}

.sidebar .widget p {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #555;
}

.sidebar .widget p:last-child {
    margin-bottom: 0;
}

.sidebar .widget .tagcloud a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.875rem;
}

.sidebar .widget .tagcloud a:hover {
    background: #3498db;
    color: #fff;
}

.sidebar .widget .search-form {
    display: flex;
    gap: 0.5rem;
}

.sidebar .widget .search-field {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.sidebar .widget .search-submit {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.sidebar .widget .search-submit:hover {
    background: #2980b9;
}

@media (min-width: 768px) {
    .widget-area {
        margin-top: 0;
    }
}

