/* Popup container for events */
.menu-events-popup__container {
    box-sizing: border-box;
    position: absolute;
    width: 919px;
    height: 229px;
    left: 260px;
    top: 90px;
    background: #FFFFFF;
    border: 1px solid #EDEDF9;
    box-shadow: 0px 4px 40px rgba(80, 81, 196, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    display: flex;
    padding: 40px;
    gap: 25px;
    z-index: 100;
    position: relative;
}

/* Event card */
.menu-events-popup__card {
    position: relative;
    width: 403px;
    height: 149px;
    background: #F8F8F8;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card header */
.menu-events-popup__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    position: absolute;
    width: 363px;
    height: 48px;
    left: 20px;
    top: 16px;
    border-radius: 8px 0px 0px 8px;
}

/* Card title */
.menu-events-popup__card-title {
    width: auto;
    height: 22px;
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 800;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.01em;
    font-feature-settings: 'tnum' on, 'onum' on;
    color: #1A1A40;
    margin: 0;
}

/* Arrow icon */
.menu-events-popup__card-arrow {
    width: 24px;
    height: 24px;
}

.menu-events-popup__card-arrow path {
    stroke: #1A1A40;
    stroke-width: 1.5;
}

/* Card description */
.menu-events-popup__card-description {
    position: absolute;
    width: 338px;
    left: 28px;
    top: 68px;
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: -0.01em;
    font-feature-settings: 'tnum' on, 'onum' on;
    color: #1A1A40;
    margin: 0;
}

/* Badge on the card */
.menu-events-popup__card-badge {
    position: absolute;
    width: 73px;
    height: 28px;
    left: 68px;
    top: 66px;
    background: #F7DF1E;
}

@media (max-width: 1024px) {
    .menu-events-popup__container {
        position: absolute;
        width: 316px;
        height: auto; /* Adjust height to fit content */
        left: calc(50% - 316px/2);
        top: 54px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0px 4px 40px rgba(80, 81, 196, 0.15);
        backdrop-filter: blur(12px);
        border-radius: 24px;
        flex-direction: column; /* Stack items vertically */
        padding: 14px; /* Add padding to the container */
    }

    .mobile-about-cards .menu-events-popup__card {
        padding: 16px 0px 24px;
        gap: 4px;
        background: #F8F8F8;
        border-radius: 16px;
    }

    .mobile-about-cards .menu-events-popup__card-header {
        padding: 12px;
        gap: 10px;
        width: 288px;
        height: 48px;
        border-radius: 8px 0px 0px 8px;
    }

    .mobile-about-cards .menu-events-popup__card-title {
        font-size: 16px;
    }

    .mobile-about-cards .menu-events-popup__card-description {
        padding: 0px 12px;
        gap: 10px;
        width: 288px;
        height: 57px;
    }

    .mobile-popup-header {
        display: flex;
        gap: 14px;
        padding: 12px;
        position: relative; /* Change from absolute to relative */
        top: 0;             /* Reset top */
        left: 0;    
        flex-direction: column;        /* Reset left */
    }

    .mobile-popup-back {
        display: flex;
        align-items: center;
        padding: 12px;
        gap: 8px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-popup-back span {
        font-family: 'Manrope';
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.01em;
        background: radial-gradient(100% 172.04% at 100% 100%, #23C0AD 0%, #4C50CC 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
    }

    .mobile-popup-title {
        font-family: 'Manrope';
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.01em;
        color: #1A1A40;
    }
} 