/* Qojo Media: Events Directory (archive + single event) */

/* ---------- Archive hero ---------- */

.qojo-events-hero {
	background: #08092B;
	color: #fff;
	padding: 72px 0 64px;
}

.qojo-events-hero__title {
	color: #fff;
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(34px, 4.6vw, 52px);
	line-height: 1.08;
	margin: 0 0 18px;
	max-width: 760px;
}

.qojo-events-hero__intro {
	color: #c9cce8;
	font-size: 17px;
	line-height: 1.65;
	margin: 0;
	max-width: 640px;
}

/* ---------- Listing layout: sidebar + main ---------- */

.qojo-events-listing {
	padding: 44px 0 72px;
	background: #fff;
}

.qojo-events-listing__layout {
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.qojo-events-main {
	min-width: 0;
}

.qojo-events-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.qojo-events-tab {
	border: 1px solid #d9dce8;
	border-radius: 999px;
	color: #08092B;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 18px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.qojo-events-tab:hover {
	border-color: #1A25FF;
	color: #1A25FF;
}

.qojo-events-tab.is-active {
	background: #1A25FF;
	border-color: #1A25FF;
	color: #fff;
}

.qojo-events-filter-toggle {
	display: none;
	background: #fff;
	border: 1px solid #d9dce8;
	border-radius: 999px;
	color: #08092B;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	margin-bottom: 18px;
	white-space: nowrap;
	grid-column: 1 / -1;
	justify-self: start;
}

/* ---------- Sidebar filters ---------- */

.qojo-events-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.qojo-events-search {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.qojo-events-search__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8a90a8;
}

.qojo-events-search__input {
	width: 100%;
	height: 44px;
	border: 1px solid #d9dce8;
	border-radius: 10px;
	background: #fff;
	color: #101230;
	font-family: inherit;
	font-size: 14px;
	padding: 0 12px;
}

.qojo-events-search__input:focus {
	border-color: #1A25FF;
	outline: none;
}

.qojo-events-search__submit {
	align-self: flex-start;
	background: #08092B;
	border: none;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 24px;
}

.qojo-events-search__submit:hover {
	background: #1A25FF;
}

.qojo-events-filter-group {
	border-top: 1px solid #eceef5;
	padding-top: 20px;
}

.qojo-events-filter-group__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8a90a8;
	margin: 0 0 10px;
}

.qojo-events-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.qojo-events-filter-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-radius: 10px;
	color: #3c4157;
	font-size: 14.5px;
	font-weight: 600;
	padding: 8px 12px;
	text-decoration: none;
}

.qojo-events-filter-link:hover {
	background: #f6f7fc;
	color: #08092B;
}

.qojo-events-filter-link.is-active {
	background: #e8eaff;
	color: #1A25FF;
	font-weight: 700;
}

.qojo-events-filter-link.is-parent {
	color: #08092B;
	font-weight: 700;
}

.qojo-events-filter-link.is-city {
	margin-left: 14px;
	padding-left: 12px;
	border-left: 2px solid #eceef5;
	border-radius: 0 10px 10px 0;
	font-weight: 500;
}

.qojo-events-filter-link__count {
	background: #f1f0fa;
	border-radius: 999px;
	color: #5b6178;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	flex-shrink: 0;
}

.qojo-events-filter-link.is-active .qojo-events-filter-link__count {
	background: #fff;
	color: #1A25FF;
}

.qojo-events-clear {
	align-self: stretch;
	border-top: 1px solid #eceef5;
	padding-top: 16px;
	color: #1A25FF;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.qojo-events-clear:hover {
	text-decoration: underline;
}

.qojo-events-count {
	color: #6b7280;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 18px;
}

/* ---------- Event grid + cards ---------- */

.qojo-events-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.qojo-event-card {
	background: #fff;
	border: 1px solid #e4e6ef;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.qojo-event-card:hover {
	box-shadow: 0 10px 28px rgba(8, 9, 43, 0.10);
	transform: translateY(-2px);
}

.qojo-event-card__image {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e8eaff;
}

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

.qojo-event-card__image-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #1A25FF;
	font-family: "Space Grotesk", sans-serif;
	font-size: 20px;
	font-weight: 700;
}

