.description-text {
    margin-top: 5px;
    color: #42525a;
    font-size: 20px;
    font-weight: lighter;
}

.searchbar-group {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    height: auto;
    min-height: 60px;
    align-items: stretch;
    position: relative;
    gap: 5px;
}

.searchbar-form {
    display: flex;
    height: 60px;
    width: 100%;
}

.searchbar {
    width: 100%;
    border-radius: 8px 0 0 8px;
    border: 0.5px solid black;
    border-right: none;
    padding-left: 8px;
    font-size: 23px;
}

.search-button {
    width: 50px;
    border-radius: 0 8px 8px 0;
    border: 0.5px solid black;
    background-color: #3e7280;
    cursor: pointer;
}

.search-button:hover {
    background-color: #333;
}

.search-icon {
    color: white;
    font-size: 23px;
}

.recent-searches {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.recent-searches__label {
    color: #5f737c;
    font-size: 13px;
    font-weight: 600;
}

.recent-searches__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 12px;
    border: 1px solid #cbd9df;
    border-radius: 999px;
    background-color: #fff;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.recent-searches__pill a {
    color: #105f70;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.recent-searches__pill:hover {
    background-color: #eff6fa;
    border-color: #176b7a;
}

.recent-searches__pill a:hover {
    color: #102a43;
    text-decoration: underline;
}

.recent-searches__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: transparent;
    border: none;
    color: #5f737c;
    font-size: 15px;
    line-height: 1;
    padding: 0;
}

.recent-searches__remove:hover {
    background-color: #eff6fa;
    color: #b3261e;
}

.recent-searches__remove:focus-visible {
    outline: 2px solid #f5b942;
    outline-offset: 1px;
}

@media (max-width: 700px) {
    .recent-searches {
        gap: 6px;
    }
}

.search-suggestions {
    display: none;  
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: -2.4px;
    position: absolute;
    top: 100%;
    left: 7px;
    right: 48px;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    font-size: 18px;
}

.search-suggestions li {
    padding: 8px 12px;
    cursor: pointer;
}

.search-suggestions li:hover {
    background-color: #f5f5f5;
}

.suggestion-title {
    font-weight: 500;
}

.suggestion-type {
    font-size: 14px;
    color: #888;
    margin-left: 8px;
}

.search-suggestions mark {
    background-color: #54727b;
    color: white;
    font-weight: bold;
    border-radius: 2px;
}

.portal-resource__eyebrow {
    color: #54727b;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h1-upsize {
    font-size: 40px;
}

.inline-group {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.inline-group p {
    margin: 17px 0px 17px 0px;
}

.sort-filter-group {
    display: flex;
    justify-content: flex-end;
    margin: 17px 42px 17px 0px;
}

.sort-filter-toggle {
    padding: 10px 16px;
    background-color: #54727b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.sort-filter-toggle:hover {
    background-color: #333;
}

.sort-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 98;
}

.sort-filter-overlay.active {
    display: block;
}

.sort-filter-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 99;
    padding: 24px;
    transition: right 0.3s ease;
}

.sort-filter-panel.active {
    right: 0;
}

.sort-filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-filter-panel-header h2 {
    font-weight: bold;
    margin: 0;
}

.sort-filter-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #54727b;
}

.sort-filter-close:hover {
    color: #000;
}

.sort-filter-panel h3 {
    margin: 15px 0px;
}

.sort-filter-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sort-filter-panel li {
    margin-bottom: 8px;
}

.sort-filter-panel .label-list {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.sort-filter-panel .label-list span {
    text-transform: capitalize;
}

.sort-filter-panel .label-list:hover {
    background-color: #f0f0f0;
}

.sort-filter-panel input[type="radio"] {
    accent-color: #54727b;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.sort-filter-panel input[type="checkbox"] {
    accent-color: #54727b;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-label {
    padding: 10px 12px;
}

.result-bubble {
    padding: 10px 18px;
    border: 1px solid #dbe6ea;
    border-radius: 999px;
    background: #e8f3f5;
    color: #105866;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.hr-filter {
    margin-left: 10px;
}

.clear-filter {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.clear-filter-btn {
    border-radius: 8px;
    border: 0.5px solid #3e7280;
    padding: 8px 10px;
    text-decoration: none;
    color: white;
    background-color: #3e7280;
    cursor: pointer;
}

.clear-filter-btn:hover {
    background-color: #333;
}

.paging {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paging-btn {
    border-radius: 8px;
    border: 0.5px solid #3e7280;
    padding: 8px 10px;
    text-decoration: none;
    color: white;
    background-color: #3e7280;
    cursor: pointer;
}

.paging-btn:hover {
    background-color: #333;
}