/* ===== FULL-WIDTH SLIDER WITH TEXT FIXES & GRADIENT OVERLAY ===== */

.sld-full-width-slider {
    position: relative;
    width: 100vw;
    height: 720px;
    overflow: hidden;
}

.sld-slides-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sld-slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 300%; /* 3 slides = 3x viewport width */
    height: 100%;
}

.sld-slide {
    width: 100vw; /* Each slide takes full width */
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

/* ===== IMAGE STYLING WITH GRADIENT OVERLAY ===== */
.sld-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Lighter on the left, darker on the right */
    z-index: 2; /* Overlay stays above the image */
}

.sld-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills slider without stretching */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Keeps image below overlay */
}

/* ===== TEXT BOX STYLING ===== */

.sld-text-box {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translateY(-50%);
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: left;
    max-width: 500px;
    z-index: 3;
}

/* ===== LABEL ABOVE H2 ===== */
.sld-label {
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    color: #010a44;
    border: 2px solid #d65a14; /* Orange border */
    padding: 3px 11px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 10px; /* Adds spacing before the h2 */
}

/* ===== TITLE (H2) ===== */
.sld-text-box h2 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #010a44;
    text-align: left;
}

/* ===== SUBTITLE (P) - ALIGNED WITH H2, MAX WIDTH 550PX ===== */
.sld-text-box p {
    font-size: 16px;
    color: #010a44; /* Slightly lighter than title for contrast */
    line-height: 1.3;
    text-align: left; /* Aligns properly with H2 */
    margin-top: 5px; /* Adds spacing below title */
    max-width: 550px; /* Limits width of text */
}

/* ===== NAVIGATION BUTTONS (FIX CLICK AREA) ===== */

.sld-prev, .sld-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;  /* Increase width */
    height: 60px; /* Increase height */
    border-radius: 50%; /* Make it a circle */
}

.sld-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* Space between dots */
    z-index: 10;
}

.sld-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Ensure ❮ and ❯ are always centered */
.sld-prev span, .sld-next span {
    pointer-events: none; /* Prevent text inside button from blocking clicks */
}

.sld-prev { 
    left: 20px; 
}

.sld-next { 
    right: 20px; 
}

.sld-prev:hover, .sld-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sld-button {
    display: inline-block;
    background-color: #206b7d; /* Dark blue background */
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 20px; /* Space below p */
    transition: background 0.3s ease;
}

/* Button Hover Effect */
.sld-button:hover {
    background-color: #206b7d; /* Slightly lighter blue on hover */
    color:#fff!important;
}





/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .sld-full-width-slider {
        height: 600px;
    }
    
    .sld-slide img {
	display: none;
}

    .sld-slide {
        height: 600px;
    }
    .sld-text-box {

        max-width: 425px;
            top: 60%;
    }
    .sld-label {
        font-size: 14px;
        padding: 4px 12px;
    }
    .sld-text-box h2 {
        font-size: 42px;
    }
    .sld-text-box p {
        font-size: 18px;
        max-width: 500px; /* Adjusts max-width on tablets */
    }
}

@media (max-width: 768px) {
    .sld-full-width-slider {
        height: 500px;
    }
    
        .sld-slide img {
	display: none;
}
    
        .sld-slide::before {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 10%, rgb(246, 246, 247) 70%);
        /* Stronger background at the bottom to make text visible */
    }
    
        .sld-button {
        display: block;
        width: max-content;
        margin: 15px auto 0 auto; /* Centers the button */
    }
    
    .sld-slide {
        height: 500px;
    }
    .sld-text-box {
            top: 61%;
        right: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        text-align: center;
    }
    .sld-label {
        font-size: 12px;
        padding: 3px 10px;
        display: block;
        margin: 0 auto 10px auto; /* Center on mobile */
    }
    .sld-text-box h2 {
        font-size: 32px;
        text-align: center;
    }
    .sld-text-box p {
        font-size: 16px;
        text-align: center;
        max-width: 90%; /* Makes sure it stays within mobile layout */
        margin: 0 auto; /* Centers paragraph */
    }
    
    .sld-prev, .sld-next {
        padding: 10px 15px;
        font-size: 18px;
    }
    .sld-dot {
        width: 10px;
        height: 10px;
    }
    .sld-dot.active {
    background-color: white;
    transform: scale(1.3); /* Slightly larger active dot */
}
}