/* Every selector is scoped to the plugin to avoid leaking styles into Elementor or the theme. */
.ae-events,
.ae-single {
	--ae-primary: var(--e-global-color-primary, var(--wp--preset--color--primary, #334155));
	--ae-secondary: var(--e-global-color-secondary, var(--wp--preset--color--secondary, #64748b));
	--ae-accent: var(--e-global-color-accent, var(--wp--preset--color--accent, var(--ae-primary)));
	--ae-text: var(--e-global-color-text, var(--wp--preset--color--contrast, #172033));
	--ae-surface: var(--wp--preset--color--base, #fff);
	--ae-muted: color-mix(in srgb, var(--ae-text) 68%, transparent);
	--ae-border: color-mix(in srgb, var(--ae-text) 13%, transparent);
	--ae-soft: color-mix(in srgb, var(--ae-primary) 8%, var(--ae-surface));
	--ae-radius: var(--e-global-border-radius, 18px);
	--ae-shadow: 0 12px 38px color-mix(in srgb, var(--ae-text) 10%, transparent);
	color: var(--ae-text);
	font-family: inherit;
}

.ae-events *,
.ae-events *::before,
.ae-events *::after,
.ae-single__article,
.ae-single__article *,
.ae-single__article *::before,
.ae-single__article *::after {
	box-sizing: border-box;
}

.ae-events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.5vw, 32px);
}

.ae-events {
	width: 100%;
	max-width: var(--ae-header-container-width, var(--container-max-width, 1140px));
	margin-right: auto;
	margin-left: auto;
}

.ae-events--cols-1 .ae-events__grid { grid-template-columns: minmax(0, 1fr); }
.ae-events--cols-2 .ae-events__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ae-events--cols-4 .ae-events__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ae-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius);
	background: var(--ae-surface);
	box-shadow: 0 4px 18px color-mix(in srgb, var(--ae-text) 6%, transparent);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ae-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--ae-primary) 35%, var(--ae-border));
	box-shadow: var(--ae-shadow);
}

.ae-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--ae-soft);
}

.ae-card__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform .35s ease;
}

.ae-card:hover .ae-card__image {
	transform: scale(1.025);
}

.ae-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, transparent 45%, color-mix(in srgb, var(--ae-primary) 9%, transparent) 45% 55%, transparent 55%),
		var(--ae-soft);
}

.ae-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(20px, 2.3vw, 28px);
}

.ae-card__meta,
.ae-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ae-card__fee {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	min-height: 30px;
	padding: 6px 11px;
	border: 1px solid color-mix(in srgb, var(--ae-primary) 14%, var(--ae-border));
	border-radius: 999px;
	background: var(--ae-soft);
	color: var(--ae-primary);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.2;
}

.ae-card__fee strong {
	color: inherit;
	font-weight: 800;
}

.ae-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--ae-soft);
	color: var(--ae-primary);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
}

.ae-card__price,
.ae-single__price {
	color: var(--ae-secondary);
	font-size: 14px;
	font-weight: 700;
}

.ae-card__title {
	margin: 0 0 16px;
	color: var(--ae-text);
	font-family: inherit;
	font-size: clamp(17px, 1.4vw, 21px);
	font-weight: 700;
	line-height: 1.3;
}

.ae-card__meta {
	margin-bottom: 24px;
}

.ae-card__title a {
	color: inherit;
	text-decoration: none;
}

.ae-card__title a:hover,
.ae-card__title a:focus,
.ae-card__title a:active,
.ae-card:hover .ae-card__title a {
	color: var(--ae-text);
	text-decoration: none;
}

.ae-card__title a:focus-visible,
.ae-button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ae-accent) 45%, transparent);
	outline-offset: 3px;
}

.ae-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 22px;
	color: var(--ae-muted);
	font-size: 15px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ae-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid var(--ae-primary);
	border-radius: 999px;
	background: var(--ae-primary);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity .2s ease, transform .2s ease;
}

.ae-button:hover {
	color: #fff;
	opacity: .88;
	transform: translateY(-1px);
}

.ae-card .ae-button,
.ae-card .ae-button span,
.ae-card .ae-button:hover,
.ae-card .ae-button:focus {
	color: #fff;
}

.ae-card .ae-button {
	justify-content: space-between;
	width: 100%;
	padding-right: 10px;
	padding-left: 18px;
}

.ae-button__icon {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: color-mix(in srgb, #fff 18%, transparent);
	color: #fff;
	line-height: 1;
}

.ae-events__empty {
	padding: clamp(28px, 5vw, 56px);
	border: 1px dashed var(--ae-border);
	border-radius: var(--ae-radius);
	background: var(--ae-soft);
	text-align: center;
}

.ae-events__empty p {
	margin: 10px 0 0;
	color: var(--ae-muted);
}

.ae-events__empty-icon {
	color: var(--ae-primary);
	font-size: 30px;
}

.ae-single {
	width: calc(100% - 32px);
	max-width: var(--ae-header-container-width, var(--container-max-width, 1140px));
	margin: clamp(32px, 6vw, 88px) auto;
	scroll-behavior: smooth;
}

.ae-single__article {
	overflow: hidden;
	border: 1px solid var(--ae-border);
	border-radius: calc(var(--ae-radius) + 6px);
	background: var(--ae-surface);
	box-shadow: var(--ae-shadow);
}

.ae-single__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
	align-items: stretch;
	min-height: 520px;
	border-bottom: 1px solid var(--ae-border);
}

