.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    padding: 20px 50px;
    max-width: 1240px;
    margin: 40px auto;
    row-gap: 50px;
}

.doctor-card {
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-photo {
    width: fit-content;
    margin: 0 auto;
}
.doctor-photo img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 350px;
    background: #f0f0f0;
}

.doctor-name {
    font-size: 20px;
    padding: 10px 20px;
    width: 100%;
    margin: 15px 0;
    font-weight: 500;
    position: relative;
    text-align: center;
}
.doctor-name::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    
    width: 150px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.doctor-position {
    margin: 0;
    font-size: 16px;
    color: #666;
    text-align: left;
}

@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-photo img {
        height: 420px;
        object-position: top;
    }
}