/* Reset default margins and paddings for all elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Set the default font family for the body */
body {
    font-family: Arial, sans-serif;
}

/* Style the slider container to control the slider's visibility and positioning */
.rslider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid #ccc;
}

/* Format the slider element to align the slides properly */
.rslider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

/* Style the slide elements to make them responsive and visually appealing */
.rslide {
    flex: 0 0 calc(100% / 3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #f0f0f0;
}

/* Style the images and headers within the slide elements */
.rslide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.rslide h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}

/* Media queries to adjust the slider's layout based on the viewport width */
@media (max-width: 1024px) {
    .rslide {
        flex: 0 0 calc(100% / 2);
    }
}

@media (max-width: 767px) {
    .rslide {
        flex: 1 0 100%;
    }
}