.ae-single__visual {
	min-width: 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--ae-soft);
}

.ae-single__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.ae-single__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background:
		linear-gradient(135deg, transparent 45%, color-mix(in srgb, var(--ae-primary) 9%, transparent) 45% 55%, transparent 55%),
		var(--ae-soft);
}

.ae-single__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(32px, 5vw, 72px);
}

.ae-single__details,
.ae-single__content,
.ae-single__form {
	width: min(960px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

.ae-single__title {
	margin: 0;
	color: var(--ae-text);
	font-family: inherit;
	font-size: clamp(25px, 2.65vw, 36px);
	font-weight: 750;
	line-height: 1.18;
	letter-spacing: -.018em;
}

.ae-single__info {
	width: 100%;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--ae-border);
}

.ae-single__info-label {
	display: block;
	margin-bottom: 7px;
	color: var(--ae-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ae-single__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	color: var(--ae-primary);
	font-size: 15px;
	font-weight: 750;
}

.ae-single__categories span:not(:last-child)::after {
	content: ">";
	margin-left: 7px;
	color: var(--ae-secondary);
}

.ae-single__fee {
	margin-top: 18px;
	padding: 16px 18px;
	border: 1px solid color-mix(in srgb, var(--ae-primary) 16%, var(--ae-border));
	border-radius: 13px;
	background: var(--ae-soft);
}

.ae-single__fee .ae-single__info-label {
	margin-bottom: 5px;
}

.ae-single__fee-value {
	display: block;
	color: var(--ae-primary);
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 800;
	line-height: 1.25;
}

.ae-single__apply-button {
	justify-content: space-between;
	width: 100%;
	min-height: 54px;
	margin-top: 22px;
	padding: 12px 13px 12px 22px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--ae-primary), color-mix(in srgb, var(--ae-primary) 75%, var(--ae-accent)));
	box-shadow: 0 10px 24px color-mix(in srgb, var(--ae-primary) 24%, transparent);
	font-size: 15px;
	letter-spacing: .01em;
}

.ae-single__apply-button:hover {
	box-shadow: 0 14px 30px color-mix(in srgb, var(--ae-primary) 30%, transparent);
	opacity: 1;
	transform: translateY(-2px);
}

.ae-single__apply-button,
.ae-single__apply-button span,
.ae-single__apply-button:hover,
.ae-single__apply-button:focus {
	color: #fff;
}

.ae-single__apply-icon {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background: color-mix(in srgb, #fff 18%, transparent);
	font-size: 17px;
	line-height: 1;
}

.ae-single__details {
	padding-top: clamp(38px, 6vw, 72px);
}

.ae-single__details > h2 {
	margin: 0 0 22px;
	color: var(--ae-text);
	font-family: inherit;
	font-size: clamp(25px, 3vw, 34px);
	line-height: 1.25;
}

.ae-single__content {
	width: 100%;
	padding: 0 0 clamp(38px, 6vw, 72px);
	color: var(--ae-text);
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.8;
}

.ae-single__content > :first-child {
	margin-top: 0;
}

.ae-single__content > :last-child {
	margin-bottom: 0;
}

.ae-single__form {
	scroll-margin-top: 40px;
	margin-bottom: clamp(30px, 5vw, 64px);
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius);
	background: var(--ae-soft);
}

.ae-single__form h2 {
	margin: 0 0 24px;
	color: var(--ae-text);
	font-family: inherit;
	font-size: clamp(23px, 3vw, 32px);
	line-height: 1.25;
}

.ae-single__form :where(input:not([type="checkbox"], [type="radio"], [type="submit"]), select, textarea) {
	width: 100%;
	max-width: 100%;
	border-color: var(--ae-border);
	border-radius: 10px;
	font-family: inherit;
}

.ae-single__form :where(button, input[type="submit"]) {
	border-color: var(--ae-primary);
	background: var(--ae-primary);
	color: #fff;
	font-family: inherit;
}

@media (max-width: 900px) {
	.ae-events__grid,
	.ae-events--cols-3 .ae-events__grid,
	.ae-events--cols-4 .ae-events__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ae-single__intro {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ae-single__visual {
		aspect-ratio: 1 / 1;
		max-height: min(82vh, 720px);
	}

	.ae-single__placeholder {
		min-height: 0;
	}

	.ae-single__header {
		padding: clamp(28px, 7vw, 52px);
	}
}

@media (max-width: 600px) {
	.ae-events__grid,
	.ae-events--cols-2 .ae-events__grid,
	.ae-events--cols-3 .ae-events__grid,
	.ae-events--cols-4 .ae-events__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ae-card__body {
		padding: 20px;
	}

	.ae-single {
		width: calc(100% - 20px);
		margin: 20px auto;
	}

	.ae-single__details,
	.ae-single__content,
	.ae-single__form {
		width: min(100% - 28px, 820px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ae-card,
	.ae-card__image,
	.ae-button {
		transition: none;
	}
}
