/**
 * Hero Slider Component Styles
 * Optimized layout definitions with fluid typography variables.
 */

.st-slider-wrapper {
    position: relative;
    width: 100%;
    /* Desktop layout: Occupies exactly from below the top-bar to the bottom of the viewport */
    height: calc(100vh - 44px); 
    min-height: 550px;
    background-color: #000;
    overflow: hidden;
}

.st-slider {
    position: relative;
    width: 100%;
    height: 100%;
    --slider-speed: 500ms;
}

.st-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--slider-speed) ease-in-out, visibility var(--slider-speed) ease-in-out;
    z-index: 1;
}

.st-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Hardware Accelerated Background - ELIMINATES TOP/BOTTOM BLACK BARS */
.st-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Forces image to stretch and fill the space completely */
    background-position: center bottom; /* Prioritizes people, tents, and boat details */
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.st-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 3;
}

.st-slide-container {
    position: relative;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    z-index: 4;
    justify-content: center
}

.st-slide-content {
    max-width: 1050px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    /* Push content down slightly on desktop so it doesn't clip with the overlay menu */
    padding-top: 40px; 
    text-align: center;
}

.st-slide-text {
    font-size: 68px;
    line-height:  1.2;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.st-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.st-slider-btn:hover {
    background: var(--st-primary-color, #0B3C5D);
}

.st-slider-btn.prev { left: 20px; }
.st-slider-btn.next { right: 20px; }

/* Responsive Grid Breakdowns */
@media (max-width: 991px) {

    .st-slider-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1; 
        min-height: auto;
    }

    .st-slide-content {
        max-width: 80%;
        text-align: center;
        padding-top: 60px; /* Adjusting for mobile menu layout space */
    }

    .st-slide-text {
        font-size: var(--fs-mobile, 24px);
        line-height: var(--lh-mobile, 1.4);
        margin-bottom: 25px;
        text-align: center;
    }

    .st-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .st-slider-btn.prev { left: 10px; }
    .st-slider-btn.next { right: 10px; }
}
