/* =============================================================
   PECB Webinars — type-specific styles
   Shared cards, single view, resources and pagination live in
   assets/css/pecb-common.css (loaded as a dependency).
   ============================================================= */

/* ---- Recording (click-to-play YouTube facade) ---- */
.pecb-res .pecb-video {
	background: #fff;
}

.pecb-res .pecb-video__trigger {
	position: absolute;
	inset: 0;
	display: block;
	cursor: pointer;
}

.pecb-res .pecb-video__trigger::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
	transition: opacity 0.2s ease;
}

.pecb-res .pecb-video__trigger:hover::after {
	opacity: 0.6;
}

.pecb-res .pecb-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--pecb-accent);
	color: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
	transition: transform 0.2s var(--pecb-ease), background-color 0.2s ease;
}

.pecb-res .pecb-video__play svg {
	margin-left: 4px; /* optical centring of the triangle */
}

.pecb-res .pecb-video__trigger:hover .pecb-video__play {
	background: var(--pecb-accent-hover);
	transform: translate(-50%, -50%) scale(1.08);
}

.pecb-res .pecb-video__label {
	position: absolute;
	left: 20px;
	bottom: 18px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.pecb-res .pecb-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---- Presenter ---- */
.pecb-res .pecb-presenter {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 24px;
	background: var(--pecb-surface-alt);
	border-radius: var(--pecb-radius);
}

.pecb-res .pecb-presenter__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--pecb-dark);
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.pecb-res .pecb-presenter__body {
	flex: 1;
	min-width: 0;
}

.pecb-res .pecb-presenter__name {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--pecb-text);
}

.pecb-res .pecb-presenter__role {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--pecb-muted);
}

.pecb-res .pecb-presenter a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--pecb-border-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.pecb-res .pecb-presenter a:hover {
	color: var(--pecb-accent);
	text-decoration-color: currentColor;
}

.pecb-res .pecb-presenter__bio {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.7;
}

@media (max-width: 600px) {
	.pecb-res .pecb-video__play {
		width: 60px;
		height: 60px;
	}

	.pecb-res .pecb-presenter {
		flex-direction: column;
		padding: 20px;
	}
}
