.carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
    padding: 2rem 0;
    perspective: 1200px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 250px;
    text-align: center;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.6s ease,
                z-index 0.6s ease;
}

.carousel-slide a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.icon-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    transition: transform 0.6s ease;
    overflow: hidden;
}

.icon-container img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.carousel-slide h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: opacity 0.6s ease;
}

.carousel-slide p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto;
    min-height: 25px;
    transition: opacity 0.6s ease;
    width:150px;
}

.carousel-nav {
    text-align: center;
    position: relative;
    z-index: 200;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    transform: scale(1.3);
}

.dot:hover:not(.active) {
    transform: scale(1.15);
}

.carousel-slide.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .carousel-track {
        height: 400px;
    }

    .carousel-slide {
        width: 95%;
        max-width: 320px;
        padding: 1.5rem 1rem;
    }

    .icon-container {
        width: 110px;
        height: 110px;
        margin-bottom: 15px;
    }

    .carousel-slide h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .carousel-slide p {
        font-size: 0.9rem;
        line-height: 1.5;
        min-height: 70px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-track {
        height: 380px;
    }

    .carousel-slide {
        max-width: 280px;
        padding: 1rem 0.75rem;
    }

    .icon-container {
        width: 90px;
        height: 90px;
    }

    .carousel-slide h3 {
        font-size: 1.1rem;
    }

    .carousel-slide p {
        font-size: 0.85rem;
        min-height: 60px;
        display: none;
    }
}