
/* Custom Hero Slider Styles */

/* Ensure the slider item acts as a positioning context */
.slider-item {
    position: relative;
    overflow: hidden; /* Keeps content within bounds */
}

/* Center the content wrapper over the image */
.slider-content-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 1200px; /* Limit width on large screens */
    padding: 0 15px;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Center the inner content */
.slider-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Typography and Visibility Enhancements */
.slider-content .caption,
.slider-content .heading,
.slider-content .description {
    color: #fff !important; /* Force white text for better contrast on images */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5); /* Add shadow for visibility */
    margin-bottom: 10px;
    display: block; /* Ensure they take full width/block for centering */
}

.slider-content .caption {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.slider-content .heading {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Northwell', sans-serif; /* Keep consistent font if used */
}

/* Override existing specific styles if they interfere */
.bg-slider-4 .swiper-content .caption, 
.bg-slider-4 .swiper-content .heading {
    text-align: center;
    float: none;
    color: #fff;
}

.bg-slider-4 .swiper-content {
    float: none;
    padding: 0;
    width: 100%;
}

/* Responsive adjustments */
.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-img {
        height: 60vh; /* Adjust height for mobile */
    }
    .slider-content .heading {
        font-size: 40px;
    }
    .slider-content .caption {
        font-size: 18px;
    }
}
