/* ── Search trigger button (semua navbar) ── */
.nv-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    transition: background .18s, color .18s;
    flex-shrink: 0;
    padding: 0;
    color: inherit;
}
.nv-search-btn:hover { background: rgba(255,255,255,.15); }

/* ── Search Overlay ── */
#searchOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10,15,40,.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
#searchOverlay.open {
    opacity: 1;
    pointer-events: all;
}
#searchBox {
    width: 100%;
    max-width: 680px;
    padding: 0 20px;
    transform: translateY(-20px);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}
#searchOverlay.open #searchBox {
    transform: translateY(0);
}
#searchInputWrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 0 20px;
    gap: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
#searchIcon {
    font-size: 20px;
    color: #9ca3af;
    flex-shrink: 0;
}
#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 20px;
    font-family: inherit;
    padding: 20px 0;
    background: transparent;
    color: #111827;
    min-width: 0;
}
#searchInput::placeholder { color: #d1d5db; }
#searchInput::-webkit-search-cancel-button { display: none; }
#searchClose {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
#searchClose:hover { color: #374151; background: #f3f4f6; }
#searchHint {
    text-align: center;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    margin-top: 16px;
    letter-spacing: .02em;
}

/* ── Search Results Page ── */
.sr-header {
    background: #0e1649;
    padding: 48px 0 36px;
    position: relative;
    overflow: hidden;
}
.sr-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
.sr-header-inner { position: relative; z-index: 1; }
.sr-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0 16px;
    gap: 10px;
    max-width: 640px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.sr-search-form i { font-size: 18px; color: #9ca3af; flex-shrink: 0; }
.sr-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 14px 0;
    font-family: inherit;
    color: #111827;
    background: transparent;
}
.sr-search-form input::placeholder { color: #d1d5db; }
.sr-search-form button {
    background: #bc0000;
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
    white-space: nowrap;
}
.sr-search-form button:hover { background: #960000; }
.sr-title {
    color: #fff;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    margin: 0 0 20px;
}
.sr-count { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 12px; }
.sr-count strong { color: #fff; }

.sr-body { padding: 48px 0 72px; }
.sr-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6b7280;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sr-section-title::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.sr-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.sr-card {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow .18s, border-color .18s, transform .18s;
    align-items: flex-start;
}
.sr-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    border-color: #0e1649;
    transform: translateX(4px);
}
.sr-card-img {
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.sr-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-card-body { flex: 1; min-width: 0; }
.sr-card-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.sr-tag-post { background: #fee2e2; color: #bc0000; }
.sr-tag-page { background: #dbeafe; color: #0e1649; }
.sr-tag-info { background: #dcfce7; color: #059669; }
.sr-tag-research { background: #fef3c7; color: #d97706; }
.sr-tag-event { background: #ede9fe; color: #7c3aed; }
.sr-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sr-card-meta { font-size: 11px; color: #9ca3af; display: flex; gap: 10px; flex-wrap: wrap; }
.sr-card-excerpt {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sr-card-arrow {
    color: #d1d5db;
    font-size: 18px;
    flex-shrink: 0;
    align-self: center;
    transition: color .18s, transform .18s;
}
.sr-card:hover .sr-card-arrow { color: #0e1649; transform: translateX(4px); }

.sr-empty {
    text-align: center;
    padding: 72px 0;
    color: #9ca3af;
}
.sr-empty i { font-size: 3rem; display: block; margin-bottom: 16px; }
.sr-empty p { font-size: 15px; }

mark {
    background: rgba(188,0,0,.12);
    color: #bc0000;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 600;
}
