/**
 * Revolution Slider - Main Stylesheet
 * Professional slider with advanced animations and responsive design
 */

:root {
    --green-500: #153a54;
    --primary-500: #fd4513;
    --primary-100: #f9bc2c;
    --light-green: #77b255;
    --clr-white: #ffffff;
    --clr-black: #000;
}

/* ==========================================================================
   Container & Wrapper
   ========================================================================== */
.revolution-slider-container {
    width: 100%;
    background: #f0f0f0;
    position: relative;
    /* overflow: visible to allow arrows to extend outside */
    overflow: visible;
    border-radius: 18px;
    /* Isolate stacking context to prevent child z-indexes from affecting menu */
    isolation: isolate;
    z-index: 1;
}

.revolution-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* overflow: hidden moved here to clip slides but not arrows */
    overflow: hidden;
    border-radius: 18px;
}

/* ==========================================================================
   Slides
   ========================================================================== */
.revolution-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.revolution-slide.active {
    display: block;
}

/* ==========================================================================
   Video Background
   ========================================================================== */
.revolution-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.revolution-video-background iframe,
.revolution-video-background video {
    pointer-events: none;
}

.revolution-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* ==========================================================================
   Shape Dividers
   ========================================================================== */
.revolution-shape-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}

.revolution-shape-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.revolution-shape-divider-top {
    top: 0;
}

.revolution-shape-divider-bottom {
    bottom: 0;
}

/* ==========================================================================
   Layers
   ========================================================================== */
.revolution-layer {
    position: absolute;
    z-index: 10;
}

.revolution-layer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Outer Container (for arrow visibility)
   ========================================================================== */
.revolution-slider-outer {
    overflow: visible !important;
    position: relative;
}

/* ==========================================================================
   Navigation Controls
   ========================================================================== */
.slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 50;
}

.slider-controls button {
    pointer-events: auto;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--clr-white) !important; /* White background */
    box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 100; /* Higher z-index to ensure visibility */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-500); /* Mtech blue icon */
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.slider-prev {
    /* 50% inside, 50% outside (half of 40px width) */
    left: -20px;
}

.slider-next {
    /* 50% inside, 50% outside (half of 40px width) */
    right: -20px;
}

.slider-prev:hover,
.slider-next:hover,
.slider-prev:active,
.slider-next:active {
    background-color: var(--primary-500) !important; /* Orange Mtech on hover/click */
    color: var(--clr-white); /* White icon on hover */
}

/* ==========================================================================
   Dots Navigation
   ========================================================================== */
.revolution-slider-dots {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 50px;
}

.revolution-slider-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.revolution-slider-dot.active {
    width: 25px;
    background-color: #fff;
    border-radius: 10px;
}

/* ==========================================================================
   Pause Button
   ========================================================================== */
.slider-pause {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.slider-pause:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-pause[aria-pressed="true"] {
    background-color: var(--primary-500);
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */
.revolution-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.1);
}

.revolution-slider-progress-bar {
    height: 100%;
    background: var(--primary-500, #fd4513);
    transition: width linear;
}

/* ==========================================================================
   Button Style (Mtech)
   ========================================================================== */
.mtech-btn-gr {
    padding: 10px 50px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(270deg, var(--primary-100) 0%, var(--primary-500) 100%);
    font-size: 16px;
    line-height: 20px;
    color: #fff !important;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles - Remove outline on mouse click, show only on keyboard navigation */
.revolution-slider-container:focus,
.revolution-slider-dot:focus,
.slider-prev:focus,
.slider-next:focus,
.slider-pause:focus {
    outline: none;
}

/* Keyboard-only focus (Tab navigation) - very subtle orange outline */
.revolution-slider-container:focus-visible {
    outline: 0.3px solid var(--primary-500, #fd4513);
    outline-offset: 1px;
}

.revolution-slider-dot:focus-visible {
    outline: 0.3px solid var(--primary-500, #fd4513);
    outline-offset: 1px;
}

.slider-prev:focus-visible,
.slider-next:focus-visible,
.slider-pause:focus-visible {
    outline: 0.3px solid var(--primary-500, #fd4513);
    outline-offset: 1px;
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .slider-prev,
    .slider-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .slider-prev {
        /* 50% inside, 50% outside (half of 36px width) */
        left: -18px;
    }

    .slider-next {
        /* 50% inside, 50% outside (half of 36px width) */
        right: -18px;
    }

    .revolution-slider-dots {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .slider-prev {
        /* 50% inside, 50% outside (half of 32px width) */
        left: -16px;
    }

    .slider-next {
        /* 50% inside, 50% outside (half of 32px width) */
        right: -16px;
    }

    /* Move dots to bottom center on mobile */
    .revolution-slider-dots[data-position="bottom-center"],
    .revolution-slider-dots {
        top: auto;
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
    }

    .revolution-slider-dot {
        width: 8px;
        height: 8px;
    }

    .revolution-slider-dot.active {
        width: 20px;
    }

    .slider-pause {
        bottom: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .revolution-slide,
    .revolution-layer,
    .slider-prev,
    .slider-next,
    .revolution-slider-dot,
    .revolution-slider-progress-bar {
        transition: none !important;
        animation: none !important;
    }
}
