/* ═══════════════════════════════════════════════════════════════════
   Events List Page — Premium Redesign
   Inspired by modern SaaS design (Linear, Stripe, Apple)
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   1. Featured Event Hero — eye-catching banner for the nearest event
   ═══════════════════════════════════════════════════════════════════ */

.featured-event-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--dark) 0%, #0f172a 40%, #0c1222 100%);
    padding: 180px 0 100px;
}

.featured-event-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.featured-event-hero:hover .featured-event-bg {
    transform: scale(1);
}

.featured-event-bg--gradient {
    background: linear-gradient(160deg,
            var(--dark) 0%,
            #0f172a 30%,
            var(--primary-dark) 70%,
            var(--dark) 100%);
    opacity: 1;
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {

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

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

.featured-event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.88) 0%,
            rgba(15, 23, 42, 0.7) 40%,
            rgba(15, 23, 42, 0.45) 100%);
    z-index: 1;
}

/* Floating orbs */
.featured-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.featured-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    top: -200px;
    right: -150px;
    animation: orb-drift 12s ease-in-out infinite;
}

.featured-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    opacity: 0.07;
    bottom: -100px;
    left: 10%;
    animation: orb-drift 15s ease-in-out infinite reverse;
}

@keyframes orb-drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -25px) scale(1.08);
    }

    66% {
        transform: translate(-25px, 20px) scale(0.94);
    }
}

/* ── Featured Grid (content + visual) ── */
.featured-event-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
    /* Prevent this grid from ever forcing the page wider than the viewport */
    max-width: 100%;
}

/* ── Content Side ── */
.featured-event-content {
    color: white;
    /* Grid items default to min-width:auto, which stops them shrinking
       below their content's natural width and causes horizontal overflow
       on small screens. min-width:0 lets this column shrink normally. */
    min-width: 0;
}

.featured-badge-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.featured-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 227, 206, 0.15);
    border: 1px solid rgba(16, 227, 206, 0.35);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.featured-hero-badge i {
    animation: star-rotate 4s linear infinite;
    font-size: 0.85rem;
}

@keyframes star-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.featured-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.countdown-pulse {
    width: 9px;
    height: 9px;
    background: #818cf8;
    border-radius: 50%;
    display: inline-block;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

@keyframes live-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.7);
    }
}

.featured-event-content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff 0%, #e2e8f0 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow-wrap: break-word;
    word-break: break-word;
}

.featured-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 32px;
    max-width: 550px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Meta Chips ── */
.featured-meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.featured-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-meta-chip i {
    color: var(--primary);
    font-size: 1rem;
}

.featured-meta-chip:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(16, 227, 206, 0.3);
    box-shadow: 0 4px 20px rgba(16, 227, 206, 0.1);
}

/* Special date block chip */
.featured-meta-chip--date {
    padding: 0;
    overflow: hidden;
    background: rgba(16, 227, 206, 0.12);
    border-color: rgba(16, 227, 206, 0.25);
}

.featured-date-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
}

.fdb-day {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.fdb-month {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.fdb-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 4px;
}

/* ── CTA Button ── */
.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 35px rgba(16, 227, 206, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.featured-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.featured-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(16, 227, 206, 0.45);
}

.featured-cta:hover::before {
    left: 100%;
}

.featured-cta i {
    transition: transform 0.3s ease;
}

.featured-cta:hover i {
    transform: translateX(-4px);
}

/* ── Visual Side ── */
.featured-event-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.featured-visual-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 60px -10px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(16, 227, 206, 0.15);
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
    transform: rotate(-2deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-visual-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.featured-visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-visual-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg,
            rgba(16, 227, 206, 0.2) 0%,
            rgba(15, 23, 42, 0.8) 50%,
            rgba(99, 102, 241, 0.15) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--primary);
}

.featured-visual-fallback i {
    font-size: 4rem;
    opacity: 0.6;
}

.featured-visual-fallback span {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.8;
}

.featured-visual-frame {
    position: absolute;
    inset: -12px;
    border: 2px solid var(--primary);
    border-radius: 28px;
    opacity: 0.25;
    pointer-events: none;
    animation: frame-float 6s ease-in-out infinite;
}

