/* Events layout — hero full-bleed, content centered in Botiga container */
.hae-events-page {
	background: #f7f4ef;
}

.hae-events-hero {
	position: relative;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.hae-events-hero--banner {
	min-height: min(37vh, 336px);
	display: flex;
	align-items: center;
	padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
	width: 100%;
	margin: 0;
}

.hae-events-hero--compact {
	min-height: min(25vh, 228px);
	align-items: flex-end;
	padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 48px);
	width: 100%;
	margin: 0;
}

.hae-events-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url('../images/events-hero.png') center 72% / cover no-repeat;
}

.hae-events-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		rgba(10, 18, 14, 0.32) 0%,
		rgba(10, 18, 14, 0.52) 48%,
		rgba(10, 18, 14, 0.78) 100%
	);
}

.hae-events-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

.hae-events-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.92;
}

.hae-events-hero__eyebrow a {
	color: #fff;
	text-decoration: none;
}

.hae-events-hero__title,
.hae-events-hero h1 {
	margin: 0 0 14px;
	font-size: clamp(2.4rem, 6vw, 4rem);
	line-height: 1.08;
	font-weight: 700;
	color: #fff !important;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hae-events-hero__intro {
	max-width: none;
	width: 100%;
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.65;
	color: #fff !important;
	opacity: 0.98;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hae-events-section {
	padding: clamp(40px, 5vw, 72px) 0 80px;
}

.hae-events-section__inner {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 24px);
}

.hae-events-section__heading {
	margin: 0 0 24px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: #1a2e24;
}

.hae-events-section__heading--past {
	margin-top: 56px;
}

.hae-events-empty {
	padding: 28px;
	background: #fffcf8;
	border: 1px dashed rgba(26, 46, 36, 0.18);
	border-radius: 14px;
	color: #4a5c54;
}

.hae-events-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hae-events-list--past {
	opacity: 0.92;
}

.hae-event-row__link {
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding: 16px 20px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(26, 46, 36, 0.06);
	color: inherit;
	text-decoration: none;
}

.hae-event-row__link:hover {
	box-shadow: 0 12px 28px rgba(26, 46, 36, 0.1);
}

.hae-event-row__visual {
	display: flex;
	align-items: stretch;
	flex-shrink: 0;
	min-height: 148px;
}

.hae-event-row__date {
	width: 68px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid rgba(26, 46, 36, 0.1);
	border-right: 0;
	border-radius: 14px 0 0 14px;
	box-shadow: 0 8px 18px rgba(26, 46, 36, 0.06);
}

.hae-event-row__month {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #c62828;
	text-transform: uppercase;
}

.hae-event-row__day {
	font-size: 28px;
	line-height: 1;
	font-weight: 800;
	color: #1a2e24;
}

.hae-event-row__date--range {
	width: 68px;
	padding: 8px 0;
}

.hae-event-row__date--range .hae-event-row__day {
	font-size: 24px;
}

.hae-event-row__dash {
	display: block;
	line-height: 0.7;
	font-size: 16px;
	font-weight: 700;
	color: #1a2e24;
}

.hae-event-row__thumb {
	width: 188px;
	min-height: 148px;
	height: auto;
	align-self: stretch;
	border-radius: 0 14px 14px 0;
	overflow: hidden;
	background: #e8efe9;
}

.hae-event-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hae-event-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
}

.hae-event-row__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 6px;
}

.hae-event-row__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	color: #1a2e24;
	min-width: 0;
}

.hae-event-row__when,
.hae-event-row__venue,
.hae-event-row__guests {
	margin: 0 0 4px;
	font-size: 14px;
	color: #5b6b64;
}

.hae-event-row__city {
	margin: 0;
	flex-shrink: 0;
}

.hae-event-row__excerpt {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: #5b6b64;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hae-event-row__note {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #2e7d32;
}

.hae-city-pill {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	background: #e8f3ea;
	color: #14352a;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.hae-city-pill--johor-bahru {
	background: #d9f0e4;
	color: #0f3d2e;
}

.hae-city-pill--kuala-lumpur {
	background: #fde8d0;
	color: #6a3a0c;
}

.hae-city-pill--petaling-jaya {
	background: #dce8fb;
	color: #163a6b;
}

.hae-city-pill--shah-alam {
	background: #ebe0f8;
	color: #4a2470;
}

.hae-city-pill--penang {
	background: #fde0e4;
	color: #7a1d32;
}

.hae-city-pill--melaka {
	background: #f8e0d2;
	color: #6b2c12;
}

.hae-city-pill--ipoh {
	background: #e4eed4;
	color: #3a4a16;
}

.hae-city-pill--seremban {
	background: #d8eef0;
	color: #16464c;
}

.hae-city-pill--kuantan {
	background: #f8edd0;
	color: #5c4308;
}

