.custom-text-carousel-wrapper {
    position: relative;
    text-align: center;
}

.custom-text-carousel {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    box-sizing: border-box;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: grid;
    justify-items: center;
    width: 100%;
    gap: 10px;
}

.carousel-item h2,
.carousel-item p,
.carousel-item .btn {
    text-align: center;
}

.carousel-item .btn {
    padding: 10px 15px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

.carousel-dots {
    display: none;
    margin-top: 15px;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.dot.active {
    background: #333;
}

[type=button] {
    background-color: #B89764 !important;
    color: #fff !important;
    border: 1px solid #B89764 !important;
}

[type=button]:hover {
    background-color: #B89764 !important;
    color: #fff !important;
}

[type=button]:focus {
    background-color: #B89764 !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .custom-text-carousel {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 767px) {

    /* malo mjesta gore za strelice */
    .custom-text-carousel-wrapper {
        height: 100%;
        padding-top: 44px;
        display: grid;
        justify-content: center;
    }

    /* slider ostaje slider – ne diramo display */
    .carousel-item {
        margin: 0;
    }

    /* strelice gore lijevo */
    .carousel-arrow {
        top: 8px;
        left: 8px;
        right: auto;
        transform: none;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .right-arrow {
        left: 60px;
    }

    /* manji unutarnji razmak za mobitel */
    .custom-text-carousel {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 20px;
    }

}