.qojo-event-card__date {
	position: absolute;
	left: 14px;
	top: 14px;
	background: #fff;
	border-radius: 10px;
	color: #08092B;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	padding: 8px 10px;
	text-align: center;
	text-transform: uppercase;
	box-shadow: 0 2px 10px rgba(8, 9, 43, 0.16);
}

.qojo-event-card__date strong {
	display: block;
	font-family: "Space Grotesk", sans-serif;
	font-size: 20px;
	letter-spacing: 0;
	line-height: 1;
}

.qojo-event-card__featured {
	position: absolute;
	right: 14px;
	top: 14px;
	background: #1A25FF;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 5px 10px;
	text-transform: uppercase;
}

.qojo-event-card__price {
	position: absolute;
	right: 14px;
	bottom: 14px;
	background: rgba(8, 9, 43, 0.85);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 11px;
}

.qojo-event-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
	flex: 1;
}

.qojo-event-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qojo-event-card__cat {
	background: #f1f0fa;
	border-radius: 999px;
	color: #08092B;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	text-decoration: none;
}

a.qojo-event-card__cat:hover {
	background: #e8eaff;
	color: #1A25FF;
}

.qojo-event-card__live {
	background: #e6f7ec;
	border-radius: 999px;
	color: #14743a;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
}

.qojo-event-card__title {
	font-family: "Space Grotesk", sans-serif;
	font-size: 18px;
	line-height: 1.3;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qojo-event-card__title a {
	color: #08092B;
	text-decoration: none;
}

.qojo-event-card__title a:hover {
	color: #1A25FF;
}

.qojo-event-card__meta {
	color: #5b6178;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Pagination + empty state ---------- */

.qojo-events-listing .pagination,
.qojo-events-listing .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 40px;
}

.qojo-events-listing .page-numbers {
	border: 1px solid #d9dce8;
	border-radius: 999px;
	color: #08092B;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 16px;
	text-decoration: none;
}

.qojo-events-listing a.page-numbers:hover {
	border-color: #1A25FF;
	color: #1A25FF;
}

.qojo-events-listing .page-numbers.current {
	background: #1A25FF;
	border-color: #1A25FF;
	color: #fff;
}

.qojo-events-empty {
	background: #f6f7fc;
	border: 1px solid #e4e6ef;
	border-radius: 16px;
	padding: 44px 28px;
	text-align: center;
}

.qojo-events-empty h2 {
	font-family: "Space Grotesk", sans-serif;
	font-size: 24px;
	color: #08092B;
	margin: 0 0 10px;
}

.qojo-events-empty p {
	color: #5b6178;
	line-height: 1.65;
	margin: 0 0 8px;
}

.qojo-events-empty a {
	color: #1A25FF;
	font-weight: 600;
}

/* ---------- Submit CTA band ---------- */

.qojo-events-band {
	background: #1A25FF;
	color: #fff;
	padding: 52px 0;
}

.qojo-events-band__inner {
	align-items: center;
	display: flex;
	gap: 28px;
	justify-content: space-between;
	flex-wrap: wrap;
}

.qojo-events-band__title {
	color: #fff;
	font-family: "Space Grotesk", sans-serif;
	font-size: 28px;
	margin: 0 0 8px;
}

.qojo-events-band__text {
	color: #d6d9ff;
	margin: 0;
	max-width: 520px;
	line-height: 1.6;
}

.qojo-events-band__btn {
	background: #fff;
	border-radius: 999px;
	color: #1A25FF;
	font-weight: 700;
	padding: 14px 26px;
	text-decoration: none;
	white-space: nowrap;
}

.qojo-events-band__btn:hover {
	background: #eef0ff;
	color: #1A25FF;
}

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

.qojo-event-single {
	padding: 40px 0 80px;
}

.qojo-event-single__back {
	color: #1A25FF;
	font-weight: 600;
	text-decoration: none;
}

.qojo-event-single__back:hover {
	text-decoration: underline;
}

.qojo-event-single__head {
	margin: 26px 0 30px;
	max-width: 820px;
}

.qojo-event-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	align-items: center;
}

.qojo-event-single__loc {
	background: #f6f7fc;
	border: 1px solid #e4e6ef;
	border-radius: 999px;
	color: #08092B;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	text-decoration: none;
}

.qojo-event-single__loc:hover {
	border-color: #1A25FF;
	color: #1A25FF;
}

