/**
 * Advanced Slider - Internal CSS
 * Customize these styles to match your website design
 */

/* Reset any potential parent margins/padding that could cause gaps */
.advanced-slider-container * {
    box-sizing: border-box;
}

/* ============================================
   SLIDER CONTAINER - No Gaps Version
   ============================================ */
.advanced-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: none;
    display: block;
    line-height: 0;
    border: none;
    outline: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.advanced-slider-container:active {
    cursor: grabbing;
}

.advanced-slider-container.is-dragging {
    cursor: grabbing;
}

/* Remove any default spacing that might cause gaps */
.advanced-slider-container::before,
.advanced-slider-container::after {
    content: '';
    display: none;
}

/* WordPress theme compatibility - override common content area spacing */
.entry-content .advanced-slider-container,
.article-content .advanced-slider-container,
.content-area .advanced-slider-container,
.site-content .advanced-slider-container,
.main-content .advanced-slider-container,
.page-content .advanced-slider-container,
.post-content .advanced-slider-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ============================================
   SLIDER WRAPPER
   ============================================ */
.advanced-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 87vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    /* Performance optimization: Use GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   SLIDER TRACK
   ============================================ */
.advanced-slider-track {
    display: flex;
    width: 100%;
    min-height: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* Performance: Only use will-change during transition */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   INDIVIDUAL SLIDES
   ============================================ */
.advanced-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    /* Performance optimization */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   SLIDE BACKGROUND
   ============================================ */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.8s ease-out;
    /* Performance: Use GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
    /* Lazy loading support */
    content-visibility: auto;
}

/* Fallback background colors for each slide */
.succeedlearn-security-awareness .slide-background {
    background-color: #1e3a8a; /* Blue fallback */
}

.sexual-harassment-prevention .slide-background {
    background-color: #059669; /* Green fallback */
}

.best-in-class-prevention .slide-background {
    background-color: #dc2626; /* Red fallback */
}

.fun-fo-sec-future .slide-background {
    background-color: #f59e0b; /* Orange fallback */
}

/* Ensure background image scales properly on all screen sizes without cropping */
@media (min-width: 1400px) {
    .slide-background {
        background-size: contain;
        background-position: right center;
    }
}

@media (max-width: 1200px) {
    .slide-background {
        background-size: contain;
        background-position: right center;
        min-height: 100%;
    }
}

@media (max-width: 992px) {
    .slide-background {
        background-size: contain;
        background-position: right center;
    }
}

@media (max-width: 768px) {
    .slide-background {
        background-size: contain;
        background-position: right center;
    }
}

@media (max-width: 480px) {
    .slide-background {
        background-size: contain;
        background-position: right center;
    }
}

.advanced-slide:hover .slide-background {
    transform: translateZ(0) scale(1.01);
}

/* Performance: Remove will-change when not transitioning */
.advanced-slider-track:not(.is-transitioning) {
    will-change: auto;
}

.advanced-slider-track.is-transitioning {
    will-change: transform;
}

/* Performance: Optimize image loading */
.slide-background.loaded {
    opacity: 1;
}

.slide-background:not(.loaded) {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* ============================================
   SLIDE OVERLAY
   ============================================ */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    /* Customize overlay color and opacity */
    /* background: rgba(0, 0, 0, 0.4); */
}

/* ============================================
   SLIDE CONTENT
   ============================================ */
.slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 60px 40px 60px 120px;
    text-align: left;
    color: #ffffff;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.slide-inner {
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

/* Text content wrapper */
.slide-text-content {
    max-width: 600px;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TYPOGRAPHY - Fluid Responsive Sizing
   ============================================ */
.slide-h2 {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Customize: font-size, color, font-family */
}

.slide-h3 {
    font-size: clamp(20px, 3.5vw, 38px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    /* Customize: font-size, color, font-family */
}

.slide-h4 {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /* Customize: font-size, color, font-family */
}

.slide-paragraph {
    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.6;
    margin: 0 0 35px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /* Customize: font-size, color, font-family */
}

/* ============================================
   BUTTONS
   ============================================ */
.slide-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.slide-btn {
    display: inline-block;
    padding: clamp(12px, 1.5vw, 16px) clamp(24px, 3vw, 36px);
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 5;
}

.slide-btn-primary {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.slide-btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.slide-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.slide-btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ============================================
   NAVIGATION ARROWS - No Circle, White Arrow
   ============================================ */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-nav svg {
    width: 32px;
    height: 32px;
    stroke: var(--arrow-color, #ffffff);
    fill: none;
    stroke-width: 2.5;
    transition: none;
}

.slider-nav:hover svg {
    /* No hover effects - keep same color */
    stroke: var(--arrow-color, #ffffff);
}

/* Make arrow color changeable via CSS variable */
.advanced-slider-container {
    --arrow-color: #ffffff;
    --arrow-hover-color: #ffffff;
}

/* ============================================
   DOTS NAVIGATION
   ============================================ */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    z-index: 5;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .slide-content {
        padding: 50px 30px 50px 100px;
    }
    
    .slide-text-content {
        max-width: 550px;
    }
}

@media (max-width: 992px) {
    .slide-content {
        padding: 40px 30px 40px 100px;
    }
    
    .slide-text-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .advanced-slider-wrapper {
        height: 87vh;
        min-height: 87vh;
    }
    
    .advanced-slide {
        height: 100%;
        min-height: 100%;
    }
    
    .slide-content {
        padding: 40px 25px 40px 80px;
        min-height: 100%;
    }
    
    .slide-text-content {
        max-width: 100%;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-nav {
        padding: 8px;
    }
    
    .slider-nav svg {
        width: 28px;
        height: 28px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .advanced-slider-wrapper {
        height: 87vh;
        min-height: 87vh;
    }
    
    .advanced-slide {
        height: 100%;
        min-height: 100%;
    }
    
    .slide-content {
        padding: 30px 20px 30px 70px;
        min-height: 100%;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slide-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .slide-content {
        padding: 25px 15px 25px 60px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.slider-nav:focus,
.slider-dot:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ============================================
   LOADING STATE
   ============================================ */
.advanced-slider-container.loading .advanced-slider-track {
    opacity: 0.5;
}

/* ============================================
   CUSTOMIZATION NOTES
   ============================================
   
   To customize colors:
   - Primary button: .slide-btn-primary background-color
   - Secondary button: .slide-btn-secondary border-color
   - Overlay: .slide-overlay background
   
   To customize fonts:
   - Add font-family to .slide-h2, .slide-h3, .slide-h4, .slide-paragraph
   
   To customize spacing:
   - Adjust padding in .slide-content
   - Adjust margins in typography elements
   
   To customize animations:
   - Modify transition durations
   - Change @keyframes fadeInUp
   
   ============================================ */
