/**
 * Videos page layout.
 *
 * All rules are scoped to the dedicated Videos page wrapper.
 */

main.icango-videos-page {
	box-sizing: border-box;
	width: calc(100% - 48px);
	max-width: 1200px;
	margin-inline: auto;
	padding-block: 48px 72px;
	color: #0f172a;
}

.icango-videos-page > .icango-videos-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.icango-videos-page *,
.icango-videos-page *::before,
.icango-videos-page *::after {
	box-sizing: border-box;
}

.icango-videos-page .wp-block-group__inner-container {
	width: 100%;
	max-width: none;
	min-width: 0;
}

.icango-videos-page .videos-hero,
.icango-videos-page .videos-library,
.icango-videos-page .videos-gallery,
.icango-videos-page .videos-cta {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
}

.icango-videos-page .videos-hero {
	padding: 56px;
	background: #f3f7fc;
	border: 1px solid #dce6f2;
	border-radius: 16px;
}

.icango-videos-page .videos-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 48px;
	align-items: center;
	margin: 0;
}

.icango-videos-page .videos-hero__content,
.icango-videos-page .videos-hero__media {
	min-width: 0;
	margin: 0;
}

.icango-videos-page .videos-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.icango-videos-page .videos-hero__eyebrow {
	margin: 0 0 14px;
	color: #2563eb;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: uppercase;
}

.icango-videos-page .videos-hero__title {
	margin: 0;
	color: #0f172a;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
}

.icango-videos-page .videos-hero__description {
	max-width: 430px;
	margin: 22px 0 0;
	color: #475569;
	font-size: 17px;
	line-height: 1.7;
}

.icango-videos-page .videos-hero__media {
	display: grid;
	min-height: 340px;
	place-items: center;
	background: #e3ebf5;
	border: 1px solid #cfdae8;
	border-radius: 14px;
	overflow: hidden;
}

