/**
 * NYM Events — front end
 * Author: Deepanshu Viralbulls
 *
 * Colours and fonts fall back to the Elementor global values so the
 * plugin inherits the site theme. Override any --nym-* variable in
 * Elementor > Site Settings > Custom CSS to retune without editing this file.
 */

.nym-ev {
	--nym-bg: #000000;
	--nym-card-bg: #050505;
	--nym-gold: #dea573;
	--nym-gold-soft: rgba(222, 165, 115, 0.45);
	--nym-red: var(--e-global-color-accent, #d70000);
	--nym-white: #ffffff;
	--nym-muted: rgba(255, 255, 255, 0.72);
	--nym-line: rgba(222, 165, 115, 0.55);
	--nym-card-title: clamp(20px, 1.9vw, 27px);
	--nym-card-sub: 17px;
	--nym-radius: 6px;
	--nym-gap: 22px;
	--nym-cols: 4;

	--nym-font-display: var(--e-global-typography-primary-font-family, "Bebas Neue"), "Oswald", "Arial Narrow", sans-serif;
	--nym-font-body: var(--e-global-typography-text-font-family, "Poppins"), system-ui, -apple-system, "Segoe UI", sans-serif;

	box-sizing: border-box;
	color: var(--nym-white);
	font-family: var(--nym-font-body);
}

.nym-ev *,
.nym-ev *::before,
.nym-ev *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------
   Section headings
   --------------------------------------------------------------- */

.nym-ev__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}

.nym-ev__heading {
	margin: 0 0 26px;
	font-family: var(--nym-font-display);
	font-size: clamp(26px, 3.4vw, 44px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--nym-white);
}

.nym-ev__head .nym-ev__heading {
	margin-bottom: 0;
}

.nym-ev__viewall {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	font-family: var(--nym-font-display);
	font-size: clamp(13px, 1.2vw, 17px);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nym-white);
	transition: color 0.25s ease;
}

.nym-ev__viewall svg {
	width: 22px;
	height: 22px;
	color: var(--nym-red);
	transition: transform 0.25s ease;
}

.nym-ev__viewall:hover,
.nym-ev__viewall:focus-visible {
	color: var(--nym-gold);
}

.nym-ev__viewall:hover svg {
	transform: translateX(5px);
}

.nym-ev__section + .nym-ev__section {
	margin-top: clamp(40px, 6vw, 78px);
}

/* ---------------------------------------------------------------
   Filter tabs
   --------------------------------------------------------------- */

.nym-ev-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 clamp(30px, 4vw, 52px);
}

.nym-ev-filter {
	appearance: none;
	min-width: 150px;
	padding: 15px 26px;
	border: 1px solid var(--nym-gold-soft);
	border-radius: 3px;
	background: transparent;
	color: var(--nym-white);
	font-family: var(--nym-font-display);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.07em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.nym-ev-filter:hover {
	border-color: var(--nym-gold);
	background: rgba(222, 165, 115, 0.1);
}

.nym-ev-filter:focus-visible {
	outline: 2px solid var(--nym-gold);
	outline-offset: 2px;
}

.nym-ev-filter.is-active {
	background: var(--nym-red);
	border-color: var(--nym-red);
	color: var(--nym-white);
}

/* ---------------------------------------------------------------
   Grid
   --------------------------------------------------------------- */

.nym-ev-grid {
	display: grid;
	grid-template-columns: repeat(var(--nym-cols), minmax(0, 1fr));
	gap: var(--nym-gap);
}

.nym-ev-empty {
	margin: 0;
	padding: 30px 0;
	color: var(--nym-muted);
	font-size: 15px;
}

.nym-ev-grid[hidden],
.nym-ev-empty[hidden] {
	display: none;
}

/* ---------------------------------------------------------------
   Card
   --------------------------------------------------------------- */

.nym-ev-card {
	position: relative;
	border: 1px solid rgba(222, 165, 115, 0.28);
	border-radius: var(--nym-radius);
	background: var(--nym-card-bg);
	overflow: hidden;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.nym-ev-card[hidden] {
	display: none;
}

.nym-ev-card:hover {
	border-color: var(--nym-gold);
}

.nym-ev-card__link {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	text-decoration: none;
	color: inherit;
}

.nym-ev-card__link:focus-visible {
	outline: 2px solid var(--nym-gold);
	outline-offset: -4px;
}

.nym-ev-card__media {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	background: linear-gradient(160deg, #141414 0%, #050505 70%);
}

.nym-ev-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transform: scale(1);
	transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nym-ev-card__link:hover .nym-ev-card__img,
.nym-ev-card__link:focus-visible .nym-ev-card__img {
	transform: scale(1.06);
}

.nym-ev-card__scrim {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.94) 0%,
		rgba(0, 0, 0, 0.82) 18%,
		rgba(0, 0, 0, 0.34) 42%,
		rgba(0, 0, 0, 0.08) 62%,
		rgba(0, 0, 0, 0.22) 100%
	);
}

/* Date badge */

.nym-ev-card__date {
	position: absolute;
	top: 14px;
	left: 16px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 78px;
	padding: 10px 12px 12px;
	background: #000000;
	font-family: var(--nym-font-display);
	line-height: 1;
	text-align: center;
}

.nym-ev-card__day {
	display: block;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--nym-gold);
	text-transform: uppercase;
}

