/* ================================================================
   Videos section — cream bg, horizontal scroll-snap slider of YT embeds
   ================================================================ */

.section-videos {
	padding: 40px 0;
	background: rgb(241, 239, 235);
	scroll-margin-top: 70px;
}

@media (min-width: 768px) {
	.section-videos {
		padding: 80px 0;
	}
}

.section-videos__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

@media (min-width: 640px) {
	.section-videos__inner {
		padding: 0 24px;
	}
}

@media (min-width: 1024px) {
	.section-videos__inner {
		padding: 0 32px;
	}
}

/* ── Heading ── */

.section-videos__heading {
	margin-bottom: 0;
}

.section-videos__title {
	font-family: var(--font-display);
	font-size: clamp(36px, 5vw, 50px);
	letter-spacing: 0.05em;
	line-height: 1;
	color: #000;
	margin: 0 0 16px;
}

.section-videos__subtitle {
	font-family: var(--font-body);
	font-weight: var(--fw-regular);
	font-size: clamp(20px, 3vw, 30px);
	line-height: 1.3;
	color: #f7bd49;
	margin: 0;
}

/* ── Slider wrapper ── */

.section-videos__slider-wrap {
	position: relative;
}

/* ── Scroll track ── */

.section-videos__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	scrollbar-width: none;
}

.section-videos__track::-webkit-scrollbar {
	display: none;
}

/* ── Video item ── */

.section-videos__item {
	scroll-snap-align: start;
	flex: 0 0 100%;
}

@media (min-width: 640px) {
	.section-videos__item {
		flex: 0 0 calc(50% - 8px);
	}
}

@media (min-width: 1024px) {
	.section-videos__item {
		flex: 0 0 calc(33.333% - 11px);
	}
}

/* ── Video card ── */

.section-videos__card {
	background: #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.section-videos__card:hover {
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

/* 16:9 iframe container */
.section-videos__embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.section-videos__embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Caption / title bar ── */

.section-videos__caption {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 16px;
	min-height: 80px;
	text-decoration: none;
	color: #111827;
	transition: background 0.2s ease;
}

.section-videos__caption:hover {
	background: #e5e7eb;
	text-decoration: none;
	color: #111827;
}

.section-videos__caption-text {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.4;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.section-videos__play-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 2px;
	color: #6b7280;
}

/* ── Nav arrows ── */

.section-videos__arrow {
	display: none;
	position: absolute;
	top: 35%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: background 0.2s ease;
}

.section-videos__arrow:hover {
	background: #f3f4f6;
}

.section-videos__arrow svg {
	width: 12px;
	height: 20px;
	color: #374151;
}

@media (min-width: 768px) {
	.section-videos__arrow {
		display: flex;
	}

	.section-videos__arrow--prev {
		left: -22px;
	}

	.section-videos__arrow--next {
		right: -22px;
	}
}
