/* Sidebar Styles */
.widget-area {
    /*
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    */
}

.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: #fff;
    padding: 20px;
    /*
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    */
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #333;
}

/* Widget specific styles */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Search widget */
.widget_search .search-form {
    display: flex;
    gap: 10px;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.widget_search input[type="submit"] {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Recent posts widget */
.widget_recent_entries a {
    color: #333;
    text-decoration: none;
}

.widget_recent_entries a:hover {
    color: #007bff;
}

/* Categories widget */
.widget_categories ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.widget_categories a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories a:hover {
    color: #007bff;
}

/* Tag cloud widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9em !important;
}

.tagcloud a:hover {
    background: #007bff;
    color: white;
}


/* Single Article Layout with Left Sidebar */
#primary.content-area {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#secondary.widget-area {
    flex: 0 0 300px;
    order: -1;
    margin-top: 2rem;
}

.site-main {
    flex: 1;
}

.single-article {
    max-width: none;
    padding: 0;
}

/* Widget Area Styles */
.widget-area {
    background: #FFFFFF;
    padding: 1.5rem;
}

.widget {

    /*margin-bottom: 2rem;
    */
}

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

.widget-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

@media (max-width: 768px) {
    #primary.content-area {
        flex-direction: column;
    }

    #secondary.widget-area {
        order: 2;
        flex: none;
        width: 100%;
    }

    .site-main {
        order: 1;
    }
}

.sidebar-container .widget {
    padding-bottom: 0;
    padding-top: 0;

}

.sidebar-container .widget .wp-block-heading {
    /* color: #999999; */
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5rem;
}