/*
Theme Name: EventReacher Modern
Theme URI: https://tester.eventreacher.com/
Author: EventReacher
Description: Fast owned theme for the EventReacher marketplace.
Version: 1.0.18
Text Domain: eventreacher-modern
*/

:root {
	--erm-ink: #151515;
	--erm-muted: #667085;
	--erm-line: #e6e9ee;
	--erm-bg: #f7f9fb;
	--erm-accent: #ff4d3d;
}

.er-live-hero {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 520px;
	background-image: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)), url("https://eventreacher.com/wp-content/uploads/2024/06/pexels-andrewshelley-8454466-scaled-e1719592014884.jpg");
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}

.er-live-hero-copy {
	width: min(980px, calc(100% - 40px));
	margin-top: 42px;
}

.er-live-hero-copy h1 {
	margin: 10px 0 12px;
	font-size: 46px;
	line-height: 1.04;
}

.er-live-hero-copy p {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.er-hero-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr) auto;
	max-width: 860px;
	margin: 28px auto 0;
	padding: 8px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 20px 48px rgba(0,0,0,.28);
}

.er-hero-search input,
.er-hero-search button {
	min-height: 54px;
	border: 0;
	font: inherit;
}

.er-hero-search input {
	padding: 0 16px;
	color: #111827;
	border-right: 1px solid #e6e9ee;
}

.er-hero-search button {
	padding: 0 24px;
	background: #ff4d3d;
	color: #fff;
	font-weight: 900;
	cursor: pointer;
}

.er-live-section-head {
	display: block !important;
	margin-bottom: 28px;
	text-align: center;
}

.er-live-section-head h2 {
	margin: 0;
	color: #222;
	font-family: Nunito, Inter, sans-serif;
	font-size: 32px;
	font-weight: 800;
}

.er-live-categories {
	padding-top: 54px;
}

.er-live-category-grid,
.er-live-featured .er-spotlight,
.er-live-featured .er-grid,
.er-live-slider,
.er-live-blog-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.er-live-category-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.er-live-category-tile {
	display: grid;
	align-content: center;
	justify-items: center;
	min-height: 128px;
	padding: 22px;
	border: 1px solid #e8edf3;
	border-radius: 4px;
	background: #fff;
	color: #222;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.er-live-category-tile strong {
	font-size: 20px;
	line-height: 1.35;
}

.er-live-category-tile span {
	margin-top: 8px;
	color: #667085;
	font-weight: 650;
}

.er-live-featured .er-card,
.er-live-latest .er-card,
.er-live-blog-card {
	border: 1px solid #e6e9ee !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: 0 10px 28px rgba(15,23,42,.06) !important;
	overflow: hidden;
}

.er-live-featured .er-card-media,
.er-live-latest .er-card-media,
.er-live-blog-card > a {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	height: auto;
	background: #f3f5f7;
	overflow: hidden;
}

.er-live-featured .er-card-media img,
.er-live-latest .er-card-media img,
.er-live-blog-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.er-live-featured .er-card-body,
.er-live-latest .er-card-body,
.er-live-blog-card div {
	padding: 18px;
}

.er-live-featured .er-card h3,
.er-live-latest .er-card h3,
.er-live-blog-card h3 {
	font-size: 20px;
	line-height: 1.3;
}

.er-live-featured .er-card-meta strong,
.er-live-latest .er-card-meta strong {
	color: #0f9f6e;
	font-size: 18px;
}

.er-live-promo {
	margin: 44px 0;
	padding: 78px 0;
	background-image: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.34)), url("https://images.pexels.com/photos/30589975/pexels-photo-30589975.jpeg?auto=compress&cs=tinysrgb&w=1800");
	background-size: cover;
	background-position: center 44%;
	color: #fff;
}

.er-live-promo-grid {
	display: grid;
	grid-template-columns: minmax(0, 620px);
	justify-content: start;
	text-align: left;
}

.er-live-promo h2 {
	margin: 0 0 18px;
	font-size: 34px;
}

.er-live-promo ul {
	display: grid;
	gap: 8px;
	margin: 0 0 24px;
	padding-left: 22px;
	text-align: left;
}

.er-live-blog-card span {
	color: #ff4d3d;
	font-weight: 750;
}

.er-live-blog-card a {
	text-decoration: none;
}

@media (max-width: 900px) {
	.er-live-category-grid,
	.er-live-featured .er-spotlight,
	.er-live-featured .er-grid,
	.er-live-slider,
	.er-live-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.er-live-category-grid,
	.er-live-featured .er-spotlight,
	.er-live-featured .er-grid,
	.er-live-slider,
	.er-live-blog-grid {
		grid-template-columns: 1fr;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--erm-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #f2f4f7;
}

a {
	color: inherit;
}

.erm-wrap {
	width: min(1180px, calc(100% - 44px));
	margin: 0 auto;
}

.erm-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	color: #151515;
	border-bottom: 1px solid #e6e9ee;
	box-shadow: 0 6px 24px rgba(16,24,40,.08);
}

.erm-header-main-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 76px;
}

.erm-header-main {
	background: #fff;
}

