/* ===================================
   CSS RESET
   =================================== */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4, h5, h6,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font: inherit;
}

/* Remove default button styles */
button {
    border: none;
    background: none;
    cursor: pointer;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.collplant-slider {
    max-width: 1240px;
    margin: 0 auto;
    /* Clip left side only, allow right to extend to viewport */
    clip-path: inset(0 -100vw 0 0);
}

.collplant-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.collplant-slider__title {
    color: #177749;
    font-family: 'Manrope', sans-serif;
    font-size: 34px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

.collplant-slider__controls {
    display: flex;
    gap: 30px;
}

.collplant-slider__control {
    display: flex;
    padding: 10px;
    gap: 10px;
    border-radius: 60px;
    border: 1px solid #27C77A;
    background: #27C77A;   
    cursor: pointer;
}   

.collplant-slider__button {
    width: 18px;
    height: 18px;
    aspect-ratio: 1/1;
    color: #fff;
}

.collplant-slider__slides {
    display: flex;
    gap: 40px;
    /* Extend to the right edge of viewport */
    width: calc(100% + ((100vw - 1240px) / 2));
    /* Smooth transition for sliding */
    transition: transform 0.4s ease;
    /* Drag interaction */
    cursor: grab;
    user-select: none;
}

.collplant-slider__slides:active {
    cursor: grabbing;
}

.collplant-slider__slides.is-dragging {
    transition: none;
}

.collplant-slider__slide {
    display: flex;
    width: 400px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    align-self: stretch;
}

.collplant-slider__slide__image {
    width: 100%;
}

.collplant-slider__slide__image img {
    width: 100%;
    height: 320px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.collplant-slider__slide__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.collplant-slider__slide__content__title {
    color: #177749;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.collplant-slider__slide__content__text {
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;  
}

.collplant-slider__control--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.collplant-slider__footer {
    display: none;
}



/* Mobile styles */
@media (max-width: 767px) {
    .collplant-slider {
        max-width: 100%;
        padding: 0 20px;
        clip-path: none;
    }

    .collplant-slider__slides {
        width: 100%;
        gap: 40px;
    }

    .collplant-slider__slide {
        /* Show 1.2 slides: 1 full + 0.2 peek */
        width: calc((100vw - 60px) / 1.1);
    }


    .collplant-slider__controls {
        display: none;
    }

    .collplant-slider__footer {
        margin-top: 40px;
        display: block;
    }

    .collplant-slider__footer-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .collplant-slider__footer-control {
        padding: 10px;
        border-radius: 60px;
        border: 1px solid #27C77A;
        cursor: pointer;
    }

    .collplant-slider__footer-dots {
        /* Width set dynamically by JS based on actual dot count */
        overflow: hidden;
        flex-shrink: 0;
        position: relative;
    }

    .collplant-slider__footer-dots-track {
        display: flex;
        gap: 4px;
        transition: transform 0.3s ease;
    }

    .collplant-slider__footer-dot-container {
        display: flex;
        width: 24px;
        height: 24px;
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

    .collplant-slider__footer-dot {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        border-radius: 50%;
        background: #D4F4E4;
        cursor: pointer;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    .collplant-slider__footer-dot--active {
        background: #27C77A;
    }

    .collplant-slider__footer-dot--small {
        transform: scale(0.6);
    }
}
