/**
 * Carousel Slider Styles
 * Path: /assets/css/carousel-slider.css
 */

.banner-carousel-container {
    display: flex;
    margin-top: 4rem;
    gap: 1.25rem;
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.zt-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.zt-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.zt-carousel__container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.25rem;
    padding: 2rem 0.625rem 0.4rem;
}

.zt-carousel__container.no-transition {
    transition: none;
}

.banner-carousel {
    flex-shrink: 0;
}

.banner-carousel-item {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 1.25rem;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
    height: 25rem;
    width: 18.75rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.banner-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.banner-carousel-item:hover::before {
    opacity: 1;
}

.banner-carousel-item:hover {
    transform: translateY(-2rem);
    box-shadow: 0 1.8rem 0.8rem rgba(204, 211, 232, 0.5);
}

.zt-carousel__controls {
    gap: 1.2rem;
    display: flex;
    justify-content: space-between;
    margin-top: 1.8rem;
    padding: 0 2.5rem;
}

.zt-carousel__buttons {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    width: 100%;
    max-width: 87.5rem;
    margin: 0 auto;
}

.zt-carousel__button {
    align-items: center;
    appearance: none;
    background: #e6f0ff;
    border: 0;
    border-radius: 50%;
    color: #00053D;
    cursor: pointer;
    display: flex;
    height: 3.675rem;
    justify-content: center;
    margin: 0.75rem;
    padding: 0;
    width: 3.675rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zt-carousel__button:hover:not(:disabled) {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.19);
    transform: scale(1.05);
}

.zt-carousel__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zt-carousel__button--prev {
    margin-right: auto;
}

.zt-carousel__button--next {
    margin-left: auto;
}

.zt-carousel__button svg {
    height: 35%;
    width: 35%;
}

.zt-carousel__dots {
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.zt-carousel__dot {
    align-items: center;
    appearance: none;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: 1.25rem;
    justify-content: center;
    padding: 0;
    width: 1.25rem;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.zt-carousel__dot::after {
    content: "";
    background: #d1def2;
    border-radius: 50%;
    height: 0.75rem;
    width: 0.75rem;
    transition: all 0.3s ease-in-out;
}

.zt-carousel__dot--selected {
    width: 2.8rem;
    border-radius: 100px;
}

.zt-carousel__dot--selected::after {
    background: #00053d;
    border-radius: 100px;
    width: 2.3rem;
}

@media (max-width: 768px) {
    .banner-carousel-item {
        height: 18rem;
        width: 14rem;
    }

    .zt-carousel__button {
        height: 2.5rem;
        width: 2.5rem;
    }

    .zt-carousel__controls {
        padding: 0 1rem;
    }

    .banner-carousel-container {
        margin-top: 2rem;
    }
}