/* Quiz CTA Section */
.quiz-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.quiz-cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.quiz-cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.quiz-cta-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.quiz-cta-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.quiz-cta-text p {
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.quiz-start-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.quiz-start-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Quiz Modal */
.quiz-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quiz-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Quiz Loading */
.quiz-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Quiz Start Screen */
.quiz-start {
    padding: 2rem;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.quiz-header p {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0;
}

.quiz-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-info-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.quiz-info-item i {
    color: #3b82f6;
    font-size: 1.25rem;
}

.quiz-user-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-user-info input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.quiz-user-info input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Quiz Questions */
.quiz-questions {
    padding: 1.5rem;
}

.quiz-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.quiz-progress-bar {
    flex: 1;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-right: 1rem;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-progress-info {
    font-weight: 600;
    color: #374151;
    margin-right: 1rem;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #dc2626;
    background: #fee2e2;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.quiz-question-container {
    margin-bottom: 2rem;
}

.quiz-question {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
}

.quiz-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quiz-options {
    display: grid;
    gap: 0.75rem;
}

.quiz-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.quiz-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quiz-option-indicator {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quiz-option.selected .quiz-option-indicator {
    border-color: #3b82f6;
    background: #3b82f6;
    position: relative;
}

.quiz-option.selected .quiz-option-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.375rem;
    background: white;
    border-radius: 50%;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Quiz Results */
.quiz-results {
    padding: 2rem;
    text-align: center;
}

.quiz-results-header {
    margin-bottom: 2rem;
}

.quiz-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.quiz-results-icon.pass {
    color: #10b981;
}

.quiz-results-icon.fail {
    color: #ef4444;
}

.quiz-results-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.quiz-score {
    font-size: 3rem;
    font-weight: 800;
    color: #374151;
    margin-bottom: 0.5rem;
}

.quiz-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.quiz-results-details {
    margin-bottom: 2rem;
}

.quiz-results-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.quiz-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
}

.quiz-stat i {
    color: #3b82f6;
}

.quiz-results-message {
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.quiz-results-message.pass {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.quiz-results-message.fail {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.quiz-detailed-results {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
}

.quiz-result-question {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.quiz-result-question:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.quiz-result-question h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.quiz-result-options {
    margin-bottom: 1rem;
}

.quiz-result-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    border: 2px solid transparent;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.quiz-result-option .option-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-right: 0.5rem;
    min-width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-result-option .option-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    border-radius: 50%;
    font-size: 0.75rem;
}

.quiz-result-option .option-text {
    flex: 1;
    font-weight: 500;
}

/* Correct answer styling */
.quiz-result-option.correct-answer {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.quiz-result-option.correct-answer .option-icon {
    background: #10b981;
    color: white;
}

/* User's correct answer */
.quiz-result-option.user-correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    font-weight: 600;
}

.quiz-result-option.user-correct .option-icon {
    background: #10b981;
    color: white;
}

/* User's incorrect answer */
.quiz-result-option.user-incorrect {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
    font-weight: 600;
}

.quiz-result-option.user-incorrect .option-icon {
    background: #ef4444;
    color: white;
}

/* Not answered styling */
.quiz-result-option.not-answered {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #6b7280;
    font-style: italic;
}

.quiz-result-option.not-answered .option-icon {
    background: #9ca3af;
    color: white;
}

.quiz-result-explanation {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #1e40af;
}

.quiz-results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Quiz Buttons */
.quiz-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-btn-primary {
    background: #3b82f6;
    color: white;
}

.quiz-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.quiz-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.quiz-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.quiz-btn-success {
    background: #10b981;
    color: white;
}

.quiz-btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .quiz-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-cta-icon {
        font-size: 2.5rem;
    }
    
    .quiz-modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .quiz-user-info {
        grid-template-columns: 1fr;
    }
    
    .quiz-actions {
        flex-direction: column;
    }
    
    .quiz-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-progress-bar {
        margin-right: 0;
    }
    
    .quiz-results-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-results-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .quiz-start,
    .quiz-questions,
    .quiz-results {
        padding: 1rem;
    }
    
    .quiz-header h2 {
        font-size: 1.5rem;
    }
    
    .quiz-score {
        font-size: 2rem;
    }
    
    .quiz-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Mobile-specific option numbering */
    .quiz-result-option .option-number {
        font-size: 0.8rem;
        min-width: 1.2rem;
        margin-right: 0.4rem;
    }

    .quiz-result-option {
        padding: 0.6rem;
    }
}

/* Animation for quiz transitions */
.quiz-modal-content > div {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quiz option hover effects */
.quiz-option {
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.quiz-option:hover::before {
    left: 100%;
}

/* Success/Error states */
.quiz-option.correct {
    border-color: #10b981;
    background: #d1fae5;
}

.quiz-option.incorrect {
    border-color: #ef4444;
    background: #fee2e2;
}

/* Timer warning states */
.quiz-timer.warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}


Enhanced Search Page Styles

/* Search Background Animation */
.search-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: patternShift 20s ease-in-out infinite;
}

.search-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.search-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: searchFloat 8s ease-in-out infinite;
}

.search-particle-1 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.search-particle-2 {
    width: 4px;
    height: 4px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.search-particle-3 {
    width: 8px;
    height: 8px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.search-particle-4 {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 30%;
    animation-delay: 6s;
}

/* Search Result Cards */
.search-result-card {
    position: relative;
    overflow: hidden;
}

.search-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.search-result-card:hover::before {
    left: 100%;
}

/* View Toggle Buttons */
.view-toggle {
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle.active {
    background: #3b82f6;
    color: white;
}

.view-toggle:hover:not(.active) {
    background: #f3f4f6;
    color: #374151;
}

/* Pagination Modern Style */
.pagination-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pagination-btn-modern:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateY(-1px);
}

.pagination-btn-modern.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Enhanced Suggestions Dropdown - Left Aligned & Highly Visible */
.search-suggestions,
#search-suggestions {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.3),
        0 10px 20px -5px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    left: 0 !important;
    right: auto !important;
    width: 550px;
    max-width: calc(100vw - 32px);
    z-index: 99999 !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    margin: 0 !important;
    transform: none !important;
    text-align: left !important;
}

.suggestion-item,
.suggestion-item-modern {
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 20px;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
}

.suggestion-item:hover,
.suggestion-item.bg-blue-50,
.suggestion-item-modern:hover,
.suggestion-item-modern.selected {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.suggestion-item:hover .fas,
.suggestion-item.bg-blue-50 .fas,
.suggestion-item-modern:hover .fas {
    transform: translateX(3px);
    color: #3b82f6;
}

/* Modern Suggestion Items for Search Page */
.suggestion-item-modern {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

.suggestion-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    transition: left 0.6s ease;
}

.suggestion-item-modern:hover::before {
    left: 100%;
}

.suggestion-item-modern:hover,
.suggestion-item-modern.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    border-left: 4px solid #3b82f6;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Loading State */
.suggestions-loading {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.suggestions-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Highlight Styling */
mark {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.suggestion-item:hover mark,
.suggestion-item.bg-blue-50 mark {
    background: linear-gradient(120deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* Animations */
@keyframes searchFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-15px) translateX(8px);
    }
    66% {
        transform: translateY(8px) translateX(-8px);
    }
}

@keyframes patternShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(20px) translateY(-20px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* List View Styles */
.results-list .search-result-card {
    display: flex;
    max-width: none;
    margin-bottom: 1.5rem;
}

.results-list .search-result-card img {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.results-list .search-result-card .p-6 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-particle {
        display: none;
    }

    .search-result-card {
        margin-bottom: 1rem;
    }

    .pagination-btn-modern {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .view-toggle {
        display: none;
    }

    /* Fix dropdown overflow on mobile */
    .search-suggestions,
    #search-suggestions {
        left: 50% !important;
        right: auto !important;
        width: calc(100vw - 32px) !important;
        max-width: 400px !important;
        margin: 0 16px !important;
    }
}

/* Ensure search containers don't clip dropdowns */
.search-container,
.search-input-container,
.relative {
    overflow: visible !important;
}

/* Search page specific fixes */
.search-bar-container {
    position: relative;
    z-index: 1000;
    overflow: visible !important;
}

.search-bar-container .relative {
    overflow: visible !important;
}

@media (max-width: 640px) {
    .search-suggestions,
    #search-suggestions {
        max-height: 300px;
        margin: 8px;
        left: -16px !important;
        right: 8px !important;
        max-width: calc(100vw - 16px) !important;
    }

    .suggestion-item,
    .suggestion-item-modern {
        padding: 12px 16px;
    }

    .suggestion-item h4,
    .suggestion-title-modern {
        font-size: 14px;
    }

    .suggestion-item p,
    .suggestion-description-modern {
        font-size: 12px;
    }

    .suggestion-icon-modern {
        width: 40px;
        height: 40px;
    }
}

/* Modern Suggestion Styling for Search Page */
.suggestion-icon-modern {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.suggestion-item-modern:hover .suggestion-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.suggestion-title-modern {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.suggestion-item-modern:hover .suggestion-title-modern {
    color: #3b82f6;
}

.suggestion-description-modern {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Enhanced Highlight Styling */
mark {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.suggestion-item:hover mark,
.suggestion-item.bg-blue-50 mark,
.suggestion-item-modern:hover mark,
.suggestion-item-modern.selected mark {
    background: linear-gradient(120deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.3);
}

