/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}

/* Slide styling */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slideAnimation 16s infinite;
}

/* Fade animation */
@keyframes slideAnimation {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Adjusting animation delay for each slide */
.slide:nth-child(1) {
    animation-delay: 0s;
}
.slide:nth-child(2) {
    animation-delay: 4s;
}
.slide:nth-child(3) {
    animation-delay: 8s;
}
.slide:nth-child(4) {
    animation-delay: 12s;
}

/* Image styling */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption styling */
.caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    font-family: Arial, sans-serif;
    max-width: 600px;
}

.caption h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.caption p {
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 10px;
}

.btn:hover {
    background: #0056b3;
}
