/* General styles for the slider */
.callbacks_container {
    position: relative;
    overflow: hidden; /* Prevent overflow */
}

.rslides {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rslides li {
    position: relative;
}

/* Base styles for the slider image */
.slider-head-banners {
    width: 100%; /* Ensure the image scales with the container width */
    height: 300px; /* Default height for larger screens */
    object-fit: cover; /* Ensure the image covers the container without distortion */
    display: block;
}

/* Caption styles */
.caption {
    position: absolute;
    bottom: 20px; /* Space from the bottom */
    left: 0;
    right: 0;
    padding: 10px;
    background: none; /* Remove any background color or shading */
    color: #fff;
    text-align: center;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .slider-head-banners {
        height: 750px; /* Increase height by 2.5 times the base height for tablets */
    }

    .caption {
        bottom: 10px; /* Adjust spacing on smaller screens */
        padding: 5px;
        background: none; /* Ensure no background color or shading */
    }

    .hot-property-info h3,
    .hot-property-info h4 {
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    .hot-property-info a {
        padding: 8px 12px; /* Adjust button padding */
    }
}

@media (max-width: 480px) {
    .slider-head-banners {
        height: 750px; /* Increase height by 2.5 times the base height for very small screens */
    }

    .caption {
        font-size: 14px; /* Further adjust font size */
        bottom: 5px;
        padding: 5px;
        background: none; /* Ensure no background color or shading */
    }

    .hot-property-info h3,
    .hot-property-info h4 {
        font-size: 12px; /* Adjust for very small screens */
    }

    .hot-property-info a {
        padding: 6px 10px; /* Further adjust button padding */
    }
}

.margin-top-8 {
    padding-top: 8px;
}