/* "Προσεχείς Εκδηλώσεις" homepage event card grid — scope: this
   component only. Classes are evcard-prefixed so no other grid on the
   site is affected. */

.evcard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}
@media (min-width: 768px) {
    .evcard-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1200px) {
    .evcard-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
@media (max-width: 359.98px) {
    .evcard-grid { gap: 9px; }
}

.evcard {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16,24,40,.05);
    text-decoration: none;
    color: inherit;
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.evcard:hover, .evcard:focus {
    color: inherit;
    text-decoration: none;
}
@media (min-width: 768px) {
    .evcard:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(16,24,40,.12);
    }
}

.evcard-img-wrap { position: relative; }
.evcard-img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 14px 14px 0 0;
    background: #f1f3f6;
}

.evcard-body {
    padding: 11px 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.evcard-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.32;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.evcard-location { font-size: 12px; color: #6b7280; }
.evcard-past { opacity: .8; }
.evcard-chip {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 600;
    color: #4b5563;
    background: #eef1f5;
    border-radius: 5px;
    padding: 3px 7px;
}

/* Status ribbon (postponed/cancelled) — top-right, so it never collides
   with the date tile in the top-left corner. */
.evcard-status-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    z-index: 2;
}
.evcard-status-badge.status-postponed { background: #E8A33D; }
.evcard-status-badge.status-cancelled { background: #C0392B; }

/* ---- Date tile ---- */
.evcard-date-tile {
    position: absolute;
    top: 9px;
    left: 9px;
    background: rgba(255,255,255,.96);
    border-radius: 9px;
    padding: 5px 9px;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    text-align: center;
    z-index: 2;
}
.evcard-date-day {
    font-size: 17px;
    font-weight: 800;
    color: #17243f;
    line-height: 1.1;
    white-space: nowrap;
}
.evcard-date-month {
    font-size: 9.5px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.3;
}
/* Multi-day spanning two different months: one compact line. */
.evcard-date-range-inline {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-size: 12.5px;
    font-weight: 800;
    color: #17243f;
    white-space: nowrap;
}
.evcard-date-range-month {
    font-size: 8.5px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-right: 1px;
}
.evcard-date-arrow { color: #9aa2b1; font-weight: 700; }

/* ---- Mobile (<768px) ---- */
@media (max-width: 767px) {
    .evcard { border-radius: 12px; }
    .evcard-img { border-radius: 12px 12px 0 0; }
    .evcard-body { padding: 9px 9px 11px; }
    .evcard-title { font-size: 12.5px; line-height: 1.3; }
    .evcard-location { font-size: 11px; }
    .evcard-chip { display: none; }

    .evcard-date-tile { top: 7px; left: 7px; border-radius: 7px; padding: 4px 7px; }
    .evcard-date-day { font-size: 14px; }
    .evcard-date-day.is-range { font-size: 13px; }
    .evcard-date-month { font-size: 8.5px; }
    .evcard-date-range-inline { font-size: 11px; }
    .evcard-date-range-month { font-size: 7.5px; }
}
