.ongoing,
.upcoming {
    position: relative;
    max-width: 90vw;
    margin: 50px auto 30px auto;
}

.ongoing img,
.upcoming img {
    width: 100%;
    height: 500px;
    display: block;
    border-radius: 10px;
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 15px;
    width: 95%;
    height: auto;
    text-align: center;
}

.text-overlay h3 {
    font-weight: bolder;
    font-size: 3rem;
    margin: 15px auto 0px auto;
}

.text-overlay h2 {
    color: rgb(0, 250, 158);
    font-size: 3.5rem;
    font-weight: bolder;
    line-height: 1;
    margin-bottom: 5px;
}

.text-overlay p {
    font-size: 2rem;
    line-height: 1.1;
}

.text-overlay button a {
    text-decoration: none;
    color: #0a2906;
}

.text-overlay button {
    display: block;
    margin: 20px auto;
    padding: 12px 22px;
    background: rgb(8, 233, 158);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 20px;
}

.text-overlay button:hover {
    background: #0cbe80;
}

@media (max-width: 1440px) {
    .text-overlay h3 {
        font-weight: 20px;
        font-size: 2rem;
    }

    .text-overlay h2 {
        font-size: 2.5rem;
    }

    .text-overlay p {
        font-size: 1.5rem;
    }

    .text-overlay button {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .text-overlay h3 {
        font-size: 1.7rem;
    }

    .text-overlay h2 {
        font-size: 2.2rem;
    }

    .text-overlay p {
        font-size: 1.2rem;
    }

    .text-overlay button {
        padding: 9px 16px;
        font-size: 14px;
    }
}

@media (max-width: 850px) {
    .text-overlay h3 {
        font-size: 1.4rem;
    }

    .text-overlay h2 {
        font-size: 1.6rem;
    }

    .text-overlay button {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .text-overlay p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .text-overlay h3 {
        font-size: 1.1rem;
    }

    .text-overlay h2 {
        font-size: 1.2rem;
    }

    .text-overlay p {
        font-size: 0.8rem;
    }

    .upcoming img,
    .ongoing img {
        height: 40vh;
    }

    .upcoming,
    .ongoing {
        margin-top: 13%;
    }
}