.agenda {
    min-height: 100%;
    padding: 150px 0px;
    background: #0f0c29;
    /* Fallback for browsers that don't support gradients */
    background:
        radial-gradient(at 10% 10%, hsla(289, 84%, 38%, 1) 0px, transparent 50%),
        radial-gradient(at 90% 10%, hsla(208, 93%, 35%, 1) 0px, transparent 50%),
        radial-gradient(at 10% 90%, hsla(47, 91%, 51%, 1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(289, 84%, 38%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, hsla(208, 93%, 35%, 1) 0px, transparent 50%);
    background-color: #0f0c29;
    background-size: 200% 200%;
    animation: gradient-animation 20s ease infinite reverse;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    /* Non blurry look of the background transition */
    /* mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 100%); */
    box-shadow: inset 0px 100px 40px -50px rgb(255, 255, 255);
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.agendaElement {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(300px, 30vw, 425px);
    height: max-content;
    margin: 32px 16px 0px 16px;
    /* padding: 36px; */
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* background-image: linear-gradient(green, blue); */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 60px;
    /* Required for positioning the ::after pseudo-element */
    position: relative;
    /* Ensures the effect is clipped by the border-radius */
    overflow: hidden;
}





.agendaElement img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 60px 60px 0 0;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    filter: blur(8px);
    z-index: 0;

}



.agendaElement::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Height based on .agendaElement width */

    object-fit: cover;
    object-position: 0 30%;
    aspect-ratio: 1 / 1;
    /* Use the variable again to create the clear top layer */
    background-image: var(--image-url);
    background-size: cover;
    /* background-position: center;  */

    /* Apply a mask to this TOP layer. Where the mask is transparent (at the bottom),
       the blurred ::before pseudo-element underneath will show through. */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    z-index: 1;
}



.agendaElement h2 {
    font-family: Rammetto-One;
    font-size: clamp(18px, 1.8vw, 28px);
}

.agendaElement button {
    margin: 8px 0px 0px 0px;
}

.agendaElement button p {
    font-size: clamp(15px, 1.4vw, 24px);
    color: var(--color1);
}

.agendaContent {
    width: 100%;
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(0px, -45px);
    z-index: 2;
}

.agendaText {
    width: 100%;
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

}

.agendaText>p {
    font-size: clamp(13px, 1.1vw, 17px);
    font-weight: 600;
    margin: 10px 0px;
}

/* .agendaElement>* {
    margin: 40px;
} */

/* .agendaElement img {
    width: 20vw;
    height: auto;
    min-width: 320px;
    max-width: 450px;
    border-radius: 20px;
} */

.button2 {
    /* Compute the width according to the text padding from .agendaText */
    width:calc(100% - 40px);
}

@media screen and (min-width: 769px) and (max-width: 1050px) {
    .agendaElement {
        width: clamp(300px, 43vw, 400px);
    }
    .agendaText>p{
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .agenda {
        padding: 50px 0px;
        /* padding: 150px; */
    }

    .agendaElement {
        width: clamp(300px, 80vw, 425px);
    }

    /* .agendaElement::after {
        height: 65vw;
    } */

    /* 
    .agendaElement img {
        width: 100%;
        height: auto;
        border-radius: 20px;
    } */

    .agendaElement h2 {
        font-size: 24px;
    }
    .agendaElement button p{
        font-size: 18px;
    }
    .agendaText>p {
        font-size: 16px;
    }

    .button2 p {
        text-align: center;
    }

}