/* Thrive Carousel — Elementor Widget */

.thrive-carousel {
    position: relative;
    overflow: hidden;
}

.thrive-carousel__track-wrap {
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
}

.thrive-carousel__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.thrive-carousel__slide {
    flex: 0 0 auto;
}

.thrive-carousel__card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: #c8c8c8;
    height: 500px;
}
@media (max-width: 575px) {
    .thrive-carousel__card {
        height: 456px !important;
    }
}

.thrive-carousel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Overlay: default position — JS overrides per slide on desktop */
.thrive-carousel__overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    top: auto;
    right: auto;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 16px 20px;
    width: 200px;
    box-sizing: border-box;
}

.thrive-carousel__stat {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 6px;
}

.thrive-carousel__text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 4px;
}

.thrive-carousel__note {
    font-size: 0.7rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ── Nav container ── */
.thrive-carousel__nav-container {
    max-width: 1200px;
    margin: 28px auto 0;
    box-sizing: border-box;
}

.thrive-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Dots ── */
.thrive-carousel__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thrive-carousel__dot {
    display: block;
    aspect-ratio: 1;
    height: 4px;
    border-radius: 99px;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: #c8d0d0;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.thrive-carousel__dot.is-active {
    width: 40px;
    background-color: #1a4040;
}

.thrive-carousel__dot:focus-visible {
    outline: 2px solid #1a4040;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Arrows ── */
.thrive-carousel__arrows {
    display: flex;
    gap: 8px;
}

.thrive-carousel__btn-prev,
.thrive-carousel__btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #c8d4d4;
    background-color: transparent;
    color: #2d4a4a;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.thrive-carousel__btn-prev:hover,
.thrive-carousel__btn-next:hover {
    background-color: #e8eded;
    border-color: #a8bcbc;
}

.thrive-carousel__btn-prev:focus-visible,
.thrive-carousel__btn-next:focus-visible {
    outline: 2px solid #1a4040;
    outline-offset: 2px;
}

.thrive-carousel__btn-prev:disabled,
.thrive-carousel__btn-next:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Mobile: horizontal swipe carousel, hide navigation ── */
@media (max-width: 767px) {
    .thrive-carousel {
        overflow: hidden;
    }

    .thrive-carousel__track-wrap {
        /* JS clears paddingLeft on mobile, but !important handles resize debounce lag */
        padding-left: 0 !important;
        overflow: hidden;
    }

    .thrive-carousel__track {
        gap: 0 !important;
    }

    .thrive-carousel__slide {
        /* Override Elementor-generated slide width rule */
        width: 100% !important;
    }

    .thrive-carousel__nav-container {
        display: none;
    }

    .thrive-carousel__overlay {
        /* JS clears per-slide inline positioning on mobile; CSS vars supply mobile offset */
        top: auto;
        right: auto;
        bottom: var(--tc-mob-bottom, 20px);
        left: var(--tc-mob-left, 20px);
    }
}
@media (max-width: 575px) {
    .thrive-carousel__overlay {
        top: auto !important;
        right: auto !important;
        bottom: 8px !important;
        left: 8px !important;
        display: flex !important;
        flex-direction: row;
		align-items: center;
		gap: 12px 16px;
        flex-wrap: wrap !important;
        padding: 24px !important;
        width: calc(100% - 16px) !important;
    }
    .thrive-carousel__text {
        width: 56% !important;
		margin: 0 !important;
    }
    .thrive-carousel__stat {
        width: 36% !important;
		margin: 0 !important;
    }
    .thrive-carousel__track {
        gap: 0 !important;
    }
}

