/* ============================================================
   Mercedarian Events – Front-end styles
   Matches the feast-list aesthetic from the design reference
   ============================================================ */

/* ── Widget: list container ─────────────────────────────────── */
.me-events-list {
    font-family: inherit;
}

/* ── Individual event item ───────────────────────────────────── */
.me-event-item {
    padding-top: 24px;
    padding-bottom: 24px;
}
.me-event-item.me-has-divider:not(:last-child) {
    border-bottom: 1px solid #e8e0d8;
}

/* ── Two-column inner layout ─────────────────────────────────── */
.me-event-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* ── Date column ─────────────────────────────────────────────── */
.me-event-date-col {
    min-width: 90px;
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.me-event-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #8B3A2A;
    margin-bottom: 2px;
    text-transform: capitalize;
}

.me-event-day {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    color: #8B3A2A;
    line-height: 1;
}

/* ── Content column ──────────────────────────────────────────── */
.me-event-content-col {
    flex: 1;
    min-width: 0;
}

/* ── Title row (title + badge) ───────────────────────────────── */
.me-event-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.me-event-title,
.me-event-title a {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
}
.me-event-title a:hover {
    color: #8B3A2A;
}

/* ── Upcoming badge ──────────────────────────────────────────── */
.me-upcoming-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: #8B3A2A;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Meta (time / location) ──────────────────────────────────── */
.me-event-meta {
    font-size: 0.82rem;
    color: #666666;
    margin-top: 3px;
}

/* ── Excerpt ─────────────────────────────────────────────────── */
.me-event-excerpt {
    font-size: 0.88rem;
    color: #555555;
    margin-top: 6px;
    line-height: 1.6;
}

/* ── No-events placeholder ───────────────────────────────────── */
.me-no-events {
    color: #888;
    font-style: italic;
}


/* ============================================================
   Single Event Template
   ============================================================ */

/* ── Hero Banner ─────────────────────────────────────────────
   Mirrors the Elementor Province page header:
   full-width, min-height ~380px, featured image as background,
   dark gradient overlay, centred inner container.
   ──────────────────────────────────────────────────────────── */
.me-hero-banner {
    position: relative;
    width: 100%;
    min-height: 380px;
    background-color: #1a1208;           /* fallback when no image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;              /* content sits near bottom, like Province */
}

/* Dark overlay — same visual weight as the Province header */
.me-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.65) 60%,
        rgba(0,0,0,0.80) 100%
    );
    z-index: 1;
}

/* Inner wrapper — max-width matches Elementor container default */
.me-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 48px;
}

/* ── Date badge inside hero ──────────────────────────────── */
.me-hero-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #7a2e1a;                 /* terracotta, matches widget */
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    min-width: 72px;
    text-align: center;
    line-height: 1;
}
.me-hero-badge-month {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}
.me-hero-badge-day {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}
.me-hero-badge-year {
    font-size: 0.65rem;
    opacity: 0.85;
    margin-top: 4px;
    letter-spacing: 0.06em;
}

/* ── Hero title (mirrors h1.elementor-heading-title) ─────── */
.me-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* ── Breadcrumb row (mirrors .elementor-element-5c995cb7) ── */
.me-hero-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.me-bc-home a,
.me-bc-item a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.me-bc-home a:hover,
.me-bc-item a:hover {
    opacity: 1;
}
.me-bc-sep {
    color: rgba(255,255,255,0.5);
}
.me-bc-active {
    color: #e8a820;                      /* golden accent — matches theme CTA */
    opacity: 1;
}

/* ── Content wrapper ──────────────────────────────────────── */
.me-single-event {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Meta strip (badge / time / location) ─────────────────── */
.me-single-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e0d8;
    font-size: 0.88rem;
    color: #555;
}
.me-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.me-meta-time::before    { content: '🕐'; font-size: 0.9em; }
.me-meta-location::before { content: '📍'; font-size: 0.9em; }

/* ── Post content ─────────────────────────────────────────── */
.me-single-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
    margin-bottom: 48px;
}
.me-single-content h2,
.me-single-content h3 {
    color: #7a2e1a;
    margin-top: 1.5em;
}

/* ── Gallery ──────────────────────────────────────────────── */
.me-single-gallery-wrap {
    margin-bottom: 40px;
}
.me-single-gallery-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e0d8;
}

/* ── Back link ────────────────────────────────────────────── */
.me-back-wrap {
    margin-top: 32px;
}
.me-back-link {
    display: inline-block;
    font-size: 0.88rem;
    color: #7a2e1a;
    text-decoration: none;
    border: 1px solid #7a2e1a;
    padding: 8px 18px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}
.me-back-link:hover {
    background: #7a2e1a;
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .me-hero-banner  { min-height: 280px; }
    .me-hero-inner   { padding: 32px 20px 36px; }
    .me-hero-title   { font-size: 1.6rem; }
    .me-hero-badge-day { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .me-hero-banner  { min-height: 240px; }
    .me-hero-title   { font-size: 1.35rem; }
    .me-hero-breadcrumb { font-size: 0.7rem; }
}

/* ============================================================
   Events Archive Page
   ============================================================ */

/* Archive banner: no featured image, uses brand dark bg */
.me-archive-banner {
    min-height: 260px;
    background-color: #1a1208;
    background-image: none !important;  /* override any inherited bg */
}

/* Content wrapper */
.me-archive-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Filter tabs ──────────────────────────────────────────── */
.me-archive-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.me-filter-btn {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #c8bfb5;
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #555;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.me-filter-btn:hover,
.me-filter-btn.me-filter-active {
    background: #7a2e1a;
    border-color: #7a2e1a;
    color: #fff;
}

/* ── Pagination ───────────────────────────────────────────── */
.me-archive-pagination {
    margin-top: 40px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.me-archive-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #c8bfb5;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #444;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.me-archive-pagination .page-numbers.current,
.me-archive-pagination .page-numbers:hover {
    background: #7a2e1a;
    border-color: #7a2e1a;
    color: #fff;
}
.me-archive-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* Past events: slightly muted */
.me-past-event .me-event-title,
.me-past-event .me-event-title a {
    opacity: 0.65;
}
.me-past-event .me-event-month,
.me-past-event .me-event-day {
    opacity: 0.55;
}

@media (max-width: 600px) {
    .me-archive-banner { min-height: 200px; }
    .me-archive-wrap   { padding: 28px 16px 60px; }
}