@keyframes frame-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Floating accent card */
.featured-accent-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: accent-float 5s ease-in-out infinite;
    z-index: 3;
}

@keyframes accent-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fac-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(16, 227, 206, 0.3);
}

.fac-text {
    display: flex;
    flex-direction: column;
}

.fac-text strong {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 800;
}

.fac-text span {
    font-size: 0.78rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ── Responsive: Featured Hero ── */
@media (max-width: 1024px) {
    .featured-event-hero {
        min-height: auto;
        padding: 160px 0 80px;
    }

    .featured-event-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-event-visual {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }

    .featured-visual-card {
        max-width: 100%;
        aspect-ratio: 16 / 10;
        transform: rotate(0deg);
    }

    .featured-visual-frame {
        inset: -8px;
        border-radius: 22px;
    }

    .featured-event-content h1 {
        font-size: 2.2rem;
    }

    .featured-excerpt {
        font-size: 1rem;
        max-width: 100%;
    }

    .featured-accent-card {
        left: 10px;
        bottom: -16px;
    }
}

@media (max-width: 768px) {
    .featured-event-hero {
        padding: 110px 0 45px;
        min-height: auto;
    }

    .featured-event-visual,
    .featured-accent-card,
    .featured-countdown-badge {
        display: none;
    }

    .featured-event-content {
        text-align: center;
    }

    .featured-event-content h1 {
        font-size: 1.4rem;
    }

    .featured-excerpt {
        display: none;
    }

    .featured-meta-row {
        justify-content: center;
        gap: 6px;
        margin-bottom: 20px;
    }

    .featured-meta-chip {
        padding: 7px 12px;
        font-size: 0.78rem;
        border-radius: 10px;
    }

    .featured-date-block {
        padding: 7px 12px;
    }

    .fdb-day {
        font-size: 1.3rem;
    }

    .fdb-month {
        font-size: 0.75rem;
    }

    .fdb-year {
        display: none;
    }

    .featured-cta {
        padding: 10px 22px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .featured-badge-row {
        justify-content: center;
        gap: 8px;
        margin-bottom: 12px;
    }

    .featured-hero-badge {
        padding: 5px 14px;
        font-size: 0.78rem;
    }

    .featured-breadcrumb {
        font-size: 0.82rem;
        margin-bottom: 24px;
        justify-content: center;
    }

    .featured-orb {
        display: none;
    }

    .featured-event-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .featured-event-hero {
        padding: 100px 0 35px;
        min-height: auto;
    }

    .featured-event-grid {
        gap: 16px;
    }

    .featured-event-visual,
    .featured-accent-card,
    .featured-countdown-badge,
    .featured-hero-badge,
    .featured-orb {
        display: none;
    }

    .featured-event-content {
        text-align: center;
    }

    .featured-event-content h1 {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .featured-excerpt,
    .featured-badge-row {
        display: none;
    }

    .featured-meta-row {
        justify-content: center;
        gap: 5px;
        margin-bottom: 16px;
    }

    .featured-meta-chip {
        padding: 5px 8px;
        font-size: 0.72rem;
        border-radius: 8px;
    }

    .featured-meta-chip:not(.featured-meta-chip--date) {
        display: none;
    }

    .featured-date-block {
        padding: 5px 8px;
        gap: 4px;
    }

    .fdb-day {
        font-size: 1.1rem;
    }

    .fdb-month {
        font-size: 0.68rem;
    }

    .fdb-year {
        display: none;
    }

    .featured-cta {
        padding: 10px 18px;
        font-size: 0.82rem;
        width: 100%;
        justify-content: center;
    }

    .featured-breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 18px;
        justify-content: center;
    }
}

/* ── Hero Section ── */
.events-hero {
    background: linear-gradient(160deg, var(--dark) 0%, #0f172a 40%, #1a1f36 100%);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Glowing orbs */
.events-hero::before,
.events-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.events-hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    top: -150px;
    right: -100px;
    animation: orb-float 12s ease-in-out infinite;
}

.events-hero::after {
    width: 350px;
    height: 350px;
    background: #6366f1;
    opacity: 0.06;
    filter: blur(140px);
    bottom: -120px;
    left: -80px;
    animation: orb-float 15s ease-in-out infinite reverse;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

.events-hero h1 {
    color: white;
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 18px;
    background: linear-gradient(to right, #fff 0%, #e2e8f0 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.events-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    max-width: 500px;
    line-height: 1.8;
}

.events-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

.events-hero .breadcrumb a:hover {
    color: var(--primary);
}

/* ── Featured Breadcrumb ── */
.featured-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.featured-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s ease;
}

.featured-breadcrumb a:hover {
    color: var(--primary);
}

.featured-breadcrumb .breadcrumb-separator {
    opacity: 0.4;
}

/* ── Compact Section Header (when featured hero is shown) ── */
.events-section-header {
    padding: 50px 0 10px;
    background:
        radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

@media (max-width: 768px) {
    .events-section-header {
        padding: 30px 0 0;
    }

    .section-header-title {
        font-size: 1.1rem;
        gap: 14px;
    }

    .sh-line {
        width: 36px;
    }
}

@media (max-width: 480px) {
    .events-section-header {
        padding: 20px 0 0;
    }

    .section-header-title {
        font-size: 0.95rem;
        gap: 10px;
    }

    .sh-line {
        width: 24px;
    }
}

.section-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
}

.sh-line {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 1px;
}

/* ── Container ── */
.events-container {
    padding: 60px 0 0;
    background:
        radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    position: relative;
    /* The decorative glow (::before below) is intentionally larger than
       its box and positioned off-edge; without clipping it here it can
       add to page-wide horizontal overflow on small screens */
    overflow: hidden;
}

/* Large floating glow in background */
.events-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(250px);
    opacity: 0.03;
    top: 10%;
    left: -200px;
    pointer-events: none;
}

/* ── Modern Grid ── */
.events-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* ── Premium Card ── */
.event-card-premium {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 260px 1fr;
    /* This card is itself a grid item of .events-grid-modern; without
       min-width:0 it can't shrink below its own content's natural width,
       which was the main source of the page-wide horizontal overflow */
    min-width: 0;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.4s ease;
    position: relative;
}

/* Left accent stripe */
.event-card-premium::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    /* RTL — stripe on the right side */
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s ease, height 0.4s ease;
    z-index: 10;
}

.event-card-premium:hover::before {
    opacity: 1;
    height: 70px;
}

.event-card-premium:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 20px 50px -10px rgba(16, 227, 206, 0.18),
        0 0 0 1px var(--primary-light);
    border-color: rgba(16, 227, 206, 0.3);
}

/* ── Image link wrapper (makes image clickable) ── */
.event-card-visual-link {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    /* This is a grid item of .event-card-premium; without min-width:0 the
       image can stop it (and the whole card/page) shrinking on small screens */
    min-width: 0;
}

.event-card-visual-link:hover+.event-card-details .event-card-heading {
    color: var(--primary-dark);
}

/* ── Visual (Image) Side ── */
.event-card-visual {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: linear-gradient(145deg, #f0fdfa 0%, #e6fffa 40%, #f8fafc 100%);
}

.event-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.event-card-premium:hover .event-card-visual img {
    transform: scale(1.06);
}

.event-card-visual-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(145deg, var(--primary-light), rgba(16, 227, 206, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
}

/* Shine effect on hover */
.event-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 40%,
            rgba(255, 255, 255, 0.35) 50%,
            transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.event-card-premium:hover .event-card-shine {
    transform: translateX(100%);
}

/* ── Date Badge ── */
.event-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    color: white;
    padding: 10px 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    line-height: 1.1;
    min-width: 65px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.date-day {
    font-size: 1.8rem;
    display: block;
    color: var(--primary);
    letter-spacing: -1px;
}

.date-month {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* ── Details Side ── */
.event-card-details {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    /* Same fix as the image column: this is a grid item and must be
       allowed to shrink below its content's natural width */
    min-width: 0;
}

.event-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.event-meta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.event-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-gray);
    background: var(--surface);
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.event-meta-chip i {
    color: var(--primary-dark);
    font-size: 0.8rem;
}

/* ── Status Pills ── */
.event-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.event-status-pill.upcoming {
    background: linear-gradient(135deg, rgba(16, 227, 206, 0.12), rgba(0, 196, 180, 0.08));
    color: var(--primary-dark);
    border: 1px solid rgba(16, 227, 206, 0.25);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.75);
    }
}

.event-status-pill.ended {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ── Title & Excerpt ── */
.event-card-heading {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}

.event-card-premium:hover .event-card-heading {
    color: var(--primary-dark);
}

.event-card-excerpt {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ── Link ── */
.event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    align-self: flex-start;
    padding: 8px 0;
    transition: gap 0.3s ease, color 0.3s ease;
}

.event-card-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.event-card-premium:hover .event-card-link {
    gap: 14px;
    color: var(--dark);
}

.event-card-premium:hover .event-card-link i {
    transform: translateX(-5px);
}

/* ── Ended / Past Event — Elegant Archived Look ── */
.event-card-premium.ended {
    opacity: 0.55;
    filter: saturate(0.25);
    background: rgba(248, 250, 252, 0.6);
}

.event-card-premium.ended:hover {
    opacity: 0.85;
    filter: saturate(0.65);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.04),
        0 12px 30px -8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.06);
}

