/* Features Section */
#features {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60rem;
    padding: 0 2rem;
    max-width: 90rem; /* Equivalent to max-w-7xl */
    max-height: 60rem; /* Equivalent to max-w-7xl */
    margin: 0 auto;
}

.glide {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70%;
}

.glide__track {
    height: 100%;
    width: 90%;
}

.glide__slides {
    height: 100%;
}

.glide_slide {
    height: 100%;
    padding: 1rem;
}

.slide_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(122, 132, 120, 0.2);
    padding: 1rem;
    height: 100%;
    background-color: #effff6;
}

.slide_icon {
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}

.slide_icon_img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.slide_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
}

.slide_title {
    white-space: normal;
    text-align: center;
}

.slide_title h3 {
    font-size: 2.125rem;
    font-weight: 600;
}

.slide_description {
    width: 100%;
    position: relative;
    text-align: center;
    white-space: normal;
    font-size: 1.375rem;
}

.glide__arrows {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.glide__arrow {
    background-color: rgba(108, 108, 108, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    pointer-events: auto;
}

.glide__arrow--left {
    padding-right: 1.5px;
}

.glide__arrow--right {
    padding-left: 1.5px;
}


/* Large devices (laptops/desktops) */
@media (min-width: 1440px) {
    .carousel__item {
        padding: 1rem;
    }

    .feature-title {
        font-size: 2.5rem;
    }

    .feature-description {
        font-size: 1.75rem;
    }
}

/* Medium devices (larger tablets/small laptops) */
@media (max-width: 1080px) {
    .carousel__item {
        padding: 0.5rem;    
    }

    .feature-title {
        font-size: 0.875rem;
    }

    .feature-description {
        font-size: 0.75rem;
    }
}

/* Small devices (tablets) */
@media (max-width: 810px) {
    .carousel__item {
        width: 55%;
        padding: 1rem;
        height: 85%;
    }

    .feature-title {
        font-size: 2rem;
    }

    .feature-description {
        font-size: 1.5rem;
    }

}

/* Extra small devices (phones) */
@media (max-width: 576px) {
    #features {
        padding: 0;
    }

    .carousel-container {
        margin: 0;
    }

    .carousel__item {
        padding: 0.5rem
    }

    .feature-title {
        font-size: 1.375rem;
    }

    .feature-description {
        font-size: 1.125rem;
    }

    .carousel__button--prev {
        left: 1rem;
    }
    
    .carousel__button--next {
        right: 1rem;
    }
 
}