﻿.mobile-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #b23b3b;
    padding: 10px 20px;
}

.mobile-nav-btn {
    background: var(--accent-color);
    color: var(--frame-color);
    font-weight: bold;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
}


@media (max-width: 700px) {
    .mobile-nav {
        display: flex;
    }
}

/* ===================== EVENTS LIST ===================== */

.event-card {
    width: 100%;
    background: var(--post-color, #f2f2f2);
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr auto;
    grid-template-areas: "image body countdown";
    gap: 24px 40px;
    align-items: center;
    padding: 24px;
}

.event-image img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.event-body {
    grid-area: body;
}

.event-heading {
    margin: 0 0 4px 0;
    font-size: 26px;
    color: #222;
}

.event-date {
    font-size: 13px;
    color: #222;
    margin-bottom: 10px;
}

.event-details {
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.event-link a {
    font-size: 15px;
    color: #142c46;
    font-weight: bold;
}

.event-participants {
    margin-top: 14px;
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.event-countdown {
    grid-area: countdown;
    display: flex;
    gap: 18px;
    background: var(--frame-color);
    border-radius: 10px;
    padding: 20px 26px;
}

.countdown-ring {
    position: relative;
    width: 78px;
    height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .countdown-ring svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .countdown-ring-bg {
        fill: none;
        stroke: rgba(255,255,255,0.2);
        stroke-width: 6;
    }

    .countdown-ring-fill {
        fill: none;
        stroke: var(--accent-color);
        stroke-width: 6;
        stroke-linecap: round;
        stroke-dasharray: 282.743;
        stroke-dashoffset: 282.743;
        transition: stroke-dashoffset 0.3s linear;
    }

    .countdown-value {
        position: relative;
        z-index: 2;
        color: #ffffff;
        font-size: 20px;
        font-weight: bold;
    }

    .countdown-label {
        position: relative;
        z-index: 2;
        color: var(--text-color-light, #dff3fd);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 2px;
    }

@media (max-width: 900px) {
    .event-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "body"
            "countdown";
    }

    .event-countdown {
        justify-content: center;
        flex-wrap: wrap;
    }
}