/* Search Results Container Layout Spacing */

.search-results-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Active Selected Terms Pills Container Above Search Bar */
.active-selected-terms-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.active-term-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 23.8px;
    color: #04A5C7;
    border-color: RGBA(255, 255, 255, 0);
    background-color: #F1F9FB;
}

.remove-term-btn {
    background: transparent;
    border: none;
    color: #04A5C7;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

/* Date Line above Title in Search Card */
.search-card-date-line {
    font-size: 14px;
    font-weight: 600;
    color: #04a5c7;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
    cursor: pointer;
}
.search-card-date-line svg{
    width: 16px;
    height: 16px;
}
/* Scrollable Box for Categories & Tags */
.scrollable-checkbox-box {
    /*max-height: 200px;
    overflow-y: auto;
    padding: 10px 12px;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    background: #f8fafc;*/
}

.scrollable-checkbox-box::-webkit-scrollbar {
    width: 6px;
}

.scrollable-checkbox-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.scrollable-checkbox-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Conditional News Filter Visibility */
.news-only-filter.is-hidden {
    display: none !important;
}

/* Main Search Content Column & Header Bar */
.search-main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-height: 350px;
}

.search-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: #F1F9FB;
    flex-wrap: wrap;
    gap: 15px;
    border-radius: 8px;
}

.search-results-count {
    color: #01132D;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 22px;
    font-weight: 500;
}

.search-results-count .highlight {
    color: var(--primary-color, #04a5c7);
    font-weight: 700;
}

.search-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-sort-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted, #686e77);
}

.search-sort-select {
    padding: 8px 32px 8px 14px;
    border: 1px solid #04A5C7;
    border-radius: var(--radius-pill, 30px);
    font-size: 14px;
    font-weight: 500;
    background-color: #04A5C7;
    color: #ffffff;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    /*background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304a5c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");*/
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}
.search-sort-select:focus{
    border-color: #ffffff;
    color: #ffffff;
}

/* Search Results Card List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-card {
    background: #F1F9FB;
    border: 0;
    border-radius: 8px;
    padding: 30px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;*/
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-card:hover {
    /*transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);*/
}

.search-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-type-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
}

.search-type-badge.badge-news {
    background: #f3e8ff;
    color: #6b21a8;
}

.search-card-date {
    font-size: 13px;
    color: var(--text-muted, #686e77);
}

.search-card-title {
    margin: 0;
    color: #01132D;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-card-title a {
    color: #01132D;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 22px;
    font-weight: 500;
}

.search-card-title a:hover {
    color: #01132D;
}

.search-card-title .search-type-badge{
    font-weight: 400;
    font-size: 16px;
    padding: 2px 10px;
    color: #04A5C7;
    background: transparent;
    text-transform: capitalize;
    border-radius: 100px;
    border: 2px solid #04A5C7;
    position: relative;
    top: -5px;
}

.search-card-excerpt {
    display: inline-flex;
    padding: 0;
    margin: 0;
    color: #3c4551;
    font-size: 18px;
    line-height: 1.6em !important;
    font-weight: 500;
}

.search-card-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

/*.search-read-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-grey-light, #f3f4f6);
    color: var(--text-dark, #112337);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-pill, 30px);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-read-more-btn:hover {
    background: var(--primary-color, #04a5c7);
    color: #ffffff;
    border-color: var(--primary-color, #04a5c7);
    text-decoration: none;
}*/

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    color: var(--text-muted, #686e77);
}

.search-no-results h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark, #112337);
    margin: 0 0 10px 0;
}

.search-no-results p {
    margin: 0;
    font-size: 14px;
}

.search-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.search-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid var(--border-light, #e2e8f0);
    border-top: 4px solid var(--primary-color, #04a5c7);
    border-radius: 50%;
    animation: search-spin 0.8s linear infinite;
}
.amta-pagination{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.amta-pagination .page-numbers {
    border-radius: 100%;
    padding: 15px;
    line-height: 1;
    transition: all 300ms ease 0ms;
    background: #05A5C7;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amta-pagination .page-numbers:hover, .amta-pagination .page-numbers.current{
    color: #fff;
    background: #6A207F;
    transition: all 300ms ease 0ms;
}

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