.event-card-premium.ended .event-date-badge {
    background: rgba(107, 114, 128, 0.75);
}

.event-card-premium.ended .date-day {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Empty State ── */
.events-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ── Pagination ── */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding-bottom: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    color: var(--dark);
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.pagination-btn:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(16, 227, 206, 0.15);
}

.pagination-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(16, 227, 206, 0.3);
    font-weight: 700;
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .events-grid-modern {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 140px 0 80px;
    }

    .events-hero h1 {
        font-size: 2rem;
    }

    .events-hero p {
        font-size: 1rem;
    }

    .events-container {
        padding: 40px 0 0;
    }

    .events-grid-modern {
        max-width: 100%;
    }

    /* Stack image on top of content */
    .event-card-premium {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .event-card-premium::before {
        top: 12px;
        right: 12px;
        width: 3px;
        height: 36px;
    }

    .event-card-premium:hover::before {
        height: 52px;
    }

    .event-card-visual {
        aspect-ratio: 3 / 4;
        height: auto;
        min-height: auto;
        max-width: 320px;
        margin: 0 auto;
    }

    .event-card-visual-fallback {
        min-height: 280px;
    }

    .event-card-details {
        padding: 22px 20px;
    }

    .event-date-badge {
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        border-radius: 12px;
        min-width: 56px;
    }

    .date-day {
        font-size: 1.4rem;
    }

    .date-month {
        font-size: 0.75rem;
    }

    .event-card-heading {
        font-size: 1.1rem;
    }

    .event-card-excerpt {
        font-size: 0.88rem;
    }

    .event-card-top {
        margin-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .event-meta-row {
        gap: 6px;
    }

    .event-meta-chip {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .event-status-pill {
        font-size: 0.78rem;
        padding: 5px 12px;
        align-self: flex-start;
    }

    .event-card-link {
        font-size: 0.82rem;
        padding: 6px 0;
    }

    .pagination-modern {
        margin-top: 40px;
        gap: 8px;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 14px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .events-hero h1 {
        font-size: 1.6rem;
    }

    .events-container {
        padding: 24px 0 0;
    }

    .events-grid-modern {
        gap: 20px;
    }

    .event-card-premium {
        border-radius: 16px;
    }

    .event-card-premium::before {
        top: 10px;
        right: 10px;
        width: 3px;
        height: 28px;
    }

    .event-card-premium:hover::before {
        height: 42px;
    }

    .event-card-visual {
        aspect-ratio: 3 / 4;
        height: auto;
        min-height: auto;
        max-width: 260px;
        margin: 0 auto;
    }

    .event-card-visual-fallback {
        min-height: 240px;
    }

    .event-card-details {
        padding: 16px 14px;
    }

    .event-date-badge {
        top: 10px;
        left: 10px;
        padding: 5px 8px;
        border-radius: 10px;
        min-width: 48px;
    }

    .date-day {
        font-size: 1.1rem;
    }

    .date-month {
        font-size: 0.65rem;
    }

    .event-card-heading {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .event-card-excerpt {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        margin-bottom: 14px;
    }

    .event-meta-chip {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    .event-status-pill {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .event-card-link {
        font-size: 0.78rem;
    }

    .pagination-modern {
        margin-top: 28px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .pagination-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .events-empty {
        padding: 50px 16px;
        border-radius: 16px;
    }
}