/* YTC Event Details — base structural styles only.
   Visual styling (colors/fonts/spacing) to be applied per Figma design system. */

/* Breadcrumb */
.ytc-event-breadcrumb { 
	color: #18304D;
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
}
.ytc-event-breadcrumb a { color: inherit; text-decoration: none; }
.ytc-event-breadcrumb a:hover { text-decoration: underline; }
.ytc-event-breadcrumb__sep { margin: 0 6px; }
.ytc-event-breadcrumb__current { color: #6fbf73; font-weight: 600; }

/* Title */
.ytc-event-title { margin: 0; }

/* Single date (start/end) */
.ytc-event-date { font-weight: 700; }
.ytc-event-date--raw { color: #c00; } /* red = likely unparsed/wrong field — easy to spot while testing */

/* Event type */
.ytc-event-type {
	display: inline-block;
	background: transparent !important;
	padding: 0 !important;
	font-size: 14px !important;
	font-weight: 700;
	text-transform: none !important;
}
.ytc-event-location{
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ytc-event-location::before{
	content: '';
	width: 16px;
	height: 16px;
	background: url("/wp-content/uploads/2026/09/ICCA-icons2.svg");
	display: inline-block;
}
/* Featured image */
.ytc-event-featured-image img { width: 100%; height: auto; border-radius: 12px; }

/* About (Group field) */
.ytc-event-about__image img { width: 100%; border-radius: 12px; margin-bottom: 12px; }
.ytc-event-about__title { margin: 0 0 8px; }
.ytc-event-about__desc { margin: 0; color: #555; }

/* Dates */
.ytc-event-dates {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-weight: 700;
}
.ytc-event-dates__day { font-size: 28px; }
.ytc-event-dates__month { font-size: 14px; text-transform: uppercase; margin-left: 2px; }

/* Apply button */
.ytc-event-apply-btn {
	display: inline-block;
	background: #18304D;
	color: #fff;
	padding: 8px 20px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
}
.ytc-event-apply-btn:hover{
	background: #18304D;
	color: #fff;
	opacity: 0.9;
}

/* Attending reasons grid */
.ytc-attending-reasons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.ytc-attending-reasons__item {
	background: #E8F1F1;
	border-radius: 24px;
	padding: 24px;
	position: relative;
}
.ytc-attending-reasons__item .ytc-attending-reasons__icon img{
	margin-bottom: 0;
}
.ytc-attending-reasons__item .ytc-attending-reasons__icon{
	max-width: 48px;
	position: absolute;
	top: 0;
	z-index: 1;
	right: 0;
}
.ytc-attending-reasons__item .ytc-attending-reasons__icon::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 60px;
	height: 60px;
	background: #F7F9FB;
	border-bottom-left-radius: 20px;
	z-index: -1;
}
.ytc-attending-reasons__item .ytc-attending-reasons__icon::after {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	right: 0;
	border-top-right-radius: 18px;
	box-shadow: 8px -8px 0 #F7F9FB;
	top: 60px;
}
.ytc-attending-reasons__item::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  right: 60px;
  top: 0;
  border-top-right-radius: 18px;
  box-shadow: 8px -8px 0 #F7F9FB;
}
.ytc-attending-reasons__title { 
	margin: 0 0 16px;
	display: block;
	padding-right: 48px;
}
.ytc-attending-reasons__desc { margin: 0; font-size: 14px; color: #555; }

/* Who can join grid */
.ytc-who-can-join {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.ytc-who-can-join__item {
	text-align: center;
	padding: 40px;
	border-radius: 20px;
	border: 1px solid #E3E3E0;
	background: #E8F1F1;
}
.ytc-who-can-join__icon {
	display: inline-flex;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #6fbf73;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}
.ytc-who-can-join__icon img { margin-bottom: 0 !important; }
.ytc-who-can-join__title { 
	font-weight: 700;
	font-size: 18px;
	line-height: 1.555; 
	display: block;
}

/* FAQ accordion */
.ytc-event-faq{
	display: grid;
	gap: 16px;
}
.ytc-event-faq__item { border-bottom: 1px solid #e2e2e2; }
.ytc-event-faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: none;
	padding: 24px 16px;
	text-align: left;
	cursor: pointer;
	color: #18304D;
	font-family: Montserrat, MontserratFallback, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	padding-right: 0;
}
.ytc-event-faq__answer {
	display: none;
	padding: 0 16px 16px 16px;
}
.ytc-event-faq__answer p { margin: 0; color: #555; }
.ytc-event-faq__item.is-open .ytc-event-faq__toggle-icon { transform: rotate(45deg); }
.ytc-event-faq__toggle-icon { 
	transition: transform 0.2s ease;
	font-weight: 100;
	font-size: 32px;
}

/* Agenda */
.ytc-event-agenda-day__date { font-weight: 700; margin-bottom: 12px; }
.ytc-event-agenda-slot__time {
	flex-shrink: 0;
	overflow: hidden;
	font-family: Montserrat, MontserratFallback, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}
.ytc-event-agenda-slot__spaces {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}
.ytc-event-agenda-space {
	background: #eef2f5;
	border-radius: 8px;
	padding: 12px 16px;
}
.ytc-event-agenda-space__title { margin: 4px 0; font-size: 15px; }
.ytc-event-agenda-space__desc { margin: 0; font-size: 13px; color: #555; }

/* Speaker testimonial carousel */
.ytc-testimonial-slider-block {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
}
.ytc-testimonial-slider-block__nav {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}
.ytc-testimonial-swiper {
	flex-grow: 1;
	overflow: hidden;
}
.ytc-testimonial-slide {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: center;
}
.ytc-testimonial-slide__image {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	overflow: hidden;
	background: #ccc;
}
.ytc-testimonial-slide__image img { width: 100%; height: 100%; object-fit: cover; }
.ytc-testimonial-slide__logo {
	position: absolute;
	left: 12px;
	bottom: 12px;
	max-width: 70%;
}
.ytc-testimonial-slide__logo img { max-height: 32px; width: auto; object-fit: contain; }
.ytc-testimonial-slide__badge {
	display: inline-block;
	background: #6fbf73;
	color: #fff;
	font-size: 12px;
	padding: 4px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.ytc-testimonial-slide__quote {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 16px;
}
.ytc-testimonial-slide__name { margin: 0 0 2px; }
.ytc-testimonial-slide__subtitle { margin: 0; color: #555; font-size: 14px; }

@media (max-width: 767px) {
	.ytc-testimonial-slide { grid-template-columns: 1fr; }
}

/* Speaker carousel */
.ytc-speaker-slider-block { position: relative; }
.ytc-speaker-card { 
	height: auto;
	max-width: 25%;
}
.ytc-speaker-card__photo {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 24px;
	overflow: hidden;
	background: #ccc; /* fallback if a speaker has no featured image */
}
.ytc-speaker-card__photo::after{
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.30) 79.87%);
}
.ytc-speaker-card__description{
	position: absolute;
	padding: 24px;
	bottom: 0;
}
.ytc-speaker-card__photo > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 3 / 4;
}
.ytc-speaker-card__logo {
	position: absolute;
	top: 24px;
	left: 24px;
	max-width: 70%;
}
.ytc-speaker-card__logo img {
	width: auto;
	max-height: 50px;
	object-fit: contain;
}
.ytc-speaker-card__badge {
	background: #61BB46;
	color: #fff;
	font-size: 12px;
	padding: 4px 16px;
	border-radius: 999px;
	line-height: 20px;
	font-weight: 700;
}
.ytc-speaker-card__category {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #6fbf73;
	margin-top: 10px;
}
.ytc-speaker-card__name { 
	margin: 12px 0 !important;
	color: #fff;
	font-size: 18px !important;
	line-height: 27px !important;
}
.ytc-speaker-card__subtitle { color: #fff; }

/* Speakers */
.ytc-event-speakers {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.ytc-event-speaker-card { text-align: center; }
.ytc-event-speaker-card__photo img { width: 100%; border-radius: 8px; }
.ytc-event-speaker-card__name { margin: 10px 0 4px; }
.ytc-event-speaker-card__testimonial { font-size: 13px; color: #555; }

@media (max-width: 767px) {
	.ytc-attending-reasons,
	.ytc-who-can-join,
	.ytc-event-speakers {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.ytc-attending-reasons,
	.ytc-who-can-join,
	.ytc-event-speakers {
		grid-template-columns: repeat(1, 1fr);
	}
}

/* Full agenda — day tabs + accordion */
.ytc-event-agenda__tabs {
	display: inline-flex;
	margin-bottom: 10px;
	overflow-x: auto;
	border-radius: 50px;
	background: #E8F1F1;
	padding: 4px;
	align-items: center;
	gap: 8px;
}
.ytc-event-agenda__tab {
	background: none;
	cursor: pointer;
	color: #71717A;
	font-family: Montserrat, MontserratFallback, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	padding: 8px 16px;
	border: 0;
}
.ytc-event-agenda__tab.is-active {
	color: #18304D;
	font-weight: 700;
	background: #fff;
}

.ytc-event-agenda__day-panel {
	display: none;
	padding-right: 12px; /* keeps content clear of the scrollbar rather than overlapping it */
	gap: 16px;

	/* Firefox */
	scrollbar-width: thin;
	scrollbar-color: #61BB46 #eef2f5; /* placeholder — swap for ICCA accent/light tokens */
}
.ytc-event-agenda__day-panel.is-active {
	display: grid;
	max-height: 800px;
	overflow-y: auto;
}

/* Chrome / Safari / Edge */
.ytc-event-agenda__day-panel::-webkit-scrollbar {
	width: 8px;
}
.ytc-event-agenda__day-panel::-webkit-scrollbar-track {
	background: #eef2f5;
	border-radius: 999px;
}
.ytc-event-agenda__day-panel::-webkit-scrollbar-thumb {
	background: #61BB46;
	border-radius: 999px;
}
.ytc-event-agenda__day-panel::-webkit-scrollbar-thumb:hover {
	background: #4fa63b;
}

.ytc-event-agenda-slot {
	border-radius: 16px;
	overflow: hidden;
	padding: 16px;
	background: #E8F1F1;
}
.ytc-event-agenda-slot.is-open{
	background: linear-gradient(90deg, #61BB46, #2f9e6f);
}
.ytc-event-agenda-slot__header {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	font-weight: 700;
	color: #18304D;
	cursor: pointer;
	text-align: left;
	padding: 0;
}
.ytc-event-agenda-slot.is-open > .ytc-event-agenda-slot__header {
	color: #fff;
}
.ytc-event-agenda-slot__date { 
	overflow: hidden;
	font-family: Montserrat, MontserratFallback, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}
.ytc-event-agenda-slot__spaces {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px dashed #18304D;
	margin-top: 16px;
}
.ytc-event-agenda-slot:not(.is-open) .ytc-event-agenda-slot__spaces {
	display: none;
}
.ytc-event-agenda-space {
	background: #fff;
	border-radius: 24px;
	padding: 16px 24px;
}
.ytc-event-agenda-space__name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #61BB46;
}
.ytc-event-agenda-space__name::before{
	content: '';
	width: 16px;
	height: 16px;
	background: url("/wp-content/uploads/2026/09/ICCA-icons2-1.svg")
}
.ytc-event-agenda-space__title { 
	font-size: 18px !important;
	line-height: 20px !important;
	border-left: solid 2px #61BB46;
	margin-bottom: 0;
	padding-left: 16px;
	padding-bottom: 4px;
	margin-top: 20px;
}
.ytc-event-agenda-space__desc { 
	margin: 0;
	font-size: 14px;
	color: #71717A;
	border-left: solid 2px #61BB46;
	padding-left: 16px;
}
