/* Main Slider Styles */
.main-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    width: 100%;
}

/* Ensure BXSlider container is properly styled */
.bx-wrapper {
    max-width: none !important;
    margin: 0 !important;
}

.bx-wrapper .bx-viewport {
    border: none !important;
    box-shadow: none !important;
}

.slider {
    height: 100%;
}

.bxslider {
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

.bxslider li {
    height: 600px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.bxslider li .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.bxslider li .content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    text-align: center !important;
    color: white !important;
    max-width: 800px !important;
    padding: 0 20px !important;
    width: 100% !important;
}

.bxslider li .content .inner {
    animation: fadeInUp 1s ease-out;
    width: 100% !important;
}

.bxslider li .content .text h2 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bxslider li .content .text h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.bxslider li .content .text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* BXSlider Controls */
.bx-wrapper {
    margin: 0 auto !important;
    position: relative !important;
}

/* Ensure BXSlider controls are visible */
.bx-wrapper .bx-controls-direction a {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(1, 156, 140, 0.8) !important;
    color: white !important;
    text-align: center !important;
    line-height: 50px !important;
    font-size: 32px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    display: block !important;
}

/* Add arrow icons using Font Awesome */
.bx-wrapper .bx-controls-direction a::before {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    line-height: 50px !important;
    display: block !important;
}

.bx-wrapper .bx-prev::before {
    content: '\f104' !important; /* Font Awesome left arrow */
    margin-top: -53px !important;
}

.bx-wrapper .bx-next::before {
    content: '\f105' !important; /* Font Awesome right arrow */
    margin-top: -53px !important;
}

/* Alternative approach using Unicode arrows */
.bx-wrapper .bx-prev {
    content: '‹' !important;
}

.bx-wrapper .bx-next {
    content: '›' !important;
}

/* Unicode arrows as fallback */
.bx-wrapper .bx-controls-direction a.unicode-arrow {
    font-size: 32px !important;
    font-weight: bold !important;
    color: white !important;
    text-decoration: none !important;
}

/* Styles for Font Awesome icons added by JavaScript */
.bx-wrapper .bx-controls-direction a i {
    font-size: 20px !important;
    line-height: 50px !important;
    display: block !important;
    text-align: center !important;
    color: white !important;
    font-weight: 900 !important;
}

/* Ensure controls have proper text color */
.bx-wrapper .bx-controls-direction a {
    color: white !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

.bx-wrapper .bx-controls-direction a {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(1, 156, 140, 0.8);
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.bx-wrapper .bx-controls-direction a:hover {
    background: rgba(1, 156, 140, 1) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(1, 156, 140, 0.4) !important;
}

.bx-wrapper .bx-prev {
    left: 20px !important;
}

.bx-wrapper .bx-next {
    right: 20px !important;
}

/* Ensure BXSlider pager is visible */
.bx-wrapper .bx-pager {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: block !important;
}

.bx-wrapper .bx-pager .bx-pager-item {
    display: inline-block !important;
    margin: 0 5px !important;
}

.bx-wrapper .bx-pager .bx-pager-item a {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    text-indent: -9999px !important;
    transition: all 0.3s ease !important;
}

.bx-wrapper .bx-pager .bx-pager-item a.active,
.bx-wrapper .bx-pager .bx-pager-item a:hover {
    background: #019C8C !important;
}

/* BXSlider Pager */
.bx-wrapper .bx-pager {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.bx-wrapper {
    /* margin: 0 auto !important; */
    border: 0px !important;
}

.bx-wrapper .bx-pager .bx-pager-item {
    display: inline-block;
    margin: 0 5px;
}

.bx-wrapper .bx-pager .bx-pager-item a {
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    text-indent: -9999px;
    transition: all 0.3s ease;
}

.bx-wrapper .bx-pager .bx-pager-item a.active,
.bx-wrapper .bx-pager .bx-pager-item a:hover {
    background: #019C8C;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-slider {
        height: 400px;
    }
    
    .bxslider li {
        height: 400px;
    }
    
    .bxslider li .content .text h2 {
        font-size: 2.5rem;
    }
    
    .bxslider li .content .text h3 {
        font-size: 1.5rem;
    }
    
    .bxslider li .content .text p {
        font-size: 1rem;
    }
    
    .bx-wrapper .bx-controls-direction a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .main-slider {
        height: 300px;
    }
    
    .bxslider li {
        height: 300px;
    }
    
    .bxslider li .content .text h2 {
        font-size: 2rem;
    }
    
    .bxslider li .content .text h3 {
        font-size: 1.2rem;
    }
    
    .bx-wrapper .bx-controls-direction a {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 20px !important;
    }
}
