/* Styling for Physio Slider Widget f4b468d3 */
.physio-slider-wrapper-f4b468d3 {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 15px 70px; /* Balanced side paddings to protect arrows and card alignments */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Symmetrical spacing matching column spacing */
    box-sizing: border-box;
}

/* Row-specific Swiper layout */
.physio-swiper-container {
    width: 100%;
    overflow: visible; /* Allows offset slides to bleed nicely without clipping box shadow */
    position: relative;
}

/* Offset second row by -40px left on desktop for custom staggered grid */
.physio-row-2 {
    transform: translateX(-40px);
    width: calc(100% + 40px);
}

.swiper-slide {
    height: auto;
    display: flex;
}

.physio-card {
    position: relative;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    background-color: #0f172a; /* Deep matching fallback color */
    overflow: hidden;
    isolation: isolate; /* Fixes browser border-radius clipping during transforms */
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    height: 320px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.physio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.1) 100%);
    transition: background 0.4s ease;
    z-index: 1;
    border-radius: 30px;
}

.physio-card-content {
    position: relative;
    z-index: 2;
    padding: 20px 20px 45px 20px; /* Compact groupings with spacing for absolutely positioned button */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    text-align: left;
}

/* Compact text block spacing */
.physio-card-text-block {
    margin-bottom: 6px;
}

/* Reduced premium title and description typography */
.physio-card-title {
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px 0 !important;
    color: #ffffff;
}

.physio-card-desc {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.4;
    color: #cbd5e1;
}

/* Absolute positioned link to avoid layout shifts and clipping */
.physio-card-link {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: gap 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    align-self: flex-start;
    
    /* Off-canvas layout-shift-free state */
    transform: translateY(12px);
    opacity: 0;
    will-change: transform, opacity;
}

/* Hover effects */
.physio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.physio-card:hover .physio-card-overlay {
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.15) 100%);
}

/* Reveal Learn More link smoothly */
.physio-card:hover .physio-card-link {
    transform: translateY(0);
    opacity: 1;
}

.physio-card-link:hover {
    gap: 10px;
    color: #FC4C02;
}

.physio-card-link i {
    font-size: 10px;
}

/* Slider Controls (Placed outside padding area to look neat) */
.physio-swiper-button {
    color: #0f172a;
    background: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.swiper-button-next.physio-swiper-button {
    right: 15px;
}

.swiper-button-prev.physio-swiper-button {
    left: 15px;
}

.physio-swiper-button::after {
    font-size: 16px !important;
    font-weight: bold;
}

.physio-swiper-button:hover {
    background: #FC4C02;
    color: #ffffff;
    transform: scale(1.05);
}

/* Responsive configurations */
@media (max-width: 1023px) {
    .physio-slider-wrapper-f4b468d3 {
        padding: 10px 45px;
        gap: 12px;
    }
    
    .physio-row-2 {
        display: none !important;
        transform: none !important;
        width: 100% !important;
    }
    
    .physio-card {
        height: 280px;
    }
    
    .physio-card-title {
        font-size: 14px !important;
    }
    
    /* Fully visible link on touch targets */
    .physio-card-link {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}
