/**
 * Content Carousel Styles
 * 
 * @package Salisbury_Academy_Tools
 */

/* Carousel container */
.sa-content-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual item styling */
.sa-content-item {
    height: 350px;
    position: relative;
    overflow: hidden;
}

/* Image container - takes up more space now */
.sa-content-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-size: cover;
    background-position: center;
    border-radius: 5px 5px 0 0;
}

/* Content box styling - more compact */
.sa-content-box {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 5px;
}

/* Make the entire slide clickable */
.sa-content-item-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.sa-content-item-link:hover {
    text-decoration: none !important;
}

/* Heading styles */
.sa-content-box h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #002678;
    line-height: 1.3;
}

/* Description styles - reduced line height */
.sa-content-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #212529;
    line-height: 1.4;
}

/* Navigation arrows - dark blue with white rounded background */
.sa-content-carousel .swiper-button-next,
.sa-content-carousel .swiper-button-prev {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.sa-content-carousel .swiper-button-next::after,
.sa-content-carousel .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
    color: #002678;
}

.sa-content-carousel .swiper-button-next:hover,
.sa-content-carousel .swiper-button-prev:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .sa-content-item {
        height: 300px;
    }
    
    .sa-content-item-image {
        height: 65%;
    }
    
    .sa-content-box {
        padding: 12px 15px;
    }
    
    .sa-content-box h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .sa-content-box p {
        font-size: 0.875rem;
    }
    
    .sa-content-carousel .swiper-button-next,
    .sa-content-carousel .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    
    .sa-content-carousel .swiper-button-next::after,
    .sa-content-carousel .swiper-button-prev::after {
        font-size: 14px;
    }
}