.hae-city-pill--kota-kinabalu {
	background: #d9e7f7;
	color: #1a3d66;
}

.hae-city-pill--kuching {
	background: #e5f0d8;
	color: #2f4a18;
}

.hae-city-pill--kota-bharu {
	background: #f6e0ee;
	color: #6b1f52;
}

.hae-city-pill--singapore {
	background: #fadada;
	color: #7a1212;
}

.hae-event-detail {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px clamp(16px, 3vw, 24px) 80px;
}

.hae-event-detail__back {
	margin: 0 0 16px;
}

.hae-event-detail__back a {
	color: #1b5e20;
	font-weight: 700;
	text-decoration: none;
}

.hae-event-detail__card {
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(26, 46, 36, 0.08);
}

.hae-event-detail__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: clamp(280px, 46vh, 460px);
	background: #ece8e2;
	line-height: 0;
}

.hae-event-detail__media img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.hae-event-detail__place {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
}

.hae-event-detail__date {
	position: static;
	width: 68px;
	padding: 8px 6px 10px;
	border-radius: 14px;
	background: #fff;
	text-align: center;
	box-shadow: 0 8px 18px rgba(26, 46, 36, 0.08);
	flex-shrink: 0;
}

.hae-event-detail__city {
	margin: 0;
}

.hae-event-detail__date span {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #c62828;
}

.hae-event-detail__date strong {
	display: block;
	font-size: 30px;
	line-height: 1;
	color: #1a2e24;
}

.hae-event-detail__date--range {
	width: 86px;
}

.hae-event-detail__date--range strong {
	font-size: 18px;
}

.hae-event-detail__sheet {
	position: relative;
	margin-top: 0;
	background: #fff;
	border-radius: 0;
	padding: clamp(24px, 4vw, 40px);
	box-shadow: none;
}

.hae-event-detail__intro {
	display: grid;
	grid-template-columns: 1fr minmax(220px, 280px);
	gap: 28px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid rgba(26, 46, 36, 0.08);
}

.hae-event-detail__city .hae-city-pill {
	font-size: 18px;
	padding: 9px 16px;
}

.hae-event-detail__title {
	margin: 8px 0 16px;
	font-size: clamp(2rem, 4vw, 2.8rem);
	line-height: 1.15;
	color: #1a2e24;
}

.hae-event-detail__facts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hae-event-detail__facts-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px 28px;
	margin: 0 0 16px;
}

.hae-event-detail__facts-row:last-child {
	margin-bottom: 0;
}

.hae-event-detail__facts strong {
	display: block;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7a8a83;
}

.hae-event-detail__cta {
	justify-self: end;
	align-self: start;
	text-align: right;
	max-width: 100%;
}

.hae-event-detail__cta .hae-events-past-note,
.hae-event-detail__cta .hae-events-full,
.hae-event-detail__cta .hae-event-detail__spots {
	margin-top: 0;
}

.hae-event-detail__spots {
	margin: 0 0 10px;
	font-weight: 700;
	color: #1b5e20;
}

.hae-event-detail__content h2 {
	margin: 0 0 12px;
	font-size: 1.4rem;
	color: #1a2e24;
}

@media (max-width: 800px) {
	.hae-event-row__link {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.hae-event-row__thumb {
		width: 140px;
		min-height: 120px;
	}

	.hae-event-row__top {
		flex-wrap: wrap;
	}

	.hae-event-row__city .hae-city-pill {
		font-size: 13px;
		padding: 6px 12px;
	}

	.hae-event-detail__intro {
		grid-template-columns: 1fr;
	}

	.hae-event-detail__cta {
		justify-self: stretch;
		text-align: left;
	}

	.hae-events-hero__shade {
		background: linear-gradient(
			180deg,
			rgba(10, 18, 14, 0.42) 0%,
			rgba(10, 18, 14, 0.62) 42%,
			rgba(10, 18, 14, 0.86) 100%
		);
	}
}

.hae-event-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 15px;
	opacity: 0.95;
}

.hae-event-single__body {
	background: #fffcf8;
	border: 1px solid rgba(26, 46, 36, 0.1);
	border-radius: 16px;
	padding: clamp(28px, 4vw, 40px);
	box-shadow: 0 8px 24px rgba(26, 46, 36, 0.06);
}

.hae-event-single__description {
	line-height: 1.75;
	color: #1a2e24;
	font-size: 17px;
}

.hae-event-single__description p {
	margin: 0 0 1em;
}

.hae-event-single__description p:last-child {
	margin-bottom: 0;
}

.hae-event-single__admin-link {
	margin-top: 24px;
	font-size: 13px;
}

