/* ===============================
   SOLUTIONS SECTION MOBILE OPTIMIZATION
   =============================== */

@media screen and (max-width: 768px) {
    /* Mission / About text */
    .solutions-section .mission-text p {
        font-size: 16px; /* control font size */
        line-height: 1.6; /* control line height */
        margin-bottom: 20px; /* space below text */
        padding: 0 15px; /* horizontal padding */
        text-align: left; /* alignment */
    }

    /* Stack slides vertically and center */
    .image-slider .slider-container {
        display: flex;
        flex-direction: column; /* vertical stack */
        align-items: flex-start; /* start from left, adjust if needed */
        overflow-x: auto; /* allow horizontal scrolling if needed */
        padding-left: 35px; /* prevent slides sticking to left edge */
        margin-top: 120px;
        box-sizing: border-box;
        scroll-snap-type: x mandatory; /* optional smooth snapping */
    }

    .image-slider .slide {
        margin-bottom: 20px; /* vertical space */
        width: 270px; /* fixed width */
        max-width: 90%; /* responsive max width */
        flex-shrink: 0; /* prevent shrinking */
        text-align: center;
        scroll-snap-align: start; /* optional: aligns slides nicely */
    }

    .image-slider .slide img {
        width: 100%; /* fit slide width */
        height: auto; /* maintain aspect ratio */
        object-fit: contain; /* prevents stretching */
        display: block;
        border-radius: 8px; /* optional: rounded corners */
    }
    .image-slider .slide {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* strong drop shadow */
        border-radius: 12px; /* optional: smooth edges for shadow */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth hover effect */
    }

    /* Optional: add a hover lift effect */
    .image-slider .slide:hover {
        transform: translateY(-5px); /* lift slightly on hover */
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); /* stronger shadow on hover */
    }

    .slide-gown .slide-text {
        position: relative; /* ensure we can use top */
        top: -90px; /* move text 20px upward, adjust as needed */
        text-align: center; /* optional: keep text centered */
    }
    .slide-needle .slide-text {
        position: relative;
        top: -100px; /* adjust as needed */
        text-align: center; /* optional: keep centered */
    }
    /* Needle */
    .slide-needle .slide-text,
    .slide-needle .read-more1 {
        background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
        padding: 4px 8px; /* small padding around text */
        border-radius: 4px; /* optional: slightly rounded corners */
        display: inline-block; /* shrink to text size */
        color: #000000; /* dark text for contrast */
        margin-right: 30px;
        margin-top: 0px;
    }
    /* ===============================
   Light Background Behind Gown Slide Text
   =============================== */
    .slide-gown .slide-text,
    .slide-gown .read-more1 {
        background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
        padding: 4px 8px; /* padding around text */
        border-radius: 4px; /* optional: slightly rounded corners */
        display: inline-block; /* shrink to text size */
        color: #000000; /* dark text for contrast */
        margin-right: 30px;
        margin-top: -130px;
    }

    /* ===============================
   Light Background & Text Control for H-dialysis Slide
   =============================== */
    .slide-hdialysis .slide-text,
    .slide-hdialysis .read-more1 {
        position: relative; /* allows moving text */
        background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
        padding: 4px 8px; /* padding around text */
        border-radius: 4px; /* slightly rounded corners */
        display: inline-block; /* shrink background to text width */
        color: #000000; /* dark text for readability */
        text-align: center; /* center text */
        margin-right: 30px;
        margin-top: -60px;
    }
    /* ===============================
   Light Background & Text Control for Procedure Packs Slide
   =============================== */
    .slide-packs .slide-text,
    .slide-packs .read-more1 {
        position: relative; /* allows moving text */
        background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
        padding: 4px 8px; /* padding around text */
        border-radius: 4px; /* slightly rounded corners */
        display: inline-block; /* shrink background to text width */
        color: #000000; /* dark text for readability */
        text-align: center; /* center text */
        margin-right: 30px;
        margin-top: 41px;
    }
    /* ===============================
   Light Background & Text Control for Kits Slide
   =============================== */
    .slide-kits .slide-text,
    .slide-kits .read-more1 {
        position: relative; /* allows moving text */
        background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
        padding: 4px 8px; /* padding around text */
        border-radius: 4px; /* slightly rounded corners */
        display: inline-block; /* shrink background to text width */
        color: #000000; /* dark text for readability */
        text-align: center; /* center text */
        margin-right: 30px;
        margin-top: 124px;
    }
    /* ===============================
   Light Background & Text Control for Exam Gloves Slide
   =============================== */
    .slide-exam .slide-text,
    .slide-exam .read-more1 {
        position: relative; /* allows moving text */
        background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
        padding: 4px 8px; /* padding around text */
        border-radius: 4px; /* slightly rounded corners */
        display: inline-block; /* shrink background to text width */
        color: #000000; /* dark text for readability */
        text-align: center; /* center text */
        margin-right: 30px;
        margin-top: 76px;
    }
    /* Blurred background image */
    .solutions-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 400%;
        background-image: url("/img/herohero.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: blur(8px); /* adjust blur intensity */
        transform: scale(1.05); /* avoids edges showing after blur */
        z-index: 0; /* behind all content */
        /* Dark overlay */
        background-color: rgba(0, 0, 0, 0.4); /* adjust alpha for darkness */
        background-blend-mode: darken; /* blend the overlay with the image */
    }
}
