/* Search Modal Styles */
.search-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.show {
    display: block;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.search-modal-content {
    position: relative;
    max-width: 650px;
    width: 90%;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    margin: 100px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-close-btn:hover {
    color: #2a285f;
    transform: rotate(90deg);
}

.search-modal-form {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #2a285f;
    box-shadow: 0 0 0 3px rgba(26, 118, 209, 0.1);
}

.search-modal-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-modal-input::placeholder {
    color: #999;
}

.search-submit-btn {
    background: #2a285f;
    border: none;
    padding: 15px 25px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit-btn:hover {
    background: #2a285f;
}

.search-modal-info {
    text-align: center;
    padding-top: 20px;
}

.search-icon-circle {
    width: 80px;
    height: 80px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.search-icon-circle .fa-search {
    font-size: 32px;
    color: #1a76d1;
}

.search-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.search-modal-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: 450px;
    margin: 0 auto;
    text-align:center;
}

/* Responsive */
@media (max-width: 768px) {
    .search-modal-content {
        margin: 50px auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .search-modal-title {
        font-size: 20px;
    }
    
    .search-modal-description {
        font-size: 14px;
    }
    
    .search-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .search-icon-circle .fa-search {
        font-size: 28px;
    }
}
/* ============================================
   SEARCH RESULTS STYLING
   ============================================ */

.search-results-container {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
    display: none;
}

.search-loading,
.no-results,
.search-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-loading i {
    font-size: 32px;
    color: #1A76D1;
    margin-bottom: 10px;
}

.no-results i,
.search-error i {
    font-size: 48px;
    color: #999;
    margin-bottom: 15px;
    display: block;
}

/* Search Sections */
.search-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.search-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.see-all-link {
    display: inline-block;
    margin-top: 15px;
    color: #1A76D1;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.see-all-link:hover {
    text-decoration: underline;
}

.see-all-link i {
    margin-left: 5px;
    font-size: 12px;
}

/* ============================================
   DOCTOR RESULTS
   ============================================ */

.doctor-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.doctor-result-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.doctor-credentials {
    font-size: 13px;
    color: #1A76D1;
    margin-bottom: 3px;
}

.doctor-hospital {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.doctor-speciality {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

/* ============================================
   SPECIALITY RESULTS
   ============================================ */

.specialities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.speciality-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.speciality-item:hover {
    background: #1A76D1;
    color: white;
}

.speciality-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.speciality-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.speciality-icon i {
    font-size: 24px;
    color: #1A76D1;
}

.speciality-item:hover .speciality-icon i {
    color: #1A76D1;
}

.speciality-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   BLOG RESULTS
   ============================================ */

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.blog-result-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-result-item:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-date {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-read-more {
    display: inline-block;
    color: #1A76D1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.blog-read-more:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .specialities-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }
}

