/* ========== BASIC SLIDER STYLES ========== */

.hd-slider.swiper-container {
    width: 100% !important;
    overflow: hidden !important;
}

.hd-slider .swiper-wrapper {
    display: flex !important;
}

.swiper-container:not(.swiper-container-initialized) > .swiper-wrapper, 
.swiper:not(.swiper-initialized) > .swiper-wrapper {
    gap: var(--e-n-carousel-swiper-slides-gap);
    overflow: visible !important;
}

.hd-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.hd-slider .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========== ACCESSIBILITY CORE STYLES ========== */

/* Screen Reader Only Content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Management - WCAG AAA compliant */
.hd-slider.swiper-container:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced focus indicators for all interactive elements */
.hd-slider .swiper-button-prev:focus-visible,
.hd-slider .swiper-button-next:focus-visible,
.hd-slider .swiper-pagination-bullet:focus-visible,
.hd-slider .play-pause-button:focus-visible,
.hd-slider .hd-slider-content-button:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px white, 0 0 0 6px #005fcc;
    z-index: 100;
}

/* Skip focus outline for mouse users (requires focus-visible polyfill) */
.js-focus-visible .hd-slider .swiper-button-prev:focus:not(.focus-visible),
.js-focus-visible .hd-slider .swiper-button-next:focus:not(.focus-visible),
.js-focus-visible .hd-slider .swiper-pagination-bullet:focus:not(.focus-visible),
.js-focus-visible .hd-slider .play-pause-button:focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* ========== HIGH CONTRAST MODE SUPPORT ========== */

/* Windows High Contrast Mode */
@media screen and (-ms-high-contrast: active) {
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next {
        border: 2px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }
    
    .hd-slider .swiper-pagination-bullet {
        border: 2px solid ButtonText;
        background: ButtonFace;
    }
    
    .hd-slider .swiper-pagination-bullet-active {
        background: Highlight;
        border-color: HighlightText;
    }
    
    .hd-slider .play-pause-button {
        border: 2px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }
}

