section.treatments .treatments__heading {
    margin-bottom: 50px;
    text-align: center;
}

section.treatments .treatments__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

section.treatments .treatments__card {
    display: flex;
    flex: 0 0 calc((100% - 48px) / 3); 
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
}

section.treatments .treatments__image {
    overflow: hidden; 
    max-height: 431px;
    height: 431px;
}

section.treatments .treatments__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-position: center 10%;
}

section.treatments .treatments__card:hover .treatments__image img {
    transform: scale(1.05);
}

section.treatments .treatments__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}

section.treatments .treatments__content h3 {
    margin-bottom: 20px;
    font-weight: 700 !important;
}

section.treatments .treatments__content p {
    margin-bottom: 30px;
}

section.treatments .treatments__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-top: auto;
    color: #fff;
}

section.treatments .treatments__link span {
    transition: transform 0.3s ease;
}

section.treatments .treatments__link:hover span {
    transform: translateX(5px);
}

section.treatments .treatments__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 50px;
}

section.treatments .treatments__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}

section.treatments .treatments__pagination .page-numbers.current {
    text-decoration: underline;
    text-underline-offset: 5px;
}

section.treatments .treatments__pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

section.treatments .treatments__empty {
    text-align: center;
}

@media (max-width: 991px) {
    section.treatments .treatments__card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

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

    section.treatments .treatments__card {
        flex-basis: 100%;
    }

    section.treatments .treatments__pagination {
        gap: 12px;
        margin-top: 30px;
    }

    section.treatments .treatments__pagination-arrow {
        width: 44px;
        height: 44px;
    }
}
