.pe-widget {
	--pe-accent: #08796d;
	--pe-dark: #123b43;
	--pe-muted: #687a7e;
	width: 100%;
	padding: 48px 28px;
	border-radius: 16px;
	background: #f7fbfa;
	box-sizing: border-box;
	color: var(--pe-dark);
	font-family: inherit;
}
.pe-widget * { box-sizing: border-box; }
.pe-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.pe-widget-eyebrow {
	display: inline-block;
	color: var(--pe-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.8px;
	margin-bottom: 8px;
}
.pe-widget-heading h2 {
	margin: 0 0 10px;
	color: var(--pe-dark);
	font-size: clamp(27px, 3vw, 40px);
	line-height: 1.18;
	font-weight: 700;
}
.pe-widget-heading p {
	margin: 0;
	max-width: 680px;
	color: var(--pe-muted);
	font-size: 15px;
	line-height: 1.65;
}
.pe-widget-month {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 5px;
	padding: 17px 22px;
	border-radius: 12px;
	background: #e5f2ef;
}
.pe-widget-month strong { color: var(--pe-accent); font-size: 18px; }
.pe-widget-month span { color: var(--pe-muted); font-size: 13px; }
.pe-widget-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.pe-widget-event {
	display: flex;
	align-items: center;
	gap: 17px;
	min-width: 0;
	min-height: 108px;
	padding: 12px;
	border: 1px solid #e9f0ee;
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 5px 20px rgba(15,66,58,.05);
	transition: transform .25s ease, box-shadow .25s ease;
}
.pe-widget-event:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(15,66,58,.10);
}
.pe-widget-date {
	display: flex;
	flex: 0 0 86px;
	min-height: 82px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 7px 4px;
	border-radius: 10px;
	background: #edf7f5;
	text-align: center;
}
.pe-widget-date strong {
	color: var(--pe-dark);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.15;
}
.pe-widget-date span { color: var(--pe-accent); font-size: 13px; font-weight: 700; }
.pe-widget-date small { margin-top: 3px; color: var(--pe-muted); font-size: 11px; }
.pe-widget-event-content { min-width: 0; }
.pe-widget-event-content h3 {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 9px;
	color: var(--pe-dark);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}
.pe-widget-pin { flex: 0 0 auto; color: var(--pe-accent); font-size: 13px; line-height: 1.5; }
.pe-widget-event-content p {
	margin: 0;
	color: var(--pe-muted);
	font-size: 13px;
	line-height: 1.5;
}
.pe-widget-people { color: var(--pe-accent); margin-right: 3px; }
.pe-widget-participants { color: var(--pe-muted); }
.pe-widget-event.is-featured {
	border-color: transparent;
	background: linear-gradient(110deg, #08796d, #075c54);
}
.pe-widget-event.is-featured .pe-widget-date { background: rgba(255,255,255,.15); }
.pe-widget-event.is-featured .pe-widget-date strong,
.pe-widget-event.is-featured .pe-widget-date span,
.pe-widget-event.is-featured .pe-widget-date small,
.pe-widget-event.is-featured .pe-widget-event-content h3,
.pe-widget-event.is-featured .pe-widget-event-content p,
.pe-widget-event.is-featured .pe-widget-pin,
.pe-widget-event.is-featured .pe-widget-people,
.pe-widget-event.is-featured .pe-widget-participants { color: #fff; }
.pe-widget-badge {
	display: inline-block;
	margin-bottom: 5px;
	color: #d5f5e9;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1px;
}
@media (max-width: 767px) {
	.pe-widget { padding: 28px 15px; }
	.pe-widget-header { align-items: stretch; flex-direction: column; gap: 18px; margin-bottom: 22px; }
	.pe-widget-month { width: 100%; }
	.pe-widget-grid { grid-template-columns: 1fr; gap: 12px; }
	.pe-widget-event { min-height: 94px; gap: 12px; padding: 9px; }
	.pe-widget-date { flex-basis: 72px; min-height: 74px; }
	.pe-widget-date strong { font-size: 22px; }
	.pe-widget-event-content h3 { font-size: 14px; }
	.pe-widget-event-content p { font-size: 12px; }
}

/* Optional event image: shown on the right edge of a card. */
.pe-widget-event { position: relative; overflow: hidden; }
.pe-widget-event-content { position: relative; z-index: 1; flex: 1 1 auto; }
.pe-widget-image {
    flex: 0 0 29%;
    align-self: stretch;
    min-height: 82px;
    margin: -12px -12px -12px 0;
    border-radius: 0 12px 12px 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.pe-widget-event.is-featured .pe-widget-image { flex-basis: 34%; }
@media (max-width: 767px) {
    .pe-widget-image {
        flex-basis: 25%;
        min-height: 74px;
        margin: -9px -9px -9px 0;
    }
    .pe-widget-event.is-featured .pe-widget-image { flex-basis: 28%; }
}
