.search-page-bar-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
    left: 0;
}

.contact-page-title{
    display: flex;
    justify-content: center;
    text-align: center;
    font-weight: bolder;
    font-size: 2rem;
    margin: 0 auto 30px auto;
}
.search-page-bar-title{
    display: flex;
    justify-content: left;
    font-size: 45px;
    font-weight: 900;
    line-height: 54px;
    text-align: left;
    margin-top: 10px;
    margin-left: 0;
}

.search-page-bar {
    border: 1px solid #ced4da;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 0 10px;
    color: #495057;
    vertical-align: middle;
    height: 42px;
    width: 100%;
    margin: 30px 0;
    background-color: #ffffff;
}

.search-page-bar:focus {
    outline: none;
    border-color: #2D4456;
    box-shadow: 0 0 4px #2D4456;
}

.search-page-filters-wrapper{
    background-color: white;
    overflow: hidden;
    border: 1px solid #C8CBD4;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: max-content;
    min-width: 224px;
}

.search-page-filters-wrapper select{
    width: 100%;
    margin-bottom: 15px;
    height: calc(1.5em + .75rem - 3px);
    overflow: hidden;
    border: solid 1px lightgray;
    border-radius: 5px;
    background: #F3F3F3;
}

.search-page-filters-wrapper ul li{
    background-color: #1B2B42;
    color: white;
}

.search-page-content-wrapper{
    min-width: 75%;
    margin-bottom: 30px;
}

.search-page-filter-date-wrapper {
    margin-bottom: 18px;
    width: 100%;
}

.search-page-filters-sortby {
    font-size: 16px;
    font-weight: 500;
    color: #4F5674;
    padding-right: 5px;
    align-content: center;
    white-space: nowrap;
}


.search-page-filters-title{
    font-size: 24px;
    font-weight: 500;
    text-align: left;
    color: #0F1429;
}

.search-page-date {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-end;
    width: auto;
}

.search-filters-date-titles {
    border: none;
    background: none;
    font-size: 24px;
    font-weight: 500;
    line-height: 20px;
    text-align: right;
    color: #0F1429;

}
.search-filters-date-titles option{
    padding: 8px;

}

.search-reset-filters-button {
    position: absolute;
     margin-left: 132px;
    color: #4F5674;
    border: none;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding-top: 8px;
    white-space: nowrap;
}

.search-reset-filters-button:hover{
    text-decoration: none;
}

.search-reset-filters-button:active{
    text-decoration: none;
}

/* Option styling */
.search-filter-option-date {
    font-size: 16px;
    font-weight: 500;
    text-align: right;
    color: #0F1429;
    padding: 8px;
}

.active-nav-item{
    font-weight: bold;
    color: #000;
    background: rgba(241, 136, 5, 0.1);
}

/*Styling for ads  and requests in sidebar*/
/* Default styling */
.sidebarPromo-wrapper,
.sidebar-request-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

.ad-searchpage {
    margin-top: 32px;
}

/* Homepage specific styling */
.promo-homepage {
    width: 90%;
    margin: auto;
}

.sidebarPromo-content,
.sidebar-request-content{
    /*width: 100%;*/
    padding: 16px 32px;
    background: #F2F3F7;
    border-radius: 12px;
    text-align: left;
}

.sidebar-request-content {
    margin-top: 32px !important
}

.sidebarPromo-announcement-wrapper,
.sidebar-request-announcement-wrapper{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    white-space: nowrap !important;
}

.sidebar-request-announcement-wrapper{
    margin-right: -25px;
}