.erm-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.erm-logo img {
	display: block;
	width: 220px;
	max-width: min(220px, 42vw);
	height: auto;
}

.erm-live-nav,
.erm-account-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.erm-live-nav a,
.erm-account-nav a,
.erm-menu-parent > summary {
	color: #151515;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

.erm-live-nav a:hover,
.erm-account-nav a:hover,
.erm-menu-parent:hover > summary {
	color: #ff4d3d;
}

.erm-menu-parent {
	position: relative;
	padding: 12px 0;
}

.erm-menu-parent > summary {
	cursor: pointer;
	list-style: none;
}

.erm-menu-parent > summary::-webkit-details-marker {
	display: none;
}

.erm-menu-parent > summary::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.erm-submenu {
	position: absolute;
	top: 100%;
	left: -18px;
	display: none;
	min-width: 190px;
	padding: 10px;
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 8px;
	box-shadow: 0 18px 38px rgba(0,0,0,.22);
}

.erm-menu-parent:hover .erm-submenu,
.erm-menu-parent:focus-within .erm-submenu,
.erm-menu-parent[open] .erm-submenu {
	display: grid;
	gap: 4px;
}

.erm-submenu a {
	display: block;
	padding: 10px 12px;
	border-radius: 6px;
	white-space: nowrap;
}

.erm-submenu a:hover {
	background: #f7f9fb;
}

.erm-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 6px;
	background: #ff4d3d;
	color: #fff !important;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

.erm-header-search {
	display: grid;
	flex: 1 1 520px;
	grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) auto;
	min-width: 360px;
	border: 1px solid #d8dde5;
	border-radius: 6px;
	overflow: hidden;
}

.erm-header-search input {
	width: 100%;
	height: 52px;
	border: 0;
	background: #fff;
	color: #333;
	font: inherit;
	font-size: 14px;
	padding: 0 16px;
	border-right: 1px solid #e6e9ee;
}

.erm-header-search input::placeholder {
	color: #8a93a1;
	font-size: 14px;
}

.erm-header-search button {
	min-width: 120px;
	height: 52px;
	border: 0;
	background: #151515;
	color: #fff;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.erm-main {
	min-height: 62vh;
}

.erm-content {
	padding: 54px 0;
}

.erm-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	color: var(--erm-muted);
	font-size: 14px;
	font-weight: 800;
}

.erm-breadcrumbs a {
	color: var(--erm-ink);
	text-decoration: none;
}

.erm-content > .wp-post-image {
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 24px;
}

.erm-content figure:first-of-type {
	margin-top: 0;
}

.erm-content figure img {
	max-width: 100%;
	height: auto;
}

body.home .erm-content {
	padding-top: 0;
}

.erm-content h1 {
	font-size: clamp(36px, 6vw, 64px);
	line-height: 1;
	letter-spacing: 0;
}

.erm-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.erm-post-card {
	border: 1px solid var(--erm-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.erm-post-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
}

.erm-post-card div {
	padding: 18px;
}

.erm-footer {
	padding: 40px 0;
	background: #050505;
	color: #fff;
}

.erm-footer-grid {
	display: grid;
	grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}

.erm-footer p {
	max-width: 460px;
	color: rgba(255,255,255,.72);
}

.erm-footer h2 {
	margin: 0 0 8px;
	font-size: 25px;
}

.erm-footer small {
	color: rgba(255,255,255,.58);
}

.erm-footer .erm-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	justify-content: flex-end;
}

@media (max-width: 820px) {
	.erm-header-main-inner,
	.erm-live-nav,
	.erm-account-nav,
	.erm-footer-grid {
		align-items: flex-start;
		flex-direction: column;
	}

	.erm-header-main-inner {
		padding: 18px 0;
	}

	.erm-live-nav,
	.erm-account-nav {
		gap: 14px;
	}

	.erm-header-search {
		width: 100%;
		grid-template-columns: 1fr;
		min-width: 0;
	}

	.er-hero-search {
		grid-template-columns: 1fr;
	}

	.erm-menu-parent {
		width: 100%;
	}

	.erm-submenu {
		position: static;
		display: grid;
		margin-top: 8px;
		box-shadow: none;
	}

	.erm-post-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1100px) {
	.erm-wrap,
	.er-wrap {
		width: min(100% - 32px, 1180px);
	}

	.erm-header-main-inner {
		display: grid;
		grid-template-columns: auto minmax(260px, 1fr);
		gap: 12px 16px;
		min-height: 0;
		padding: 12px 0;
	}

	.erm-logo img {
		width: 178px;
		max-width: 36vw;
	}

	.erm-header-search {
		min-width: 0;
		grid-template-columns: minmax(120px, 1fr) minmax(110px, .75fr) 92px;
	}

	.erm-live-nav,
	.erm-account-nav {
		grid-column: 1 / -1;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px 14px;
		align-items: center;
	}

	.erm-menu-parent {
		width: auto;
		padding: 4px 0;
	}

	.erm-submenu {
		position: absolute;
		display: none;
		margin-top: 0;
		box-shadow: 0 18px 38px rgba(0,0,0,.22);
	}
}

