/* Slider Text Size Fixes - Ensure text fits within boundaries */

.slide {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.slide h1,
.slide h3,
.slide p {
    max-width: 100%;
    box-sizing: border-box;
}

.slide h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
}

.slide h3 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem) !important;
}

.slide p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
}

.slide .learnmore {
    margin-top: 1rem !important;
}

.slide .btn {
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    padding: 0.7rem 1.8rem !important;
    white-space: nowrap;
}

/* Ensure slider container fits content */
.slider {
    overflow: hidden;
    position: relative;
}

.slides {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide {
        padding: 1.5rem 1rem !important;
    }
    
    .slide h1 {
        font-size: 1.5rem !important;
    }
    
    .slide h3 {
        font-size: 1.4rem !important;
    }
    
    .slide p {
        font-size: 1.1rem !important;
    }
    
    .slide .btn {
        font-size: 1.1rem !important;
        padding: 0.6rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 1rem 0.8rem !important;
    }
    
    .slide h1 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    .slide h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    .slide p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .slide .btn {
        font-size: 1rem !important;
        padding: 0.5rem 1.2rem !important;
    }
    
    .learnmore {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .learnmore .btn {
        width: 100%;
        max-width: 250px;
    }
}

