.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0A1F2E;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid #08BABB;
    border-radius: 8px;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid rgba(8, 186, 187, 0.2);
    transition: background-color 0.2s;
}

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

.search-result-item:hover {
    background-color: rgba(8, 186, 187, 0.1);
}

.search-result-item a {
    text-decoration: none;
    color: inherit;
}

.search-result-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.search-result-content {
    flex: 1;
}

.search-result-title{
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.search-result-item:hover .search-result-title {
    margin: 0;
    color: #08BABB;
    font-size: 1rem;
    font-weight: 600;
}

.search-result-item:hover .search-result-description {
    background-color: transparent;
}

.search-result-description {
    margin: 5px 0;
    color: #888 !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

.search-result-date {
    color: #08BABB;
    font-size: 0.8rem;
}

.search-result-category {
    display: inline-block;
    padding: 2px 6px;
    background-color: #08BABB;
    border-radius: 4px;
    font-size: 0.75em;
    color: #0A1F2E;
    margin-left: 8px;
    font-weight: 600;
}

/* News specific styles */
.news-result {
    background-color: #0A1F2E;
}

.news-result p{
    color : #888 !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
}

.news-result .search-result-date {
    display: block;
    margin-top: 5px;
}

/* Page specific styles */
.page-result {
    background-color: #0A1F2E;
}

.search-result-matches {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.match-type {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: rgba(8, 186, 187, 0.2);
    color: #08BABB;
}

.match-type.title {
    background-color: rgba(8, 186, 187, 0.3);
    color: #08BABB;
}

.match-type.heading {
    background-color: rgba(8, 186, 187, 0.25);
    color: #08BABB;
}

.match-type.content {
    background-color: rgba(8, 186, 187, 0.15);
    color: #08BABB;
}

.search-no-results,
.search-error {
    padding: 15px;
    text-align: center;
    color: #888;
}

.search-error {
    color: #ff4444;
}

.search-result-item.news-result .search-result-description {
    background: transparent;
    color: #888 !important;
}

.search-result-description {
    color: #888 !important;
    background: transparent;
} 

.match-type.news {
    background-color: rgba(8, 186, 187, 0.2);
    color: #08BABB;
}

/* ===========================================
   ENHANCED SCROLLBAR STYLING
   =========================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
.search-results::-webkit-scrollbar {
    width: 10px;
}

.search-results::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #0A1F2E 0%, #071621 100%);
    border-radius: 8px;
    border: 1px solid rgba(8, 186, 187, 0.2);
    margin: 2px 0;
}

.search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #08BABB 0%, #20c997 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #20c997 0%, #08BABB 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: scaleX(1.1);
}

.search-results::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #0A1F2E 0%, #08BABB 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-results::-webkit-scrollbar-corner {
    background: #0A1F2E;
    border-radius: 8px;
}

/* Firefox scrollbar styling */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: #08BABB #0A1F2E;
}

/* Custom scrollbar for older browsers */
.search-results {
    scrollbar-face-color: #08BABB;
    scrollbar-track-color: #0A1F2E;
    scrollbar-arrow-color: #08BABB;
    scrollbar-shadow-color: rgba(8, 186, 187, 0.3);
}

/* Smooth scrolling behavior */
.search-results {
    scroll-behavior: smooth;
}

/* Enhanced scrollbar for mobile devices */
@media (max-width: 768px) {
    .search-results::-webkit-scrollbar {
        width: 8px;
    }
    
    .search-results::-webkit-scrollbar-thumb {
        border-radius: 6px;
    }
    
    .search-results::-webkit-scrollbar-track {
        border-radius: 6px;
    }
}

/* Scrollbar animation for better UX */
@keyframes scrollbarGlow {
    0%, 100% {
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 8px rgba(8, 186, 187, 0.3);
    }
}

.search-results::-webkit-scrollbar-thumb:hover {
    animation: scrollbarGlow 2s ease-in-out infinite;
}