.slidingScale {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
}

.slidingcard {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure full width on smaller screens */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.item-title {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.item-description {
    font-size: 16px;
    color: #555;
    margin: 0 0 20px 0;
}

.price-options {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to new lines */
    justify-content: center;
    gap: 10px; /* Add gap between price options */
}

.price-option {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    width: 100%; /* Full width on smaller screens */
    max-width: 45%;
    box-sizing: border-box;
    text-align: center;
}

.price-label {
    font-size: 14px;
    color: #888;
    margin: 0 0 5px 0;
}

.price-value {
    font-size: 20px;
    color: #28a745;
    margin: 0;
}

.parent-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    justify-content: space-between; /* Space items evenly */
    flex-wrap: wrap; /* Allow items to wrap to new lines */
}

.child-card {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: calc(50% - 20px); /* Adjust width of each child card */
    box-sizing: border-box;
    text-align: center;
}

.item-title {
    font-size: 20px;
    margin: 0 0 10px 0;
}

.item-description {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.modalities {
    display: flex;
    justify-content: center;
    align-items: center;
}
.practitioners {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.practitioners > .parent-card:first-child .child-card {
    max-width: 100%;
}

.offerings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.offerings .parent-card {
    display: block;
    width: calc(33.333% - 14px);
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    container-type: inline-size;
}

.offerings .child-card {
    max-width: 100%;
    height: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

.offerings .item-title {
    font-size: clamp(11px, 2.2vw, 20px);
    letter-spacing: 0.05em;
}

.offerings .item-description {
    font-size: clamp(11px, 1.4vw, 14px);
}

@supports (container-type: inline-size) {
    .offerings .item-title {
        font-size: clamp(11px, 6.5cqi, 20px);
    }

    .offerings .item-description {
        font-size: clamp(11px, 4cqi, 14px);
    }
}
.image-container {
    position: relative;
    text-align: center; /* Center-align text */
    color: white;
    width: 100%;
}

.image-container img {
    width: 100%;
    height: auto;
}

.text-overlay {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for perfect centering */
    padding: 10px;
    box-sizing: border-box;
    font-size: 20px; /* Adjust font size */
    line-height: 1.5; /* Adjust line height */
    border-radius: 5px; /* Optional for rounded corners */
    text-align: center;
    font-weight: bold;
}
.triple-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 (adjust as needed) */
    overflow: hidden;
}

.triple-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the container */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .triple-image-container {
        padding-top: 100%; /* Aspect ratio 1:1 for smaller screens */
    }
    .price-option {
        max-width: 100%; /* Full width for smaller screens */
    }
    .child-card {
        max-width: 100%; /* Full width for smaller screens */
    }
    .offerings .parent-card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
    .item-title {
        font-size: 18px; /* Adjust font size for smaller screens */
    }
    .item-description {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
    .text-overlay {
        font-size: 14px; /* Smaller font size on smaller screens */
        padding: 5px; /* Less padding on smaller screens */
    }
}

@media (max-width: 480px) {
    .triple-image-container {
        padding-top: 100%; /* Aspect ratio 1:1 for smallest screens */
    }
    .slidingcard, .parent-card {
        padding: 10px; /* Adjust padding for smaller screens */
    }
    .offerings .parent-card {
        width: 100%;
        flex: 0 0 100%;
    }
    .item-title {
        font-size: 16px; /* Further adjust font size for smallest screens */
    }
    .price-options {
        gap: 5px; /* Adjust gap for smallest screens */
    }
    .text-overlay {
        font-size: 12px; /* Even smaller font size on smallest screens */
        padding: 5px; /* Less padding on smallest screens */
    }
}
