/* ==========================================================================
   PHYSIOTHERAPY SERVICES SLIDER - STYLESHEET (FLEXIBLE INTEGRATION)
   ========================================================================== */

/* Design System Tokens (CSS Variables) - Modify these to customize styles */
:root {
    --physio-text-color: #0c231e;               /* Heavy forest green text */
    --physio-card-bg: #ffffff;                  /* Service card background */
    --physio-card-radius: 25px;                 /* Card rounded corners (Figma: 25px) */
    --physio-card-padding-x: 14px;              /* Title padding horizontal (Figma: 14px) */
    --physio-card-padding-y: 6px;               /* Title padding vertical (Figma: 6px) */
    --physio-card-gap: 24px;                    /* Gap between cards */
    --physio-font-title: "Helvetica Now Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --physio-transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Slider Section Wrapper - Background and Padding removed as requested */
.physio-slider-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Slider Header (Contains navigation arrows) */
.physio-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Circular Navigation Controls */
.physio-slider-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.physio-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; /* Figma spec */
    height: 42px; /* Figma spec */
    border-radius: 40px; /* Figma spec */
    background: #ffffff;
    border: none; /* Figma spec: no border */
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
    box-shadow: none; /* Figma spec: flat button */
    transition: opacity 0.3s ease;
}

/* Arrow SVG specs from Figma */
.physio-nav-btn svg {
    width: 20px;
    height: 14px;
    display: inline-block;
}

.physio-nav-btn svg path {
    fill: #0F3C2F; /* Figma arrow green color */
}

/* NO HOVER COLOR FLIP FOR BUTTONS - flat layout */
.physio-nav-btn:hover {
    opacity: 1;
    transform: none;
}

.physio-nav-btn:active {
    opacity: 1;
}

/* Navigation Disabled state */
.physio-nav-btn:disabled,
.physio-nav-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: #ffffff;
}

/* Slider Main Viewport */
.physio-slider-viewport {
    position: relative;
    width: 100%;
    margin: 0;
    overflow-x: auto; /* Native overflow horizontal scroll */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    padding-bottom: 20px; 
    margin-bottom: -20px; 
}

.physio-slider-viewport::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Webkit browsers */
}

/* Horizontal Track holding the cards */
.physio-slider-track {
    display: flex;
    gap: var(--physio-card-gap);
    transition: transform var(--physio-transition-smooth);
    will-change: transform;
    width: 100%;
}

/* Individual Service Cards - Figma Layout Specs */
.physio-card {
    flex: 0 0 calc((100% - (3 * var(--physio-card-gap))) / 4); /* 4 Cards in row */
    background: var(--physio-card-bg);
    border-radius: var(--physio-card-radius); /* 25px */
    border: 1px solid rgba(1, 1, 1, 0.08); /* Figma border */
    padding: 6px 6px 14px 6px; /* Figma card padding */
    gap: 14px; /* Figma inner gap between image and text wrapper */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    margin: 0;
    box-shadow: none; /* No shadow as per Figma spec */
    transform: none;
    transition: none;
}

/* Hover remains static (no transform movement) */
.physio-card:hover {
    transform: none;
    box-shadow: none;
}

/* Image container - Figma: width: 333px; height: 328px; border-radius: 22px 22px 0 0; */
.physio-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 333 / 328; /* Figma aspect ratio */
    border-radius: 22px 22px 0 0; /* Rounded corners at top of the image wrapper */
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.physio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    transform: none;
    transition: none;
}

.physio-card:hover .physio-card-image {
    transform: none; /* No zoom */
}

/* Typography Text Area - Figma: display: flex; padding: 6px 14px; justify-content: center; align-items: center; */
.physio-card-content {
    padding: var(--physio-card-padding-y) var(--physio-card-padding-x); /* 6px 14px */
    background: var(--physio-card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    border: none;
    text-decoration: none;
    margin: 0;
}

/* Title Typography - Figma Specs */
.physio-card-title {
    color: #010101; /* Figma color */
    font-family: var(--physio-font-title);
    font-size: 18px; /* Figma size */
    font-style: normal;
    font-weight: 700; /* Figma bold weight */
    line-height: 1.1; /* Figma line-height 110% */
    text-transform: capitalize; /* Figma capitalize text-transform */
    margin: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
    border: none;
    box-shadow: none;
}

/* Ensure no text-decorations, underlines, transforms, zooms, or opacity shifts leak on active/visited/hover links from theme defaults */
.physio-slider-section .physio-slider-track a.physio-card,
.physio-slider-section .physio-slider-track a.physio-card:hover,
.physio-slider-section .physio-slider-track a.physio-card:focus,
.physio-slider-section .physio-slider-track a.physio-card:active {
    text-decoration: none;
    border-bottom: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    background: var(--physio-card-bg);
    border: 1px solid rgba(1, 1, 1, 0.08);
}

.physio-slider-section .physio-slider-track a.physio-card:hover .physio-card-image {
    transform: none;
}

.physio-slider-section .physio-slider-track a.physio-card .physio-card-title,
.physio-slider-section .physio-slider-track a.physio-card:hover .physio-card-title,
.physio-slider-section .physio-slider-track a.physio-card * {
    text-decoration: none;
    border-bottom: none;
    box-shadow: none;
}

.physio-slider-section .physio-slider-track a.physio-card:hover .physio-card-title {
    color: #010101;
}

/* ==========================================================================
   RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */

/* 1. Large Screens & Laptops (3 Cards in Viewport) */
@media screen and (max-width: 1100px) {
    :root {
        --physio-card-gap: 20px;
    }
    .physio-card {
        flex: 0 0 calc((100% - (2 * var(--physio-card-gap))) / 3); /* 3 cards */
    }
    .physio-card-title {
        font-size: 17px;
    }
}

/* 2. Tablets & Small Devices (2 Cards in Viewport) */
@media screen and (max-width: 768px) {
    :root {
        --physio-card-gap: 16px;
    }
    .physio-card {
        flex: 0 0 calc((100% - (1 * var(--physio-card-gap))) / 2); /* 2 cards */
    }
    .physio-card-title {
        font-size: 16px;
    }
}

/* 3. Mobile View (1.25 Cards in Viewport - Visual Cue of Next Card) */
@media screen and (max-width: 480px) {
    :root {
        --physio-card-gap: 12px;
    }
    .physio-card {
        flex: 0 0 78%; /* Shows 1 card fully and 22% of the next card */
    }
    .physio-slider-header {
        margin-bottom: 24px;
    }
    .physio-nav-btn {
        width: 46px;
        height: 42px;
    }
    .physio-card-title {
        font-size: 15px;
    }
}
