.magic-carousel-wrapper {
    position: relative;
    padding: 0 40px 50px; /* Add space for arrows and pagination */
}

.magic-carousel {
    overflow: hidden;
}

.magic-carousel .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Stretch to fill the height */
}

.magic-card {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
}

.magic-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.magic-card-content {
    margin-top: 15px;
    flex-grow: 1; /* Allow content to grow and fill available space */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.magic-card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.magic-card-subtitle {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

.magic-card-accordion {
    width: 100%;
    margin-top: 15px;
}

.magic-card-accordion-toggle {
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 1em;
    transition: 0.4s;
    display: flex;
}

.magic-card-accordion-toggle:hover {
    background-color: #ddd;
}

.magic-card-accordion-toggle span {
    font-weight: bold;
    font-size: 1.2em;
}

.magic-card-accordion-content {
    padding: 0 10px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.magic-card-accordion-content.active {
    max-height: 200px; /* Adjust as needed */
    padding-bottom: 20px; /* Add padding to the bottom */
}

.swiper-button-next, .swiper-button-prev {
    color: #337ab7;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-pagination-bullet {
    margin: 0 5px; /* Adjust spacing between dots */
}

.swiper-pagination-bullet-active {
    background: #337ab7;
}

.swiper-pagination {
    position: absolute;
    text-align: center;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 10;
}
