/* public/css/events.css */

/* ═══════════════════════════════════════════
   ── Scrolling Marquee Banner ──
═══════════════════════════════════════════ */
.marquee-banner {
    background-color: var(--accent-red);
    color: var(--dark-bg);
    padding: 10px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: flex;
    animation: scroll-marquee 25s linear infinite;
    /* Hardware acceleration for buttery smooth scrolling performance */
    will-change: transform;
}

.marquee-content span {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0 40px;
    letter-spacing: 2px;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.events-occasion-section {
    position: relative;
    padding: 120px 0 60px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
    background-color: var(--dark-bg);
}

.occasion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.occasion-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to ensure text readability on the left and bottom */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 40%);
    z-index: 1;
}

.occasion-container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
    padding: 0 5%;
}

.occasion-content {
    max-width: 700px;
    width: 100%;
    text-align: left;
}

.occasion-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-light);
    letter-spacing: -1px;
}

.text-red {
    color: var(--accent-red);
}

.occasion-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.occasion-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    color: var(--text-light);
}

.occasion-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.occasion-btn {
    background-color: var(--accent-red);
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.95rem;
}

.occasion-btn:hover {
    background-color: var(--accent-red-hover);
    color: var(--text-light);
    border-color: transparent;
}

.occasion-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon-circle {
    width: 45px;
    height: 45px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-icon-circle svg {
    width: 20px;
    height: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
}

.contact-number {
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--text-light);
}

.mobile-break {
    display: none;
}

/* Cards Section */
.occasion-cards-container {
    position: relative;
    z-index: 2;

    padding-bottom: 20px;
    padding: 0 5%;
}

.occasion-cards-grid {
    display: grid;
    margin-top: 100px;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px;
}

.occasion-card {
    position: relative;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.occasion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.occasion-card .card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.occasion-card:hover .card-bg {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .occasion-title {
        font-size: 3.5rem;
    }

    .occasion-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-occasion-section {
        padding: 100px 0 40px 0;
        min-height: auto;
    }

    .occasion-bg {
        background-position: center center;
    }

    .occasion-bg-overlay {
        /* Vertical gradient for mobile to keep the center of the image visible */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.1) 100%);
    }

    .occasion-title {
        font-size: 2.8rem;
    }

    .occasion-subtitle {
        font-size: 1.2rem;
    }

    .occasion-desc {
        font-size: 1rem;
    }

    .occasion-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .mobile-break {
        display: block;
    }

    .marquee-banner {
        padding: 5px 0;
    }

    .marquee-content span {
        font-size: 0.85rem;
    }

    .occasion-title {
        font-size: 2.2rem;
    }

    .occasion-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 10px;
    }

    /* Hide 3rd and 4th cards on small screens so only 2 are visible */
    .occasion-card:nth-child(3),
    .occasion-card:nth-child(4) {
        display: none;
    }

    .occasion-card {
        height: 120px;
    }

    .card-overlay {
        padding: 20px 10px 10px 10px;
    }

    .card-title {
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════
   ── Storytelling Reveal Section ──
═══════════════════════════════════════════ */
.story-reveal-section {
    position: relative;
    /* Height controls how long the user scrolls while the section is pinned */
    height: 350vh;
    /* Rich, aesthetic red gradient that scrolls with the page and slowly animates */
    background: linear-gradient(135deg, #0a0000 0%, #5c0000 40%, #8b0000 50%, #2a0000 70%, #050505 100%);
    background-size: 200% 200%;
    animation: storyGradientShift 20s ease infinite;
}

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

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

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

/* Base low-consuming glow for the section */
.story-glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

.story-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    /* Wider to accommodate bigger text */
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* Texts closer to each other */
}

.story-line {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 5rem;
    /* Bigger in desktop */
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 2px;
    line-height: 1.05;
    /* Tighter line height to bring text closer */
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    /* Ensures readability */
}

.story-reveal-section .text-accent {
    color: var(--accent-red);
    text-shadow: 0 0 25px rgba(220, 0, 0, 0.5);
    /* Red glowing text for accents */
}

.story-left {
    text-align: left;
    padding-left: 5%;
}

.story-center {
    text-align: center;
}

.story-right {
    text-align: right;
    padding-right: 5%;
}

/* Cinematic Reveal States */
.cinematic-item {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.cinematic-item.scrolled-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Floating Images */
.story-img {
    position: absolute;
    z-index: 1;
    border-radius: 6px;
    /* Sharper edge for minimal look */
    /* Remove object-fit to allow natural proportions */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    /* Dimmed to keep focus on glowing typography */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Sleek border */
    filter: grayscale(20%) contrast(110%);
    will-change: opacity, transform;
}

.story-img.scrolled-in {
    opacity: 1;
}

/* Image positions */
.story-img-1 {
    top: 15%;
    right: 5%;
    width: 250px;
    height: auto;
    transition-delay: 0.2s;
}

.story-img-2 {
    top: 35%;
    left: 7%;
    width: 250px;
    height: auto;
    transition-delay: 0.5s;
}

.story-img-3 {
    bottom: 12%;
    right: 10%;
    width: 250px;
    height: auto;
    transition-delay: 0.8s;
}

/* Vertical Japanese text decoration for aesthetic */
.story-jp-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Noto Sans JP', sans-serif;
    color: rgba(255, 255, 255, 0.02);
    /* Extremely subtle */
    font-size: 18rem;
    font-weight: 900;
    line-height: 0.8;
    writing-mode: vertical-rl;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    letter-spacing: 30px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .story-line {
        font-size: 2rem;
        /* Keep text reasonable on mobile */
        padding: 0;
        text-align: center;
        /* Override left/right for better mobile readability */
        letter-spacing: 1px;
    }

    .story-container {
        gap: 5px;
        /* Tighter on mobile */
    }

    .story-img.scrolled-in {
        opacity: 0.9;
        /* make pictures visible so users can see what's in them */
    }

    .story-img-1 {
        width: 170px;
        height: auto;
        top: 15%;
        right: 5%;
    }

    .story-img-2 {
        width: 170px;
        height: auto;
        top: 75%;
        left: 2%;
        transform: translateY(-50%);
    }

    .story-img-3 {
        width: 170px;
        height: auto;
        bottom: 6%;
        right: 5%;
    }

    .story-jp-decor {
        font-size: 8rem;
        letter-spacing: 15px;
    }
}

/* ═══════════════════════════════════════════
   ── Upcoming Events Horizontal Timeline ──
═══════════════════════════════════════════ */
.timeline-section {
    position: relative;
    height: 400vh;
    /* Long scroll duration for horizontal effect */
    background-color: var(--dark-bg);
    padding-bottom: 150px;
    /* Extends the black background far below the sticky section */
}

.timeline-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;

}

