/* MCAN Hero Slider Module */

.mc-hero__slider-wrap {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: visible;
    /* Allow bottom-right overflow */
}

/* Prevent CLS before Swiper initializes */
.mc-hero__slider:not(.swiper-initialized) .swiper-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.mc-hero__slider:not(.swiper-initialized) .swiper-slide:first-child {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Individual Slide */
.mc-hero-slide {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    /* Allow ba-wrap to overflow */
    background: transparent;
}

/* Main Image */
.mc-hero-slide__inner {
    width: 100%;
    display: block;
}

.mc-hero-slide__main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* After Image (Small Bottom Right) */
.mc-hero-slide__ba-wrap {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 40%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Allow Swiper to overflow so our -15px image is visible */
.mc-hero__slider-wrap .swiper {
    overflow: visible !important;
}

.mc-hero-slide__ba-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Top Left Badge */
.mc-hero-slide__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    color: #ffffff78;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
}

/* Patient Info (Bottom Left) */
.mc-hero-slide__info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: #fff;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 60%;
    text-align: left;
}

.mc-hero-slide__name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.mc-hero-slide__operation {
    font-size: 15px;
    opacity: 0.95;
    margin-top: 4px;
    font-weight: 500;
}

/* Swiper Arrows - Keep them inside the container! */
.mc-hero__slider-wrap .swiper-button-next,
.mc-hero__slider-wrap .swiper-button-prev {
    background: #ffffff47;
    color: #ffffffab;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mc-hero__slider-wrap .swiper-button-next:after,
.mc-hero__slider-wrap .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.mc-hero__slider-wrap .swiper-button-next:hover,
.mc-hero__slider-wrap .swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Position arrows safely inside the slide */
.mc-hero__slider-wrap .swiper-button-prev {
    left: 15px;
}

.mc-hero__slider-wrap .swiper-button-next {
    right: 15px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .mc-hero-slide__ba-wrap {
        width: 40%;
        height: auto;
        bottom: 10px;
        right: 10px;
    }

    .mc-hero-slide__badge {
        top: 4px;
        left: 5px;
        font-size: 11px;
    }

    .mc-hero-slide__info {
        bottom: 16px;
        left: 16px;
    }

    .mc-hero-slide__name {
        font-size: 18px;
    }

    .mc-hero-slide__operation {
        font-size: 13px;
    }

    .mc-hero__slider-wrap .swiper-button-next,
    .mc-hero__slider-wrap .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .mc-hero__slider-wrap .swiper-button-next:after,
    .mc-hero__slider-wrap .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* Hero Form Main CTA Button */
#home-slider .wp-block-button__link {
    background-color: #1B56A1;
    color: #fff;
    border-radius: 30px !important;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.95rem 1.85rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#home-slider .wp-block-button__link:hover {
    background-color: #4a6ee6;
    transform: translateY(-2px);
    color: #fff;
}

.wp-block-group__inner-container {
    padding: 0;
}