.sec-calendar-wrap {
	--sec-purple: #3d2858;
	--sec-purple-hover: #2a1c3e;
	--sec-purple-soft: #5c4178;
	--sec-purple-tint: #ebe2f4;

	max-width: 100%;
	margin: 2em 0;
	font-family: inherit;
}

.sec-events-section {
	margin-bottom: 2.5em;
}

.sec-events-section:last-of-type {
	margin-bottom: 0;
}

.sec-events-section-heading {
	margin: 0 0 1em;
	font-size: 1.15em;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sec-purple);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sec-events-empty {
	margin: 0;
	opacity: 0.75;
}

.sec-events-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sec-event-card {
	margin: 0 0 1em;
}

.sec-event-card:last-child {
	margin-bottom: 0;
}

.sec-event-item {
	display: flex;
	align-items: flex-start;
	gap: 1.15em;
	padding: 1.35em 1.5em;
	background: #ffffff;
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(45, 34, 82, 0.08);
}

.sec-event-image {
	flex: 0 0 88px;
	width: 88px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	background: var(--sec-purple-tint);
}

.sec-event-image img,
.sec-event-image .sec-event-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sec-event-body {
	flex: 1 1 auto;
	min-width: 0;
}

.sec-event-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em 1em;
	margin-bottom: 0.45em;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--sec-purple);
}

.sec-event-location {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	opacity: 0.85;
}

.sec-event-title {
	margin: 0 0 0.5em;
	font-size: 1.25em;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.sec-event-excerpt {
	margin: 0 0 1em;
	font-size: 0.98em;
	line-height: 1.6;
}

.sec-event-excerpt > :first-child {
	margin-top: 0;
}

.sec-event-excerpt > :last-child {
	margin-bottom: 0;
}

.sec-event-actions {
	margin-top: 0.25em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65em;
}

.sec-calendar-wrap .sec-event-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 0.55em 1.25em;
	border: 1px solid var(--sec-purple);
	border-radius: 4px;
	background-color: transparent;
	color: var(--sec-purple);
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sec-calendar-wrap .sec-event-btn:hover,
.sec-calendar-wrap .sec-event-btn:focus {
	background-color: var(--sec-purple);
	border-color: var(--sec-purple);
	color: #ffffff;
}

.sec-events-data {
	display: none;
}

body.sec-modal-open {
	overflow: hidden;
}

.sec-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5em;
}

.sec-modal[hidden] {
	display: none;
}

.sec-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.sec-modal-dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	width: min(640px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 1.5em;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.sec-modal-close {
	position: absolute;
	top: 0.5em;
	right: 0.5em;
	border: 0;
	background: transparent;
	font-size: 1.75em;
	line-height: 1;
	cursor: pointer;
	color: #333;
	padding: 0.1em 0.35em;
}

.sec-modal-title {
	margin: 0 2em 0.75em 0;
	font-size: 1.25em;
	font-weight: 600;
}

.sec-modal-content {
	margin-bottom: 1em;
	font-size: 0.95em;
	line-height: 1.6;
}

.sec-modal-content > :first-child {
	margin-top: 0;
}

.sec-modal-content > :last-child {
	margin-bottom: 0;
}

.sec-modal-content:empty {
	display: none;
}

.sec-modal-body {
	min-height: 120px;
}

.sec-modal-body:empty {
	display: none;
}

@media (max-width: 600px) {
	.sec-event-item {
		flex-direction: column;
		gap: 0.85em;
		padding: 1.1em 1.15em;
	}

	.sec-event-image {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		aspect-ratio: 1 / 1;
	}

	.sec-event-body {
		width: 100%;
	}

	.sec-event-title {
		font-size: 1.1em;
	}

	.sec-event-meta {
		flex-direction: column;
		gap: 0.2em;
	}

	.sec-calendar-wrap .sec-event-btn {
		width: 100%;
	}
}
