/*---about----*/

.caption {
    line-height: 60px;
    font-size: 36px;
    color: #fff;
    position: relative;
    text-align: center;
    text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 60px;
    margin-left:0px!important ;
}

.text-box {
    display: inline-block;
    position: relative;
    width: 160px; /* Increased for long text */
    height: 60px;
}

.text-box div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-left: 10px;
    text-align: center;
    opacity: 0;
    font-size: 36px;
    text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.25);
    animation: rollDown 9s ease infinite;
}

.text-box div:nth-child(1) {
    animation-delay: 0s;
}

.text-box div:nth-child(2) {
    animation-delay: 3s;
}

.text-box div:nth-child(3) {
    animation-delay: 6s;
}

@keyframes rollDown {
    0% {
        opacity: 0;
        top: -30px;
    }
    11% {
        opacity: 1;
        top: 0;
    }
    33% {
        opacity: 1;
        top: 0;
    }
    44% {
        opacity: 0;
        top: 30px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .caption {
        font-size: 20px;
        line-height: 40px;
        margin-left:5px ;
    }
    .text-box {
        width: 130px; /* Adjusted for mobile */
        height: 40px;
    }
    .text-box div {
        font-size: 20px;
    }
    @keyframes rollDown {
        0% {
            opacity: 0;
            top: -20px;
        }
        11% {
            opacity: 1;
            top: 0;
        }
        33% {
            opacity: 1;
            top: 0;
        }
        44% {
            opacity: 0;
            top: 20px;
        }
        100% {
            opacity: 0;
            top: 20px;
        }
    }
}

@media (max-width: 576px) {
    .caption {
        font-size: 16px;
        line-height: 30px;

        margin-left:5px ;
    }
    .text-box {
        width: 110px;
        height: 30px;
    }
    .text-box div {
        font-size: 16px;
    }
    @keyframes rollDown {
        0% {
            opacity: 0;
            top: -15px;
        }
        11% {
            opacity: 1;
            top: 0;
        }
        33% {
            opacity: 1;
            top: 0;
        }
        44% {
            opacity: 0;
            top: 15px;
        }
        100% {
            opacity: 0;
            top: 15px;
        }
    }
}