/* Container used to center the carousel that also contains the navigation buttons */
.carousel-container {
    justify-content: center;
    width: 100%;
    display: block;
    overflow: hidden;
    height: fit-content;
}

/* Track used to contain and move the slides */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    justify-content: flex-start;
    align-items: stretch;
}

/* Slide external wrapper to handle spacing between slides */
.carousel-slide-external {
    display: flex;
    padding: 0 10px;
    box-sizing: border-box;
    transition: all 0.3s ease; /* Animation of slides appearing/disappearing */
    align-items: stretch;
}

/* Slide div */
.carousel-slide {
    flex: 1;
    border-radius: 2rem;
    border: var(--box-border) 0.1rem solid;
    background: var(--box-color);
    display: flex;
    height: 100%;
    align-items: stretch;
}


.carousel-slide-internal {
    padding: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
}

/* Container for the navigation buttons */
.carousel-navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

/* Navigation buttons */
.prev-button,
.next-button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container for the navigation dots */
.carousel-navigation-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.7rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Navigation dots */
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--carousel-dot-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--btn-color);
    transform: scale(1.5);
}

.carousel-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    object-fit: contain;
}

.carousel-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;

}

.carousel-btn {
    max-width: 10rem;
    width: 100%;
}

.carousel-card-title,
.carousel-card-subtitle {
    text-align: center;
    align-items: center;
}

.carousel-card-title {
    color: var(--title-color);
    font-size: 1.75rem;
    font-weight: 600;
}

.carousel-card-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
}

.quote-style {
    font-size: 1.5rem;
    font-style: italic;
}

.quote-style::before,
.quote-style::after {
    content: '"';
    font-style: normal; /* Prevents the quotes from being italicised */
}

.carousel-card-title-container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Optional: center horizontally */
    width: 100%; /* Optional: expand to parent width */
    row-gap: 0.5rem;
    text-align: center;
    justify-content: center;
    flex-grow: 1;
}


/* iOS-specific fixes using @supports query */
@supports (-webkit-touch-callout: none) {
    .carousel-slide-internal {
        /* Ensure content is not cut off on iOS */
        padding-bottom: 1.5rem;
    }

    .btn-container {
        /* Add extra padding for iOS devices */
        padding-bottom: 1rem;
    }
}

/* Media query for smaller screens */
@media screen and (max-width: 480px) {
    .carousel-slide-internal {
        min-height: 500px; /* Slightly smaller on mobile */
    }
}