/**
 * Štýly pre sekciu Aktuálne vo farnosti
 */

/* Základný štýl pre kartičky udalostí */
.event-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Štýl pre ikonu udalosti */
.event-icon {
    color: #8b5a2b;
    margin-bottom: 15px;
}

/* Štýl pre nadpis udalosti */
.event-title {
    color: #5a3921;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Štýl pre obsah udalosti */
.event-content {
    color: #555;
    font-size: 0.95rem;
}

/* Štýl pre obrázok udalosti */
.event-image img {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responzívne úpravy */
@media (max-width: 767px) {
    .event-card {
        margin-bottom: 20px;
    }
}

/* Image size helper classes (synced with admin) */
.parish-event-img-small  { max-height: 80px;  max-width: 55%; display: block; margin: 0 auto; object-fit: cover; }
.parish-event-img-medium { max-height: 140px; max-width: 80%; display: block; margin: 0 auto; object-fit: cover; }
.parish-event-img-large  { max-height: 200px; max-width: 100%; display: block; margin: 0 auto; object-fit: cover; }
.parish-event-img-full   { width: 100%; max-height: 220px; display: block; object-fit: cover; }

/* ============================================================
   MODERNÝ DIZAJN – zladený s rozpisom bohoslužieb / aktivitami
   ============================================================ */
.parish-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pe-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(93, 84, 111, 0.12);
    border: 1px solid #efe9da;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.pe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 42px rgba(108, 28, 51, 0.18);
}

.pe-card__media {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #6c1c33, #8a2342);
}

.pe-card__media--small { height: 110px; }
.pe-card__media--medium { height: 180px; }
.pe-card__media--large { height: 220px; }
.pe-card__media--full { height: 260px; }

.pe-card__head {
    padding: 1.1rem 1.25rem 0.75rem;
}

.pe-card__body--top {
    padding-bottom: 0.75rem;
}

.pe-card__align-center {
    text-align: center;
}

.pe-card__align-center .pe-card__btn {
    align-self: center;
}

.pe-card__foot {
    padding: 0 1.25rem 1.25rem;
}

.pe-card--layout-title-top .pe-card__head {
    border-bottom: 1px solid #efe9da;
}

.pe-card--layout-image-bottom .pe-card__body--top {
    border-bottom: none;
}

.pe-card--layout-image-bottom .pe-card__foot:empty {
    display: none;
    padding: 0;
}

.pe-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pe-card:hover .pe-card__media img {
    transform: scale(1.07);
}

.pe-card__media-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.6rem;
}

.pe-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(78, 19, 37, 0.55) 0%, rgba(108, 28, 51, 0) 60%);
}

.pe-card__body {
    padding: 1.1rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pe-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #6c1c33;
    line-height: 1.3;
}

.pe-card__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #5f5a6b;
    flex: 1;
}

.pe-card__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #6c1c33;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 7px 16px;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(108, 28, 51, 0.25);
    transition: background 0.25s ease, transform 0.2s ease;
    margin-top: 0.2rem;
}

.pe-card__btn-icon {
    font-size: 1rem;
    line-height: 1;
}

.pe-card__btn--pdf .pe-card__btn-icon {
    color: #ffd966;
}

.pe-card__btn:hover {
    background: #8a2342;
    color: #fff;
    transform: translateY(-2px);
}

.pe-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #8a8595;
    padding: 2.5rem 1rem;
}

@media (max-width: 991px) {
    .parish-events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .parish-events-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}