.qojo-event-single__featured {
	background: #1A25FF;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 4px 11px;
	text-transform: uppercase;
}

.qojo-event-single__ended {
	background: #f6f7fc;
	border: 1px solid #e4e6ef;
	border-radius: 999px;
	color: #5b6178;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
}

.qojo-event-single__title {
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(32px, 4.2vw, 46px);
	line-height: 1.12;
	margin: 0 0 12px;
	color: #08092B;
}

.qojo-event-single__dek {
	color: #5b6178;
	font-size: 18px;
	line-height: 1.6;
	margin: 0;
}

/* Slider */

.qojo-event-slider {
	position: relative;
	margin-bottom: 40px;
}

.qojo-event-slider__viewport {
	overflow: hidden;
	border-radius: 18px;
}

.qojo-event-slider__track {
	display: flex;
	transition: transform 0.35s ease;
}

.qojo-event-slider__slide {
	flex: 0 0 100%;
	margin: 0;
	aspect-ratio: 16 / 9;
	background: #08092B;
}

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

.qojo-event-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #08092B;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 0;
	box-shadow: 0 2px 10px rgba(8, 9, 43, 0.25);
}

.qojo-event-slider__arrow:hover {
	background: #fff;
}

.qojo-event-slider__prev {
	left: 16px;
}

.qojo-event-slider__next {
	right: 16px;
}

.qojo-event-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.qojo-event-slider__dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
}

.qojo-event-slider__dot.is-active {
	background: #fff;
}

.qojo-event-slider__count {
	position: absolute;
	right: 16px;
	top: 16px;
	background: rgba(8, 9, 43, 0.75);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 11px;
}

.qojo-event-single__cover {
	margin: 0 0 40px;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #08092B;
}

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

/* Single layout + sidebar */

.qojo-event-single__layout {
	align-items: start;
	display: grid;
	gap: 44px;
	grid-template-columns: minmax(0, 1fr) 340px;
}

.qojo-event-section {
	margin-bottom: 38px;
}

.qojo-event-section h2 {
	font-family: "Space Grotesk", sans-serif;
	font-size: 24px;
	margin: 0 0 14px;
	color: #08092B;
}

.qojo-event-section p {
	color: #23263b;
	font-size: 16.5px;
	line-height: 1.75;
	margin: 0 0 14px;
}

.qojo-event-section ul,
.qojo-event-section ol {
	color: #23263b;
	font-size: 16.5px;
	line-height: 1.7;
	margin: 0 0 14px;
	padding-left: 20px;
}

.qojo-event-section li {
	margin-bottom: 8px;
}

.qojo-event-speakers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.qojo-event-speaker {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #f6f7fc;
	border: 1px solid #e4e6ef;
	border-radius: 14px;
	padding: 16px;
}

.qojo-event-speaker__photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.qojo-event-speaker__initials {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #1A25FF;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Space Grotesk", sans-serif;
	font-size: 26px;
	font-weight: 700;
	flex-shrink: 0;
}

.qojo-event-speaker__info h3 {
	font-family: "Space Grotesk", sans-serif;
	font-size: 17px;
	margin: 0 0 4px;
	color: #08092B;
}

.qojo-event-speaker__info p {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 4px;
}

.qojo-event-speaker__info a {
	color: #1A25FF;
	font-weight: 600;
	text-decoration: none;
}

.qojo-event-speaker__info a:hover {
	text-decoration: underline;
}

.qojo-event-agenda__day {
	font-family: "Space Grotesk", sans-serif;
	font-size: 18px;
	margin: 22px 0 10px;
	color: #08092B;
}

.qojo-event-agenda__day:first-of-type {
	margin-top: 0;
}

.qojo-event-agenda__list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	border-top: 1px solid #e4e6ef;
}

.qojo-event-agenda__item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 13px 0;
	border-bottom: 1px solid #e4e6ef;
	margin: 0;
}

.qojo-event-agenda__time {
	flex-shrink: 0;
	width: 118px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	color: #1A25FF;
	padding-top: 2px;
}