@media (max-width: 760px) {
	body {
		overflow-x: hidden;
	}

	.erm-wrap,
	.er-wrap {
		width: min(100% - 24px, 1180px);
	}

	.erm-header {
		position: relative;
	}

	.erm-header-main-inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px 0 14px;
	}

	.erm-logo {
		align-self: flex-start;
	}

	.erm-logo img {
		width: 168px;
		max-width: 68vw;
	}

	.erm-header-search {
		display: grid;
		width: 100%;
		grid-template-columns: minmax(0, 1fr) minmax(0, .68fr) 72px;
		grid-auto-rows: 38px;
		align-items: stretch;
		height: 38px;
		min-height: 38px;
		max-height: 38px;
		border-radius: 6px;
		overflow: hidden;
	}

	.erm-header-search input,
	.erm-header-search button,
	.er-hero-search input,
	.er-hero-search button {
		-webkit-appearance: none;
		appearance: none;
		box-sizing: border-box;
		width: 100%;
		min-height: 38px;
		height: 38px;
		max-height: 38px;
		border-right: 0;
		font-size: 14px;
		line-height: 38px;
		padding-top: 0;
		padding-bottom: 0;
	}

	.erm-header-search input,
	.er-hero-search input {
		display: block;
		flex: none;
		min-width: 0;
	}

	.erm-header-search .erm-event-query,
	.erm-header-search input[name="q"],
	.er-hero-search input[name="q"] {
		-webkit-appearance: none !important;
		appearance: none !important;
		box-sizing: border-box !important;
		min-height: 0 !important;
		height: 38px !important;
		max-height: 38px !important;
		line-height: normal !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		overflow: hidden !important;
	}

	.erm-header-search input + input {
		border-left: 1px solid #e6e9ee;
	}

	.erm-header-search button {
		min-width: 0;
		padding: 0 5px;
		border-left: 1px solid #111;
		font-size: 13px;
		line-height: 38px;
		white-space: nowrap;
	}

	.er-hero-search input + input {
		border-top: 1px solid #e6e9ee;
	}

	.er-hero-search button {
		border-top: 1px solid #111;
	}

	.erm-live-nav,
	.erm-account-nav {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
		gap: 8px;
	}

	.erm-live-nav a,
	.erm-account-nav a,
	.erm-menu-parent > summary {
		display: inline-flex;
		align-items: center;
		min-height: 38px;
		padding: 0 10px;
		border: 1px solid #e6e9ee;
		border-radius: 6px;
		background: #fff;
		font-size: 14px;
	}

	.erm-menu-parent {
		width: auto;
		padding: 0;
	}

	.erm-submenu {
		position: absolute;
		left: 0;
		z-index: 30;
		display: none;
		min-width: min(260px, calc(100vw - 24px));
		margin-top: 4px;
		box-shadow: 0 14px 34px rgba(16,24,40,.18);
	}

	.erm-cta {
		min-height: 38px;
		padding: 0 12px;
	}

	.erm-account-nav .erm-cta {
		border-color: #ff4d3d;
		background: #ff4d3d;
		color: #fff !important;
	}

	.er-live-hero {
		min-height: 430px;
		padding: 54px 0 36px;
	}

	.er-live-hero-copy {
		width: min(100% - 24px, 980px);
		margin-top: 0;
	}

	.er-live-hero-copy h1 {
		font-size: 34px;
		line-height: 1.08;
	}

	.er-live-hero-copy p {
		font-size: 16px;
		line-height: 1.45;
	}

	.er-hero-search {
		width: 100%;
		margin-top: 20px;
		grid-template-columns: 1fr;
		padding: 6px;
		border-radius: 8px;
	}

	.er-live-promo {
		margin: 28px 0;
		padding: 54px 0;
		background-position: 58% center;
	}

	.er-live-promo h2 {
		font-size: 28px;
		line-height: 1.12;
	}

	.er-live-promo ul {
		padding-left: 18px;
	}

	.er-live-category-grid,
	.er-live-featured .er-spotlight,
	.er-live-featured .er-grid,
	.er-live-slider,
	.er-live-blog-grid,
	.erm-post-grid {
		gap: 16px;
	}

	.erm-content {
		padding: 34px 0;
	}

	.erm-footer-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.erm-footer .erm-nav {
		justify-content: flex-start;
	}
}

@media (max-width: 420px) {
	.erm-header-main-inner {
		gap: 8px;
	}

	.erm-logo img {
		width: 150px;
	}

	.erm-header-search {
		grid-template-columns: minmax(0, 1fr) minmax(0, .64fr) 68px;
	}

	.erm-header-search input {
		padding: 0 9px;
		font-size: 13px;
	}

	.erm-header-search input::placeholder {
		font-size: 13px;
	}

	.er-live-hero-copy h1 {
		font-size: 30px;
	}

	.er-live-section-head h2 {
		font-size: 26px;
	}

	.er-live-category-tile {
		min-height: 104px;
		padding: 18px;
	}

	.er-live-featured .er-card h3,
	.er-live-latest .er-card h3,
	.er-live-blog-card h3 {
		font-size: 18px;
	}
}
