/**
 * KNG Events - Single event layout (reference)
 */

/* Full-width section for single event */
.single-tribe_events #tribe-events-pg-template {
	max-width: 100%;
	padding: 0;
}

/* Hero full-width - break out of container */

/* Hide back link */
.single-tribe_events .tribe-events-back {
	display: none !important;
}

/* Hide "This event has passed" (and other notices) inside single event card */
.kng-single-event-card .tribe-events-notices {
	display: none !important;
}

/* Hero - centered image box + arrows above card */
/* Centered event image box - <img> for sharper rendering than background */
.kng-single-event-hero__image {
	width: auto;
	max-width: 100%;
	height: auto;
	padding: 30px;
	margin: 0 auto;
	border-radius: 16px;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
}

.kng-single-event-hero__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center;
	border-radius: 15px;
}

/* Card: solid purple #430a7d */
.kng-single-event-card {
	max-width: 1200px;
	/*margin: 0 auto 50px;*/
	padding-top: 50px;
	background: #430a7d !important;
	background-color: #430a7d !important;
	border-radius: 16px;
	border: 1px solid #432661;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	position: relative;
	z-index: 1;
}

/* Card header: same solid color as card */
.kng-single-event-card__header {
	padding-left: 30px;
	padding-right: 30px;
	background: #430a7d !important;
	background-color: #430a7d !important;
}
.kng-single-event-card__header .kng-single-event-card__header-row,
.kng-single-event-card__header .kng-single-event-card__header-left,
.kng-single-event-card__header .tribe-events,
.kng-single-event-card__header .tribe-common {
	background: #430a7d !important;
	background-color: #430a7d !important;
}
.kng-single-event-card__header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-left: 0;
	padding-right: 0;
}
.kng-single-event-card__header-left {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	padding-left: 0;
	padding-right: 0;
}
.kng-single-event-card__calendar-icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
}
.kng-single-event-card__date {
    color: #FBC30A;
    text-align: justify;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 33px; /* 183.333% */
    letter-spacing: -0.162px;
}

.kng-single-event-card__body {
	padding-left: 30px;
	padding-right: 30px;
}

/* Details: map left, organizer/venue/Google Map right */
.kng-single-event-card__details {
	padding: 20px 30px;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 30px;
	width: 100%;
}

.kng-single-event-card__details-right {
	width: 100%;
}

.kng-single-event-card .tribe-events-meta-group-organizer,
.kng-single-event-card .tribe-events-meta-group-venue {
	width: 100%;
	max-width: 100%;
	display: block;
}
.kng-single-event-card__details-left {
	grid-column: 1;
}

.kng-single-event-card__details-right {
	grid-column: 2;
}
.kng-single-event-card__details-actions {
	grid-column: 1 / -1;
	padding-top: 16px;
}

/* Divider line */
.kng-single-event-card__divider {
	height: 2px;
	margin-top: 20px;
	margin-bottom: 0;
	background: linear-gradient(90deg, #9C67D2 0.01%, rgba(156, 103, 210, 0) 100%);
}

/* Hide original date block (we output our own in card header) */
.kng-single-event-card .entry-content .tribe-events-schedule,
.kng-single-event-card .wp-block-tec-event-datetime,
.kng-single-event-card__schedule-hidden,
.kng-single-event-card .tribe-block__events-link {
	display: none !important;
}

/* Arrows - positioned left/right on hero */
.kng-single-event-hero__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s;
}

.kng-single-event-hero__arrow:hover {
	opacity: 0.9;
}

.kng-single-event-hero__arrow--prev svg {
	transform: rotate(180deg);
}

.kng-single-event-hero__arrow--next svg path {
	stroke: #fff;
}

/* Content area inside card */
.kng-single-event-card .tribe-events-schedule,
.kng-single-event-card .tribe-events-single-event-title,
.kng-single-event-card .tribe-events-single-event-description,
.kng-single-event-card #tribe-events-header,
.kng-single-event-card #tribe-events-footer,
.kng-single-event-card .tribe-events-content {
	color: #fff !important;
	padding-left: 30px !important;
	padding-right: 30px !important;
}

