﻿/* Custom slider styles for text visibility and responsiveness */

#custom-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.custom-slider {
    position: relative;
}

.custom-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 85%;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
    line-height: 1.2;
    box-sizing: border-box;
    word-break: break-word;
}

    .custom-slide-text > div,
    .custom-slide-text > span {
        display: block;
        margin-bottom: 8px;
    }

@media (max-width: 991px) {
    .custom-slide-text {
        font-size: 1.5rem;
        padding: 14px;
        width: 85%;
    }

        .custom-slide-text > div,
        .custom-slide-text > span {
            font-size: 1.2rem !important;
        }
}

@media (max-width: 600px) {
    .custom-slide-text {
        font-size: 1.1rem;
        padding: 8px;
        width: 78%;
        border-radius: 6px;
    }

        .custom-slide-text > div,
        .custom-slide-text > span {
            font-size: 1rem !important;
            padding: 4px 0;
        }

    .custom-slider-prev,
    .custom-slider-next {
        font-size: 1.2rem !important;
        padding: 6px 10px !important;
    }
}


/* Truncate testimonial text and allow expand/collapse or scroll for long content */

.testimonial-slider__text {
    max-height: 250px;
    overflow-y: auto;
    position: relative;
    transition: max-height 0.3s;
    margin-bottom: 10px;
    /* For scroll option, comment out the next line and uncomment overflow-y below */
    /* overflow-y: auto; */
}

    .testimonial-slider__text.expanded {
        max-height: 1000px; /* Large enough to show full text */
        overflow: visible;
    }

/*.show-more-link {
    display: inline-block;
    color: #007bff !important;
    cursor: pointer;
    font-size: 0.95em;
    margin-top: 5px;
    text-decoration: underline;
    background: none;
    border: none;
    margin-top:15px;
    padding: 0;
}*/