.nym-ev-card__num {
	display: block;
	margin: 7px 0 6px;
	font-size: 34px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--nym-gold);
}

.nym-ev-card__month {
	display: block;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--nym-white);
	text-transform: uppercase;
}

/* Multi-day badges carry more text, so shrink the number line. */
.nym-ev-card__num {
	max-width: 100%;
	word-break: keep-all;
}

.nym-ev-card--range .nym-ev-card__num {
	font-size: 22px;
	line-height: 1.15;
}

/* Card body */

.nym-ev-card__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	display: block;
	padding: 0 18px 18px;
}

.nym-ev-card__title {
	display: block;
	font-family: var(--nym-font-display);
	font-size: var(--nym-card-title);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--nym-white);
}

.nym-ev-card__time {
	display: block;
	margin-top: 6px;
	font-family: var(--nym-font-display);
	font-size: var(--nym-card-sub);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nym-white);
}

.nym-ev-card__rule {
	display: block;
	height: 1px;
	margin: 13px 0 12px;
	background: var(--nym-line);
}

.nym-ev-card__foot {
	display: flex;
	align-items: center;
	gap: 1.5em;
}

.nym-ev-card__type,
.nym-ev-card__cta {
	font-family: var(--nym-font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--nym-white);
	white-space: nowrap;
}

.nym-ev-card__icon-img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}

.nym-ev-card__icon-svg svg {
	width: 26px;
	height: 26px;
	color: var(--nym-gold);
	display: block;
}

.nym-ev-card__arrow svg {
	width: 22px;
	height: 22px;
	color: var(--nym-red);
	display: block;
	transition: transform 0.25s ease;
}

.nym-ev-card__link:hover .nym-ev-card__arrow svg {
	transform: translateX(5px);
}

/* ---------------------------------------------------------------
   Single event page
   --------------------------------------------------------------- */

.nym-ev-single {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	background: var(--nym-bg);
}

.nym-ev-single__media {
	position: relative;
	min-height: 620px;
	overflow: hidden;
	background: linear-gradient(160deg, #161616 0%, #050505 70%);
}

.nym-ev-single__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.nym-ev-single__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.55) 32%,
		rgba(0, 0, 0, 0.12) 60%,
		rgba(0, 0, 0, 0.1) 100%
	);
}

.nym-ev-single__overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 0 clamp(24px, 4vw, 56px) clamp(34px, 5vw, 64px);
}

.nym-ev-single__title {
	margin: 0;
	font-family: var(--nym-font-display);
	font-size: clamp(34px, 5vw, 64px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--nym-white);
}

.nym-ev-single__rule {
	display: block;
	height: 1px;
	margin: 22px 0 18px;
	background: rgba(255, 255, 255, 0.45);
}

.nym-ev-single__intro {
	margin: 0;
	max-width: 46ch;
	font-size: clamp(14px, 1.1vw, 16px);
	line-height: 1.6;
	color: var(--nym-white);
}

.nym-ev-single__panel {
	padding: clamp(30px, 4vw, 60px) clamp(24px, 5vw, 84px) clamp(40px, 5vw, 80px);
}

.nym-ev-single__back {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: clamp(30px, 4vw, 56px);
	font-family: var(--nym-font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nym-white);
	transition: color 0.25s ease;
}

.nym-ev-single__back svg {
	width: 20px;
	height: 20px;
	color: var(--nym-red);
	transition: transform 0.25s ease;
}

.nym-ev-single__back:hover {
	color: var(--nym-gold);
}

.nym-ev-single__back:hover svg {
	transform: translateX(-5px);
}

.nym-ev-single__eyebrow,
.nym-ev-single__name {
	margin: 0;
	font-family: var(--nym-font-display);
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--nym-white);
}

