/* Base styles - applied to both mobile and desktop */
.search-container {
    text-align: center;
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
}

.search-container input[type="text"] {
    width: 80%;
    padding: 5px;
}

.search-container button {
    font-size: 125%;
    padding: 5px 10px;
}

/* Styles for screens wider than 600px (typically desktops) */
@media (min-width: 600px) {
    .search-container input[type="text"] {
        width: 50%; /* Larger input field for desktop */
    }

    /* Additional desktop-specific styles can be added here */
}

/* Styles for screens smaller than 600px (typically mobiles) */
@media (max-width: 599px) {
    .search-container {
        text-align: center;
    }

    /* Additional mobile-specific styles can be added here */
}


#search-input {
    font-size: 125%;
}

#search-hits {
    text-align: left;
    margin-top: 1.5em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#search-hits em {
    font-weight: bold;
    background-color: yellow;
}

#search-hits .hit {
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

#search-hits .hit .doc {
    font-size: 95%;
    color: #666;
}

#search-hits .hit .link {
    font-size: 120%;
    font-weight: bold;
}

#search-pagination {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
}

#search-pagination .page-link {
    padding: 0.5em 0.75em;
    margin: 0.25em;
    font-size: 120%;
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 0.25em;
}

#search-pagination .page-link:hover {
    background-color: #ddd;
}

#search-pagination .page-link.active {
    background-color: #ccc;
}

.filter-container{
    background-color: #f9f9f9;
}

.filter-section  {
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group > label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    box-sizing: border-box;
    text-align: left;
}

.dropdown-toggle:hover {
    background-color: #f5f5f5;
}

.dropdown-toggle .arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.dropdown-toggle.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left !important;
}

.dropdown-toggle .selected-text {
    text-align: left;
    flex: 1;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu label {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    text-align: left;
}

.dropdown-menu label:hover {
    background-color: #f0f0f0;
}

.dropdown-menu input[type="checkbox"] {
    margin: 0;
    margin-right: 8px;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
}

.filter-tags-container {
    margin: 20px auto;
    padding-bottom: 15px;
    padding-left:15px;
    padding-right:15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    background-color: white;
    color:  #1e3a5f;
    padding: 5px 5px;
    border-radius: 15px;
    font-size: 14px;
    gap: 8px;
    border: 1px solid #1e3a5f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-tag .tag-label {
    font-weight: normal;
}

.filter-tag .remove-tag {
    cursor: pointer;
    background: none;
    border: none;
    color: #1e3a5f;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.filter-tag .remove-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.clear-all-filters {
    color: #1e3a5f;
    cursor: pointer;
    font-size: 14px !important;
    background: none;
    border: none;
    padding: 8px 0;
    text-decoration: underline;
}

.clear-all-filters:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filter-tags-container:empty {
    display: none;
}