@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --fev-green: #3d6b4f; --fev-green-dark: #2a4d38;
    --fev-tan: #c8a96e; --fev-cream: #f7f3ed;
    --fev-brown: #5a3e28; --fev-border: #ddd5c8;
    --fev-shadow: 0 2px 14px rgba(60,50,30,0.13);
}

/* Event Cards */
.fev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.fev-card {
    background: #fff; border-radius: 10px; box-shadow: var(--fev-shadow);
    overflow: hidden; display: flex; border: 1px solid var(--fev-border);
    transition: transform .2s, box-shadow .2s;
}
.fev-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(60,50,30,.18); }

.fev-date-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--fev-green); color: #fff; min-width: 72px; padding: 12px 8px;
    flex-shrink: 0;
}
.fev-month { font-family: 'Lato', sans-serif; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.fev-day   { font-family: 'Playfair Display', serif; font-size: 2.2rem; line-height: 1; }

.fev-card-body { padding: 18px; flex: 1; }
.fev-cat-badge { display: inline-block; background: var(--fev-tan); color: #fff; font-family: 'Lato', sans-serif; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.fev-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin: 0 0 10px; }
.fev-title a { color: var(--fev-brown); text-decoration: none; }
.fev-title a:hover { color: var(--fev-green); }
.fev-meta-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.fev-meta-item { font-family: 'Lato', sans-serif; font-size: .85rem; color: #555; }
.fev-excerpt { font-family: 'Lato', sans-serif; font-size: .88rem; color: #666; line-height: 1.55; margin: 0 0 12px; }
.fev-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fev-btn { background: var(--fev-green); color: #fff; padding: 8px 18px; border-radius: 5px; font-family: 'Lato', sans-serif; font-weight: 700; font-size: .88rem; text-decoration: none; transition: background .2s; }
.fev-btn:hover { background: var(--fev-green-dark); color: #fff; }
.fev-btn-outline { background: transparent; border: 2px solid var(--fev-green); color: var(--fev-green); }
.fev-btn-outline:hover { background: var(--fev-green); color: #fff; }
.fev-no-events { font-family: 'Lato', sans-serif; color: #777; font-style: italic; }

/* Calendar */
.fev-calendar { background: #fff; border-radius: 10px; box-shadow: var(--fev-shadow); overflow: hidden; border: 1px solid var(--fev-border); }
.fev-cal-header { background: var(--fev-green); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.fev-cal-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.fev-cal-nav { color: #fff; text-decoration: none; font-size: 1.3rem; padding: 4px 10px; border-radius: 4px; transition: background .2s; }
.fev-cal-nav:hover { background: rgba(255,255,255,.2); color: #fff; }
.fev-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.fev-cal-dow { background: var(--fev-cream); font-family: 'Lato', sans-serif; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fev-brown); text-align: center; padding: 10px 4px; border-bottom: 1px solid var(--fev-border); }
.fev-cal-cell { min-height: 80px; padding: 6px; border-right: 1px solid var(--fev-border); border-bottom: 1px solid var(--fev-border); vertical-align: top; }
.fev-cal-cell:nth-child(7n) { border-right: none; }
.fev-cal-empty { background: #fafafa; }
.fev-cal-day-num { font-family: 'Lato', sans-serif; font-size: .85rem; color: #999; display: block; margin-bottom: 4px; }
.fev-today .fev-cal-day-num { background: var(--fev-green); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.fev-has-events { background: #f0f7f3; }
.fev-cal-event { display: block; background: var(--fev-green); color: #fff; font-family: 'Lato', sans-serif; font-size: .72rem; padding: 2px 6px; border-radius: 3px; margin-bottom: 3px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fev-cal-event:hover { background: var(--fev-green-dark); color: #fff; }

/* Single Event Detail */
.fev-detail-box { background: var(--fev-cream); border: 1px solid var(--fev-border); border-radius: 10px; padding: 24px 28px; margin: 32px 0; }
.fev-detail-box h3 { font-family: 'Playfair Display', serif; color: var(--fev-brown); margin-top: 0; }
.fev-detail-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.fev-detail-list dt { font-family: 'Lato', sans-serif; font-weight: 700; color: var(--fev-brown); }
.fev-detail-list dd { font-family: 'Lato', sans-serif; color: #444; margin: 0; }
.fev-detail-list a { color: var(--fev-green); }

@media (max-width: 600px) {
    .fev-grid { grid-template-columns: 1fr; }
    .fev-card { flex-direction: column; }
    .fev-date-badge { flex-direction: row; gap: 8px; padding: 10px 16px; min-width: unset; }
    .fev-cal-cell { min-height: 50px; }
    .fev-cal-event { display: none; }
    .fev-has-events::after { content: '•'; color: var(--fev-green); font-size: 1.2rem; display: block; text-align: center; }
}
