.hero-slider-wrapper {
    position: relative;
    margin-top: 24px;
}
.hero-slider-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.hero-slider-container-width {
    width: 100%;
}

.hero-slider-container-width .slider-nav-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.slider-nav-wrapper {
    position: relative;
    width: 100%;
}

.slider-fullwidth {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider-container-width .slider-fullwidth,
.hero-slider-container-width .slide,
.hero-slider-container-width .slide img {
    border-radius: var(--border-radius);
}

.slide-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    cursor: grab;
    touch-action: pan-y;
}

.slide {
    min-width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
    z-index: 10;
    pointer-events: all;
}

.thumbnail-nav.prev {
    left: 0;
}

.thumbnail-nav.next {
    right: 0;
}

.thumbnail-nav,
.thumbnail-nav:focus,
.thumbnail-nav:focus-visible,
.thumbnail-nav:hover {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.thumbnail-nav.prev,
.thumbnail-nav.prev:focus,
.thumbnail-nav.prev:focus-visible,
.thumbnail-nav.prev:hover {
    left: 0 !important;
}

.thumbnail-nav.next,
.thumbnail-nav.next:focus,
.thumbnail-nav.next:focus-visible,
.thumbnail-nav.next:hover {
    right: 0 !important;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: var(--white);
    padding: clamp(24px, 4vw, 56px);
    padding-left: clamp(78px, 9vw, 136px);
    padding-right: clamp(28px, 5vw, 64px);
    box-sizing: border-box;
    z-index: 2;
}

.slide-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.02) 100%);
    z-index: 0;
    pointer-events: none;
}

.slide-content > * {
    position: relative;
    z-index: 1;
}

.slide-title {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 800;
    margin: 0 0 12px;
    max-width: 11ch;
    text-shadow: var(--text-shadow);
    line-height: 0.95;
    color: var(--white);
}

.slide-subtitle {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    margin: 0 0 1.75rem 0;
    max-width: 34ch;
    text-shadow: var(--text-shadow);
    line-height: 1.5;
    color: var(--white);
}

.slide-button {
    display: inline-block;
    padding: 13px 24px;
    background-color: var(--cta);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--pill-radius);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(var(--brand-cta-rgb), 0.26);
}

.slide-button:hover {
    background-color: var(--cta-hover);
    transform: translateY(-1px);
}

.slide-button:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    border-radius: var(--border-radius) !important;
    z-index: 10;
}

.slide:focus,
.slide:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Indicator Styles */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    pointer-events: auto;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(var(--brand-bg-rgb), 0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: var(--cta);
    width: 24px;
    border-radius: var(--pill-radius);
}

/* Remove focus styles on indicators since they're not in tab order */
.indicator-dot:focus,
.indicator-dot:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Screen reader announcements */
.slide-announcer {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .slide {
        height: 300px;
    }

    .slide-content {
        padding-left: clamp(64px, 11vw, 88px);
        padding-right: 24px;
    }

    .slide-title {
        font-size: 2rem;
        max-width: 12ch;
    }
    
    .slide-subtitle {
        font-size: 1rem;
        max-width: 28ch;
    }
    
    .slide-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .slide {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .slide {
        height: 500px;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .slide-container {
        transition: transform 0.1s linear;
    }
    
    .thumbnail-nav,
    .indicator-dot,
    .slide-button {
        transition: none;
    }
}
/* HERO SLIDER STYLES - END */
