/* ===============================================
   Upcoming Events Section
   =============================================== */
.upcoming-events-section {
    position: relative;
    padding: 110px 40px 100px;
    background: var(--bg-surface-primary, #0B0A15);
    overflow: hidden;
    z-index: 1; /* Above fixed particles background */
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Upcoming Events Section Top Background Image */
.upcoming-events-section .upcoming-events-top-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/resources/images/home_new/upcoming-events-top-bg.png');
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Upcoming Events Section Bottom Background Image */
.upcoming-events-section .upcoming-events-bottom-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('/resources/images/home_new/upcoming-events-bottom-bg.png');
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Carousel section wrapper */
.upcoming-events-section .carousel-section {
    width: 100%;
    margin-bottom: 60px;
    position: relative;
}


.upcoming-events-section .section-header {
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
}

.upcoming-events-section .event-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin-bottom: 32px;
}

.upcoming-events-section .event-tag svg {
    width: 15px;
    height: 17px;
    flex-shrink: 0;
}

.upcoming-events-section .event-tag span {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.1px;
    background: linear-gradient(138.91deg, #ffbfb5 22.107%, #c4b5ff 55.634%, #b5bfff 84.734%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upcoming-events-section .headline {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 56px;
    line-height: 64px;
    margin: 0;
    background: var(--Mobile-fg-Logo, linear-gradient(91deg, var(--Colors-Violet-900, #413778) -53.46%, var(--fg-primary-rest, #EBEBEE) 82.74%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.upcoming-events-section .btn-outline.btn-outline-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    height: 52px;
    border: 1px solid #ffbfb5;
    border-radius: 999px;
    backdrop-filter: blur(0.75px);
    background: transparent;
    text-decoration: none;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.1px;
    background: linear-gradient(138.91deg, #ffbfb5 22.107%, #c4b5ff 55.634%, #b5bfff 84.734%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 40px;
}

/* Carousel Wheel - GSAP 3D Circular Layout */
.carousel-wheel-container {
    width: 100%;
    height: 520px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-wheel {
    position: relative;
    width: 0;
    height: 0;
}

/* Event Card Wrapper - Contains background layer + card */
.event-card-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    min-width: 0;
    max-width: 280px;
    box-sizing: border-box;
}

/* Background Glow Layer - Blurred image behind card */
.event-card__bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) saturate(1.3) brightness(0.6);
    transform: scale(1.1);
    z-index: 0;
    border-radius: 40px;
    pointer-events: none;
}

/* Event Card */
.event-card {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    text-decoration: none;
    border-radius: 20px;
    overflow: visible;
    will-change: transform;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}


/* Floating card group: image + info */
.event-card .card-main {
    position: relative;
    z-index: 2;
    border-radius: 32px;
    border: var(--stroke-thickness, 1.3px) solid var(--stroke-controls-other-active, rgba(235, 235, 238, 0.15));
    background: var(--Mobile-bg-surface-primary, linear-gradient(180deg, var(--Colors-Base-White-5, rgba(235, 235, 238, 0.05)) 0%, var(--Colors-Base-White-1, rgba(235, 235, 238, 0.01)) 100%));
    box-shadow: 0 5.51px 33.06px 0 rgba(13, 1, 19, 0.80);
    backdrop-filter: blur(137.75100708007812px);
    -webkit-backdrop-filter: blur(137.75100708007812px);
    overflow: visible;
    margin-bottom: 0;
    padding: 12px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    /* Force GPU acceleration for Safari repaint during GSAP animations */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.event-card .card-poster {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.event-card .card-image {
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.event-card .card-image a {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.event-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.event-card .card-info {
    position: relative;
    width: 100%;
    padding: 16px 16px 0 16px;
    color: #EBEBEE;
    z-index: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.event-card .card-title {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 8px 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.event-card .card-title a {
    color: inherit;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.event-card .card-title a:hover {
    text-decoration: none;
}

.event-card .card-datetime {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #9F9CB0;
    transition: color 0.3s ease;
}

.event-card:hover .card-datetime {
    color: #EBEBEE;
}

.event-card .card-datetime p {
    margin: 0;
}

.event-card .card-datetime .divider {
    width: 1px;
    height: 14px;
    background: rgba(235, 235, 238, 0.3);
    border-radius: 999px;
}

/* Bottom section: slides under the top card */
.event-card .card-bottom-info {
    position: absolute;
    bottom: -68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    width: calc(100% - 24px);
    min-height: 215px;
    padding: 0 12px 12px 12px;
    overflow: visible;
    will-change: transform;
    transition: transform 0.3s ease;
}

.event-card:hover .card-bottom-info {
    transform: translateX(-50%) translateY(8px);
}

.event-card .card-bottom-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bottom-bg, #3A896D);
    mask-image: url('/resources/images/home_new/upcoming_event_bottom.svg');
    -webkit-mask-image: url('/resources/images/home_new/upcoming_event_bottom.svg');
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;
    mask-position: 50% 100%;
    -webkit-mask-position: 50% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    z-index: -1;
    will-change: mask-image;
}

.event-card:hover .card-bottom-info::before {
    mask-image: url('/resources/images/home_new/upcoming_event_bottom_hover.svg');
    -webkit-mask-image: url('/resources/images/home_new/upcoming_event_bottom_hover.svg');
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;
    mask-position: 50% 100%;
    -webkit-mask-position: 50% 100%;
}


.event-card .date-badge {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    gap: 3px;
    border-radius: 12px;
    background: rgba(235, 235, 238, 0.12);
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    color: #EBEBEE;
    flex-shrink: 0;
}

.event-card .date-badge .month {
    font-size: 12px;
    line-height: 12px;
    color: rgba(235, 235, 238, 0.6);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.event-card .date-badge .day {
    font-size: 18px;
    line-height: 18px;
    margin: 0;
}

.event-card .venue-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    color: #EBEBEE;
    min-width: 0;
}

.event-card .venue-details .venue-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: left;
}

.event-card .venue-details .event-time {
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: rgba(235, 235, 238, 0.6);
    margin: 0;
}


/* Upcoming Events Responsive */
@media (max-width: 1200px) {
    .carousel-wheel-container {
        height: 500px;
    }

    .carousel-wheel {
        width: 260px;
        height: 420px;
    }

    /* Cards keep consistent size - no resizing */
    /* .event-card {
        width: 260px;
        min-height: 420px;
    }

    .event-card .card-poster {
        height: 260px;
    } */
}

@media (max-width: 767px) {
    .upcoming-events-section {
        display: none;
    }
}

@media (max-width: 480px) {
    .upcoming-events-section {
        padding: 40px 0 60px;
    }

    .carousel-wheel-container {
        height: 420px;
    }

    .carousel-wheel {
        width: 220px;
        height: 360px;
    }

    /* Cards keep consistent size - no resizing */
    /* .event-card {
        width: 220px;
        min-height: 360px;
    }

    .event-card .card-poster {
        height: 200px;
    } */
}

/* Mobile Carousel Styles */
.upcoming-events-section-mobile {
    background: var(--bg-surface-primary, #0B0A15);
    position: relative;
    width: 100%;
    min-height: 964px;
    padding: 80px 24px 40px;
    overflow: hidden;
    text-align: center;
    z-index: 1; /* Above fixed particles background */
}

/* Upcoming Events Section Mobile Top Background Image */
.upcoming-events-section-mobile .upcoming-events-top-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/resources/images/home_new/upcoming-events-top-bg.png');
    background-size: contain;
    background-position: top left;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Upcoming Events Section Mobile Bottom Background Image */
.upcoming-events-section-mobile .upcoming-events-bottom-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('/resources/images/home_new/upcoming-events-bottom-bg.png');
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Use mobile image for screens less than 750px */
@media (max-width: 750px) {
    .upcoming-events-section-mobile .upcoming-events-top-image {
        background-image: url('/resources/images/home_new/upcoming-events-top-bg-mobile.png');
    }

    .upcoming-events-section-mobile .upcoming-events-bottom-image {
        background-image: url('/resources/images/home_new/upcoming-events-bottom-bg-mobile.png');
    }
}

.upcoming-events-section-mobile .section-header-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 327px;
    margin: 0 auto 40px;
}

.upcoming-events-section-mobile .event-tag-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
}

.upcoming-events-section-mobile .event-tag-mobile svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.upcoming-events-section-mobile .event-tag-mobile span {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0.1px;
    background: linear-gradient(138.91deg, #ffbfb5 22.107%, #c4b5ff 55.634%, #b5bfff 84.734%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upcoming-events-section-mobile .headline-mobile {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: 0.6px;
    margin: 0;
    background: linear-gradient(92.92deg, #413778 -53.46%, #EBEBEE 82.74%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.carousel-section-mobile {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.carousel-slider-mobile {
    display: flex;
    gap: 32px;
    padding-left: 9.5px;
    padding-right: 0;
    will-change: transform;
}

/* Event Card Wrapper Mobile */
.event-card-wrapper-mobile {
    flex: 0 0 308px;
    height: 519px;
    position: relative;
    min-width: 0;
    max-width: 308px;
    box-sizing: border-box;
}

/* Event Card Mobile */
.event-card-mobile {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 20px;
    overflow: visible;
    will-change: transform;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile-only: Prevent vertical scroll during horizontal swipe */
@media (width < 768px) {
    .carousel-slider-mobile {
        touch-action: pan-x;
        overscroll-behavior: contain;
    }

    .event-card-wrapper-mobile {
        touch-action: pan-x;
        overscroll-behavior: contain;
        -webkit-user-select: none;
        user-select: none;
    }

    .event-card-mobile {
        touch-action: pan-x;
        overscroll-behavior: contain;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Floating card group: image + info */
.event-card-mobile .card-main-mobile {
    position: relative;
    z-index: 2;
    border-radius: 32px;
    border: var(--stroke-thickness, 1.3px) solid var(--stroke-controls-other-active, rgba(235, 235, 238, 0.15));
    background: var(--Mobile-bg-surface-primary, linear-gradient(180deg, var(--Colors-Base-White-5, rgba(235, 235, 238, 0.05)) 0%, var(--Colors-Base-White-1, rgba(235, 235, 238, 0.01)) 100%));
    box-shadow: 0 5.51px 33.06px 0 rgba(13, 1, 19, 0.80);
    backdrop-filter: blur(137.75100708007812px);
    -webkit-backdrop-filter: blur(137.75100708007812px);
    overflow: visible;
    margin-bottom: 0;
    padding: 12px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    /* Force GPU acceleration for Safari repaint during GSAP animations */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.event-card-mobile .card-poster-mobile {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.event-card-mobile .card-image-mobile {
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.event-card-mobile .card-image-mobile a {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.event-card-mobile .card-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.event-card-mobile .card-info-mobile {
    position: relative;
    width: 100%;
    padding: 16px 16px 0 16px;
    color: #EBEBEE;
    z-index: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.event-card-mobile .card-title-mobile {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 8px 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.event-card-mobile .card-title-mobile a {
    color: inherit;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.event-card-mobile .card-title-mobile a:hover {
    text-decoration: none;
}

.event-card-mobile .card-datetime-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #9F9CB0;
    transition: color 0.3s ease;
}

.event-card-mobile:hover .card-datetime-mobile {
    color: #EBEBEE;
}

.event-card-mobile .card-datetime-mobile p {
    margin: 0;
}

.event-card-mobile .card-datetime-mobile .divider-mobile {
    width: 1px;
    height: 14px;
    background: rgba(235, 235, 238, 0.3);
    border-radius: 999px;
}

/* Bottom section: slides under the top card */
.event-card-mobile .card-bottom-info-mobile {
    position: absolute;
    bottom: -68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    width: calc(100% - 24px);
    min-height: 215px;
    padding: 0 12px 12px 12px;
    overflow: visible;
    will-change: transform;
    transition: transform 0.3s ease;
}

.event-card-mobile:hover .card-bottom-info-mobile {
    transform: translateX(-50%) translateY(8px);
}

.event-card-mobile .card-bottom-info-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bottom-bg, #3A896D);
    mask-image: url('/resources/images/home_new/upcoming_event_bottom.svg');
    -webkit-mask-image: url('/resources/images/home_new/upcoming_event_bottom.svg');
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;
    mask-position: 50% 100%;
    -webkit-mask-position: 50% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    z-index: -1;
    will-change: mask-image;
}

.event-card-mobile:hover .card-bottom-info-mobile::before {
    mask-image: url('/resources/images/home_new/upcoming_event_bottom_hover.svg');
    -webkit-mask-image: url('/resources/images/home_new/upcoming_event_bottom_hover.svg');
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;
    mask-position: 50% 100%;
    -webkit-mask-position: 50% 100%;
}

.event-card-mobile .date-badge-mobile {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(235, 235, 238, 0.12);
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    color: #EBEBEE;
    flex-shrink: 0;
}

.event-card-mobile .date-badge-mobile .month-mobile {
    font-size: 12px;
    line-height: 12px;
    color: rgba(235, 235, 238, 0.6);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.event-card-mobile .date-badge-mobile .day-mobile {
    font-size: 18px;
    line-height: 18px;
    margin: 0;
}

.event-card-mobile .venue-details-mobile {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    color: #EBEBEE;
    min-width: 0;
}

.event-card-mobile .venue-details-mobile .venue-name-mobile {
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	max-width: 100%;
}

.event-card-mobile .venue-details-mobile .event-time-mobile {
    font-size: 14px;
    line-height: 21px;
    color: rgba(235, 235, 238, 0.7);
    margin: 0;
}

.pagination-dots-mobile {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.dot-mobile {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: #4b4578;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot-mobile.active {
    background: #c4b5ff;
}


/* Mobile blur circles (same as desktop but positioned for mobile) */