.icango-videos-page .videos-hero__media > *,
.icango-videos-page .videos-hero__video,
.icango-videos-page .videos-hero__video video {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.icango-videos-page .videos-hero__video video {
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #101820;
}

@media (min-width: 1025px) {
	.icango-videos-page .videos-hero {
		position: relative;
		left: 50%;
		width: calc(100vw - 48px);
		max-width: 1500px;
		min-height: 580px;
		margin-top: -24px;
		padding: 64px;
		transform: translateX(-50%);
	}

	.icango-videos-page .videos-hero__layout {
		width: 100%;
		min-height: 450px;
	}

	.icango-videos-page .videos-hero__media {
		width: 100%;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.icango-videos-page .videos-hero__media > *,
	.icango-videos-page .videos-hero__video,
	.icango-videos-page .videos-hero__video video,
	.icango-videos-page .videos-hero__media img {
		width: 100%;
		height: 100%;
	}

	.icango-videos-page .videos-hero__media img {
		display: block;
		object-fit: contain;
	}
}

.icango-videos-page .videos-library,
.icango-videos-page .videos-gallery {
	padding-top: 72px;
}

.icango-videos-page .videos-library__title,
.icango-videos-page .videos-gallery__title {
	margin: 0;
	color: #0f172a;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

.icango-videos-page .icango-video-gallery-player {
	margin-top: 80px;
}

.icango-videos-page .icango-video-gallery-player > .videos-gallery__title {
	margin-bottom: 32px;
}

.icango-videos-page .videos-library__description {
	max-width: 680px;
	margin: 12px 0 0;
	color: #64748b;
	font-size: 16px;
	line-height: 1.65;
}

.icango-videos-page .videos-library__grid {
	display: block;
	width: 100%;
	margin-top: 30px;
}

.icango-videos-page .videos-library__grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: none;
	min-width: 0;
}

.icango-videos-page .videos-library__card,
.icango-videos-page .videos-library__card > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
}

.icango-videos-page .videos-library__card {
	min-height: 210px;
	padding: 28px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.icango-videos-page .videos-library__card:hover {
	transform: translateY(-4px);
	border-color: #bfdbfe;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.icango-videos-page .videos-library__icon {
	display: grid;
	width: 48px;
	height: 48px;
	margin: 0 0 20px;
	place-items: center;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	border-radius: 50%;
	overflow: hidden;
}

.icango-videos-page .videos-library__icon-image {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.icango-videos-page .videos-library__card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.icango-videos-page .videos-library__card p {
	margin: 14px 0 0;
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
}

.icango-videos-page .videos-library__card .videos-library__link {
	margin-top: auto;
	padding-top: 20px;
}

.icango-videos-page .videos-library__link a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	color: #ffffff;
	background: #2563eb;
	border-radius: 10px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.icango-videos-page .videos-library__link a:visited {
	color: #ffffff;
}

.icango-videos-page .videos-library__link a:hover,
.icango-videos-page .videos-library__link a:focus-visible {
	color: #ffffff;
	background: #1d4ed8;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
	transform: translateY(-1px);
}

.icango-videos-page .videos-gallery__layout.wp-block-columns {
	display: grid;
	grid-template-columns: minmax(220px, 3fr) minmax(0, 7fr);
	gap: 32px;
	align-items: start;
	margin: 30px 0 0;
}

.icango-videos-page .videos-gallery__navigation,
.icango-videos-page .videos-gallery__content {
	width: auto;
	min-width: 0;
	margin: 0;
}

.icango-videos-page .videos-gallery__navigation {
	padding: 26px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.icango-videos-page .videos-gallery__navigation h3 {
	margin: 0;
	color: #0f172a;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
}

.icango-videos-page .videos-gallery__category-list {
	display: grid;
	gap: 6px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.icango-videos-page .videos-gallery__category-list li {
	margin: 0;
	padding: 0;
}

.icango-videos-page .videos-gallery__category-list a {
	display: block;
	padding: 10px 12px;
	color: #334155;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease;
}

.icango-videos-page .videos-gallery__category-list a:hover,
.icango-videos-page .videos-gallery__category-list a:focus-visible {
	color: #1d4ed8;
	background: #eaf2ff;
}

.icango-videos-page .videos-gallery__grid {
	display: block;
	width: 100%;
}

.icango-videos-page .videos-gallery__grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	max-width: none;
	min-width: 0;
}

.icango-videos-page .videos-gallery__card,
.icango-videos-page .videos-gallery__card > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
}

.icango-videos-page .videos-gallery__card {
	padding: 18px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.icango-videos-page .videos-gallery__thumbnail {
	width: 100%;
	margin: 0 0 20px;
	aspect-ratio: 16 / 10;
	background: #e8eef6;
	border-radius: 10px;
	overflow: hidden;
}

.icango-videos-page .videos-gallery__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.icango-videos-page .videos-gallery__card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

.icango-videos-page .videos-gallery__card p {
	margin: 10px 0 0;
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
}

.icango-videos-page .videos-gallery__card .wp-block-buttons {
	margin-top: auto;
	padding-top: 20px;
}

.icango-videos-page .videos-gallery__play .wp-block-button__link {
	min-height: 44px;
	padding: 11px 20px;
	color: #ffffff;
	background: #2563eb;
	border-radius: 10px;
	font-weight: 700;
	line-height: 1.4;
	transition: background-color 160ms ease, transform 160ms ease;
}

.icango-videos-page .videos-gallery__play .wp-block-button__link:hover,
.icango-videos-page .videos-gallery__play .wp-block-button__link:focus-visible {
	color: #ffffff;
	background: #1d4ed8;
	transform: translateY(-1px);
}

.icango-videos-page .videos-library__link a:focus-visible,
.icango-videos-page .videos-gallery__category-list a:focus-visible,
.icango-videos-page .videos-gallery__play .wp-block-button__link:focus-visible,
.icango-videos-page .videos-cta__button .wp-block-button__link:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 3px;
}

.icango-videos-page .videos-cta {
	display: flex;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	margin-top: 72px;
	padding: 38px 42px;
	color: #ffffff;
	background: #101820;
	border-radius: 16px;
}

.icango-videos-page .videos-cta > .wp-block-group__inner-container {
	display: flex;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
}

.icango-videos-page .videos-cta__title {
	margin: 0;
	color: #ffffff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

.icango-videos-page .videos-cta__actions {
	margin: 0;
}

.icango-videos-page .videos-cta__button .wp-block-button__link {
	min-height: 44px;
	padding: 12px 22px;
	color: #ffffff;
	background: #2563eb;
	border-radius: 10px;
	font-weight: 700;
	line-height: 1.4;
	transition: background-color 160ms ease, transform 160ms ease;
}

.icango-videos-page .videos-cta__button .wp-block-button__link:hover,
.icango-videos-page .videos-cta__button .wp-block-button__link:focus-visible {
	color: #ffffff;
	background: #1d4ed8;
	transform: translateY(-1px);
}

@media (max-width: 1024px) {
	main.icango-videos-page {
		width: calc(100% - 40px);
		padding-block: 40px 64px;
	}

	.icango-videos-page .icango-video-gallery-player {
		margin-top: 60px;
	}

	.icango-videos-page .videos-hero {
		padding: 44px;
	}

	.icango-videos-page .videos-hero__layout {
		gap: 36px;
	}

	.icango-videos-page .videos-hero__title {
		font-size: 42px;
	}

	.icango-videos-page .videos-library__grid > .wp-block-group__inner-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.icango-videos-page .videos-gallery__layout.wp-block-columns {
		grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr);
		gap: 24px;
	}

	.icango-videos-page .videos-gallery__grid > .wp-block-group__inner-container {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	main.icango-videos-page {
		width: calc(100% - 32px);
		padding-block: 24px 48px;
	}

	.icango-videos-page .icango-video-gallery-player {
		margin-top: 48px;
	}

	.icango-videos-page .videos-hero {
		padding: 30px 22px;
		border-radius: 14px;
	}

	.icango-videos-page .videos-hero__layout,
	.icango-videos-page .videos-gallery__layout.wp-block-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.icango-videos-page .videos-hero__layout {
		gap: 28px;
	}

	.icango-videos-page .videos-hero__title {
		font-size: 36px;
	}

	.icango-videos-page .videos-hero__description {
		font-size: 16px;
	}

	.icango-videos-page .videos-hero__media {
		min-height: 220px;
	}

	.icango-videos-page .videos-library,
	.icango-videos-page .videos-gallery {
		padding-top: 52px;
	}

	.icango-videos-page .videos-library__title,
	.icango-videos-page .videos-gallery__title {
		font-size: 29px;
	}

	.icango-videos-page .videos-library__grid > .wp-block-group__inner-container,
	.icango-videos-page .videos-gallery__grid > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.icango-videos-page .videos-library__card {
		min-height: 0;
		padding: 24px;
	}

	.icango-videos-page .videos-gallery__layout.wp-block-columns {
		gap: 20px;
	}

	.icango-videos-page .videos-gallery__navigation {
		padding: 22px;
	}

	.icango-videos-page .videos-gallery__category-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.icango-videos-page .videos-gallery__category-list a {
		height: 100%;
	}

	.icango-videos-page .videos-cta,
	.icango-videos-page .videos-cta > .wp-block-group__inner-container {
		flex-direction: column;
		align-items: flex-start;
	}

	.icango-videos-page .videos-cta {
		margin-top: 52px;
		padding: 30px 24px;
	}

	.icango-videos-page .videos-cta__title {
		font-size: 26px;
	}
}

@media (max-width: 430px) {
	.icango-videos-page .videos-gallery__category-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.icango-videos-page .videos-gallery__play,
	.icango-videos-page .videos-gallery__play .wp-block-button__link,
	.icango-videos-page .videos-cta__actions,
	.icango-videos-page .videos-cta__button,
	.icango-videos-page .videos-cta__button .wp-block-button__link {
		width: 100%;
	}

	.icango-videos-page .videos-gallery__play .wp-block-button__link,
	.icango-videos-page .videos-cta__button .wp-block-button__link {
		text-align: center;
	}
}
