/* ====== Core Slider Styles ====== */
.fast-slider-outer-wrapper {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    height: 483px; /* Fixed desktop height */
}

.fast-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.fast-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fast-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide Styles with Fade Animation */
.fast-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.fast-slide.active {
    opacity: 1;
    z-index: 2;
}

.fast-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.fast-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.fast-slider-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.fast-prev-arrow {
    left: 25px;
}

.fast-next-arrow {
    right: 25px;
}

/* Dots Navigation */
.fast-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.fast-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fast-slider-dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}


/* ====== Link Styles ====== */
.fast-slider-link {
    display: block;
    width: 100%;
    height: 100%;
}

.fast-slider-link:hover {
    opacity: 0.9;
}

/* Make sure arrows stay above links */
.fast-slider-arrow {
    z-index: 20;
}

/* ====== Mobile Responsiveness ====== */
@media (max-width: 768px) {
    .fast-slider-outer-wrapper {
        height: 400px; /* Tablet height */
        border-radius: 12px;
    }
    
    .fast-slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fast-slider-outer-wrapper {
        height: 214px; /* Mobile height */
    }
    
    .fast-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        display:none;
    }
    
    .fast-slider-dots {
        bottom: 15px;
    }
}

/* Fix for SALAMTEC section spacing */
.fast-slider-outer-wrapper + * {
    margin-top: 20px !important;
}

/* Emergency spacer */
.fast-slider-spacer {
    display: block;
    height: 1px;
    margin-bottom: -1px;
    clear: both;
}