.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin: 3rem 0 1.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--teal); 
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------- */
/* Carousel Container and Wrapper                                              */
/* --------------------------------------------------------------------------- */
.swiper-container {
    position: relative;
    width: 100%;
    height: 29.17vh;
    overflow: hidden;
    background-color: var(--white);
    z-index: 10;
    margin-bottom: 3em;
    border-radius: 0.8em;
}

.swiper-wrapper {
    height: 100%;
}

/* --------------------------------------------------------------------------- */
/* Carousel Slide                                                              */
/* --------------------------------------------------------------------------- */
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
    background-color: var(--white);
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
}

.swiper-slide:hover {
    transform: scale(1.01);
}

/* --------------------------------------------------------------------------- */
/* Carousel Image                                                              */
/* --------------------------------------------------------------------------- */
.carousel-img {
    width: 50%;
    height: 100%;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* --------------------------------------------------------------------------- */
/* Carousel Card                                                               */
/* --------------------------------------------------------------------------- */
.carousel-card {
    width: 50%;
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    margin-left: -1rem;
}

.carousel-card h2 {
    font-size: clamp(1rem, 1.2vw + 1rem, 1.2rem);
    margin: 0.5rem 0;
    color: var(--teal);
    text-align: left;
}

.carousel-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    line-height: 1.4;
    font-size: 1.5ch;
    text-overflow: ellipsis;
    margin: 0;
    text-align: justify;
}

/* --------------------------------------------------------------------------- */
/* Carousel Link                                                               */
/* --------------------------------------------------------------------------- */
.carousel-link {
    text-decoration: none;
    color: inherit;
}

.carousel-link:hover {
    text-decoration: none;
}

/* --------------------------------------------------------------------------- */
/* Navigation Arrows                                                           */
/* --------------------------------------------------------------------------- */
.swiper-navigation {
    position: absolute;
    bottom: 0;
    left: 80%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 9;
}

.swiper-button-next,
.swiper-button-prev {
    position: relative;
    bottom: 0;
    width: 40px;
    height: 40px;
    color: var(--teal);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    /* darken() is a SASS function, so using a fallback here */
    color: #008080cc; /* Slightly darker teal */
}

/* Positioning individual arrows */
.swiper-button-next {
    right: 10px;
}

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

/* Arrow icons */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    content: '';
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.swiper-button-next::after {
    transform: rotate(-45deg);
}

.swiper-button-prev::after {
    transform: rotate(135deg);
}

/* --------------------------------------------------------------------------- */
/* Responsive Styles                                                           */
/* --------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .swiper-container {
        height: auto;
        overflow: hidden;
    }

    .swiper-slide {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .carousel-img {
        width: 100%;
        height: 25vh;
        padding: 0;
    }

    .carousel-card {
        width: 100%;
        padding: 0.5rem;
        margin-left: 0;
    }

    .carousel-card h2 {
        font-size: clamp(1rem, 5vw + 1rem, 1.2rem);
        text-align: center;
    }

    .carousel-card p {
        font-size: clamp(11px, 4vw + 11px, 14px);
    }
}
