.carousel__area{
    background: #2A7B9B;
    background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 130vh;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 600px;
    height: 400px;
    perspective: 1500px;
    margin-top: -4rem;
}

.carousel__track {
    width: 100%;
    height: 20%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    cursor: grab;
}

.carousel__track:active {
    cursor: grabbing;
}

.carousel__slide {
    position: absolute;
    width: 70%;
    height: 30%;
    top: 10%;
    left: 15%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0.4;
    transform: scale(0.7);
    transition: all 1s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.carousel__slide.active {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
}

.carousel__slide.left {
    transform: translateX(-120%) scale(0.7) rotateY(30deg);
    z-index: 5;
}

.carousel__slide.right {
    transform: translateX(120%) scale(0.7) rotateY(-30deg);
    z-index: 5;
}

.carousel__slide.far-left,
.carousel__slide.far-right {
    opacity: 0.2;
    transform: scale(0.6);
    z-index: 0;
}

.carousel__slide.far-left {
    transform: translateX(-240%) scale(0.6) rotateY(45deg);
}

.carousel__slide.far-right {
    transform: translateX(240%) scale(0.6) rotateY(-45deg);
}

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(64, 64, 64, 0.5);
    color: #ffffff;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
}

.carousel__arrow.left {
    left: 10px;
}

.carousel__arrow.right {
    right: 10px;
}

.carousel__nav {
    position: absolute;
    top: 140%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; /* Add this */
    gap: 10px;
    z-index: 20;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.carousel__dot.active {
    background: #115301;
}

/*responsiveness*/

@media (max-width: 768px) {

    .carousel__area{
        height: 80vh;
    }

    .carousel {
        height: 50vh;
    }

    .carousel__slide {
        width: 90%;
        left: 5%;
    }

    .carousel__arrow {
        font-size: 1.25rem;
        width: 32px;
        height: 32px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .carousel__nav {
        top: 130%;
    }
}

@media (max-width: 480px) {

    .carousel__area{
        height: 80vh;
    }

    .carousel {
        height: 45vh;
    }

    .carousel__slide {
        width: 100%;
        left: 0;
    }

    .carousel__arrow {
        font-size: 1rem;
        width: 28px;
        height: 28px;
    }

    .card-text {
        font-size: 0.85rem;
    }
    .carousel__nav {
        top: 130%;
    }
}
