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

@font-face {
	font-family: "linea-arrows-10";
	src: url("/wp-content/themes/salient/css/fonts/svg/font/linea-arrows-10.eot?#iefix") format("embedded-opentype"), url("/wp-content/themes/salient/css/fonts/svg/font/linea-arrows-10.woff") format("woff"), url("/wp-content/themes/salient/css/fonts/svg/font/linea-arrows-10.ttf") format("truetype"), url("/wp-content/themes/salient/css/fonts/svg/font/linea-arrows-10.svg#linea-arrows-10") format("svg");
	font-style: normal;
	font-weight: normal;
}
.ytc-post-slider-block{
	z-index: 99;
}
.swiper.ytc-swiper {
	overflow: visible;
	padding-bottom: 72px;
}
.swiper-pagination {
	text-align: left;
	bottom: 0 !important;
}
.swiper-pagination-bullet {
	background: #C9E3C1;
	height: 16px;
	opacity: 1;
	width: 16px;
}
.swiper-pagination-bullet-active {
	background: #61BB46;
	width: 32px;
	border-radius: 16px;
}
.ytc-post-slider-block {
	position: relative;
}
.ytc-post-slider-block.is-loading {
	opacity: 0.6;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.ytc-pills-swiper {
	margin-bottom: 48px;

	/* Bleed ONLY the right edge out to the true viewport edge — left edge
	   stays exactly where the container normally puts it. This formula
	   assumes the parent container is horizontally centered (e.g. a
	   standard Salient/WPBakery row with margin: 0 auto) — if your layout
	   uses a different centering method, this may need adjusting. */
	margin-right: calc( 50% - 50vw );
	padding-right: 24px; /* keeps the last pill from touching the true screen edge */
	box-sizing: border-box;
}
.ytc-filter-pills {
	/* Swiper's own .swiper-wrapper — no custom overflow/drag CSS needed
	   here anymore, Swiper (see JS) handles clipping and drag itself. */
}
.ytc-filter-pill {
	white-space: nowrap;
	cursor: pointer;
	background: #D7F0F2;
	padding: 12px 24px;
	font-family: Montserrat, MontserratFallback, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	border: 0;
}
.ytc-filter-pill.is-active {
	background: #0b1f3a; /* placeholder — swap for YTC Navy token */
	color: #fff;
	border-color: transparent;
}
.ytc-slider-nav {
	position: absolute;
	top: -75px;
	right: 0;
	display: flex;
	gap: 12px;
}
.ytc-slider-prev,
.ytc-slider-next {
	width: 48px;
	height: 48px;
	border: 1px solid #61BB46;
	background: #F7F9FB;
	cursor: pointer;
	box-sizing: border-box;
	padding: 0;
	color: #61BB46;
}
.ytc-slider-prev:hover,
.ytc-slider-next:hover{
	background: #61BB46;
	color: #fff;
}
.swiper-button-disabled.ytc-slider-prev:hover,
.swiper-button-disabled.ytc-slider-next:hover{
	background: #F7F9FB;
	color: #61BB46;
}
.swiper-button-disabled.ytc-slider-prev,
.swiper-button-disabled.ytc-slider-next{
	cursor: no-drop;
}
.ytc-slider-nav .ytc-slider-prev i, 
.ytc-slider-nav .ytc-slider-next i{
	width: 24px;
	height: 24px;
	text-align: center;
	font-size: 24px;
	line-height: 24px;
}

.icon-arrows-left::before {
  content: "\e03f";
	font-family: "linea-arrows-10" !important;
}
.icon-arrows-right::before {
  content: "\e04b";
	font-family: "linea-arrows-10" !important;
}
.ytc-post-card {
	display: flex;
	flex-direction: column;
	height: auto;
	/* iOS Safari fix: WebKit can fail to visually paint margin on elements
	   that also have a transform applied (Swiper uses transform to position
	   slides) — forcing this onto its own GPU compositing layer makes
	   WebKit recalculate the margin correctly. Confirmed needed: the DOM
	   showed margin-right: 20px present on every slide, but it wasn't
	   rendering on an actual iPhone until this was added. */
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.ytc-post-card__image {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: 12px;
}
div.ytc-post-card .ytc-post-card__image img {
	width: 100% !important;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}
.ytc-post-card__tags {
	position: absolute;
	top: 24px;
	left: 24px;
	right: 44px; /* keep clear of the arrow button on the opposite corner */
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ytc-post-card__tag {
	border-radius: 24px;
	padding: 2px 16px;
	color: #4AA230 !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 24px !important;
	background-color: #c9e3c1;
	backdrop-filter: blur(10px);
}
.ytc-post-card__arrow-shape{
	position: absolute;
	bottom: 0;
	right: 0;
	width: 48px;
	height: 48px;
	z-index: 1;
}
.ytc-post-card__arrow-shape::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0px;
	width: 60px;
	height: 60px;
	background: #f7f9fb;
	border-top-left-radius: 20px;
	z-index: -1;
}
.ytc-post-card__arrow-shape::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	background: url("/wp-content/uploads/2026/07/Button3-1.svg");
}
.ytc-post-card__arrow::before {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	border-bottom-right-radius: 18px;
	box-shadow: 8px 8px 0 #f7f9fb;
	right: 0;
	bottom: 60px;
}
.ytc-post-card__arrow::after {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	border-bottom-right-radius: 18px;
	box-shadow: 8px 8px 0 #f7f9fb;
	right: 60px;
	bottom: 0;
}
.ytc-post-card__meta {
	font-size: 16px;
	color: #18304D;
}
.ytc-post-slider-block .ytc-post-card h3.ytc-post-card__title,
.ytc-post-grid .ytc-post-card h3.ytc-post-card__title{
	font-size: 20px;
	line-height: 1.4;
	margin-top: 6px;
}
.ytc-post-card__title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ytc-post-card__read-more {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 700;
	color: #61BB46;
}
.ytc-post-card__read-more:hover{
	color: #61BB46;
	opacity: 0.7;
}
.ytc-post-card__read-more::after{
	content: '';
	background: url('/wp-content/uploads/2026/07/Vector1.svg');
	width: 16px;
	height: 16px;
	display: inline-block;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	margin-left: 8px;
	position: relative;
	top: 3px;
}
.ytc-post-slider-empty {
	padding: 40px 0;
	text-align: center;
	color: #888;
}
/* ==========================================================
   GRID LAYOUT — separate from everything above, doesn't touch
   any slider rule, but reuses .ytc-post-card for card styling.
   ========================================================== */

.ytc-post-grid-block {
	position: relative;
}
.ytc-post-grid-block.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.ytc-post-grid-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

/* Top-left curated tabs */
.ytc-post-grid-tabs {
	display: flex;
	gap: 0;
	background: #E8F1F1;
	padding: 4px;
	border-radius: 36px;
}
.ytc-post-grid-tab {
	padding: 8px 16px;
	font-size: 14px;
	color: #71717A;
	cursor: pointer;
	line-height: 24px;
	font-family: Montserrat, MontserratFallback, sans-serif;
	border: 0;
	background-color: transparent;
}
.ytc-post-grid-tab.is-active {
	color: #18304D;
	background-color: #fff;
	font-weight: 700;
}

/* Filter button + popup */
.ytc-post-grid-filter-wrap {
	position: relative;
}
.ytc-post-grid-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #18304D;
	cursor: pointer;
}
.ytc-post-grid-popup {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 280px;
	background: #E8F1F1;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	padding: 16px;
	z-index: 30;
}
.ytc-post-grid-popup__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	margin-bottom: 8px;
}
.ytc-post-grid-popup__clear-all,
.ytc-post-grid-popup__group-clear {
	background: none;
	border: none;
	color: #61BB46;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}
.ytc-post-grid-popup__count {
	font-size: 12px;
	color: #999;
	margin-bottom: 16px;
}
.ytc-post-grid-popup__group {
	margin-bottom: 16px;
}
/* The Topics list is uncapped, so the groups scroll inside the popup
   instead of running off the page. */
.ytc-post-grid-popup__groups {
	max-height: min(60vh, 480px);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin-right: -8px;
	padding-right: 8px;
}

/* "View more": terms past the first few stay hidden until expanded. */
.ytc-post-grid-checkbox.is-extra {
	display: none;
}
.ytc-post-grid-popup__group.is-expanded .ytc-post-grid-checkbox.is-extra {
	display: flex;
}
.ytc-post-grid-popup__more {
	background: none;
	border: none;
	padding: 4px 0 0;
	color: #61BB46;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.ytc-post-grid-popup__more:hover {
	text-decoration: underline;
}
.ytc-post-grid-popup__group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #999;
	margin-bottom: 8px;
}
.ytc-post-grid-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #18304D;
	padding: 4px 0;
	cursor: pointer;
}
.ytc-post-grid-popup__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ytc-post-grid-pill {
	padding: 11px 16px;
	cursor: pointer;
	color: #18304D;
	font-family: Montserrat, MontserratFallback, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 24px;
	border: 1px solid #D7F0F2;
	background: #D7F0F2;
}
.ytc-post-grid-pill.is-active {
	background: #61BB46;
	border-color: #61BB46;
	color: #fff;
}

