.chs-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 auto;
}

.chs-slider-inner {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.chs-slide {
    display: flex;
    flex: 0 0 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* Left: image half */
.chs-slide-image {
    flex: 0 0 50%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* Make image area a perfect square (width = height) */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    min-height: 0;
}

.chs-slide-image-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* If no image, show a neutral background */
.chs-slide-image--noimg {
    background-color: #ccc;
}

/* Right: content half */
.chs-slide-content {
    flex: 0 0 50%;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Match image height - use same aspect ratio */
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.chs-slide-title {
    font-size: 1.5rem;
    margin: 85px 0 10px 0px;
}

.chs-slide-title a {
    text-decoration: none;
    color: #111;
    font-size: 29px;
    font-weight: bolder;
    text-decoration: none !important;
}

.chs-slide-title a:hover {
    text-decoration: underline;
}

.chs-slide-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
    margin-top: 0;
    flex: 1;
    min-height: 0;
    /* Prevent text from overflowing - hide complete lines only, not partial lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10; /* Will be adjusted by JS to fit available space */
    text-overflow: ellipsis;
    word-wrap: break-word;
    /* Ensure text doesn't overflow container */
    max-height: 100%;
    box-sizing: border-box;
}

/* Navigation arrows */
.chs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 0;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
}

.chs-prev {
    left: 8px;
}

.chs-next {
    right: 8px;
}

.chs-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Dots */
.chs-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.chs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.6);
    cursor: pointer;
}

.chs-dot.chs-dot-active {
    background: #fff;
}

/* Height control (desktop/tablet).
   JS will set explicit height from data-chs-height.
*/
.chs-slider-wrapper[data-chs-height] {
    height: auto;
}

/* Make slides fill wrapper height */
.chs-slider-wrapper[data-chs-height] .chs-slide,
.chs-slider-wrapper[data-chs-height] .chs-slide-image,
.chs-slider-wrapper[data-chs-height] .chs-slide-content {
    height: 100%;
}

/* RESPONSIVE */

/* Mobile: stack image on top, content below */
@media (max-width: 767px) {
    .chs-slide {
        flex-direction: column;
    }

    .chs-slide-image,
    .chs-slide-content {
        flex: 0 0 auto;
        width: 100%;
    }

    .chs-slide-image-tag {
        height: 100%; /* keep square crop on mobile as well */
    }

    .chs-slider-wrapper {
        height: auto !important; /* let content auto expand */
    }

    .chs-nav {
        top: 40%;
    }

    .chs-slide-title {
        margin: 20px 0 10px 0px;
    }

    .chs-slide-text {
        font-size: 0.9rem;
    }
}

/* Medium devices (tablets) - still half/half but slightly adjusted text */
@media (min-width: 768px) and (max-width: 1024px) {
    .chs-slide-title {
        font-size: 1.3rem;
        margin: 60px 0 10px 0px;
    }

    .chs-slide-text {
        font-size: 0.95rem;
    }
}