/* Modern High Contrast Mode */
@media (prefers-contrast: high) {
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next {
        background: white;
        color: black;
        border: 3px solid black;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .hd-slider .swiper-pagination-bullet {
        background: white;
        border: 3px solid black;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
    
    .hd-slider .swiper-pagination-bullet-active {
        background: black;
        border: 3px solid white;
    }
    
    .hd-slider .play-pause-button {
        background: white;
        color: black;
        border: 3px solid black;
    }
    
    .hd-slider .hd-slider-content {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid black;
    }
}
@media (prefers-contrast: high) {
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next {
        background: white !important;
        color: black !important;
        border: 3px solid black !important;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
    }
    
    .hd-slider .swiper-pagination-bullet {
        background: white !important;
        border: 3px solid black !important;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
    }
    
    .hd-slider .swiper-pagination-bullet-active {
        background: black !important;
        border: 3px solid white !important;
    }
    
    .hd-slider .play-pause-button {
        background: white !important;
        color: black !important;
        border: 3px solid black !important;
    }
    
    .hd-slider .hd-slider-content {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 2px solid black !important;
    }
}

/* ========== NAVIGATION ACCESSIBILITY ========== */

/* Navigation Buttons - Enhanced for Accessibility */
.hd-slider .swiper-button-prev,
.hd-slider .swiper-button-next {
    cursor: pointer;
    transition: all 0.3s ease;
    /* Ensure minimum touch target size */
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 105;
    position: absolute;
}

.hd-slider .swiper-button-prev:hover,
.hd-slider .swiper-button-next:hover {
    transform: scale(1.1);
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
}

.hd-slider .swiper-button-prev:active,
.hd-slider .swiper-button-next:active {
    transform: scale(0.95);
}

/* Disabled state for navigation */
.hd-slider .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hd-slider .swiper-button-disabled:hover {
    transform: none;
}

/* ========== PAGINATION ACCESSIBILITY ========== */

/* Debug rule to ensure Elementor styles are working */
.hd-slider .swiper-pagination-bullet {
    opacity: 0.8;
    /*
     background: var( --e-global-color-e5dd768 ) !important;
     */
    border: 1px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    z-index: 101;
    pointer-events: auto;
    /* ABSOLUTELY NO SIZE PROPERTIES - PURE ELEMENTOR CONTROL */
    
    /* Temporary debug on mobile 
    background: rgba(255, 0, 0, 0.8) !important;
    */
}

.hd-slider .swiper-pagination-bullet-active {
    opacity: 1;
    /*
    background: rgba(0, 255, 0, 1) !important; 
     */

    border: 2px solid rgba(0, 0, 0, 0.5);
    z-index: 102;
    /* ABSOLUTELY NO SIZE PROPERTIES - PURE ELEMENTOR CONTROL */
}

.hd-slider .swiper-pagination-bullet:hover {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hd-slider .swiper-pagination-bullet:hover {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Debug rule - remove after bullets are confirmed working */
.hd-slider .swiper-pagination {
    position: absolute;
    text-align: center;
    transition: all 0.3s ease;
    transform: translate3d(0, 0, 0);
    z-index: 100;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Debug background removed */
}

.hd-slider .swiper-pagination-bullets {
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 100 !important;
}

/* ========== PLAY/PAUSE BUTTON ACCESSIBILITY ========== */

.hd-slider .play-pause-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 110;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.hd-slider .play-pause-button:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.hd-slider .play-pause-button:active {
    transform: scale(0.95);
}

/* ========== RESPONSIVE TOUCH TARGETS ========== */

/* Mobile optimizations - only for non-customizable elements */
@media (max-width: 768px) {
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next {
        width: 48px;
        height: 48px;
        margin-top: -24px;
    }
    
    .hd-slider .play-pause-button {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
    
    /* Removed bullet size overrides - let Elementor handle responsive bullet sizes */
}

/* Touch target enhancement - ONLY for navigation buttons, NOT bullets */
@media (pointer: coarse) {
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Removed all bullet touch enhancements to prevent size conflicts */
    /* Bullets rely purely on Elementor responsive settings */
}

/* ========== REDUCED MOTION SUPPORT ========== */

/* Respect user's motion preferences - WCAG AAA */
@media (prefers-reduced-motion: reduce) {
    .hd-slider .kenburns-active {
        animation: none;
    }
    
    .hd-slider .hd-slider-content {
        transition: opacity 0s;
    }
    
    .hd-slider .elementor-animated {
        animation: none;
        transition: none;
    }
    
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next,
    .hd-slider .swiper-pagination-bullet,
    .hd-slider .play-pause-button {
        transition: none;
    }
    
    .hd-slider .swiper-button-prev:hover,
    .hd-slider .swiper-button-next:hover,
    .hd-slider .swiper-pagination-bullet:hover {
        transform: none;
    }
    
    /* Disable focus animation for reduced motion users */
    .hd-slider .swiper-button-prev:focus-visible,
    .hd-slider .swiper-button-next:focus-visible,
    .hd-slider .swiper-pagination-bullet:focus-visible {
        animation: none;
    }
    
    /* Immediate visibility for content */
    .hd-slider .hd-slider-content,
    .hd-slider .hd-slider-content-subtitle,
    .hd-slider .hd-slider-content-title,
    .hd-slider .hd-slider-content-content,
    .hd-slider .hd-slider-content-button {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ========== DEFAULT TYPOGRAPHY ========== */

.hd-slider-content-title,
.hd-slider-content-subtitle,
.hd-slider-content-content {
    line-height: 1.2em;
} 

.hd-slider-content-button {
    line-height: 1em;
} 

.hd-slider-content-subtitle {
    font-size: 14px;
}

.hd-slider-content-title {
    font-size: 52px;
}

.hd-slider-content-content {
    font-size: 18px;
}

.hd-slider-content-button {
    font-size: 18px;
}

/* ========== RESPONSIVE TYPOGRAPHY ========== */

@media (max-width: 1024px) {
    .hd-slider-content-subtitle {
        font-size: calc(14px / 1.618);
    }

    .hd-slider-content-title {
        font-size: calc(52px / 1.618);
    }

    .hd-slider-content-content {
        font-size: calc(18px / 1.618);
    }

    .hd-slider-content-button {
        font-size: calc(18px / 1.618);
    }
}

@media (max-width: 767px) {
    .hd-slider-content-subtitle {
        font-size: calc(14px / 1.618);
    }

    .hd-slider-content-title {
        font-size: calc(52px / 1.618);
    }

    .hd-slider-content-content {
        font-size: calc(18px / 1.618);
    }

    .hd-slider-content-button {
        font-size: calc(18px / 1.618);
    }
}

/* ========== CONTENT BUTTON ACCESSIBILITY ========== */

.hd-slider .hd-slider-content-button {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* Minimum touch target */
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.hd-slider .hd-slider-content-button:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hd-slider .hd-slider-content-button:active {
    transform: translateY(0);
}

.hd-slider .hd-slider-content-button:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

/* ========== LIVE REGION FOR ANNOUNCEMENTS ========== */

.hd-slider .slide-announcer {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========== SKIP LINK SUPPORT ========== */

.hd-slider-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
}

.hd-slider-skip-link:focus {
    top: 6px;
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* ========== IMAGE FILTERS ========== */

/* 1977 */
.swiper-slide.filter-1977::before {
    -webkit-filter: sepia(.5) hue-rotate(-30deg) saturate(1.4) !important;
    filter: sepia(.5) hue-rotate(-30deg) saturate(1.4) !important;
}

/* Aden */
.swiper-slide.filter-aden::before {
    -webkit-filter: sepia(.2) brightness(1.15) saturate(1.4) !important;
    filter: sepia(.2) brightness(1.15) saturate(1.4) !important;
}

/* Amaro */
.swiper-slide.filter-amaro::before {
    -webkit-filter: sepia(.35) contrast(1.1) brightness(1.2) saturate(1.3) !important;
    filter: sepia(.35) contrast(1.1) brightness(1.2) saturate(1.3) !important;
}

/* Ashby */
.swiper-slide.filter-ashby::before {
    -webkit-filter: sepia(.5) contrast(1.2) saturate(1.8) !important;
    filter: sepia(.5) contrast(1.2) saturate(1.8) !important;
}

/* Brannan */
.swiper-slide.filter-brannan::before {
    -webkit-filter: sepia(.5) contrast(1.4) !important;
    filter: sepia(.5) contrast(1.4) !important;
}

/* Brooklyn */
.swiper-slide.filter-brooklyn::before {
    -webkit-filter: sepia(.25) contrast(1.25) brightness(1.25) hue-rotate(5deg) !important;
    filter: sepia(.25) contrast(1.25) brightness(1.25) hue-rotate(5deg) !important;
}

/* Clarendon */
.swiper-slide.filter-clarendon::before {
    -webkit-filter: sepia(.15) contrast(1.25) brightness(1.25) hue-rotate(5deg) !important;
    filter: sepia(.15) contrast(1.25) brightness(1.25) hue-rotate(5deg) !important;
}

/* Crema */
.swiper-slide.filter-crema::before {
    -webkit-filter: sepia(.5) contrast(1.25) brightness(1.15) saturate(.9) !important;
    filter: sepia(.5) contrast(1.25) brightness(1.15) saturate(.9) !important;
}

/* Dogpatch */
.swiper-slide.filter-dogpatch::before {
    -webkit-filter: sepia(.35) saturate(1.1) contrast(1.5) !important;
    filter: sepia(.35) saturate(1.1) contrast(1.5) !important;
}

/* Earlybird */
.swiper-slide.filter-earlybird::before {
    -webkit-filter: sepia(.4) contrast(1.1) brightness(.9) saturate(1.6) hue-rotate(-10deg) !important;
    filter: sepia(.4) contrast(1.1) brightness(.9) saturate(1.6) hue-rotate(-10deg) !important;
}

/* Gingham */
.swiper-slide.filter-gingham::before {
    -webkit-filter: brightness(1.05) hue-rotate(-10deg) !important;
    filter: brightness(1.05) hue-rotate(-10deg) !important;
}

/* Hudson */
.swiper-slide.filter-hudson::before {
    -webkit-filter: sepia(.25) contrast(1.2) brightness(1.2) saturate(1.1) !important;
    filter: sepia(.25) contrast(1.2) brightness(1.2) saturate(1.1) !important;
}

/* Inkwell */
.swiper-slide.filter-inkwell::before {
    -webkit-filter: brightness(1.25) contrast(.85) grayscale(1) !important;
    filter: brightness(1.25) contrast(.85) grayscale(1) !important;
}

/* Juno */
.swiper-slide.filter-juno::before {
    -webkit-filter: sepia(.35) contrast(1.15) !important;
    filter: sepia(.35) contrast(1.15) !important;
}

/* Retro */
.swiper-slide.filter-retro::before {
    -webkit-filter: sepia(0.6) contrast(1.2) brightness(0.9) hue-rotate(-20deg) saturate(0.8) !important;
    filter: sepia(0.6) contrast(1.2) brightness(0.9) hue-rotate(-20deg) saturate(0.8) !important;
}

/* Sepia */
.swiper-slide.filter-sepia::before {
    -webkit-filter: sepia(1) !important;
    filter: sepia(1) !important;
}

/* ========== ENHANCED ACCESSIBILITY STATES ========== */

/* Loading state */
.hd-slider[aria-busy="true"] {
    position: relative;
}

.hd-slider[aria-busy="true"]::after {
    content: "Lädt...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
}

/* Error state */
.hd-slider[aria-invalid="true"] {
    border: 3px solid #d93025;
}

.hd-slider[aria-invalid="true"]::after {
    content: "Fehler beim Laden der Slides";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d93025;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
}

/* ========== IMPROVED CONTENT ACCESSIBILITY ========== */

/* Ensure content is customizable via backend - no forced styling */
.hd-slider .hd-slider-content {
    /* Removed fixed background, border-radius, padding, box-shadow */
    /* These should only be set via Elementor backend controls */
}

/* Only ensure text colors have reasonable defaults that can be overridden */
.hd-slider .hd-slider-content-title {
    /* Remove fixed color - let Elementor controls handle this */
}

.hd-slider .hd-slider-content-subtitle {
    /* Remove fixed color - let Elementor controls handle this */
}

.hd-slider .hd-slider-content-content {
    /* Remove fixed line-height - let Elementor control this */
    /* line-height: 1.5; - Removed to allow Elementor control */
}

/* ========== PRINT STYLES ========== */

/* Print Styles */
@media print {
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next,
    .hd-slider .swiper-pagination,
    .hd-slider .play-pause-button {
        display: none;
    }
    
    .hd-slider .swiper-slide {
        page-break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ccc;
    }
    
    .hd-slider .hd-slider-content {
        background: white;
        color: black;
        box-shadow: none;
    }
}

/* ========== FOCUS MANAGEMENT ENHANCEMENT ========== */

/* Focus trap for modal-like behavior when keyboard navigating */
.hd-slider:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3);
}

/* Ensure focus is visible with moderate animation (respects reduced motion) */
.hd-slider .swiper-button-prev:focus-visible,
.hd-slider .swiper-button-next:focus-visible,
.hd-slider .swiper-pagination-bullet:focus-visible {
    animation: focusPulse 2s ease-in-out infinite;
}

@keyframes focusPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px white, 0 0 0 6px #005fcc;
    }
    50% {
        box-shadow: 0 0 0 1px white, 0 0 0 8px #005fcc;
    }
}

/* Disable focus animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hd-slider .swiper-button-prev:focus-visible,
    .hd-slider .swiper-button-next:focus-visible,
    .hd-slider .swiper-pagination-bullet:focus-visible {
        animation: none;
    }
}

/* ========== ENHANCED ERROR HANDLING ========== */

/* Image loading error state */
.hd-slider .swiper-slide[data-image-error="true"] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    position: relative;
}

.hd-slider .swiper-slide[data-image-error="true"]::after {
    content: "Bild konnte nicht geladen werden";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Custom Properties for Theming */
.hd-slider {
    /* Color Scheme */
    --slider-primary-color: #005fcc;
    --slider-secondary-color: #ffffff;
    --slider-accent-color: #1a73e8;
    --slider-text-color: #333333;
    --slider-bg-color: #ffffff;
    
    /* Focus and Interaction */
    --slider-focus-color: #005fcc;
    --slider-hover-color: rgba(0, 95, 204, 0.1);
    
    /* Spacing */
    --slider-spacing-sm: 8px;
    --slider-spacing-md: 16px;
    --slider-spacing-lg: 24px;
    
    /* Border Radius */
    --slider-radius-sm: 4px;
    --slider-radius-md: 8px;
    --slider-radius-lg: 12px;
    
    /* Shadows */
    --slider-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --slider-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --slider-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Animation Duration */
    --slider-animation-fast: 0.15s;
    --slider-animation-normal: 0.3s;
    --slider-animation-slow: 0.5s;
    
    /* Z-Index Management */
    --slider-z-content: 9;
    --slider-z-overlay: 10;
    --slider-z-controls: 20;
    --slider-z-focus: 30;
}

/* Dark mode support - only if no custom colors are set */
@media (prefers-color-scheme: dark) {
    .hd-slider {
        --slider-primary-color: #4285f4;
        --slider-secondary-color: #1a1a1a;
        --slider-accent-color: #5aa3f0;
        --slider-text-color: #e8eaed;
        --slider-bg-color: #202124;
    }
    
    /* Only apply if no Elementor custom colors are detected */
    .hd-slider .hd-slider-content:not([style*="background"]) {
        background: rgba(32, 33, 36, 0.95);
    }
}

/* ========== UTILITY CLASSES ========== */

/* Force show for debugging */
.hd-slider-debug .sr-only {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 5px !important;
    background: yellow !important;
    color: black !important;
    padding: 5px !important;
    border: 1px solid red !important;
}

/* Accessibility helper class */
.hd-slider-a11y-enhanced {
    border: 2px solid var(--slider-primary-color);
}

.hd-slider-a11y-enhanced .swiper-button-prev,
.hd-slider-a11y-enhanced .swiper-button-next,
.hd-slider-a11y-enhanced .swiper-pagination-bullet {
    border-width: 3px;
}

/* ========== BROWSER SPECIFIC FIXES ========== */

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .hd-slider .swiper-button-prev,
    .hd-slider .swiper-button-next {
        -webkit-appearance: none;
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .hd-slider .swiper-pagination-bullet {
        background-clip: padding-box;
    }
}

/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
    .hd-slider .swiper-wrapper {
        display: -ms-flexbox;
    }
}
