/* Scrollbar Fix CSS - Remove unwanted scrollbars from navbar and other sections */

/* Remove scrollbars from body and html */
html, body {
    overflow-x: hidden !important;
}

/* Fix navbar scrollbar issues */
.main-header,
.main-header__inner,
.main-header__nav,
.main-menu,
.main-menu__list {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Ensure container-fluid doesn't cause horizontal scrollbars */
.container-fluid {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Fix dropdown menu scrollbars */
.sub-menu,
.dropdown .sub-menu {
    overflow: visible !important;
    max-height: none !important;
}

/* Remove scrollbars from common sections that might have them */
.page-wrapper {
    overflow-x: hidden !important;
}

/* Fix carousel and slider scrollbars */
.main-slider-two,
.main-slider-two__carousel,
.owl-carousel {
    overflow: hidden !important;
}

/* Remove scrollbars from sidebar */
.sidebar-one,
.sidebar__content {
    overflow-x: hidden !important;
}

/* Fix mobile navigation scrollbars */
.mobile-nav__wrapper,
.mobile-nav__content {
    overflow-x: hidden !important;
}

/* General fix for any element that might cause horizontal scrollbars */
* {
    box-sizing: border-box;
}

/* Prevent images from causing scrollbars */
img {
    max-width: 100%;
    height: auto;
}

/* Fix any section that might have overflow issues */
section,
.section {
    overflow-x: hidden !important;
}

/* Custom scrollbar styling for elements that need vertical scrolling */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* For Firefox */
* {
    scrollbar-width: none;
}

/* Additional fixes for specific layout issues */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.col-12,
.col-lg-12,
.col-md-12,
.col-sm-12 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Ensure no element extends beyond viewport width */
.main-header__right {
    flex-wrap: wrap;
}

/* Fix button and link overflow */
.ienet-btn,
.main-header__btn {
    white-space: nowrap;
    overflow: hidden;
}

/* Fix Hero Section Height - Make it viewport height only */
.main-slider-two {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.main-slider-two__item {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.main-slider-two__bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.main-slider-two__bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.main-slider-two__content {
    position: relative !important;
    z-index: 2 !important;
    padding: 0 50px !important;
}


/* Responsive fixes for mobile devices */
@media (max-width: 768px) {
    .main-slider-two {
        height: 100vh !important;
    }
    
    .main-slider-two__content {
        padding: 0 20px !important;
    }
    
    .testimonials-two__wrapper {
        padding: 30px 15px !important;
    }
    
    .testimonials-two__item {
        margin-bottom: 30px !important;
        padding: 15px !important;
    }
}
