/* ==========================================================================
   ALS Careers Slider - Testimonial Styles
   Based on testimonial design with name, title, quote, and portrait image
   ========================================================================== */

/* Wrapper - Top level container with overflow control */
.als-careers-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1328px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* At 1366px and below: Full width, center-aligned */
@media (max-width: 1366px) {
    .als-careers-slider-wrapper {
        max-width: none;
        margin: 0 auto;
    }
}

/* Track - contains all slides */
.als-careers-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    margin: 0 0 128px 0;
    padding: 0;
    gap: 96px;
    cursor: grab;
}

/* Above 1440px: 128px gap */
@media (min-width: 1440px) {
    .als-careers-slider-track {
        gap: 128px;
    }
}

/* Track during transition - smooth animation */
.als-careers-slider-track.transitioning {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Track during drag - no transition */
.als-careers-slider-track.dragging {
    transition: none;
    cursor: grabbing;
}

/* Individual testimonial slides */
.als-careers-slider-slide {
    flex: 0 0 600px;
    width: 600px;
    min-height: 400px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    /* Height is flexible - determined by content */
}

/* Testimonial content container */
.als-testimonial-content {
    position: relative;
    background: transparent;
    border: 1px solid #27E2CC;
    border-radius: 20px;
    padding: 32px;
    padding-bottom: 64px; /* Extra padding to prevent image overlap */
    width: 460px;
    min-width: 460px;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: visible;
}

/* Testimonial text section */
.als-testimonial-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Name styling */
.als-testimonial-name {
    color: #1D4757;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    margin: 0 0 4px 0;
}

/* Job title styling */
.als-testimonial-title {
    color: #496E7A;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin: 0 0 16px 0;
}

/* Quote styling */
.als-testimonial-quote {
    color: #1D4757;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin: 0;
    font-style: normal;
}

/* Portrait image styling */
.als-testimonial-image {
    position: absolute;
    top: 213px;
    left: 415px;
    z-index: -1;
}

.als-testimonial-portrait {
    width: 184px;
    height: 184px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #27E2CC;
}

/* Speech bubble decoration */
.als-speech-bubble {
    position: absolute;
    bottom: -15px;
    right: 48px;
    z-index: 99;
    width: 30px;
    height: 15px;
    pointer-events: none;
}

.als-speech-bubble img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Desktop: 2 testimonials visible */
@media (min-width: 1440px) {
    .als-careers-slider-slide {
        flex: 0 0 600px;
        width: 600px;
    }
}

/* Tablet: 1 testimonial with 32px padding */
@media (max-width: 1439px) and (min-width: 1367px) {
    .als-careers-slider-wrapper {
        padding: 0 32px;
    }
    
    .als-careers-slider-slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 600px;
    }
}

/* Medium screens: 96px gap, 1 slide visible */
@media (max-width: 1366px) and (min-width: 1025px) {
    .als-careers-slider-wrapper {
        padding: 0 32px;
        max-width: 664px; /* 600px slide + 32px padding on each side */
    }
    
    .als-careers-slider-slide {
        flex: 0 0 600px;
        width: 600px;
    }
}

/* Tablet & Mobile: 1 testimonial at a time */
@media (max-width: 1024px) and (min-width: 641px) {
    .als-careers-slider-wrapper {
        padding: 0 20px;
        max-width: 640px; /* 600px slide + 20px padding on each side */
    }
    
    .als-careers-slider-slide {
        flex: 0 0 600px;
        width: 600px;
    }
}

/* Hide slider on mobile (640px and below) */
@media (max-width: 640px) {
    .als-careers-slider-wrapper {
        display: none;
    }
}

/* ==========================================================================
   MOBILE VERTICAL SLIDER (640px and below)
   ========================================================================== */

/* Hide mobile slider on desktop/tablet */
.als-careers-slider-container-mobile {
    display: none;
}

