.md-card {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.md-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 0.3s;
}

.ripple:hover::after {
    opacity: 1;
}

.gold-bar {
    display: block;
    width: 48px;
    height: 4px;
    background: #5D428C;
    border-radius: 2px;
}

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.link-item {
    transition:
        background 0.18s,
        border-color 0.18s,
        color 0.18s;
}

.link-item:hover .link-arrow {
    transform: translateX(4px);
}

.link-arrow {
    transition: transform 0.18s ease;
}

/* Hero gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(255, 89, 0, 0.70) 100%);
}

.community-hero-shade {
    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.90) 30%,
            rgba(0, 0, 0, 0.55) 56%,
            rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg,
            rgba(0, 0, 0, 0.55) 0%,
            transparent 30%);
}

.community-hero-tint {
    background: linear-gradient(to left,
            rgba(255, 89, 0, 0.38) 0%,
            rgba(255, 89, 0, 0.14) 40%,
            transparent 62%);
    mix-blend-mode: screen;
}

.community-hero-copy {
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

@media (max-width: 767px) {
    .community-hero-image {
        aspect-ratio: 16 / 9;
        height: auto;
        object-position: center;
        transform: none;
    }

    .community-hero-shade {
        background: linear-gradient(to bottom,
                transparent 0,
                rgba(0, 0, 0, 0.08) 22%,
                rgba(0, 0, 0, 0.78) 42%,
                #000 58%,
                #000 100%);
    }

    .community-hero-content {
        padding-top: clamp(12rem, 56vw, 27rem);
    }

    .events-stack {
        gap: 0 !important;
        perspective: 900px;
    }

    .events-calendar-card {
        position: relative;
        z-index: 2;
        transform: translateY(var(--event-calendar-y, 0px)) rotateX(0.8deg);
        transform-origin: center bottom;
        box-shadow:
            0 calc(34px + var(--event-depth, 0px)) calc(54px + var(--event-depth, 0px)) rgba(17, 24, 39, 0.22),
            0 16px 30px rgba(255, 89, 0, 0.14),
            0 2px 0 rgba(255, 255, 255, 0.95) inset,
            0 -1px 0 rgba(17, 24, 39, 0.03) inset;
        transition:
            transform 0.18s ease-out,
            box-shadow 0.18s ease-out;
    }

    .events-detail-card {
        position: relative;
        z-index: 1;
        min-height: 0 !important;
        margin-top: calc(-72px + (var(--event-card-gap, 0px) * 0.18));
        padding-top: 112px !important;
        transform: translateY(var(--event-detail-y, 0px));
        box-shadow:
            0 24px calc(46px + var(--event-depth, 0px)) rgba(17, 24, 39, 0.12),
            0 calc(-20px - var(--event-depth, 0px)) calc(38px + var(--event-depth, 0px)) rgba(17, 24, 39, 0.12),
            0 -12px 28px rgba(255, 89, 0, 0.08),
            0 1px 0 rgba(255, 255, 255, 0.88) inset;
        background: linear-gradient(180deg, #f8f8f6 0%, #ffffff 58%, #fbfbfa 100%);
        border-color: rgba(229, 231, 235, 0.95);
        transition:
            margin-top 0.18s ease-out,
            transform 0.18s ease-out,
            box-shadow 0.18s ease-out;
    }
}