.qojo-event-agenda__detail {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.qojo-event-agenda__title {
	font-size: 16px;
	line-height: 1.5;
	color: #101230;
	font-weight: 600;
}

.qojo-event-agenda__desc {
	font-size: 13.5px;
	line-height: 1.5;
	color: #8a90a8;
}

.qojo-event-insight {
	background: #f6f7fc;
	border: 1px solid #e4e6ef;
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 16px;
}

.qojo-event-insight:last-child {
	margin-bottom: 0;
}

.qojo-event-insight h3 {
	font-family: "Space Grotesk", sans-serif;
	font-size: 18px;
	margin: 0 0 10px;
	color: #08092B;
}

.qojo-event-insight p {
	margin: 0 0 10px;
}

.qojo-event-insight p:last-child {
	margin-bottom: 0;
}

.qojo-event-side {
	position: sticky;
	top: 24px;
}

.qojo-event-side__card {
	background: #f6f7fc;
	border: 1px solid #e4e6ef;
	border-radius: 18px;
	padding: 28px;
}

.qojo-event-side__ended {
	background: #fff3cd;
	border-radius: 10px;
	color: #664d03;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 18px;
	padding: 12px 14px;
	text-align: center;
}

.qojo-event-side__facts {
	margin: 0 0 22px;
}

.qojo-event-side__fact {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #e4e6ef;
}

.qojo-event-side__fact:last-child {
	border-bottom: none;
}

.qojo-event-side__fact dt {
	color: #5b6178;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
}

.qojo-event-side__fact dd {
	color: #101230;
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	text-align: right;
	line-height: 1.5;
}

.qojo-event-side__btn {
	display: block;
	background: #1A25FF;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	padding: 14px 22px;
	text-align: center;
	text-decoration: none;
	margin-bottom: 14px;
}

.qojo-event-side__btn:hover {
	background: #1219c4;
	color: #fff;
}

.qojo-event-side__btn--dark {
	background: #08092B;
}

.qojo-event-side__btn--dark:hover {
	background: #1d1f4d;
	color: #fff;
}

.qojo-event-side__link {
	display: block;
	color: #1A25FF;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	margin-bottom: 10px;
}

.qojo-event-side__link:hover {
	text-decoration: underline;
}

/* Related events */

.qojo-event-related {
	margin-top: 56px;
}

.qojo-event-related .qojo-events-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qojo-event-related h2 {
	font-family: "Space Grotesk", sans-serif;
	font-size: 26px;
	color: #08092B;
	margin: 0 0 22px;
}

/* Mobile sticky register bar */

.qojo-event-stickybar {
	display: none;
}

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

@media (max-width: 1100px) {
	/* Sidebar still visible here, so the main column is too narrow for 3 cards. */
	.qojo-events-listing .qojo-events-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.qojo-events-listing__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.qojo-events-sidebar {
		position: static;
		display: none;
		gap: 22px;
	}

	.qojo-events-sidebar.is-open {
		display: flex;
	}

	.qojo-event-single__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.qojo-event-side {
		position: static;
	}

	.qojo-events-filter-toggle {
		display: inline-block;
	}

	.qojo-event-related .qojo-events-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qojo-event-single {
		padding-bottom: 110px;
	}

	.qojo-event-stickybar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		background: #fff;
		border-top: 1px solid #e4e6ef;
		box-shadow: 0 -4px 18px rgba(8, 9, 43, 0.10);
		padding: 12px 16px;
		padding-bottom: calc(12px + env(safe-area-inset-bottom));
	}

	.qojo-event-stickybar__title {
		color: #08092B;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.3;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.qojo-event-stickybar__btn {
		background: #1A25FF;
		border-radius: 999px;
		color: #fff;
		font-size: 14px;
		font-weight: 700;
		padding: 11px 22px;
		text-decoration: none;
		white-space: nowrap;
		flex-shrink: 0;
	}

	.qojo-event-stickybar__btn:hover {
		color: #fff;
	}
}

@media (max-width: 600px) {
	.qojo-events-listing .qojo-events-grid,
	.qojo-event-related .qojo-events-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.qojo-event-speakers {
		grid-template-columns: minmax(0, 1fr);
	}

	.qojo-event-agenda__item {
		flex-direction: column;
		gap: 4px;
	}

	.qojo-event-agenda__time {
		width: auto;
		padding-top: 0;
	}

	.qojo-events-hero {
		padding: 52px 0 44px;
	}

	.qojo-event-slider__arrow {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.qojo-event-slider__prev {
		left: 10px;
	}

	.qojo-event-slider__next {
		right: 10px;
	}
}