.sidebarPromo-icon-container,
.sidebar-request-icon-container{
    background: white;
    border-radius: 50%;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebarPromo-text,
.request-template-text{
    font-weight: 600;
    color: #0F1429;
}

.sidebarPromo-description,
.sidebar-request-description{
    margin-bottom: 16px;
    color: #4F5674;
    font-size: 14px;
}

.sidebarPromo-button,
.search-page-request-button,
.sidebar-request-button {
    background-color: #1E2A3D;
    border: none;
    color: white !important;
    font-weight: 500;
    border-radius: 8px;
    text-transform: none;
    padding: 12px 16px 12px 16px;
    gap: 10px;
    height: 40px;
    place-content: center;
    margin-left: -15px;
}

.search-page-filters-wrapper-clear {
    cursor: pointer;
    text-decoration: underline;
    color: #007bff;
    display: flex;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 0;
    background-color: transparent;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    justify-content: end;
}

.search-page-filters-wrapper-clear:hover, .search-page-filters-wrapper-clear:focus {
    color: #0056b3;
    text-decoration: none;
}

.search-page-filters-container-title{
    padding: 15px 0 15px 0;
    flex-wrap: nowrap !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    color: #1C1E29;
    justify-content: space-between;
}

.search-page-filters-container{
    flex-direction: column;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.search-page-filters-dropdown{
    margin-bottom: 16px;
    gap: 10px;
}

.filter-divider {
    height: 1px;
    background-color: #E5E5E5;
    width: 100%;
}

.filter-button {
    display: flex;
    height: 40px;
    padding: 12px 16px;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid #C8CBD4;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    color: #4F5674;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    align-items: center;
}

/* Styles for the active filter button */
.filter-button.active {
    background-color: #0F1429;
    color: #FFFFFF;
    border: none;
}

/* Optional: Hover state for all buttons */
.filter-button:hover {
    background-color: #EAEAEA;
    color: #4F5674;
}

/* Optional: Active button hover state */
.filter-button.active:hover {
    background-color: #3A3F54;
}

.search-page-filters-count{
    display: flex;
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    color: #4F5674;
    justify-content: left;
    margin-left: 0;
}

.search-page-request-wrapper{
    display: flex;
    justify-content: center;
    font-size: 16px;
    font-weight: bolder;
    margin: 32px 0 32px 15px;
}

.search-filters-title {
    text-align-last: center;
    padding-left: 10px;
}


.search-filter-option {
    padding-left: 30px;
}

.search-filters-title option {
    padding-left: 30px;
}

/*Pagination styling starts here*/
.pagination-search-pages-wrapper, .pagination-saved-pages-wrapper, .pagination-admin-pages-wrapper{
    margin-top: 15px;
    display: flex;
    max-height: 42px;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap !important;
}

.pagination-public-pages-wrapper, .pagination-admin-pages-wrapper{
    max-width: max-content;
    max-height: max-content;
    z-index: 1001 !important;
    margin-bottom: 75px;
    margin-top: 30px;
}

#pagination-search-pages-buttons,
#pagination-saved-pages-buttons,
#pagination-public-pages-buttons,
#pagination-admin-pages-buttons
{
    display: flex !important;
    border: solid  1px rgba(15, 20, 41, 0.4);
    border-radius: 8px !important;
    margin: 0 2px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    align-items: center !important;
    font-size: 0;
    line-height: 0;
}

#pagination-search-pages-buttons img,
#pagination-saved-pages-buttons img,
#pagination-public-pages-buttons img,
#pagination-admin-pages-buttons img
{
    height: 30px !important;
    width: 30px !important;
    padding: 5px;
}

#pagination-search-pages-showing,
#pagination-saved-pages-showing,
#pagination-admin-pages-showing .page-link
/*#pagination-public-pages-showing*/
{
    background-color: #5f6b00  !important;
    color: white !important;
    font-weight: bolder;
    border-radius: 8px !important;
    margin: 0 10px !important;
    min-width: 60px;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center;
    border: none;
}

#pagination-public-pages-single{
    display: flex !important;
    border: solid  1px rgba(15, 20, 41, 0.4);
    border-radius: 8px !important;
    margin: 0 2px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    align-items: center;
    font-weight: bolder;
    justify-content: center;
}
.pagination-public-pages-wrapper .page-item.active .page-link {
    background: #f18805 !important;
    color: white !important;
}
.popular-searches-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 30px 15px 0 15px;
}

.popular-searches-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
    gap: 10px;
}

.popular-searches-scroll::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.scroll-arrow {
    background-color: #f1f1f1;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    outline: none;
}

.scroll-arrow.left {
    left: -30px;
    background: none;
    outline: none;
}

.scroll-arrow.right {
    right: -30px;
    background: none;
    outline: none;
}

.popular-search-term {
    flex: 0 0 auto;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #0F1429;
    height: 48px;
    align-items: center;
    padding: 16px 12px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 10px;
}

.popular-search-term:last-child {
    margin-right: 0; /* No margin on the last item */
}


.popular-search-term:hover {
    background-color: #e2e2e2;
}

.popular-searches-skeleton {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    justify-content: center;
}

.skeleton-term {
    height: 48px;
    min-width: 200px;
    max-width: 300px;
    border-radius: 8px;
    background: linear-gradient(-90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 400%;
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* push the scroll target down by 100px on search page to solve scrol to top issue*/
.search-scroll-anchor {
    scroll-margin-top: 250px;
}
