.promo-hero-slider {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    background: transparent;
    border-radius: 24px; /* Premium card look on the container */
    
    /* Fix for Webkit/Safari border-radius clipping bug during transforms */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Obey Gutenberg Alignment Settings */
.promo-hero-slider:not(.alignfull):not(.alignwide) {
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.promo-hero-slider.alignwide {
    max-width: var(--wp--style--global--wide-size, 1400px);
    margin-left: auto;
    margin-right: auto;
}

/* Ensure beautiful card look on mobile for ALL alignments */
@media(max-width: 768px) {
    .promo-hero-slider,
    .promo-hero-slider.alignfull,
    .promo-hero-slider.alignwide {
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        margin-left: calc(50% - 50vw + 20px) !important;
        margin-right: calc(50% - 50vw + 20px) !important;
    }
}

/* Ensure beautiful card look on ALL screens even when full width */
.promo-hero-slider.alignfull {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-left: calc(50% - 50vw + 20px) !important;
    margin-right: calc(50% - 50vw + 20px) !important;
}

@media(min-width: 1024px) {
    .promo-hero-slider.alignfull {
        width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;
        margin-left: calc(50% - 50vw + 40px) !important;
        margin-right: calc(50% - 50vw + 40px) !important;
    }
}

.promo-swiper {
    width: 100%;
    overflow: hidden;
    height: 600px;
}

@media(max-width: 768px) {
    .promo-swiper {
        height: 500px;
    }
}

.promo-swiper .swiper-wrapper {
    display: flex;
    height: 100%;
}

.promo-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 600px; /* Increased height for hero feeling */
}

@media(max-width: 768px) {
    .promo-swiper .swiper-slide {
        height: 500px;
    }
}

.promo-swiper .slide-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.promo-swiper .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 6s ease-out;
    transform: scale(1.0);
}

.promo-swiper .swiper-slide-active .slide-bg {
    transform: scale(1.05);
}

.promo-swiper .slide-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Reverted to center based on feedback */
    text-align: center; /* Reverted to center based on feedback */
    background: radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 80%);
    padding: 2rem;
}

@media(max-width: 768px) {
    .promo-swiper .slide-content-overlay {
        padding: 1.5rem;
    }
}

.promo-swiper .slide-content {
    max-width: 600px; /* Constrained width for optimal reading length (50-75 chars) */
    color: #fff;
    position: relative;
    z-index: 3;
}

/* Removed staggered animations - text stays static within the slide */
.promo-swiper .slide-content > * {
    opacity: 1;
    transform: none;
}

.promo-swiper .slide-subtitle {
    font-family: var(--wp--preset--font-family--montserrat), 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Contrast boost */
}

.promo-swiper .slide-title {
    font-family: var(--wp--preset--font-family--montserrat), 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.96px; /* Match theme h2 */
    text-shadow: 0 4px 12px rgba(0,0,0,0.4); /* Contrast boost */
}

.promo-swiper .slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--montserrat), 'Montserrat', sans-serif;
    
    /* Glassmorphism */
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    
    font-weight: 400;
    font-size: var(--wp--preset--font-size--medium, 1rem);
    letter-spacing: -0.36px;
    padding: 0.875rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.promo-swiper .slide-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Apple Style Progress Controls */
.promo-slider-controls {
    position: absolute;
    bottom: 40px;
    right: 40px; /* Align to the right */
    left: auto;
    transform: none;
    width: auto;
    z-index: 10;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media(max-width: 768px) {
    .promo-slider-controls {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
    }
}

.promo-swiper .apple-progress-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    display: flex;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
}

.promo-swiper .swiper-pagination-bullet {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s ease;
}

@media(min-width: 768px) {
    .promo-swiper .swiper-pagination-bullet {
        width: 30px;
    }
}

.promo-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.5);
}

.promo-swiper .swiper-pagination-bullet .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #ffffff;
    transform-origin: left center;
    transform: scaleX(0);
}

.promo-swiper .autoplay-toggle {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
}

.promo-swiper .autoplay-toggle:hover {
    opacity: 1;
}

/* Editor Preview Fallback */
.promo-hero-slider.is-editor-preview .promo-swiper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    min-height: auto;
}
.promo-hero-slider.is-editor-preview .swiper-slide {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #ccc;
    border-radius: 0;
    margin: 0;
}
.promo-hero-slider.is-editor-preview .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle Navigation Arrows inside Pill */
.promo-slider-prev, .promo-slider-next {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin-top: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    width: 24px !important;
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.2s ease !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.promo-slider-prev:hover, .promo-slider-next:hover {
    opacity: 1 !important;
}
.promo-slider-prev::after, .promo-slider-next::after {
    font-size: 14px !important;
    font-weight: bold;
}
.promo-hero-slider.is-editor-preview .promo-slider-controls {
    display: none;
}

/* Subtle Mobile Controls */
@media(max-width: 768px) {
    .promo-slider-controls {
        bottom: 20px;
        padding: 6px 16px;
        gap: 16px;
    }
    
    .promo-swiper .apple-progress-pagination {
        gap: 6px;
    }
    
    .promo-swiper .swiper-pagination-bullet {
        width: 25px;
        height: 3px;
    }
    
    .promo-slider-prev, .promo-slider-next {
        width: 24px !important;
        height: 24px !important;
    }
    
    .promo-slider-prev::after, .promo-slider-next::after {
        font-size: 12px !important;
    }
    
    .promo-swiper .autoplay-toggle {
        width: 24px;
        height: 24px;
    }
    
    .promo-swiper .autoplay-toggle svg {
        width: 14px;
        height: 14px;
    }
}
