/* Custom Pagination Styles */
.custom-pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    line-height: 1.4; /* Ensure proper vertical alignment */
}

.custom-pagination a,
.custom-pagination span.dots,
.custom-pagination span.current-page { /* span.current-page for non-link current page if needed */
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #1976d2; /* Theme blue */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 14px;
}

.custom-pagination a:hover {
    background-color: #eaf4ff; /* Theme light blue */
    border-color: #cce0f5;
    color: #1976d2; /* Keep text color consistent on hover */
}

.custom-pagination a.active,
.custom-pagination span.current-page.active { /* More specific for a span that is also active */
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
    font-weight: bold;
    cursor: default;
}

.custom-pagination a.disabled {
    color: #aaa;
    pointer-events: none;
    border-color: #eee;
    background-color: #f9f9f9; /* Slightly different background for disabled */
}

.custom-pagination span.dots {
    border: none;
    padding: 8px 0; /* Consistent with FAQ */
    color: #1976d2; /* Match link color */
}

/* Mobile adjustments for Custom pagination */
@media (max-width: 767px) {
    .custom-pagination { 
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .custom-pagination a,
    .custom-pagination span.dots,
    .custom-pagination span.current-page {
        padding: 6px 10px;
        margin: 0 2px;
        font-size: 13px;
    }
}

/* jQuery UI Autocomplete Hint/Message Styles */
.ui-menu-item-hint .ui-menu-item-wrapper,
.ui-menu-item-hint {
    color: #777;
    font-style: italic;
    cursor: default !important;
    background-color: #f9f9f9 !important; /* Light grey background */
    border-color: transparent !important; /* No border for hints */
    padding: 8px 12px 8px 22px; /* Top, Right, Bottom, Left (12px + 10px for left) */
    display: block;
    font-size: 0.95rem; /* Set font size to match mobile input / be slightly smaller for PC */
}

/* Prevent hover/focus effect on hint items if jQuery UI adds it by default */
.ui-menu-item-hint.ui-state-active,
.ui-menu-item-hint.ui-state-focus,
.ui-menu-item-hint:hover {
    background-color: #f9f9f9 !important;
    border-color: transparent !important;
    color: #777 !important; /* Keep text color consistent */
}

/* Ensure the overall dropdown menu still looks okay */
.ui-autocomplete {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} 