/* ----------------------------------------------------------- */
/* SEARCH RESULTS DROPDOWN                                     */
/* ----------------------------------------------------------- */
.search-results-container {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1100;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Individual Result Item */
.search-result-card {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.search-result-card:last-child {
    border-bottom: none;
}

.search-result-card:hover {
    background-color: #f9fafb;
}

/* Softer, Medium-Weight Titles */
.search-result-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500; /* Not too bold */
    color: #444;      /* Softer than black */
    line-height: 1.4;
    transition: color 0.2s ease;
}

.search-result-card:hover h3 {
    color: #000;      /* Sharpens on hover */
}

/* Feedback messages */
.search-results-container p.no-results,
.search-results-container p.error {
    padding: 24px;
    color: #999;
    text-align: center;
    font-size: 14px;
    margin: 0;
}

/* ----------------------------------------------------------- */
/* PAGINATION (Pinned to bottom of results)                    */
/* ----------------------------------------------------------- */
.search-pagination {
    padding: 10px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
}

.search-pagination .page-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 4px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.search-pagination .page-btn:hover {
    border-color: #ff7800;
    color: #ff7800;
}

.search-pagination .page-btn.active {
    background-color: #ff7800; /* Primary Color */
    color: #fff;
    border-color: #ff7800;
}

/* ----------------------------------------------------------- */
/* MOBILE FIX                                                  */
/* ----------------------------------------------------------- */
@media (max-width: 768px) {
    .search-results-container {
        width: 100%;
        left: 0;
        border-radius: 0; /* Flush look on mobile screens */
    }
}