@media (max-width: 640px) {
    /* Show mobile slider on mobile devices */
    .als-careers-slider-container-mobile {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 20px 40px 20px;
        box-sizing: border-box;
    }

    /* Mobile Viewport - clips content to show only 2 slides */
    .als-careers-slider-viewport-mobile {
        position: relative;
        width: 100%;
        overflow: hidden;
        /* Height will be set by JavaScript */
    }

    /* Mobile Track - contains all slides, vertical layout */
    .als-careers-slider-track-mobile {
        display: flex;
        flex-direction: column;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        margin: 0;
        padding: 0;
        gap: 160px;
    }

    /* Mobile Track during transition - smooth animation */
    .als-careers-slider-track-mobile.transitioning {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Mobile Track during drag - no transition */
    .als-careers-slider-track-mobile.dragging {
        transition: none;
    }

    /* Individual mobile testimonial slides */
    .als-careers-slider-slide-mobile {
        flex: 0 0 auto;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        position: relative;
        overflow: visible;
    }

    /* Mobile Testimonial content container */
    .als-testimonial-content-mobile {
        position: relative;
        background: transparent;
        border: 1px solid #27E2CC;
        border-radius: 20px;
        padding: 32px;
        padding-bottom: 16px;
        width: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: visible;
    }

    /* Mobile Testimonial text section */
    .als-testimonial-text-mobile {
        flex: 1;
        position: relative;
        z-index: 2;
    }

    /* Mobile Name styling */
    .als-testimonial-name-mobile {
        color: #1D4757;
        font-size: 20px;
        font-weight: 700;
        line-height: 32px;
        margin: 0 0 4px 0;
    }

    /* Mobile Job title styling */
    .als-testimonial-title-mobile {
        color: #496E7A;
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
        margin: 0 0 16px 0;
    }

    /* Mobile Quote styling */
    .als-testimonial-quote-mobile {
        color: #1D4757;
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
        margin: 0;
        font-style: normal;
    }

    /* Mobile Portrait image styling */
    .als-testimonial-image-mobile {
        position: absolute;
        bottom: -136px;
        right: 0px;
        z-index: -1;
    }

    .als-testimonial-portrait-mobile {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* Mobile Speech bubble decoration */
    .als-speech-bubble-mobile {
        position: absolute;
        bottom: -15px;
        right: 30px;
        z-index: 99;
        width: 30px;
        height: 15px;
        pointer-events: none;
        display: none; /* Temporarily hidden */
    }

    .als-speech-bubble-mobile img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

    /* Mobile Navigation Arrows */
    .als-careers-slider-navigation-mobile {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        z-index: 10 !important;
        width: auto !important;
        height: auto !important;
        position: relative !important;
        margin-top: 24px !important;
    }

    .als-careers-slider-arrow-mobile {
        width: 40px !important;
        height: 40px !important;
        border: none !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: white !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        font-family: inherit !important;
        font-size: inherit !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
        float: none !important;
        clear: none !important;
        position: relative !important;
    }

    .als-careers-slider-arrow-mobile:hover {
        background: none !important;
    }

    .als-careers-slider-arrow-mobile:active {
        background: none !important;
    }

    .als-careers-slider-arrow-mobile img {
        width: 40px;
        height: 40px;
        display: block;
        transform: rotate(90deg);
    }

    .als-careers-slider-arrow-mobile:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .als-careers-slider-arrow-mobile:disabled:hover {
        background: none !important;
    }

    /* Mobile Loading state */
    .als-careers-slider-wrapper-mobile[data-loading="true"] .als-careers-slider-track-mobile {
        opacity: 0.5;
    }
}

/* Navigation Arrows */
.als-careers-slider-navigation {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    z-index: 10 !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    margin-top: 24px !important;
}

.als-careers-slider-arrow {
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
}

.als-careers-slider-arrow:hover {
    background: none !important;
}

.als-careers-slider-arrow:active {
    background: none !important;
}

.als-careers-slider-arrow img {
    width: 40px;
    height: 40px;
    display: block;
}

.als-careers-slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.als-careers-slider-arrow:disabled:hover {
    background: none !important;
}

/* Loading state */
.als-careers-slider-wrapper[data-loading="true"] .als-careers-slider-track {
    opacity: 0.5;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .als-careers-slider-track {
        transition: none;
    }
}


