/**
 * Open House Events — Landing Page Styles
 *
 * Brand colors:
 *   Navy:       #163668 / #1D3868
 *   Gold/Orange: #f59e0b
 *   Dark gold:   #d97706
 *   Light border: #e8e8e8
 *
 * @package Themify_Ultra_Child
 * @since   2026-06-16
 */

/* ==================== BEGIN | Added: 2026-06-17 | Google Fonts — Montserrat import ==================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');
/* ==================== END | Added: 2026-06-17 | Google Fonts — Montserrat import ==================== */

/* ============================================================
   Layout Overrides — neutralise Themify Ultra's #layout / #content
   default max-width so our sections can stretch full-width.
============================================================ */
@keyframes rowSlideIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ohe-layout-override {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ohe-content-override {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	float: none !important;
}

.no-display,
.popup_btn_row .no-display,
body .no-display,
body .pum-container .pum-content .no-display {
	display: none!important;
}

/* ============================================================
   HERO SECTION
============================================================ */

.ohe-hero {
	background: #ffffff;
	text-align: center;
	padding: 64px 24px 44px;
	border-bottom: 2px solid #f0f0f0;
}

.ohe-hero__inner {
	max-width: 800px;
	margin: 0 auto;
}

.ohe-hero__title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 800;
	color: #0D2B5E;
	line-height: 1.15;
	text-wrap: pretty;
	margin-bottom: 14px;
	letter-spacing: -0.02em;
}

.ohe-hero__subtitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	color: #888;
	letter-spacing: 0.01em;
	font-size: clamp(15px, 2vw, 16px);
	margin: 0;
}

/* ============================================================
   EVENTS CONTAINER
============================================================ */

.ohe-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 44px 24px 48px;
}

/* ============================================================
   SECTION BAR — "DATES & LOCATIONS" + time badge
============================================================ */

.ohe-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.ohe-bar__label {
	border: 2.5px solid #0D2B5E;
	border-radius: 6px;
	padding: 9px 20px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #0D2B5E;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: inline-block;
	background: transparent;
}

.ohe-bar__time {
	background: #F0A500;
	border-radius: 50px;
	padding: 9px 22px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #FFF;
	display: inline-block;
}

/* ============================================================
   EVENT LIST
============================================================ */

.ohe-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ohe-event {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 30px;
	margin: 0;
	border-radius: 0px;
	/* cursor: pointer; */
	transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
	animation: rowSlideIn 0.4s ease both;
	animation-delay: calc( 0.05s + var(--i, 0) * 0.07s );
	border-bottom: 1.5px solid #E8E8E8;
}

.ohe-event:first-child {
	border-top: 1.5px solid #E8E8E8;
}

.ohe-event:hover {
	background: #FFF8E8;
	box-shadow: 0 4px 24px rgba(240, 165, 0, 0.12), 0 1px 4px rgba(240, 165, 0, 0.08);
	transform: translateX(4px);
}

/* Event info (left column) */

.ohe-event__info {
	flex: 1 1 auto;
	min-width: 0;
}

.ohe-event__date {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #0D2B5E;
	margin-bottom: 6px;
	transition: color 0.2s ease;
	display: block;
}

.ohe-event__address {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #F0A500;
	transition: color 0.2s ease;
	display: block;
}

/* CTA button (right column) */

.ohe-event__cta {
	flex: 0 0 auto;
}

.ohe-event__btn {
	background: #F0A500;
	color: #FFF!important;
	border: none;
	border-radius: 50px;
	padding: 14px 32px;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
	flex-shrink: 0;
	display: inline-block;
	text-decoration: none !important;
}

/* ==================== BEGIN | Added: 2026-06-17 | Hover effects — button scale + address colour fix ==================== */
.ohe-event:hover .ohe-event__btn {
	background: #E09500;
	box-shadow: 0 6px 20px rgba(240, 165, 0, 0.45);
	transform: scale(1.06);
	color: #FFF !important;
	text-decoration: none !important;
}
/* ==================== END | Added: 2026-06-17 | Hover effects ==================== */

.ohe-event:hover .ohe-event__date {
	color: #0A2244;
}

.ohe-event:hover .ohe-event__address {
	color: #C98800;
}

.ohe-event__btn:focus-visible {
	outline: 3px solid #163668;
	outline-offset: 3px;
}

/* ============================================================
   NO EVENTS STATE
============================================================ */

.ohe-no-events {
	text-align: center;
	color: #777777;
	font-size: 17px;
	padding: 60px 0;
	line-height: 1.6;
}

/* ============================================================
   PAGINATION
============================================================ */

.ohe-pagination {
	margin-top: 44px;
}

.ohe-pagination__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ohe-pagination__item {
	margin: 0;
}

.ohe-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 2px solid #163668;
	color: #163668 !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	border-radius: 5px;
	transition: background-color 0.15s ease, color 0.15s ease;
	line-height: 1;
}

.ohe-pagination__link:hover {
	background: #163668;
	color: #ffffff !important;
	text-decoration: none !important;
}

.ohe-pagination__link--current {
	background: #163668;
	color: #ffffff !important;
	pointer-events: none;
	cursor: default;
}

.ohe-pagination__prev,
.ohe-pagination__next {
	font-size: 13px;
	padding: 0 16px;
}

/* ============================================================
   DECORATIVE DOTS
============================================================ */

.ohe-dots {
	display: flex;
	display: none;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
	padding-bottom: 8px;
}

.ohe-dots span {
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #163668;
	border-radius: 50%;
	opacity: 0.3;
}

/* ============================================================
   RESPONSIVE — 1024px
============================================================ */

@media (max-width: 1024px) {
	.ohe-container {
		max-width: 100%;
		padding-left: 32px;
		padding-right: 32px;
	}
}

/* ============================================================
   RESPONSIVE — 768px (Tablet)
============================================================ */

@media (max-width: 768px) {
	.ohe-hero {
		padding: 44px 20px 32px;
	}

	.ohe-container {
		padding: 32px 20px 48px;
	}

	.ohe-event__date {
		font-size: 18px;
	}

	.ohe-event__address {
		font-size: 14px;
	}

	.ohe-event__btn {
		padding: 11px 24px;
		font-size: 15px;
	}

	.ohe-bar__label {
		font-size: 12px;
		padding: 8px 14px;
	}

	.ohe-bar__time {
		font-size: 14px;
		padding: 8px 20px;
	}
}

/* ============================================================
   RESPONSIVE — 540px (Large phone)
============================================================ */

/* ==================== BEGIN | Added: 2026-06-17 | Mobile 540px — center-align event rows ==================== */
@media (max-width: 540px) {
	.ohe-event {
		flex-direction: column;
		align-items: center;
		gap: 14px;
		padding: 20px 0;
	}

	.ohe-event__info {
		text-align: center;
	}

	.ohe-event__cta {
		align-self: center;
	}

	.ohe-hero__title {
		font-size: clamp(24px, 8vw, 34px);
	}

	.ohe-bar {
		gap: 10px;
		justify-content: center;
	}

	.ohe-event__btn {
		display: table-cell;
	}
}
/* ==================== END | Added: 2026-06-17 | Mobile 540px — center-align event rows ==================== */

/* ============================================================
   RESPONSIVE — 400px (Small phone)
============================================================ */

@media (max-width: 400px) {
	.ohe-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ohe-event__btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.ohe-pagination__link {
		min-width: 36px;
		height: 36px;
		font-size: 13px;
	}
}
