.taxonomy-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

/* Left Sidebar */
.taxonomy-filter-sidebar {
    /* border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box; */
    flex: 0 0 30%; /* Default: 30% width */
}

/* Right Content */
.taxonomy-filter-results {
    flex: 1;
    min-width: 0;
}

/* Filters */
.taxonomy-filters {
    background-color: #f4faff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.taxonomy-section {
    /* border-bottom: 1px solid #ccc; */
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.taxonomy-section:last-child {
    border-bottom: none;
}

.taxonomy-title {
    /* font-size: 16px;
    font-weight: bold;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center; */
    font-size: 17px;
    font-weight: 600;
    border-left: 2px solid #005e8f;
    padding-left: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom:0px
}

.taxonomy-toggle {
    font-size: 28px;
    cursor: pointer;
    font-weight: 900;
}
.taxonomy-terms {
    margin-top: 10px;
}

.term-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.term-label input[type="checkbox"] {
    margin-right: 6px;
}

.term-count {
    font-size: 12px;
    color: #999;
}

/* Search Input */
.search-container {
    margin-bottom: 20px;
}

.taxonomy-search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
    padding: 10px!important;
}

.taxonomy-search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Results */
/* .results-container {
    min-height: 200px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
} */

/* Spinner */
.loading-spinner {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.taxonomy-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px 15px; */
    /* background-color: #f7f7f7; */
    /* border-bottom: 1px solid #ddd; */
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.taxonomy-filter-header .filter-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.taxonomy-filter-header .clear-filter-btn {
    background: #365e8a;
    color: white;
    padding: 10px 15px;
    font-size: 12px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.taxonomy-filter-header .clear-filter-btn:hover {
    background-color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
    .taxonomy-filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .taxonomy-filter-header .clear-filter-btn {
        align-self: flex-end;
    }
}

.taxonomy-filter-header {
    display: flex;
    justify-content: space-between;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .taxonomy-filter-sidebar {
        flex: 0 0 35%;
    }
}

@media screen and (max-width: 768px) {
    .taxonomy-filter-container {
        flex-direction: column;
    }

    .taxonomy-filter-sidebar,
    .taxonomy-filter-results {
        width: 100% !important;
        flex: 0 0 100%;
    }
}

.post-authors {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    margin: 5px 0;
}

.post-excerpt {
    margin: 15px 0;
    line-height: 1.6;
    color: #444;
}

/* .post-item {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
} */

.post-item .post-title a{
    color: #2bb8e2!important;
    font-size: 19px!important;
    line-height: 22px!important;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

/* .post-meta-info {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
} */

.post-authors, .post-journal {
    color: #555!important;
    font-size: 14px!important;
    line-height: 1.41!important;
    margin: 5px 0!important;
}

.post-meta-info strong {
    color: #333;
    margin-right: 5px;
}

article.post-item {
    margin-bottom: 30px;
}

span.term-group.pub_year {
    font-size: 14px;
}

/* Pagination Styles */
.pagination {
    display: flex!important;
    justify-content: flex-start!important;
    gap: 8px!important;
    margin: 20px 0!important;
    flex-wrap: wrap!important;
}

.page-number {
    padding: 6px 12px!important;
    border: 1px solid #ddd!important;
    background: #fff!important;
    color: #333!important;
    cursor: pointer!important;
    border-radius: 4px!important;
    transition: all 0.3s ease!important;
    font-size: 14px!important;
    min-width: 35px!important;
    text-align: center!important;
}

.page-ellipsis {
    padding: 6px 8px;
    color: #666;
    font-size: 14px;
}

.page-number.prev,
.page-number.next {
    background-color: #f4faff;
    font-weight: 500;
}

.page-number:hover {
    background: #f4faff;
    border-color: #365e8a;
}

.page-number.active {
    background: #365e8a;
    color: #fff;
    border-color: #365e8a;
}