section.treatment_categories .treatment_categories__heading {
    margin-bottom: 50px;
    text-align: center;
}

section.treatment_categories .treatment_categories__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

section.treatment_categories .treatment_categories__card {
    display: flex;
    flex: 0 1 calc((100% - 60px) / 3);
    flex-direction: column;
    min-width: 0;
    overflow: hidden; 
    border-radius: 16px;
}

section.treatment_categories .treatment_categories__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.5;
}

section.treatment_categories .treatment_categories__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

section.treatment_categories .treatment_categories__card:hover .treatment_categories__image img {
    transform: scale(1.1);
}

section.treatment_categories .treatment_categories__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

section.treatment_categories .treatment_categories__content h3 {
    /* margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2; */
    margin-bottom: 25px;
    font-weight: 700;
}

section.treatment_categories .treatment_categories__content p {
    /* margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.4; */
    margin-bottom: 25px;
}

section.treatment_categories .treatment_categories__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 10px 20px;
}

section.treatment_categories .treatment_categories__link:hover,
section.treatment_categories .treatment_categories__link:focus-visible {
    color: #fff;
}

@media (max-width: 991px) {
    section.treatment_categories .treatment_categories__card {
        flex-basis: calc((100% - 30px) / 2);
    }
}

@media (max-width: 767px) {
    section.treatment_categories .treatment_categories__heading {
        margin-bottom: 30px;
    }

    section.treatment_categories .treatment_categories__card {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%; 
    }
}
