/* ── Resource Library Carousel ───────────────────────────────────────── */
/* Carousel wrapper */
.res-carousel {
	position: relative;
	margin-top: 16px;
}

/* Track - single scrollable row */
.res-carousel__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-padding-left: 0px;
}
.res-carousel__track::-webkit-scrollbar { display: none; }

/* Nav buttons */
.res-carousel__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.18);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, box-shadow .15s;
	color: var(--client-color);
}
.res-carousel__btn:hover {
	background: var(--client-color);
	color: #fff;
	box-shadow: 0 4px 18px rgba(0,0,0,.22);
}
.res-carousel__btn svg { width: 18px; height: 18px; }
.res-carousel__btn--prev { left: 8px; }
.res-carousel__btn--next { right: 8px; }
.res-carousel__btn[disabled],
.res-carousel__btn.res-hidden { opacity: 0; pointer-events: none; }

/* Dots */
.res-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	display:none;
}
.res-carousel__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--slate-200);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background .2s, transform .2s;
}
.res-carousel__dot--active {
	background: var(--client-color);
	transform: scale(1.3);
}

/* ── Individual card ── */
/* ══════════════════════════════════════════════════════
   RESOURCE CARD — Full-fill media, hover-reveal content
   ══════════════════════════════════════════════════════ */
.res-card-lib {
	position: relative;
	flex: 0 0 450px;
	width: 280px;
	height: 320px;
	scroll-snap-align: start;
	border-radius: 16px;
	overflow: hidden;
	background: #0a1714;
	border: 1.5px solid rgba(176,141,87,.18);
	display: block;
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

/* Dark tint overlay on hover (image cards only — not iframes) */
.res-card-lib::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(10,20,18,0);
	z-index: 3;
	pointer-events: none;
	transition: background .38s ease;
}

/* ── Media fills entire card ── */
.res-card-lib__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: unset;
	background: #0a1714;
	overflow: hidden;
}
.res-card-lib__media::after { display: none; }
.res-card-lib__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.res-card-lib:hover .res-card-lib__media img { transform: scale(1.07); }
.res-card-lib__media iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ── Play button ── */
.res-card-lib__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.08);
	cursor: pointer;
	border: none;
	z-index: 4;
	transition: background .25s;
}
.res-card-lib__play:hover { background: rgba(0,0,0,.24); }
.res-card-lib__play svg {
	width: 60px;
	height: 60px;
	filter: drop-shadow(0 4px 14px rgba(0,0,0,.60));
	transition: transform .22s;
}
.res-card-lib__play:hover svg { transform: scale(1.10); }

/* ── Badge — always visible top-left ── */
.res-card-lib__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 6;
	background: rgba(10,20,18,.68);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: rgba(255,255,255,.80);
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 50px;
	border: 1px solid rgba(255,255,255,.12);
	line-height: 1.5;
}

/* ── Icon placeholder (audio/pdf) ── */
.res-card-lib__icon-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	background: rgba(176,141,87,.12);
	border: 1.5px solid rgba(176,141,87,.28);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* ── Body — always visible; hidden once a video starts playing ── */
.res-card-lib__body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 5;
	padding: 20px 20px 22px;
	background: linear-gradient(to top,
		rgba(8,16,14,.88)  0%,
		rgba(8,16,14,.60) 60%,
		transparent       100%
	);
	opacity: 1;
	transition: opacity .35s ease;
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-top: none;
}
.res-card-lib.is-playing .res-card-lib__body { opacity: 0; pointer-events: none; }
.res-card-lib__body::before { display: none; }

.res-card-lib__learnmore {
	align-self: flex-start;
	font-size: 0.78rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}
.res-card-lib__learnmore:hover { text-decoration: underline; }

/* ── Highlight label — top-right badge, always visible ── */
.res-card-lib__hl {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 6;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--secondary-color);
	background: #fff;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(176,141,87,.42);
	border-radius: 50px;
	padding: 3px 9px;
	line-height: 1.5;
}

/* ── Title + link row ── */
.res-card-lib__row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.res-card-lib__title {
	flex: 1;
	font-family: var(--font-display);
	font-size: 1.02rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
	margin: 0;
}


/* ── Circle link button at right edge ── */
.res-card-lib__extbtn {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(176,141,87,.14);
	border: 1px solid rgba(176,141,87,.38);
	color: var(--secondary-color, #B08D57);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .22s, color .22s;
}
.res-card-lib__extbtn:hover {
	background: var(--secondary-color, #B08D57);
	color: #fff;
}

/* ── Audio ── */
.res-card-lib__audio {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	z-index: 5;
	padding: 10px 20px 14px;
	background: rgba(8,16,14,.92);
}
.res-card-lib__audio audio { width: 100%; height: 34px; filter: invert(1) brightness(.75); }

/* ── PDF download ── */
.res-card-lib__dl {
	position: absolute;
	bottom: 16px; left: 20px;
	z-index: 5;
}
.res-card-lib__dl a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(176,141,87,.18);
	color: var(--secondary-color, #B08D57);
	border: 1px solid rgba(176,141,87,.35);
	font-size: 12px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 50px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.res-card-lib__dl a:hover { background: var(--secondary-color, #B08D57); color: #fff; }

/* ── Link overlay (embed with thumbnail) ── */
.res-card-lib__link-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10,20,18,.15);
	z-index: 2;
	transition: background .25s;
	color: #fff;
}
.res-card-lib:hover .res-card-lib__link-overlay { background: rgba(10,20,18,.32); }

/* ── No-image placeholder ── */
.res-card-lib__media--placeholder {
	background: linear-gradient(145deg, #0b1a16, #1a3530);
}
.res-card-lib__media--placeholder::after { display: none; }

/* ── Iframe embed fills full card ── */
.res-card-lib__media--iframe {
	aspect-ratio: unset;
	height: 100%;
}
.res-card-lib__media--iframe iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	pointer-events: none;
}
.res-card-lib:hover .res-card-lib__media--iframe iframe { pointer-events: auto; }
.res-card-lib__media--iframe::after { display: none; }

/* ── Learn more — gold pill ── */
.res-card-lib__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	background: var(--secondary-color, #B08D57);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .03em;
	border-radius: 50px;
	text-decoration: none;
	width: fit-content;
	transition: background .22s, gap .22s;
}
.res-card-lib__link:hover { background: #c9a262; gap: 9px; }

/* social "View post" */
.res-card-lib__body > a[target="_blank"]:not(.res-card-lib__link) {
	color: var(--secondary-color, #B08D57);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 10px;
}

@media (max-width: 680px) {
	.res-card-lib { flex: 0 0 272px; width: 272px;  height: 220px; }
	.res-carousel__btn { display: none; }
}