.timeline-header {
    text-align: center;
    padding: 60px 5% 0 5%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
    color: var(--text-light);
    margin-top: 150px;
}

.timeline-header h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.timeline-viewport {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* The actual track that moves horizontally */
.timeline-track {
    position: relative;
    display: flex;
    gap: 100px;
    /* Space between cards */
    padding: 0 50vw;
    /* Start card 1 in the middle of screen */
    align-items: center;
    width: fit-content;
    will-change: transform;
    margin-top: 30px;
}

/* Background timeline line */
.timeline-line-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-line-progress {
    height: 100%;
    width: 0%;
    /* Will be updated via JS */
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* ── Aesthetic Cards ── */
.timeline-card {
    position: relative;
    width: 380px;
    background-color: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    z-index: 2;
    overflow: hidden;
    /* Smooth cinematic transitions */
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: opacity, transform;

    /* Cinematic dimmed state */
    opacity: 0.4;
    transform: scale(0.9);
}

/* Base low-consuming glow for the section */
.timeline-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(200, 0, 0, 0.05) 0%, rgba(100, 0, 0, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Individual card glow element (behind content) */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(200, 0, 0, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.timeline-card.active-card {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(200, 0, 0, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(200, 0, 0, 0.08);
}

.timeline-card.active-card .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-card.active-card .card-image {
    transform: scale(1.08);
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 15, 15, 1) 0%, transparent 100%);
}

.card-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(200, 0, 0, 0.4);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 65px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.card-date-badge .month {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-red);
    text-transform: uppercase;
}

.card-date-badge .day {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.card-text-wrapper {
    padding: 25px 30px 35px 30px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jp-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent-red);
    font-weight: 400;
}

.card-desc {
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.card-text-wrapper .reserve-btn {
    width: 50%;
    padding: 15px 0;
    background-color: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-weight: 500;
    display: block;
    margin: 0 auto;
}

.card-text-wrapper .reserve-btn:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(200, 0, 0, 0.4);
}

.timeline-card.active-card .reserve-btn {
    border-color: var(--accent-red);
    color: var(--text-light);
}

.timeline-card.active-card .reserve-btn:hover {
    background-color: var(--accent-red);
    color: #fff;
}

/* Responsive & Short Screens Fix */
@media (max-width: 768px),
(max-height: 800px) {
    .timeline-header {
        padding-top: 30px;
        margin-top: 50px;
        margin-bottom: 50px;
        /* Prevent the desktop margin from pushing everything down on mobile */
    }

    .timeline-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .timeline-header p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .timeline-viewport {
        padding-top: 0;
        padding-bottom: 0;
    }

    .timeline-card {
        width: 320px;
        /* Performance optimizations for mobile to reduce lag */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(15, 15, 15, 0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8) !important;
    }

    .timeline-glow-bg,
    .card-glow {
        display: none;
        /* Expensive radial gradients removed for mobile */
    }

    .timeline-track {
        padding: 0 calc(50vw - 160px);
        gap: 50px;
        margin-top: 0;
        /* Prevent desktop margin from breaking vertical centering */
    }

    .card-image-wrapper {
        height: 130px;
        /* Make image slightly shorter to guarantee it fits on small phones */
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .card-text-wrapper {
        padding: 15px;
        /* Reduce padding to save vertical space */
    }

    .card-desc {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* ═══════════════════════════════════════════
   ── Past Events Section ──
═══════════════════════════════════════════ */
.past-events-section {
    padding: 100px 5%;
    background-color: #ffffff;
    /* Based on the image, the background is white */
    color: var(--text-dark);
    position: relative;
    z-index: 5;
}

.past-events-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.past-events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.past-events-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 2px;
    margin: 0;
}

.past-events-jp-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-red);
    margin: 0;
    line-height: 1;
}

/* Featured Past Event */
.featured-past-event {
    display: flex;
    background-color: #050505;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 80px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-past-event:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.featured-image-wrapper {
    flex: 1;
    max-width: 40%;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.featured-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: var(--accent-red);
    margin: 0;
    letter-spacing: 1px;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
}

.featured-date .day {
    font-size: 1.6rem;
}

/* Past Events List */
.past-events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.past-event-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
    border-radius: 12px;
    padding-right: 15px;
    /* So thumbnail doesn't hit edge when rounded */
}

.past-event-item:hover {
    transform: translateX(10px);
}

.past-event-date {
    background-color: var(--accent-red);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 110px;
    text-align: center;
    padding-top: 15px;
}

.past-event-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.past-event-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 2px 0;
}