.hae-events-register-btn {
	display: inline-block;
	margin-top: 24px;
	padding: 14px 28px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.hae-events-register-btn--full {
	width: 100%;
	margin-top: 8px;
}

.hae-events-register-btn:hover {
	opacity: 0.92;
}

.hae-events-register-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.hae-events-full,
.hae-events-past-note {
	margin-top: 24px;
	font-weight: 600;
	color: #4a5c54;
}

.hae-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.hae-modal.is-open {
	display: block;
}

.hae-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.hae-modal__dialog {
	position: relative;
	width: min(520px, calc(100% - 24px));
	max-height: calc(100vh - 40px);
	overflow: auto;
	margin: 20px auto;
	background: #fffcf8;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.hae-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.hae-modal__event-name {
	margin: 0 0 16px;
	color: #2e7d32;
	font-weight: 700;
}

.hae-modal__form {
	display: grid;
	gap: 14px;
}

.hae-modal__form label span {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.hae-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hae-slide-captcha {
	display: grid;
	gap: 8px;
}

.hae-slide-captcha__label {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.hae-slide-captcha__board {
	padding: 10px;
	border-radius: 12px;
	background: #eef3ef;
	border: 1px solid rgba(26, 46, 36, 0.12);
}

.hae-slide-captcha__track {
	position: relative;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	user-select: none;
	touch-action: none;
	background:
		repeating-linear-gradient(
			-18deg,
			rgba(27, 94, 32, 0.2) 0 10px,
			rgba(27, 94, 32, 0.08) 10px 20px
		),
		linear-gradient(90deg, #b7d0be, #d5e6da 50%, #b7d0be);
}

.hae-slide-captcha__gap,
.hae-slide-captcha__piece {
	position: absolute;
	top: 8px;
	width: 40px;
	height: 40px;
}

.hae-slide-captcha__gap {
	margin-left: -20px;
	pointer-events: none;
	z-index: 1;
	background: #3d5348;
	box-shadow:
		inset 0 2px 6px rgba(0, 0, 0, 0.35),
		0 0 0 2px #1a2e24;
}

.hae-slide-captcha__piece {
	left: 0;
	z-index: 2;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.hae-slide-captcha__shape {
	display: block;
	width: 40px;
	height: 40px;
	background: #1b5e20;
	box-shadow: 0 4px 10px rgba(26, 46, 36, 0.28);
}

.hae-slide-captcha__piece.is-dragging,
.hae-slide-captcha.is-dragging .hae-slide-captcha__piece {
	cursor: grabbing;
}

.hae-slide-captcha--notch .hae-slide-captcha__gap,
.hae-slide-captcha--notch .hae-slide-captcha__shape {
	border-radius: 10px 16px 10px 16px;
}

.hae-slide-captcha--circle .hae-slide-captcha__gap,
.hae-slide-captcha--circle .hae-slide-captcha__shape {
	border-radius: 50%;
}

.hae-slide-captcha--diamond .hae-slide-captcha__gap,
.hae-slide-captcha--diamond .hae-slide-captcha__shape {
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hae-slide-captcha--hex .hae-slide-captcha__gap,
.hae-slide-captcha--hex .hae-slide-captcha__shape {
	clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.hae-slide-captcha--tab .hae-slide-captcha__gap,
.hae-slide-captcha--tab .hae-slide-captcha__shape {
	clip-path: polygon(0 18%, 62% 18%, 62% 0, 100% 50%, 62% 100%, 62% 82%, 0 82%);
}

.hae-modal__form input,
.hae-modal__form textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid rgba(26, 46, 36, 0.18);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.hae-modal__notice {
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.hae-modal__notice--error {
	background: #fce4ec;
	color: #b71c1c;
	border-left: 4px solid #e53935;
}

.hae-modal__notice--error p {
	margin: 0 0 8px;
}

.hae-modal__notice--error p:last-child {
	margin-bottom: 0;
}

.hae-modal__notice--error a {
	color: #8b1515;
	font-weight: 600;
}

.hae-modal__notice-code {
	font-size: 13px;
	opacity: 0.85;
}

.hae-modal__success {
	text-align: center;
}

.hae-modal__success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 34px;
	line-height: 64px;
	font-weight: 700;
}

.hae-modal__success-lead {
	margin: 0 0 16px;
	font-size: 16px;
	color: #333;
}

.hae-modal__success-card {
	text-align: left;
	background: #f1f8f2;
	border-left: 4px solid #2e7d32;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0 0 16px;
}

.hae-modal__success-card p {
	margin: 0 0 8px;
	line-height: 1.55;
}

.hae-modal__success-card p:last-child {
	margin-bottom: 0;
}

.hae-modal__success-event {
	font-size: 18px;
	font-weight: 700;
	color: #1b5e20;
	margin-bottom: 10px !important;
}

.hae-modal__success-note {
	margin: 0 0 20px;
	color: #555;
	line-height: 1.6;
}

.hae-event-single__description ul,
.hae-event-single__description ol {
	padding-left: 1.4em;
}

.hae-event-single__description strong {
	font-weight: 700;
}

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