/* Main slider container */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    max-height: 700px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    position: relative;
    margin: 0 auto;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

/* Slide information container - Using flex layout for better positioning */
.slide-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    pointer-events: none; /* Allow clicks to pass through */
    box-sizing: border-box;
}

/* Text container with semi-transparent background */
.slide-text-container {
    background-color: rgba(36, 36, 36, 0.384);
    padding: 20px 30px;
    border-radius: 8px;
    transform: translateY(0);
    opacity: 1;
    animation: fadeInUp 0.8s ease forwards 0.3s;
    max-width: 600px;
    pointer-events: auto; /* Allow interaction */
    box-sizing: border-box;
    width: 100%;
}

/* Title styling */
.slide-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    opacity: 1;
    word-wrap: break-word;
}

/* Description styling */
.slide-description {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 1;
    word-wrap: break-word;
}

/* Call-to-action button styling */
.slide-btn, .btn-contact {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 25px;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    pointer-events: auto;
    white-space: nowrap;
}

.slide-btn:hover, .btn-contact:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Navigation buttons */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 18px;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    max-width: 15%;
    min-width: 30px;
    min-height: 30px;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner specific styles (from second CSS) */
.banner {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.content-banner {
    max-width: 50%;
    text-align: left;
    margin-left: 5%;
}

.content-banner p {
    color: #f3f3f3;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.content-banner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Display structure helper */
.d-flex-P {
    display: flex !important;
}

/* Responsive styles */
@media (max-width: 992px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-btn, .btn-contact {
        padding: 10px 20px;
        font-size: 1rem;
    }
    

    .slide-text-container {
        padding: 15px 20px;
        max-width: 100%;
        background-color: rgba(36, 36, 36, 0.384);
        margin-top: -450px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: auto;
        min-height: 400px;
    }
    
    .content-banner {
        max-width: 70%;
    }
    
    .d-flex-P {
        display: flex !important;
        flex-direction: column;
    }
    
    .slide-info {
        padding: 0 60px; /* Increase to give space for buttons */
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .slide-btn, .btn-contact {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .slide-text-container {
        padding: 15px 20px;
        max-width: 100%;
        background-color: rgba(36, 36, 36, 0.384);
        margin-top: -450px;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-top: -100px;
    }
}

@media (max-width: 576px) {
    .banner {
        min-height: 343px;
        margin-top: 47px;
    }
    
    .content-banner {
        max-width: 90%;
        margin-left: 0;
        margin: 0 auto;
        margin-top: 47px;
    }
    
    .content-banner h2 {
        font-size: 1.3rem;
    }
    
    .content-banner p {
        font-size: 0.8rem;
    }
    
    .slide-info {
        padding: 0 50px;
        align-items: center; /* Center the content on small screens */
    }
    
    .slide-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .slide-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .slide-btn, .btn-contact {
        padding: 6px 14px;
        font-size: 0.8rem;
        margin-top: 10px;
        margin-left: -170px;
    }
    
    .slide-text-container {
        padding: 10px 15px;
        max-width: 70%;
        margin-left: -90px;
        background-color: rgba(36, 36, 36, 0.384);
        text-align: center; /* Center text on small screens */
        margin-top: -400px;
    }
    
    .slider-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
        min-width: 30px;
        min-height: 30px;
        margin-top: -210px;
       
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    
    .slider-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    max-height: 212px;
}
    
    
    .banner {
        width: 100%;
        max-width: 485px;
        margin: 0 auto;
        margin-top: 47px;
    }
    
    .d-flex-P {
        display: flex !important;
        flex-direction: column;
    }
    
    .slide-info {
        padding: 0 40px;
    }
    
    .slide-text-container {
        padding: 8px 12px;
        background-color: rgba(36, 36, 36, 0.384);
    }
    
    .slide-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .slide-description {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .slide-btn, .btn-contact {
        padding: 5px 12px;
        font-size: 0.7rem;
        margin-top: 8px;
    }
    
    .slider-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .prev {
        left: 10px;
        margin-top: 0px;
    }
    
    .next {
        right: 10px;
        margin-top: 0px;
    }
    
}