@charset "utf-8";

:root {
    --dark_purple: hsl(245, 23%, 21%);
    --light_purple: hsl(240, 22%, 90%);
    --red: hsl(0, 57%, 58%);
    --beige: hsl(0, 10%, 90%);
}

.clinic_info {
    display: flex;
    margin: 0;
}

.about_clinic {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--red);
    color: var(--beige);
    text-align: center;
    padding: 1rem;
    flex-basis: 45%;
}

.clinic_photo {
    flex-basis: 55%;
}

.clinic_photo > img {
    max-width: 100%;
    height: auto;
    display: block;
}

.clinic_before_caption {
    text-transform: uppercase;
    font-size; 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.clinic_caption {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.clinic_description {
    font-size: 1.2rem;
    font-weight: 200;
    margin-bottom: 2rem;
}

.clinic_address {
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 2rem;
}

.clinic_phone {
    display: block;
    font-size: 2.5rem;
    color: var(--beige);
}

.clinic_time {
    font-size: 1rem;
    font-weight: 200;
    margin-bottom: 2rem;
}

@media (max-width: 1050px) {

    .template-contactspage {
        text-align: center;
    }

    .clinic_info {
        flex-wrap: wrap;
        gap: 0;
    }

    .about_clinic {
        padding: 3rem 1rem;
        flex-basis: 100%;
    }

    .clinic_photo {
        flex-basis: 100%;
    }

}

@media (max-width: 500px) {

    .clinic_before_caption {
        font-size; 1.1rem;
        margin-bottom: 1rem;
    }

    .clinic_caption {
        font-size: 2.5rem;
    }

    .clinic_description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .clinic_address {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .clinic_phone {
        font-size: 2rem;
    }

    .clinic_time {
        font-size: 13px;
        margin-bottom: 1.5rem;
    }

}