/* NASAD search results page */

.search-results-section {
    padding-bottom: 4rem;
}

.search-results-hero {
    background: #fff;
    border: 1px solid rgba(68, 50, 151, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 36px rgba(68, 50, 151, 0.08);
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.search-results-hero__top {
    align-items: center;
    background: linear-gradient(135deg, #443297 0%, #5b45b8 55%, #6a52c9 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
}

.search-results-hero__label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.search-results-hero__title {
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.search-results-hero__query {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.85rem;
}

.search-results-hero__count {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

.search-results-hero__count .flaticon-checked-box:before {
    font-size: 1rem;
}

.search-results-hero__body {
    background: linear-gradient(180deg, #faf9fd 0%, #ffffff 100%);
    padding: 1.5rem 1.75rem 1.75rem;
}

.search-results-panel {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
    padding: 1.35rem 1.35rem 1.15rem;
}

.search-results-panel__header {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.search-results-panel__icon {
    align-items: center;
    background: rgba(68, 50, 151, 0.1);
    border-radius: 14px;
    color: #443297;
    display: inline-flex;
    flex-shrink: 0;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.search-results-panel__icon .flaticon-search:before {
    font-size: 1.35rem;
}

.search-results-panel__title {
    color: #1d2939;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.25rem;
}

.search-results-panel__subtitle {
    color: #667085;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.search-results-panel__form {
    margin-bottom: 1rem;
}

.search-results-panel__bar {
    align-items: center;
    background: #f8f7fc;
    border: 1px solid #e4e6ef;
    border-radius: 999px;
    display: flex;
    gap: 0.35rem;
    min-height: 58px;
    padding: 0.35rem 0.4rem 0.35rem 0.2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-results-panel__bar:focus-within {
    background: #fff;
    border-color: #443297;
    box-shadow: 0 0 0 0.2rem rgba(68, 50, 151, 0.1);
}

.search-results-panel__bar-icon {
    align-items: center;
    color: #443297;
    display: inline-flex;
    flex-shrink: 0;
    height: 42px;
    justify-content: center;
    margin-left: 0.45rem;
    width: 42px;
}

.search-results-panel__bar-icon:before {
    font-size: 1.1rem;
}

.search-results-panel__input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #1d2939;
    flex: 1 1 auto;
    font-size: 1rem;
    min-width: 0;
    outline: none;
    padding: 0.65rem 0.5rem;
}

.search-results-panel__input::placeholder {
    color: #98a2b3;
}

.search-results-panel__clear {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 50%;
    color: #667085;
    display: inline-flex;
    flex-shrink: 0;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    width: 34px;
}

.search-results-panel__clear:hover {
    background: #fff5f5;
    border-color: #fecdca;
    color: #d92d20;
}

.search-results-panel__clear .flaticon-close:before {
    font-size: 0.75rem;
}

.search-results-panel__submit {
    align-items: center;
    border-radius: 999px !important;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.65rem 1.35rem !important;
    white-space: nowrap;
}

.search-results-panel__submit .flaticon-search:before {
    font-size: 0.95rem;
}

.search-results-panel__tips {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-results-panel__tips-label {
    color: #667085;
    font-size: 0.875rem;
    font-weight: 500;
}

.search-results-panel__chip {
    background: #f4f3fa;
    border: 1px solid rgba(68, 50, 151, 0.12);
    border-radius: 999px;
    color: #443297;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.search-results-panel__chip:hover {
    background: #443297;
    border-color: #443297;
    color: #fff;
}

.search-results-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.search-results-toolbar__meta {
    color: #667085;
    font-size: 0.95rem;
    margin: 0;
}

.search-results-toolbar__meta strong {
    color: #1d2939;
}

.search-results-grid {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.search-results-empty,
.search-results-prompt {
    align-items: center;
    background: #fff;
    border: 1px dashed #d8dce8;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 560px;
    padding: 3rem 2rem;
    text-align: center;
}

.search-results-empty__icon,
.search-results-prompt__icon {
    align-items: center;
    background: rgba(68, 50, 151, 0.08);
    border-radius: 50%;
    color: #443297;
    display: inline-flex;
    font-size: 1.75rem;
    height: 72px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 72px;
}

.search-results-empty__icon .flaticon-question:before,
.search-results-prompt__icon .flaticon-search:before {
    font-size: 1.75rem;
}

.search-results-empty__title,
.search-results-prompt__title {
    color: #1d2939;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.search-results-empty__text,
.search-results-prompt__text {
    color: #667085;
    margin-bottom: 1.25rem;
    max-width: 420px;
}

.search-results-pagination {
    margin-top: 2.5rem;
}

.search-results-pagination .page_navigation {
    gap: 0.35rem;
    justify-content: center;
}

.search-results-pagination .page-item .page-link {
    border: 1px solid #e5e7ef;
    border-radius: 10px !important;
    color: #443297;
    min-width: 42px;
    text-align: center;
}

.search-results-pagination .page-item.active .page-link {
    background-color: #443297;
    border-color: #443297;
    color: #fff;
}

.search-results-pagination .pagination_page_count {
    color: #667085;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .search-results-hero__top,
    .search-results-hero__body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .search-results-panel {
        padding: 1rem;
    }

    .search-results-panel__bar {
        border-radius: 18px;
        flex-wrap: wrap;
        padding: 0.65rem;
    }

    .search-results-panel__bar-icon {
        margin-left: 0.15rem;
    }

    .search-results-panel__input {
        flex: 1 1 calc(100% - 52px);
        padding-left: 0.25rem;
    }

    .search-results-panel__clear {
        order: 3;
    }

    .search-results-panel__submit {
        justify-content: center;
        margin-top: 0.35rem;
        order: 4;
        width: 100%;
    }
}