.past-event-date .year {
    font-size: 0.75rem;
    margin-bottom: auto;
}

.past-event-date .time {
    background-color: #000;
    width: 100%;
    padding: 6px 0;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.past-event-text {
    flex: 1;
    padding: 10px 0;
}

.past-event-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--accent-red);
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.past-event-desc {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #111;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.past-event-thumbnail {
    width: 280px;
    height: 130px;
    border-radius: 12px 12px 12px 12px;
    /* Set basic radius */
    overflow: hidden;
    position: relative;
    /* Simulate a semi-circle cutout on the right side */
    -webkit-mask-image: radial-gradient(circle 25px at right center, transparent 95%, black 100%);
    mask-image: radial-gradient(circle 25px at right center, transparent 95%, black 100%);
}

.past-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.past-event-item:hover .past-event-thumbnail img {
    transform: scale(1.08);
}

/* Animations */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .past-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .featured-past-event {
        flex-direction: column;
    }

    .featured-image-wrapper {
        max-width: 100%;
        height: 300px;
    }

    .past-event-item {
        padding-right: 0;
    }

    .past-event-thumbnail {
        -webkit-mask-image: none;
        mask-image: none;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .past-events-section {
        padding: 60px 5%;
    }

    .past-events-title {
        font-size: 2.5rem;
    }

    .past-events-jp-title {
        font-size: 2rem;
    }

    .past-event-item {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 12px;
    }

    .past-event-item:hover {
        transform: translateY(-5px);
    }

    .past-event-thumbnail {
        width: 100%;
        height: 200px;
    }

    .past-event-date {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px;
        gap: 15px;
        align-items: center;
    }

    .past-event-date .time {
        width: auto;
        padding: 5px 15px;
        margin-left: auto;
        margin-bottom: 0;
        border-radius: 4px;
    }

    .past-event-date .year {
        margin-bottom: 0;
    }

    .featured-content {
        padding: 30px 20px;
    }

    .featured-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}