.search-page-content {
    margin: 0 auto;
    padding: 1rem;
}

.search-form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid #b1b4b6;
    gap: 1rem;
    background: #ffffff;
}

.search-form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding-right: 2.2rem;
}

.clear-search-btn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #505a5f;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    line-height: 1;
}

.clear-search-btn:hover {
    color: #0b0c0c;
}

.version-select {
    min-width: 220px;
}

.search-button.govuk-button {
    margin: 0;
}

.search-version-info,
.search-summary,
.pagination-info {
    color: #505a5f;
    font-size: 0.95rem;
}

.search-results-header {
    margin-bottom: 1.5rem;
}

.search-results-list {
    margin-bottom: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #505a5f;
    border: 1px solid #d8dde0;
    background: #f8f8f8;
}

.search-suggestions {
    margin-top: 1.5rem;
    text-align: left;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3,
.search-examples h3 {
    color: #0b0c0c;
    margin-bottom: 0.75rem;
}

.search-suggestions ul,
.search-examples ul,
.section-filters-nav ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #d8dde0;
}

.search-intro {
    text-align: center;
    padding: 2rem 1rem;
}

.search-examples {
    margin-top: 1.5rem;
    text-align: left;
}

.search-examples a,
.view-link,
.search-section-heading a,
.section-filters-nav a {
    color: #006699;
    text-decoration: none;
}

.search-examples a:visited,
.view-link:visited,
.search-section-heading a:visited,
.section-filters-nav a:visited {
    color: #2d7ca4;
}

.search-examples a:hover,
.view-link:hover,
.search-section-heading a:hover,
.section-filters-nav a:hover {
    color: #004b70;
    text-decoration: underline;
}

.highlight {
    background: #fff3bf;
    font-weight: 700;
    padding: 0 0.1rem;
}

.search-sidebar {
    padding: 0.5rem 0;
}

.section-filters-nav li {
    margin-bottom: 0.5rem;
}

.section-filters-nav li.part-theme > strong {
    color: var(--part-accent-strong);
}

.section-filters-nav a {
    display: block;
    padding: 0.4rem 0.6rem;
    border: 1px solid #d8dde0;
    background: #ffffff;
}

.section-filters-nav li.part-theme a {
    color: var(--part-accent-strong);
}

.section-filters-nav li.part-theme a:hover {
    background: var(--part-accent-soft);
    text-decoration: none;
}

.section-filters-nav a.active {
    background: #0b0c0c;
    border-color: #0b0c0c;
    color: #ffffff;
    font-weight: 600;
}

.section-filters-nav li.part-theme a.active {
    background: var(--part-accent-strong);
    border-color: var(--part-accent-strong);
}

.search-section-group {
    margin-bottom: 1.75rem;
    border: 1px solid #b1b4b6;
    background: #ffffff;
    overflow: hidden;
}

.search-section-group.part-theme {
    border-left: 6px solid var(--part-accent, #006699);
}

.search-section-heading {
    margin: 0;
    font-size: 1.1rem;
    color: #0b0c0c;
    font-weight: 700;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #d8dde0;
    background: #f8f8f8;
}

.search-section-group.part-theme .search-section-heading {
    background: var(--part-accent-soft);
    color: var(--part-accent-strong);
    border-bottom-color: var(--part-accent-muted);
}

.search-result-item {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #e8ebed;
    background: #ffffff;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-text {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #292929;
}

.search-result-meta {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .search-form,
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .version-select,
    .search-button {
        width: 100%;
    }
}
