/* Videoteca (Krea Bidasoa): the title in a rounded gradient band, then a
   "Programa" card (one link per edition) on the left and a video gallery
   (1 large + a 2-up grid) on the right. Figma 3144:6013. The optional hero
   image above the band is kept for older content. */

/* Near-full-bleed banner (Figma: 8px each side, wider than the content column). */
.videoteca__hero {
	margin: 0 var(--space-2);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bida-dark);
}
.videoteca__hero img { display: block; width: 100%; height: clamp(240px, 33vw, 474px); object-fit: cover; }

/* Content rail: 325px card + 670px gallery inside 1130px (x=155 at 1440). */
.videoteca__wrap { width: min(1130px, 100% - 2 * var(--container-pad)); margin-inline: auto; }

/* Title band (Figma 112/88 padding), full width and flush under the header:
   no gutters or rounded corners at the top of the page. */
.videoteca__band {
	background: linear-gradient(180deg, rgba(28, 59, 91, 0.08), rgba(28, 59, 91, 0));
	padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 88px);
}

/* The gallery starts at the band's bottom edge; the card sits 97px lower. */
.videoteca__main { padding-block: 0 clamp(48px, 8vw, 96px); }
.videoteca__grid {
	display: grid;
	grid-template-columns: 325px minmax(0, 670px);
	justify-content: space-between;
	gap: clamp(40px, 5vw, 64px);
	align-items: start;
}
.videoteca__aside { padding-top: 97px; }

/* ---------- Title + left column: Programa card ---------- */
.videoteca__title {
	margin: 0;
	font-size: var(--fs-h1);
	line-height: var(--lh-h1);
	letter-spacing: var(--ls-h1);
	font-weight: var(--fw-medium);
	color: var(--bida-blue);
}
.videoteca__prog {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	padding: 20px;
	background: var(--neutral-50);
	border-radius: var(--radius-sm);
}
.videoteca__prog-title { margin: 0; font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: -0.24px; font-weight: var(--fw-medium); color: var(--bida-blue); }
.videoteca__prog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.videoteca__prog-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); text-decoration: none; }
.videoteca__prog-desc { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--neutral-500); }
.videoteca__prog-arrow {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--white);
	border: 1px solid var(--neutral-200);
	color: var(--bida-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.videoteca__prog-foot:hover .videoteca__prog-arrow,
.videoteca__prog-foot:focus-visible .videoteca__prog-arrow { background: var(--bida-green); color: var(--white); border-color: var(--bida-green); }
.videoteca__prog-arrow-icon { width: 18px; height: 18px; }

/* ---------- Right column: video gallery ---------- */
.videoteca__videos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 4vw, 48px) 20px;
}
.vt-video { min-width: 0; }
.vt-video--lg { grid-column: 1 / -1; }
.vt-video__link { display: flex; flex-direction: column; gap: clamp(12px, 1.5vw, 24px); text-decoration: none; }
.vt-video__thumb {
	display: block;
	aspect-ratio: 325 / 241;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bida-dark);
}
.vt-video--lg .vt-video__thumb { aspect-ratio: 670 / 367; }
.vt-video__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
/* The large slot's source is a vertical still; frame the subject (upper band) as in Figma. */
.vt-video--lg .vt-video__thumb img { object-position: 50% 16%; }
.vt-video__link:hover .vt-video__thumb img { transform: scale(1.03); }
.vt-video__title { font-size: var(--fs-sub2); line-height: var(--lh-sub2); font-weight: var(--fw-medium); color: var(--bida-blue); }
.vt-video--lg .vt-video__title { font-size: var(--fs-sub1); line-height: var(--lh-sub1); }

@media (max-width: 960px) {
	.videoteca__grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }
	.videoteca__main { padding-top: clamp(24px, 5vw, 40px); }
	.videoteca__aside { padding-top: 0; }
}
@media (max-width: 480px) {
	.videoteca__videos { grid-template-columns: 1fr; }
	.vt-video--lg .vt-video__thumb { aspect-ratio: 325 / 241; }
}