/* Grid of cards */
.ytc-post-grid {
	display: grid;
	grid-template-columns: repeat(var(--ytc-grid-columns, 3), 1fr);
	gap: 24px;
}
.ytc-post-grid-item {
	/* No extra layout rules needed here — .ytc-post-card (shared with the
	   slider cards) already handles the internal image/tags/meta/title
	   styling; this class only exists as a grid-context hook. */
}

@media (max-width: 999px) {
	.ytc-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.ytc-post-grid {
		grid-template-columns: 1fr;
	}
	.ytc-post-grid-popup {
		width: 260px;
	}
}

/* Disabled Clear/Clear-all state */
.ytc-post-grid-popup__clear-all:disabled,
.ytc-post-grid-popup__group-clear:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Load more */
.ytc-post-grid-load-more-wrap {
	text-align: center;
	margin-top: 32px;
}
.ytc-post-grid-load-more {
	padding: 11px 28px;
	cursor: pointer;
	border: 1px solid #61BB46;
	background: #61BB46;
	color: #fff;
	font-size: 16px;
	line-height: 24px;
	font-family: Montserrat, MontserratFallback, sans-serif;
	font-weight: 700;
	width: 240px;
}
.ytc-post-grid-load-more:hover {
	border-color: #61BB46;
	color: #61BB46;
	background-color: transparent;
}
.ytc-post-grid-load-more:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Tag Grid layout — inline popular-tags row (pills reuse .ytc-post-grid-pill styling) */
.ytc-taggrid-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

/* Grid cards: event date range + location */
.ytc-post-card__meta--dates {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ytc-post-card__meta--dates b{
	font-weight: 400;
	font-size: 13px;
}
.ytc-post-card__icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	display: block;
}
/* Uses the .ytc-post-card__tag design; this only lines the icon up with the text. */
.ytc-post-card__location {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