.nym-ev-single__headings {
	margin-bottom: clamp(22px, 3vw, 34px);
}

.nym-ev-single__label {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1;
	color: var(--nym-white);
}

.nym-ev-single__divider {
	display: block;
	height: 1px;
	margin-bottom: clamp(20px, 3vw, 32px);
	background: rgba(255, 255, 255, 0.35);
}

.nym-ev-details {
	margin: 0;
	display: grid;
	gap: clamp(16px, 2vw, 24px);
}

.nym-ev-details__row {
	display: grid;
	grid-template-columns: 40px 130px 1fr;
	align-items: center;
	gap: 12px;
}

.nym-ev-details__icon svg {
	width: 26px;
	height: 26px;
	color: var(--nym-gold);
	display: block;
}

.nym-ev-details dt {
	margin: 0;
	font-family: var(--nym-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--nym-gold);
}

.nym-ev-details dd {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	color: var(--nym-white);
}

.nym-ev-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: clamp(30px, 4vw, 46px);
}

.nym-ev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 168px;
	padding: 15px 28px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--nym-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nym-ev-btn--solid {
	background: var(--nym-red);
	color: var(--nym-white);
}

.nym-ev-btn--solid:hover {
	background: #b30000;
	color: var(--nym-white);
}

.nym-ev-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.75);
	color: var(--nym-white);
}

.nym-ev-btn--ghost:hover {
	background: var(--nym-white);
	color: #000000;
}

.nym-ev-single__content {
	margin-top: clamp(30px, 4vw, 44px);
	font-size: 16px;
	line-height: 1.7;
	color: var(--nym-muted);
}

.nym-ev-single__content a {
	color: var(--nym-gold);
}

.nym-ev-single--noimage .nym-ev-single__media {
	min-height: 380px;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1024px) {
	.nym-ev-grid {
		grid-template-columns: repeat(min(var(--nym-cols), 3), minmax(0, 1fr));
	}

	.nym-ev-single {
		grid-template-columns: 1fr;
	}

	.nym-ev-single__media {
		min-height: 460px;
	}

	.nym-ev-details__row {
		grid-template-columns: 34px 110px 1fr;
	}
}

@media (max-width: 767px) {
	.nym-ev {
		--nym-gap: 14px;
	}

	.nym-ev-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nym-ev__head {
		gap: 12px;
		margin-bottom: 18px;
	}

	.nym-ev__viewall {
		font-size: 12px;
		gap: 8px;
	}

	.nym-ev__viewall svg {
		width: 18px;
		height: 18px;
	}

	.nym-ev-filters {
		gap: 10px;
	}

	.nym-ev-filter {
		flex: 1 1 calc(50% - 5px);
		min-width: 0;
		padding: 13px 12px;
		font-size: 13px;
	}

	.nym-ev-card__date {
		top: 10px;
		left: 10px;
		min-width: 60px;
		padding: 8px 9px 9px;
	}

	.nym-ev-card__day {
		font-size: 11px;
	}

	.nym-ev-card__num {
		margin: 5px 0 4px;
		font-size: 26px;
	}

	.nym-ev-card--range .nym-ev-card__num {
		font-size: 16px;
	}

	.nym-ev-card__month {
		font-size: 12px;
	}

	.nym-ev-card__body {
		padding: 0 12px 13px;
	}

	.nym-ev-card__title {
		font-size: 17px;
		line-height: 1.06;
	}

	.nym-ev-card__time {
		margin-top: 4px;
		font-size: 13px;
	}

	.nym-ev-card__rule {
		margin: 9px 0 9px;
	}

	.nym-ev-card__foot {
		gap: 1em;
	}

	.nym-ev-card__type,
	.nym-ev-card__cta {
		font-size: 11px;
		letter-spacing: 0.08em;
	}

	.nym-ev-card__icon-img,
	.nym-ev-card__icon-svg svg {
		width: 20px;
		height: 20px;
	}

	.nym-ev-card__arrow svg {
		width: 17px;
		height: 17px;
	}

	.nym-ev-single__media {
		min-height: 380px;
	}

	.nym-ev-details__row {
		grid-template-columns: 30px 96px 1fr;
		gap: 8px;
	}

	.nym-ev-details dt,
	.nym-ev-details dd {
		font-size: 14px;
	}

	.nym-ev-btn {
		flex: 1 1 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nym-ev-card__img,
	.nym-ev-card__arrow svg,
	.nym-ev__viewall svg,
	.nym-ev-single__back svg {
		transition: none !important;
	}

	.nym-ev-card__link:hover .nym-ev-card__img {
		transform: none;
	}
}
