/* Banner Styling */
.banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    margin-top: 0;
    height: 200px; /* Fixed height for the banner */
}

.banner {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the entire image is displayed */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Start with all images hidden */
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out; /* Smooth transition for opacity and transform */
    display: none;
}

/* Active image styling */
.banner img.active {
    opacity: 1; /* Show active image */
    transform: scale(1.05); /* Slightly scale up the active image */
    z-index: 2; /* Ensure active image is on top */
    display: block;
}

/* Navigation arrows styling */
.banner-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3; /* Ensure arrows are above the images */
}

.banner-nav button {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.banner-nav button:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Spiral Animation */
@keyframes spiralAnimation {
    0% {
        opacity: 1;
        transform: translate(0px, 0px) rotate(0deg) scale(1.05); /* Starting position */
        z-index: 2;
    }
    25% {
        opacity: 1;
        transform: translate(50px, 50px) rotate(90deg) scale(1.05); /* Move and rotate */
        z-index: 2;
    }
    50% {
        opacity: 1;
        transform: translate(150px, 150px) rotate(180deg) scale(1.05); /* More movement */
        z-index: 2;
    }
    75% {
        opacity: 1;
        transform: translate(250px, 250px) rotate(270deg) scale(1.05); /* Continue movement */
        z-index: 2;
    }
    100% {
        opacity: 1;
        transform: translate(350px, 350px) rotate(360deg) scale(1.05); /* End position, one full spiral */
        z-index: 2;
    }
}

/* Apply spiral animation */
.banner img {
    animation: spiralAnimation 12s infinite, fadeZoom 12s infinite;
}

/* Staggering the animation delays for each image */
.banner img:nth-child(1) {
    animation-delay: 0s;
}

.banner img:nth-child(2) {
    animation-delay: 4s;
}

.banner img:nth-child(3) {
    animation-delay: 8s;
}

/* Fade and Zoom keyframes for smooth transition */
@keyframes fadeZoom {
    0% { opacity: 1; transform: scale(1.05); z-index: 2; }
    33% { opacity: 1; transform: scale(1.05); z-index: 2; }
    34% { opacity: 0; transform: scale(1); z-index: 1; }
    100% { opacity: 0; transform: scale(1); z-index: 1; }
}