.bp-custom-search {
    max-width: 1400px;
    width: 100%;
    margin: auto;
}

/* Fix vertical line visual bug */
.bp-custom-search .container::before {
    display: none !important;
}

.search-results-container h2 {
    color: #181818;
    font-weight: normal;
    font-style: normal;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 4px;
    line-height: 1.2em;
    font-size: 2rem;
    margin-bottom: 30px;
}

#searchtabs {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    line-height: 40px;
    gap: 0px 20px;
    margin-bottom: -1px;
}

#searchtabs li {
    list-style: none;
    background: var(--bp-tab-color, #666);
    color: white;
    border: solid 1px var(--bp-outline-color, #333);
    padding: 0 20px;
    min-width: 120px;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 6px 6px 0 0;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

#searchtabs li a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

#searchtabs li.ui-state-active {
    border-bottom: solid 1px white;
    background: white;
    color: black;
}

#searchtabs li.ui-state-active a {
    color: black;
}

.tabs_container .ui-tabs-panel {
    padding: 40px;
    background: white;
    border: solid 1px var(--bp-outline-color, #333);
    border-radius: 0 0 8px 8px;
}

.results {
    word-break: break-word;
}

/* Result item container with divider */
.results > h4,
.results > div {
    position: relative;
}

.results > h4:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 20px;
}

/* Alternative divider approach - add padding and border to result items */
.results .result-item {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.results .result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.results h4 {
    color: #2c5aa0;
    font-weight: 600;
    font-style: normal;
    text-transform: none;
    text-decoration: none;
    letter-spacing: 0.5px;
    line-height: 1.4em;
    font-size: 1.4rem;
    margin-bottom: 12px;
    margin-top: 0;
}

.results h4:first-child {
    margin-top: 0;
}

.results h4 a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.results h4 a:hover {
    color: #1a3d6b;
    text-decoration: underline;
}

/* Metadata styling - smaller and closer together */
.results .result-meta {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.4em;
    margin-bottom: 8px;
}

.results .result-meta:last-of-type {
    margin-bottom: 12px;
}

.results .result-meta b {
    font-weight: 600;
    color: #666;
}

.results .result-description {
    color: #555;
    line-height: 1.7em;
    margin-bottom: 0;
    margin-top: 8px;
}

.results .result-description p {
    margin-bottom: 10px;
}

.results .result-description p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles: Stack tabs vertically and full width on mobile */
@media (max-width: 600px) {
    #searchtabs {
        flex-direction: column;
        gap: 10px 0;
        width: 100%;
    }

    #searchtabs li {
        min-width: 0;
        width: 100%;
        border-radius: 6px;
        font-size: 1.1em;
        padding: 12px 0;
        margin-bottom: 0;
        text-align: left;
    }

    #searchtabs li.ui-state-active {
        border-bottom: solid 1px var(--bp-outline-color, #333);
        background: white;
        color: black;
    }

    #searchtabs li a {
        color: inherit;
        padding-left: 16px;
    }

    .tabs_container .ui-tabs-panel {
        padding: 16px 4px;
    }

    .results h4 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }
}
