/* Main Banner Styling */
#main-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-wrapper.default > div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

/* Ensure slider text is visible */
.fade {
    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 media */
.hero-slide-item {
    position: absolute;
    top: 50%;
    left: 35%;
    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: 40px; /* Default font size for larger screens */
    font-weight: bold;
    margin: 0;
    transition: opacity 1s ease-in-out, font-size 0.5s ease-in-out; /* Added font-size transition */
    opacity: 1;
    padding: 10px;
    color: white;
    text-align: left;
    width: 80%;
    z-index: 20;
}

/* Styling for paragraphs within hero content */
.hero-slide-item p.content {
    font-size: 20px; /* Default font size for larger screens */
    line-height: 1.3;
    margin: 0;
    transition: opacity 1s ease-in-out, font-size 0.5s ease-in-out; /* Added font-size transition */
    opacity: 1;
    padding: 10px;
    color: white;
    text-align: left;
    width: 70%;
    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;
}

/* Responsive styles */

/* Medium screens (tablets) */
@media (max-width: 768px) {
   .hero-slide-item h2.content {
       font-size: 25px; /* Smaller font size for tablets */
   }

   .hero-slide-item p.content {
       font-size: 13px; /* Smaller font size for tablets */
   }
}

/* Small screens (phones) */
@media (max-width: 576px) {
   .hero-slide-item h2.content {
       font-size: 20px; /* Smaller font size for phones */
   }

   .hero-slide-item p.content {
       font-size: 12px; /* Smaller font size for phones */
   }
}