/* ==========================================================================
   DESKTOP & GENERAL SLIDER STYLES
   ========================================================================== */

/* Main Container Fix - Prevents Page Horizontal Scroll */
.cbs-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 75vh;
    min-height: 480px;
    overflow: hidden;
}

/* Force Full Width on Desktop Screens */
@media (min-width: 769px) {
    .cbs-slider-container {
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
    }
}

.cbs-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cbs-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    box-sizing: border-box;
}

.cbs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay: Darker at the bottom left for maximum readability */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Content Layout Alignment (Bottom-Left Aligned for Premium Look) */
.cbs-content-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 30px 60px 30px; /* Padding pushes content away from bottom edge */
    display: flex;
    justify-content: flex-start;
    align-items: flex-end; /* Aligns text & buttons to the BOTTOM */
    box-sizing: border-box;
}

.cbs-content {
    max-width: 650px;
    text-align: left;
    color: #ffffff;
    font-family: "Open Sans";
    
}

.cbs-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: "Open Sans";
}

.cbs-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-family: "Open Sans";
}

.cbs-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: "Open Sans";
}

.cbs-button:hover {
    background-color: #005177;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Navigation Controls (Arrows & Dots) */
.cbs-prev, .cbs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    font-size: 20px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cbs-prev:hover, .cbs-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.cbs-prev { left: 20px; }
.cbs-next { right: 20px; }

.cbs-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.cbs-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.cbs-dot.active {
    background: #ffffff;
}


/* ==========================================================================
   MOBILE OPTIMIZATIONS (Bottom-Left Alignment)
   ========================================================================== */
@media (max-width: 768px) {
    .cbs-slider-container {
        height: 45vh;
        min-height: 320px;
    }

    /* Keeps elements pinned to bottom-left on mobile screens */
    .cbs-content-container {
        padding: 0 20px 35px 20px; /* Space above bottom dots */
        align-items: flex-end;
    }

    .cbs-content {
        max-width: 100%;
    }

    .cbs-heading {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .cbs-description {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 12px;
    }

    .cbs-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .cbs-prev, .cbs-next {
        font-size: 12px;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.3);
    }

    .cbs-prev { left: 6px; }
    .cbs-next { right: 6px; }

    .cbs-dots {
        bottom: 10px;
    }

    .cbs-dot {
        width: 7px;
        height: 7px;
    }
}