/* About page specific styles */

.clinician-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #555;
    transform: scale(1.01);
}

.meet-clinician p {
    text-align: left;
}

.clinician-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.clinician-container {
    flex-shrink: 0;
    position: relative;
    width: 400px;
    height: 400px;
    transform-origin: center center;
}

.clinician-photo {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.speech-bubble {
    position: absolute;
    width: 360px;
    left: 80px;
    bottom: 125px;
    transform: scaleX(-1);
    z-index: 2;
}

.speech-bubble-bg {
    width: 100%;
    height: auto;
}

.speech-bubble p {
    position: absolute;
    top: 38%;
    left: 47%;
    transform: translate(-50%, -50%) scaleX(-1);
    margin: 20px;
    padding: 0px;
    text-align: center;
    font-weight: bold;
    color: #333;
    width: 80%;
    font-size: 22px;
}

.clinician-intro {
    flex-grow: 1;
}

@media (max-width: 1200px) {
    .clinician-container {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .clinician-container {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .clinician-content {
        flex-direction: column;
        gap: 10px;
        /* Reduced gap for mobile */
    }

    .clinician-container {
        margin-top: -30px;
        transform: scale(0.7);
    }

    /* Add negative margin to pull content up */
    .clinician-intro {
        margin-top: -40px;
        /* Adjust this value as needed */
    }
}

@media (max-width: 576px) {
    /* .clinician-container {
        transform: scale(0.6);
    } */

    .clinician-content {
        gap: 5px;
        /* Further reduced gap for smaller screens */
    }

    .clinician-intro {
        margin-top: -60px;
        /* Adjust this value as needed */
    }
}