/* ===== HERO SLIDER ===== */

/* Let Bootstrap control display, only set position/height */
.mohi-slide.carousel-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 650px;
    height: 650px; /* fallback; Elementor height control overrides this */
}

/* When Bootstrap makes it active/visible, THEN use flex */
.mohi-slide.carousel-item.active,
.mohi-slide.carousel-item.carousel-item-start,
.mohi-slide.carousel-item.carousel-item-end {
    display: flex;
    align-items: center;
}

/* Dark overlay — must be z-index 1 */
.mohi-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Content sits above overlay */
.mohi-slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* ===== TEXT STYLES ===== */
.mohi-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
}

.mohi-title {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.mohi-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ===== BUTTON ===== */

/* বাটনটির বেস স্টাইল */
.mohi-btn {
    position: relative;
    display: inline-block;
    padding: 10px 26px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 9px;
    transition: all 0.3s ease; /* সবকিছুর ওপর ট্রানজিশন */
    border: none;
    z-index: 1;
}

/* আউটলাইন বা দাগ */
.mohi-btn::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;
    width: 100%;
    height: 100%;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    pointer-events: none;
    z-index: -1;
    transition: all 0.3s ease; /* ট্রানজিশন যোগ করা হয়েছে */
    margin-top: 2px;

}

/* হোভার করলে আউটলাইন সরানো এবং বাটন সরানো */
.mohi-btn:hover {
    background-color: #fff !important;
    color: #000 !important;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 8px 24px !important;
}

.mohi-btn:hover::after {
    opacity: 0; /* দাগটি অদৃশ্য হয়ে যাবে */
    top: 0;     /* দাগটিকে মূল বাটনের পজিশনে নিয়ে আসা */
    left: 0;
}
/* ===== INDICATORS (dots) ===== */
.hero .carousel-indicators {
    z-index: 10; /* above overlay */
}
.hero .carousel-indicators button {
    display: flex;
    width: 5px;
    height:5px;
    background-color: #959494;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 100%;
}
.hero .carousel-indicators button.active {
    background-color: #fff;
    opacity: 1;
}


.mohi-carousel-controls {
    position: absolute;
    bottom: 30px;    
    right: 50px;    
    z-index: 10;
    display: flex;
    gap: 20px;       
}


.mohi-carousel-controls button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease;

}

.mohi-carousel-controls button:hover {
    opacity: 0.7;
}




.mohi-slide.carousel-item.active,
.mohi-slide.carousel-item.carousel-item-start,
.mohi-slide.carousel-item.carousel-item-end {
    display: flex;
    align-items: center;     
    justify-content: center;  
}

.mohi-slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    text-align: center;   
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.carousel-item.active .mohi-slide-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.mohi-slide-content {
    opacity: 0; 
}

/* ===== RESPONSIVE ===== */
@media (min-width: 992px) {
    .mohi-carousel-controls {
        display: flex; 
    }
    .hero .carousel-indicators button {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    .mohi-carousel-controls {
        display: none;
    }
    .hero .carousel-indicators button {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .mohi-slide-content { padding: 0 40px; }
    .mohi-slide.carousel-item { min-height: 500px; }

}

@media (max-width: 768px) {
    .mohi-slide-content { padding: 0 25px; max-width: 100%; }
    .mohi-slide.carousel-item { min-height: 450px; }
}

@media (max-width: 425px) {
    .mohi-slide-content { padding: 0 15px; }
    .mohi-slide.carousel-item { min-height: 400px; }
        .mohi-description{
        max-width:250px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }
}