/* Section Styling */
#products {
    min-height: 100vh;
    padding: 2em;
    margin: 1em auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    width: calc(100% - 2em);
    background-color: #031B1B;
    border-radius: 6rem;
    overflow: hidden;
    box-sizing: border-box;
}

/* Split Screen Styling */
.split-screen {
    display: flex;
    width: 100%;
    height: 80%;
    border-radius: inherit; /* Inherit the border-radius from the parent */
}

.left-side, .right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Left Side Styling */
.left-side {
    background-color: #031B1B; /* Dark background */
    color: #C9FEFF; /* Light teal for text */
    text-align: center;
}

.left-side img {
    max-width: 200px;
    margin: 3em;
}

.left-side h1 {
    font-size: 48px;
    margin: .25em;
    
}

.left-side p {
    font-size: 24px;
    margin: 1em;
}

.left-side h1, .left-side p {
    width: 80%;
    margin: 1em;
}

.left-side .btn {
    background-color: #0E9294;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: center;
    transition: background-color 0.3s ease;
}

.left-side .btn:hover {
    background-color: #0A6769;
}

/* Right Side Styling */
.right-side {
    background-color: #031B1B; /* White background */
    color: #031B1B; /* Dark text color */
    text-align: center;
    display: flex;
    justify-content: center; /* Align content to the center */
    position: relative; /* Position relative for absolute positioning of buttons */
    
}

/* Carousel Styling */
.carousel {
    width: 100%;
    max-width: 940px;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: .25em;
}


.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2em;
    cursor: pointer;
    margin: 0 3em;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: #0E9294;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.carousel-control.prev {
    left: -30px;
}

.carousel-control.next {
    right: -30px;
}

/* Ensure the chevron is centered */
.carousel-control i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-indicators {
    margin: 1em;
    position: absolute;
 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: auto; /* Ensure indicators can be clicked */
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background-color: #0E9294;
}

@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
        height: auto;
        /* Remove fixed margin-bottom */
    }

    .left-side,
    .right-side {
        width: 100%;
        text-align: center;
    }

    .carousel {
        max-width: 100%;
        margin-top: 20px;
    }

    .carousel-control {
        width: 40px;
        /* Smaller size for mobile */
        height: 40px;
        font-size: 1.5em;
        /* Smaller chevron */
        margin: 0 1em;
        /* Reduce margin to bring controls closer to content */
    }

    .carousel-control.prev {
        left: 5px;
        /* Adjust position */
    }

    .carousel-control.next {
        right: 5px;
        margin-right: .25em;
        /* Adjust position */
    }

    .carousel-inner {
        padding: 0 10px;
        /* Slight padding adjustment */
    }

    .carousel-indicators {
        gap: 8px;
        /* Slightly smaller gap for mobile */
    }

    .indicator {
        width: 8px;
        /* Smaller indicators */
        height: 8px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .split-screen {
        flex-direction: column;
        height: auto;
        /* Remove fixed margin-bottom */
    }

    .left-side,
    .right-side {
        width: 100%;
        text-align: center;
    }

    .carousel {
        max-width: 100%;
        margin-top: 1em;
    }

    .carousel-control {
        width: 50px;
        /* Medium size for tablets */
        height: 50px;
        font-size: 1.8em;
        margin: 0 2em;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-inner {
        padding: 0 15px;
    }
}
