.project-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right side menu logo css */
.full-width-header .right_menu_togle .canvas-logo img {
    width: 20%;
    height: 20%;
    max-height: max-content;
    object-fit: cover;
}

/* Contact Us component background */
.bg11 {
    background-image: url(/assets/images/contact/contact-bg.jpg);
}

.rs-contact.main-home
    .contact-icons-style.box-address.box-style2
    .contact-item {
    background-image: url(/assets/images/contact/contact-card-bg-2.jpg);
}

/* Awards */
.rs-breadcrumbs.img4 {
    background: url(/assets/images/award/award-bg-1.jpg);
}

/* Make Swiper slide contents the same height using aspect ratio */
.swiper-slide {
    position: relative;
    aspect-ratio: 16 / 9; /* or use fixed height if needed */
    overflow: hidden;
}

/* Make images fill the slide and not overflow */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive video wrapper */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* About Us */
/* Banner */
.rs-breadcrumbs.img1 {
    background: url(/assets/images/about/hero-banner.jpg);
}
/* Visions bacground */
.bg12 {
    background-image: url(/assets/images/about/mission-banner.jpg);
}

/* Teams */
/* Teams Banner */
.rs-breadcrumbs.img10 {
    background: url(/assets/images/team/team-banner-1.jpg);
}

/* Teams image */
.image-wrap img {
    width: 100%;
    height: 300px; /* adjust as needed */
    object-fit: cover;
}

.rs-services.style2.rs-services-style2 .service-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Team Single */
.rs-breadcrumbs.img9 {
    background: url(/assets/images/team/team-single-1.jpg);
}

/* Rules */
.rs-breadcrumbs.imgRule {
    background: url(/assets/images/rule/rules-bg-1.jpeg);
}

/* Projects */
.rs-breadcrumbs.img2 {
    background: url(/assets/images/project/project-bg-1.jpg);
}

/* FAQ */
.rs-breadcrumbs.imgFaq {
    background: url(/assets/images/faq/bg-2.jpg);
}

/* Services */
.rs-breadcrumbs.img6 {
    background: url(/assets/images/services/service-bg-2.jpg);
}

.bg2 {
    background: url(/assets/images/services/progress-bg-1.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Contact */
.rs-breadcrumbs.img8 {
    background: url(/assets/images/contact/contact-bg-1.jpg);
}

.rs-contact.main-home.office-modify1 .office-buliding {
    background: url(/assets/images/contact/contact-bg-2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

/* footer logo css */
.custom-footer-logo {
    width: 50%;
    height: 50%;
}

.rs-footer.style1 .footer-top .footer-logo img {
    height: 100%;
}

/* Hero Slider with Owl Carousel */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .slide-item {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide-bg img,
.hero-slider .slide-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: all 0.3s ease;
    /* Alternative solid overlay - uncomment if you prefer */
    /* background: rgba(0, 0, 0, 0.5); */
}

/* Hover effect for overlay */
.hero-slider .slide-item:hover .slide-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Alternative overlay styles you can use */
.hero-slider .slide-overlay.dark {
    background: rgba(0, 0, 0, 0.6);
}

.hero-slider .slide-overlay.blue {
    background: linear-gradient(
        135deg,
        rgba(0, 31, 63, 0.6) 0%,
        rgba(0, 31, 63, 0.4) 50%,
        rgba(0, 31, 63, 0.7) 100%
    );
}

.hero-slider .slide-overlay.gradient-bottom {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-slider .slider-direction {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-slider .content-part {
    width: 100%;
}

/* Owl Carousel Navigation */
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 20;
}

.hero-slider .owl-nav button {
    position: absolute;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-slider .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.1);
}

.hero-slider .owl-nav .owl-prev {
    left: 30px;
}

.hero-slider .owl-nav .owl-next {
    right: 30px;
}

/* Owl Carousel Dots */
.hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hero-slider .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-slider .owl-dots .owl-dot.active,
.hero-slider .owl-dots .owl-dot:hover {
    background: white;
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slider .slide-item {
        height: 70vh;
        min-height: 500px;
    }
    
    /* Stronger overlay on mobile for better text readability */
    .hero-slider .slide-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    .hero-slider .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .hero-slider .owl-nav .owl-prev {
        left: 15px;
    }
    
    .hero-slider .owl-nav .owl-next {
        right: 15px;
    }
    
    .hero-slider .owl-dots {
        bottom: 20px;
    }
    
    .hero-slider .owl-dots .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Ensure video autoplay */
.hero-slider video {
    pointer-events: none;
}

/* Animation for slide transitions */
.hero-slider .owl-item.active .slider-direction {
    animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override Owl Carousel default styles */
.hero-slider .owl-stage-outer,
.hero-slider .owl-stage {
    height: 100%;
}

.hero-slider .owl-item {
    height: 100vh;
    min-height: 600px;
}

/* Ensure proper z-index stacking */
.rs-slider.slider3 {
    position: relative;
    z-index: 1;
}

/* Fix any potential conflicts with existing slider styles */
.hero-slider .owl-carousel .owl-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video specific styles */
.hero-slider video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.sl-subtitle {
    color: #fff;
}
