/* =========================
   NEWSROOM GRID SYSTEM
   STRICT RULES (NO EXCEPTIONS)
   ========================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;

    /* NEW: smooth reload behavior */
    transition: opacity 220ms ease, transform 220ms ease;
    will-change: opacity, transform;
}

/* TABLET */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   EVENT INFO BOX (CONSILIUM STYLE)
   ========================= */

.event-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.event-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.event-card .image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* IMAGE STAYS CLEAN */
.event-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1);
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.event-card:hover .image-wrap img {
    transform: scale(1.05);
}

.event-card {
    display: block;
    background: transparent;

    transform: translateY(0);
    transition: transform 250ms ease, box-shadow 250ms ease;
    will-change: transform;
}

.event-card:hover {
    transform: translateY(-2px);
}

/* =========================
   MEDIA OVERLAY (CONSISTENT UI BEHAVIOR)
   ========================= */

.media-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;

    font-size: 11px;
    line-height: 1;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e6e6e6;
    padding: 4px 6px;

    color: #111;

    /* IMPORTANT: proper hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 0s linear 180ms;

    pointer-events: none;
}

/* HOVER STATE */
.event-card:hover .media-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    transition-delay: 0s;
    pointer-events: none;
}


/* =========================
   NEWSROOM MOTION SYSTEM
   ========================= */

.event-card * {
    backface-visibility: hidden;
}


/* =========================
   EVENT INFO BOX (CONSILIUM STRUCTURE FIX)
   ========================= */

.event-info-box {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: none;

    padding: 12px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-title,
.event-meta {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* =========================
   PAGINATION SYSTEM (NEWSROOM STYLE)
   ========================= */

.newsroom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 180ms ease, transform 120ms ease;
}

.pagination-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.pagination-current {
    font-size: 13px;
    color: #333;
}

/* =========================
   SKELETON LOADER (NEWSROOM GRID)
   ========================= */

.event-skeleton {
    display: none;
}

.events-grid.is-loading .event-card {
    opacity: 0.3;
    pointer-events: none;
}

.events-grid.is-loading::before {
    content: "";
    display: block;
    grid-column: 1 / -1;
    height: 300px;
    background: linear-gradient(
        90deg,
        #f3f3f3 25%,
        #eaeaea 50%,
        #f3f3f3 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.event-card {
    transition: transform 200ms ease, opacity 200ms ease;
}

.event-card.is-updated {
    animation: softFlash 250ms ease;
}

@keyframes softFlash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}