/* Секция „Събития“ на началната — картите от шорткода [anelia_events] */

.ae-events {
	display: grid;
	gap: 72px;
	max-width: 1009px;
	margin: 48px auto 0;
	text-align: left;
}

.ae-card {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 44px;
	align-items: start;
}

.ae-card:nth-child(even) {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.ae-card:nth-child(even) .ae-media {
	order: 2;
}

.ae-media {
	position: relative;
}

.ae-media .ae-poster {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 14px 36px rgba(5, 21, 87, 0.18);
}

.ae-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: 8px 16px;
	background: #051557;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.ae-body .ae-title {
	margin: 0 0 4px;
	color: #051557;
	font-size: 34px;
	line-height: 1.15;
	font-weight: 700;
}

.ae-body .ae-by {
	margin: 0 0 18px;
	color: #3b456f;
	font-size: 18px;
	font-style: italic;
}

.ae-body .ae-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.ae-body .ae-facts li {
	margin: 0;
	padding: 7px 12px;
	border: 1px solid rgba(5, 21, 87, 0.28);
	color: #051557;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.ae-text p,
.ae-text li {
	color: #3b456f;
	font-size: 16px;
	line-height: 1.6;
}

.ae-text p {
	margin: 0 0 12px;
}

.ae-text .ae-lead,
.ae-text .ae-strong {
	color: #051557;
	font-weight: 700;
}

.ae-text .ae-lead {
	font-size: 18px;
}

.ae-text .ae-sign {
	font-style: italic;
}

.ae-text h4 {
	margin: 22px 0 8px;
	color: #051557;
	font-size: 19px;
	line-height: 1.3;
}

.ae-text .ae-list {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.ae-text .ae-list li {
	margin: 0 0 6px;
}

.ae-text .ae-list--themes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.ae-text .ae-list--dot li {
	position: relative;
	padding-left: 18px;
}

.ae-text .ae-list--dot li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #d81b60;
}

.ae-text .ae-details {
	padding: 12px 16px;
	border-left: 3px solid #d81b60;
	background: rgba(5, 21, 87, 0.04);
	color: #051557;
	font-weight: 700;
}

.ae-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 20px 0 18px;
}

.ae-actions .ae-btn {
	display: inline-block;
	padding: 16px 26px;
	background: #d81b60;
	color: #fff;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s;
}

.ae-actions .ae-btn:hover,
.ae-actions .ae-btn:focus-visible {
	background: #ad1457;
	color: #fff;
}

.ae-actions .ae-alt {
	color: #051557;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ae-more {
	border-top: 1px solid rgba(5, 21, 87, 0.15);
	padding-top: 14px;
}

.ae-more summary {
	cursor: pointer;
	color: #c2185b;
	font-size: 17px;
	font-weight: 700;
}

.ae-more[open] summary {
	margin-bottom: 14px;
}

@media (max-width: 767px) {
	.ae-events {
		gap: 56px;
	}

	.ae-card,
	.ae-card:nth-child(even) {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ae-card:nth-child(even) .ae-media {
		order: 0;
	}

	.ae-media {
		max-width: 480px;
		width: 100%;
		margin: 0 auto;
	}

	.ae-body .ae-title {
		font-size: 28px;
	}

	.ae-actions .ae-btn {
		display: block;
		width: 100%;
		text-align: center;
	}
}