/* Event name: color #FBC30A; Kumbh Sans 24px 700; line-height 50px */
.kng-single-event-card .tribe-events-single-event-title {
	color: #FBC30A !important;
	padding-top: 0 !important;
	margin-bottom: 16px !important;
	text-align: center;
	font-family: "Kumbh Sans", sans-serif !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 50px !important;
}

.kng-single-event-card .tribe-events-schedule {
	padding-top: 20px !important;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
}

.tribe-events-single-event-description h2, h3{
	color: #ffffff !important;
}

.tribe-events-content .book-btn a {
	display: flex;
	width: 260px;
	height: 50px;
	padding: 12px 22.766px 12px 22px;
	align-items: center;
	justify-content: center;
	margin: 0 auto;

	border: none;
	border-radius: 28px;
	background: linear-gradient(180deg, #FBC30A 0%, #FEDE75 100%);

	font-family: "Kumbh Sans", sans-serif !important;
	font-size: 23px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 16px !important;
	font-variant: all-small-caps !important;
	color: #28074A !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	cursor: pointer;
}

.tribe-events-content .book-btn a:link,
.tribe-events-content .book-btn a:visited,
.tribe-events-content .book-btn a:hover,
.tribe-events-content .book-btn a:active,
.tribe-events-content .book-btn a:focus {
	color: #000000 !important;
}

/* Article: color #FFF; justify; Nunito Sans 18px 400; line-height 33px; letter-spacing -0.162px */
.kng-single-event-card .tribe-events-single-event-description,
.kng-single-event-card__body .tribe-events-single-event-description,
.kng-single-event-card__body .tribe-events-content {
	color: #fff !important;
	text-align: justify !important;
	font-family: "Nunito Sans", sans-serif !important;
	font-size: 18px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 33px !important;
	letter-spacing: -0.162px !important;
	padding-top: 10px !important;
	padding-bottom: 30px !important;
}

@media (max-width: 768px) {
	.kng-single-event-card .tribe-events-single-event-description,
	.kng-single-event-card__body .tribe-events-single-event-description,
	.kng-single-event-card__body .tribe-events-content {
		font-size: 16px !important;
		line-height: 28px !important;
	}
}

a:hover, a:focus {
    color: #fbc30a !important;
    text-decoration: none !important;
}

.kng-single-event-card {
	margin-top: 50px;
}

.kng-single-event-card .tribe-events-meta-group a,
.kng-single-event-card .tribe-events-content a,
.kng-single-event-card .tribe-events-content a:link,
.kng-single-event-card .tribe-events-content a:visited,
.kng-single-event-card .tribe-events-content a:hover,
.kng-single-event-card .tribe-events-content a:focus,
.kng-single-event-card .tribe-events-content a:active {
	color: #fbc30a !important;
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

/* Remove underline from all links in description (e.g. "Here") – all states */
.kng-single-event-card .tribe-events-single-event-description a,
.kng-single-event-card .tribe-events-single-event-description a:link,
.kng-single-event-card .tribe-events-single-event-description a:visited,
.kng-single-event-card .tribe-events-single-event-description a:hover,
.kng-single-event-card .tribe-events-single-event-description a:focus,
.kng-single-event-card .tribe-events-single-event-description a:active {
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

/* "Register here!" CTA inside single event content */
.kng-single-event-card .tribe-events-content a[href="https://sigma.world/europe/affiliate-retreat/apply/"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 28px;
	background: linear-gradient(180deg, #FBC30A 0%, #FEDE75 100%);
	color: #28074A !important;
	text-align: center;
	font-family: "Kumbh Sans", sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 16px;
	text-decoration: none;
}

@media (max-width: 768px) {
	.kng-single-event-card .tribe-events-content a[href="https://sigma.world/europe/affiliate-retreat/apply/"] {
		font-size: 24px;
		line-height: 16px;
	}
}

/* Map + details row */
.kng-single-event-card .tribe-events-meta-group {
	display: grid;
	/*padding-bottom: 40px !important;*/
}

.tribe-events-single-section-title {
	color: #ffffff !important;
}

/* Button: Schedule a meeting - gradient, Kumbh Sans 24px 700 */
.kng-single-event-card__schedule-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 269px;
	min-height: 48px;
	color: #28074A;
	text-align: center;
	font-family: "Kumbh Sans", sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 16px;
	border-radius: 28px;
	background: linear-gradient(180deg, #FBC30A 0%, #FEDE75 100%);
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.kng-single-event-card__schedule-btn:hover,
.kng-single-event-card__schedule-btn:focus,
.kng-single-event-card__schedule-btn:active {
	color: #28074A;
	background: linear-gradient(180deg, #FBC30A 0%, #FEDE75 100%);
	text-decoration: none;
}

.tribe-events-venue-map {
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid #432661;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tribe-events-meta-list {
	width: 100% !important;
	padding: 0;
	margin: 0;
}

/* Meta summary: map left, details right */
.kng-single-event-card__meta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 15px;
	padding: 20px 30px 0;
}

.kng-single-event-card__meta-left {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.kng-single-event-card__meta-right {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kng-single-event-card__meta-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.kng-single-event-card__meta-label {
	font-weight: 700;
	margin-right: 4px;
}

.kng-single-event-card__meta-value a {
	color: #fbc30a;
	text-decoration: underline;
}

@media (min-width: 769px) {
	.kng-single-event-card__meta-label {
		color: #FBC30A;
		font-family: "Kumbh Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 700;
	}

	.kng-single-event-card__meta-value {
		color: #FFF;
		font-family: "Nunito Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
	}

	.kng-single-event-card__meta-value .tribe-events-gmap {
		color: #FBC30A;
		font-family: "Kumbh Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 700;
		text-decoration: none;
	}
}

@media (min-width: 769px) {
	/* Limit map width inside single-event meta on desktop */
	.kng-single-event-card__meta-left .tribe-events-venue-map {
		max-width: 300px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	/* Reorder single-event card sections on mobile to match desktop: Title → Hero → Header → rest */
	.kng-single-event-card {
		display: flex;
		flex-direction: column;
	}

	.kng-single-event-card > .tribe-events-single-event-title {
		order: 1;
		text-align: center;
		padding: 0 20px;
		padding-top: 0;
		color: #FBC30A;
		font-family: "Kumbh Sans", sans-serif;
		font-size: 24px;
		font-style: normal;
		font-weight: 700;
		line-height: 50px;
	}

	.kng-single-event-card > img:first-of-type {
		order: 2;
	}

	.kng-single-event-hero {
		order: 3;
	}

	.kng-single-event-card__header {
		order: 4;
		text-align: center;
	}

	.kng-single-event-card__header-row {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.kng-single-event-card__header-left {
		justify-content: center;
	}

	/* Date row typography tweaks on mobile */
	.kng-single-event-card__date {
		color: #FBC30A;
		font-family: "Nunito Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 33px;
		letter-spacing: -0.144px;
	}

	/* Smaller calendar icon on mobile */
	.kng-single-event-card__calendar-icon {
		width: 20px;
		height: 20px;
	}

	.kng-single-event-card > .tribe-events-schedule.kng-single-event-card__schedule-hidden {
		order: 5;
	}

	.kng-single-event-card > #tribe-events-header {
		order: 6;
	}

	.kng-single-event-card > .type-tribe_events {
		order: 7;
	}

	.kng-single-event-card__meta {
		display: flex;
		flex-direction: column;
	}

	.kng-single-event-card__meta-right {
		order: 1;
		width: 100%;
	}

	.kng-single-event-card__meta-left {
		order: 2;
		width: 100%;
	}

	/* Mobile layout for "Add to calendar" button */
	.kng-single-event-card .tribe-events-c-subscribe-dropdown__button {
		display: flex;
		width: 274px;
		height: 50px;
		padding: 0;
		align-items: flex-start;
		justify-content: center;
		margin: 10px auto 0;
		box-sizing: border-box;
	}

	/* Mobile typography for meta labels/values and links */
	.kng-single-event-card__meta-label {
		color: #FBC30A;
		font-family: "Kumbh Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 700;
		line-height: 26px;
	}

	.kng-single-event-card__meta-value {
		color: #FFF;
		font-family: "Nunito Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 26px;
	}

	/* Website link: same style as value text but underlined */
	.kng-single-event-card__meta-value a {
		color: #FFF;
		font-family: "Nunito Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 26px;
		text-decoration: underline;
	}

	/* "+ Google Map" link: yellow Kumbh button-like text */
	.kng-single-event-card__meta-value .tribe-events-gmap {
		color: #FBC30A;
		font-family: "Kumbh Sans", sans-serif;
		font-size: 16px;
		font-style: normal;
		font-weight: 700;
		line-height: 26px;
		text-decoration: none;
	}
}
.tribe-events-meta-item {
	width: 100% !important;
	display: block !important;
	box-sizing: border-box;
}


.tribe-events-venue-map iframe {
	display: block;
	width: 100%;
	height: 350px;
	border: none;
}

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
	 padding: 0 !important;
}

.kng-single-event-card .tribe-events-single-event-description {
	padding-bottom: 0 !important;
}

.tribe-events-c-subscribe-dropdown {
	margin: 0 !important;
}

.tribe-events-c-subscribe-dropdown__export-icon {
	display: none;
}

.tribe-events-c-subscribe-dropdown__button-text {
	color: #FFF !important;
	text-align: center;
	font-family: "Kumbh Sans", sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 16px;
	font-variant: all-small-caps;
	background-color: transparent !important;
}

.tribe-events-c-subscribe-dropdown__button-text:hover {
	color: #ffffff !important;
}


.tribe-events-c-subscribe-dropdown {
	position: relative;
}

.tribe-events-c-subscribe-dropdown__content {
	position: absolute !important;
	top: 100%;
	left: 0;
	z-index: 1000 !important;
	margin-top: 6px;
	width: 210px;
	border-radius: 24px !important;
	border: 1px solid #FBC30A !important;
	background: rgba(40, 7, 74, 0.95);
	overflow: hidden;
}

.tribe-events-c-subscribe-dropdown__list {
	background: transparent !important;
	margin: 0;
	padding: 0 0 8px !important;
	list-style: none;
}

.tribe-events-c-subscribe-dropdown__list-item {
	margin: 0;
	padding: 0;
}

.tribe-events-c-subscribe-dropdown__list-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 20px;
	color: #ffffff !important;
	text-decoration: none;
	font-family: "Nunito Sans", sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.2;
	text-transform: capitalize;
	transition: all 0.25s ease;
}

.tribe-events-c-subscribe-dropdown__list-item a:hover {
	color: #FBC30A !important;
}

.tribe-events-c-subscribe-dropdown__button {
	color: #ffffff !important;
}

@media (max-width: 600px) {
	.tribe-events-c-subscribe-dropdown__content {
		left: auto;
		right: 0;
		width: 200px;
	}
}

@media (max-width: 1050px) {
	.kng-single-event-hero {
		flex-direction: column;
		padding: 20px;
	}

	.kng-single-event-hero__image {
		width: 100%;
		padding: 0;
	}

	.kng-single-event-card__details {
		grid-template-columns: 1fr;
	}

	.kng-single-event-card .tribe-events-meta-group {
		grid-template-columns: 1fr;
	}
}

.tribe-address {
	width: 100% !important;
	display: block !important;
}


.kng-single-event-card__details-actions {
	grid-column: 1 / -1;
	padding-top: 16px;
	text-align: center;
	width: 100%;
}

.kng-single-event-card__schedule-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
}

.kng-single-event-card__meta-cta {
	margin-top: 45px;
	padding-bottom: 45px;
	text-align: center;
}


@media (max-width: 768px) {
	.kng-single-event-card__details {
		display: flex;
		flex-direction: column;
	}

	.kng-single-event-card__details-right {
		order: 1;
		width: 100%;
	}

	.kng-single-event-card__details-left {
		order: 2;
		width: 100%;
	}

	.kng-single-event-card__details-actions {
		order: 3;
		width: 100%;
		margin-top: auto;
	}
}

.kng-single-event-hero__arrow--next,
.kng-single-event-hero__arrow--prev,
.kng-single-event-hero__arrow {
	display: none !important;
}
