/**
 * Swiper Slider Widget Styles
 */

/* Hide slider until initialized to prevent flash */
.swiper-slider-wrapper .swiper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.swiper-slider-wrapper .swiper.swiper-initialized {
    opacity: 1;
    visibility: visible;
}

.swiper-slider-wrapper {
    --header-spacing: 20px;
    --per-view: 3;
    --gap: 20px;
    --per-view-tablet: 2;
    --per-view-mobile: 1;
}

.swiper-slider-wrapper .swiper-slide {
    padding: 1px;
}

/* Header Styles */
.swiper-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 1rem;
}

.swiper-slider-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.swiper-slider-arrows {
    display: flex;
    gap: 8px;
}

/* Arrow Styles */
.swiper-slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    transition: color 0.3s ease, transform 0.2s ease;
    color: var(--e-global-color-text, #333);
}

.swiper-slider-arrow i {
    font-size: 24px;
    display: block;
}


.swiper-slider-arrow:focus {
    outline: 2px solid var(--e-global-color-02682fb, #9CD83E);
    outline-offset: 2px;
}

.swiper-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Card Styles */
.swiper-slide-card {
    height: 100%;
    background-color: var(--e-global-color-secondary, #ffffff);
    border-radius: 8px;
}

.swiper-slide 
{
    max-width: 100%;
    width: 320px;
}

/* Image Card Styles */
.swiper-slide-card.image-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.swiper-slide-card.image-card .swiper-card-image {
    width: 100%;
    display: block;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    object-fit: cover;
}

.swiper-slide-card.image-card .swiper-card-text {
    margin: 0;
    line-height: 1.5;
    padding: 20px;
    background-color: #E8EBF4;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid var(--e-global-color-text, #e0e0e0);
    flex: 1;
}

/* Text Card Styles */
.swiper-slide-card.text-card {
    padding: 20px;
    background-color: #4872AE!important;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    --title-spacing: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.swiper-card-title {
    margin: 0 0 var(--title-spacing, 8px) 0;
    font-weight: 600;
    line-height: 1.3;
}

.swiper-card-description {
    margin: 0;
    line-height: 1.5;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .swiper-slider-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .swiper-slider-arrows {
        align-self: flex-end;
    }
}


.swiper {
    height: 100%;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
}

h2.swiper-slider-title {
    margin-bottom: 10px;
    font-weight: 900;   
    font-size: 29px;
    line-height: 38px;
    letter-spacing: 0.2px;
}

@media (min-width: 768px) {
    h2.swiper-slider-title {
        margin-bottom: 30px;
        font-weight: 900;   
        font-size: 35px;
        line-height: 45px;
    }
}

.swiper-card-title 
{
    margin-bottom: 10px;

    font-weight: 800;
    font-size: 22px;
    line-height: 32px;
    color: #FFBC0D;
}

.swiper-card-description
{
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #fff;
}

.swiper-slider-arrow-prev 
{
    transform: rotate(180deg);
}

.swiper-slider-arrow:hover, .swiper-slider-arrow:focus
{
    background: transparent;
}

.swiper-slider-arrow:focus-visible 
{
    background: transparent;
    outline: 2px solid #4872AE;
}