.ithive-slider {
    position: relative;
    display: grid;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ithive-slider-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.ithive-slider * {
    box-sizing: border-box;
}

.ithive-slider-list {
    position: relative;
    display: grid;
    align-content: stretch;
    margin: 15px -10px;
    padding: 0;
    list-style: none;
    transition-property: transform;
    transform: translate3d(0, 0, 0);
}

.ithive-slider.init .ithive-slider-list {
    grid-auto-flow: column;
}

.ithive-slider-item {
    display: block;
    padding: 0 10px;
}

.ithive-slider-item * {
    max-width: 100%;
}

/* buttons */
.ithive-slider-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 10px;
    width: 30px;
    height: calc(100% - 28px);
    outline: none;
    background-color: transparent;
    cursor: pointer;
    transition: border, background 0.3 ease;

    &:active,
    &:focus {
        outline: none;
    }

    &::before {
        border-top: 2px solid #868d95;
        border-left: 2px solid #868d95;
        border-radius: 4px 0 0 0;
        width: 10px;
        height: 10px;
        content: "";
    }

    &:focus::before {
        border-color: #29384d;
    }

    &:active::before {
        border-color: #3b506e;
    }

    &:hover::before {
        border-color: #5b6573;
    }

    &:disabled {
        cursor: default;
    }
}

.ithive-slider-btn-prev {
    right: auto;
    left: 0;

    &::before {
        transform: rotate(-45deg);
    }
}

.ithive-slider-btn-next {
    right: 0;
    left: auto;

    &::before {
        transform: rotate(135deg);
    }
}
/* end buttons */

/* pagin */
.ithive-slider-pagin {
    display: grid;
    grid-auto-flow: column;
    gap: 10px;
    justify-content: center;
}

.ithive-slider-pagin-item {
    cursor: pointer;
}

.ithive-slider-pagin-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #3bc8f5;
    border-radius: 100px;
    width: auto;
    min-width: min-content;
    height: auto;
    outline: none;
    font-size: 14px;
    line-height: 100%;
    color: #333333;
    background-color: transparent;
    cursor: pointer;
    transition-timing-function: ease, linear, ease, ease;
    transition-duration: 0.3s;
    transition-property: border, width, color, background;

    &.active {
        color: #ffffff;
        background-color: #3bc8f5;
    }

    &::active,
    &::focus {
        outline: none;
    }

    &:focus {
        border-color: #00bfff;
        background-color: #00bfff;
    }

    &:active {
        border-color: #12b1e3;
        background-color: #12b1e3;
    }

    &:hover {
        border-color: #3eddff;
        background-color: #3eddff;
    }
}

/* num  */
.ithive-slider-pagin-item--num .ithive-slider-pagin-btn {
    padding: 5px;
    border-radius: 4px;
    height: 20px;
}

/* disc */
.ithive-slider-pagin-item--disc .ithive-slider-pagin-btn {
    width: 10px;
    height: 10px;
}

/* circle */
.ithive-slider-pagin-item--circle {
    & .ithive-slider-pagin-btn {
        width: 13px;
        height: 13px;

        &.active,
        &:focus,
        &:active,
        &:hover {
            border-width: 3px;
            background-color: transparent;
        }
    }

    & svg {
        position: absolute;
        top: -7px;
        left: -7px;
        display: none;
    }

    & circle {
        fill: transparent;
        stroke: #3bc8f5;
        stroke-width: 2px;
        stroke-dasharray: 38;
        stroke-dashoffset: 38;
        transform: rotate(-90deg);
        transform-origin: center;
    }

    &.ithive-slider-pagin-item--progress {
        & .ithive-slider-pagin-btn  {
            position: relative;
            z-index: 10;
            border-width: 2px;
            overflow: hidden;
            width: 14px;
            height: 14px;
            opacity: 0.6;

            &:focus {
                border-color: #00bfff;
            }

            &:active {
                border-color: #12b1e3;
            }

            &:hover {
                border-color: #3eddff;
            }

            &.active {
                border-width: 0;
                opacity: 1;

                & svg {
                    display: block
                }
            }
        }
    }
}

/* square  */
.ithive-slider-pagin-item--square .ithive-slider-pagin-btn {
    border-radius: 0;
    width: 10px;
    height: 10px;
}

/* line */
.ithive-slider-pagin--line {
    justify-content: normal;
}

.ithive-slider-pagin-item--line {
    background-color: rgba(255, 255, 255, 0.4);

    & .ithive-slider-pagin-btn {
        gap: 5px;
        width: 100%;
        height: 5px;
    }

    &.ithive-slider-pagin-item--progress {
        & .ithive-slider-pagin-btn {
            position: relative;
            border: none;
            height: 3px;
            width: 0;

            &::before {
                position: absolute;
                right: 0;
                left: 0;
                background-color: rgba(255, 255, 255, 0.3);
                content: "";
            }

            &.active {
                width: 0;
                background-color: #3bc8f5;
            }
        }
    }
}
/* end pagin */