/* =========================================
   NEW BANNER WAVE ANIMATION
   ========================================= */

.new-wave-container {
    position: absolute;
    bottom: -1px;
    /* Sits at the very bottom, -1px prevents pixel gaps */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 20;
    pointer-events: none;
}

.new-wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    /* Default height for desktop */
}

.new-wave-shape {
    fill: #ffffff;
}

/* Animation for the waves */
.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: rgba(255, 255, 255, 0.7);
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: rgba(255, 255, 255, 0.5);
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: rgba(255, 255, 255, 0.3);
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: #ffffff;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .new-wave-container svg {
        height: 85px;
    }
}

@media (max-width: 991px) {
    .new-wave-container svg {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .new-wave-container svg {
        height: 50px;
        /* Compact height for mobile */
        min-height: 40px;
        /* Ensure it's never invisible */
    }
}

@media (max-width: 576px) {
    .new-wave-container svg {
        height: 40px;
    }
}