/* Doctor Search Section */
.doctor-search {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9)),
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 8rem 5% 4rem;
    text-align: center;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-search h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 250px;
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

.search-btn {
    padding: 1rem 2rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: #34495e;
}

/* Filter Tags */
.filter-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tag {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-tag i {
    cursor: pointer;
    color: #e74c3c;
}

/* Doctors Count */
.doctors-count {
    max-width: 1200px;
    margin: 0 auto 2rem;
    color: #666;
}

/* Doctors List Section */
.doctors-list {
    padding: 4rem 5%;
    background: #f8f9fa;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.availability-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 1.5rem;
}

.doctor-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.doctor-info .specialty {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.doctor-info .credentials {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doctor-details {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-item i {
    color: #3498db;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.schedule i {
    color: #3498db;
    margin-right: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.appointment-btn,
.view-profile-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.appointment-btn {
    background: #3498db;
    color: white;
}

.view-profile-btn {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.appointment-btn:hover {
    background: #2980b9;
}

.view-profile-btn:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor-search {
        padding: 6rem 5% 3rem;
    }

    .doctor-search h2 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        align-items: center;
    }

    .search-box input,
    .search-box select,
    .search-btn {
        width: 100%;
        max-width: 300px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .filter-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .doctor-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}
