/* MOBILE SLIDER SECTION BACKGROUND FIX */

/* Essential slider section styling for all devices */
.slider-section {
    position: relative !important;
    overflow: hidden !important;
    background-color: transparent !important;
}

/* Make sure background wrapper is properly positioned and visible */
.slider-section .background-wrapper {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 0 !important;
    pointer-events: auto !important;
}

/* Ensure background image is visible */
.slider-section .background.testimonial-background {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("../images/6652fc6d626ff7f6a9257341_IMG_9508.JPG") !important;
    background-position: center !important;
    background-size: cover !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

/* Ensure overlay is visible */
.slider-section .overlay.dark {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(10, 16, 29, 0.85) !important; /* Slightly darker for better readability */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Make sure slider content is on top of background */
.slider-section .slider-grid-wrapper {
    position: relative !important;
    z-index: 5 !important;
}

/* Ensure testimonials are readable against background */
.slider-section .testimonial-text {
    color: white !important;
    position: relative !important;
}

.slider-section .body-display.light {
    color: white !important;
}

/* Special fixes specifically for mobile */
@media screen and (max-width: 767px) {
    .slider-section {
        background-color: transparent !important;
    }

    /* Force background to be visible */
    .slider-section .background-wrapper,
    .slider-section .background.testimonial-background,
    .slider-section .overlay.dark {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: auto !important;
    }

    /* Improve contrast for better text readability */
    .slider-section .overlay.dark {
        background-color: rgba(10, 16, 29, 0.85) !important;
    }

    /* Override any mobile-specific hiding properties */
    .slider-section * {
        background-color: transparent !important;
    }

    /* Make sure the slider content is visible */
    .slider-section .testimonial-slide-content {
        position: relative !important;
        z-index: 10 !important;
    }
}
/* ==============================================
   MOBILE TESTIMONIAL SLIDER ARROW FIXES
   Add this to the END of mobile-slider-fix.css
   ============================================== */

/* Mobile Arrow Fixes - Target all mobile devices */
@media screen and (max-width: 991px) {

    /* Ensure slider container allows proper touch interaction */
    .featured-work-slider {
        position: relative !important;
        overflow: visible !important;
        touch-action: pan-x pan-y !important;
    }

    /* Slider mask - allow horizontal touch for navigation */
    .projects-mask,
    .w-slider-mask {
        overflow: visible !important;
        touch-action: pan-x pan-y !important;
        position: relative !important;
    }

    /* Base mobile arrow styles */
    .projects-arrow,
    .slider-arrow,
    .w-slider-arrow-left,
    .w-slider-arrow-right {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 80px !important;
        height: 80px !important;
        border: 2px solid rgba(255, 255, 255, 0.7) !important;
        border-radius: 50% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        cursor: pointer !important;
        z-index: 100 !important;
        opacity: 0.9 !important;
        transition: all 0.3s ease !important;
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(3px) !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    /* Left arrow positioning - VISIBLE on screen */
    .projects-arrow.left,
    .slider-arrow:not(.right),
    .w-slider-arrow-left {
        left: 10px !important; /* Move INTO viewport */
        right: auto !important;
    }

    /* Right arrow positioning - VISIBLE on screen */
    .projects-arrow:not(.left),
    .slider-arrow.right,
    .w-slider-arrow-right {
        right: 10px !important; /* Move INTO viewport */
        left: auto !important;
    }

    /* Arrow hover/active states */
    .projects-arrow:hover,
    .slider-arrow:hover,
    .w-slider-arrow-left:hover,
    .w-slider-arrow-right:hover {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-color: rgba(255, 255, 255, 0.9) !important;
        transform: translateY(-50%) scale(1.05) !important;
    }

    /* Arrow icons sizing */
    .hover-slider-arrow {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border: none !important;
        background: transparent !important;
    }

    .slider-arrow-icon {
        width: 16px !important;
        height: 16px !important;
        filter: brightness(0) invert(1) !important; /* Make icons white */
    }

    /* Testimonial slides - allow vertical scroll but enable horizontal swipe */
    .testimonial-slide,
    .w-slide {
        touch-action: pan-y pinch-zoom !important;
        position: relative !important;
        padding: 20px 0 !important;
        min-height: auto !important;
    }

    /* Testimonial content padding adjustment */
    .testimonial-slide-content {
        padding: 20px 15px !important;
        grid-row-gap: 24px !important;
        text-align: center !important;
        touch-action: pan-y !important;
    }

    /* Better spacing for mobile content */
    .testimonial-wrapper {
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .testimonial-text {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
        padding: 0 !important;
    }

    .client {
        font-size: 14px !important;
        margin-top: 20px !important;
    }
}

/* Small Mobile Devices - Even more compact arrows */
@media screen and (max-width: 480px) {

    .projects-arrow,
    .slider-arrow,
    .w-slider-arrow-left,
    .w-slider-arrow-right {
        width: 70px !important;
        height: 70px !important;
        left: 5px !important;
    }

    .projects-arrow:not(.left),
    .slider-arrow.right,
    .w-slider-arrow-right {
        right: 5px !important;
        left: auto !important;
    }

    .slider-arrow-icon {
        width: 14px !important;
        height: 14px !important;
    }

    /* Adjust testimonial content for very small screens */
    .testimonial-slide-content {
        padding: 15px 10px !important;
    }

    .testimonial-text {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
}

/* Touch interaction improvements */
@media (hover: none) and (pointer: coarse) {
    /* This targets touch devices specifically */

    .projects-arrow,
    .slider-arrow,
    .w-slider-arrow-left,
    .w-slider-arrow-right {
        /* Larger touch targets for better usability */
        min-width: 44px !important;
        min-height: 44px !important;
        /* Show arrows by default on touch devices */
        opacity: 1 !important;
    }
}

/* Ensure mentoring card image is visible on all devices */
.service-bottom.mentoring {
    background-image: url('../images/665764d827d24578572dac59_mentoring.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
    width: 100%;
}

@media (max-width: 767px) {
    .service-bottom.mentoring {
        min-height: 120px;
    }
}