/* General flexbox centering to keep overall layout consistent */
.slider-wrapper.default > div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

/* Ensure slider text is visible */
.fade:not(.show) {
    opacity: 1;
    transition: opacity 0.15s linear;
}

/* Full height for hero slide main content */
.hero-slide-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    text-align: center;
}

/* Ensure text is positioned on top of the image */
.hero-slide-item {
    position: absolute;
    top: 50%;
    left:38%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    max-width: 80%;
    text-align: left;
    z-index: 10;
    padding: 10px;
}

/* Styling for hero slide titles */
.hero-slide-item h2.content {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    transition: opacity 1s ease-in-out;
    opacity: 1;
    padding: 10px;
    color: white;
    text-align: left;
    width: 100%;
    z-index: 20;
}

/* Styling for paragraphs within hero content */
.hero-slide-item p.content {
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
    transition: opacity 1s ease-in-out;
    opacity: 1;
    padding: 10px;
    color: white;
    text-align: left;
    width: 100%;
    z-index: 20;
}

/* Media container styling */
.media-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Dedicated background overlay */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 64, 83, 0.5);
    z-index: 5;
}

/* Make sure the image or video fills the container */
.media-container img.bg,
.media-container video.bg {
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Social media positioning */
.slider-wrapper.default > div .social {
    position: absolute;
    top: 4%;
    left: 3%;
    z-index: 10000;
}

.slider-wrapper.default > div .social div {
    float: left;
    margin-right: 10px;
    z-index: 10000;
}
@media only screen and (max-width: 768px) {
    .hero-slide-item {
        top: 50%; /* Ensure vertical centering */
        left: 38%; /* Ensure horizontal centering */
        transform: translate(-50%, -50%); /* Center element on mobile */
        text-align: left; /* Center text on smaller screens */
        max-width: 90%; /* Adjust width to fit mobile view */
    }

    .hero-slide-item h2.content {
        font-size: 20px; /* Reduce font size for mobile */
        padding: 5px; /* Adjust padding for smaller screens */
    }

    .hero-slide-item p.content {
        font-size: 14px; /* Reduce paragraph font size for mobile */
        padding: 5px; /* Adjust padding for mobile view */
    }
}
