/* Media Centre Videos — Figma video card (8255:1084) */

.video-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.video-card .blog-post-card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.video-card .blog-post-card-title {
	margin: 0;
}

.video-card .blog-post-card-excerpt {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 28px;
	color: #0b1638;
	flex: 1;
}

.video-card .blog-author-meta {
	display: none;
}

.video-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 400 / 225;
	background: transparent;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
}

.video-card__media-link {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.video-card__thumb {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	/* Crop YouTube thumbnail's 1–2px baked-in black edge */
	transform: translate(-50%, -50%) scale(1.04);
}

/* Featured wrapper sets img { width:100%; height:auto } — keep play control at card size */
.blog-featured-videos .video-card__play-circle,
.blog-featured-videos .video-card__play-icon {
	max-width: none;
}

.blog-featured-videos .video-card__play-circle {
	width: 100%;
	height: 100%;
}

.blog-featured-videos .video-card__play-icon {
	width: 22px;
	height: 26px;
}

.video-card__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 78px;
	height: 78px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.video-card__play-circle {
	display: block;
	width: 100%;
	height: 100%;
}

.video-card__play-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 26px;
	transform: translate(-40%, -50%) rotate(90deg);
}

.video-card__progress {
	position: absolute;
	left: 3.13%;
	right: 3.13%;
	bottom: 6.11%;
	height: 4px;
	pointer-events: none;
}

.video-card__progress-track {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 2px;
	background: #d9d9d9;
}

.video-card__progress-fill {
	position: absolute;
	left: 0;
	top: 0;
	width: 25%;
	height: 100%;
	border-radius: 2px;
	background: #ee2a72;
}

/* Match news author-meta spacing (parent gap handles title → runtime → excerpt) */
.video-card__runtime {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.video-card__runtime-icon {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	opacity: 0.7;
}

.video-card__runtime-text {
	font-family: 'Onest', sans-serif;
	font-size: 13px;
	font-weight: 300;
	line-height: 13px;
	color: #0b1638;
	opacity: 0.7;
}

.blog-featured-content .video-card__runtime {
	margin: 0;
}

.video-card .blog-read-more,
.video-card__watch:not(.blog-featured-read-more) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	font-family: Onest, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 17px;
	color: #00c3ff;
	text-decoration: none;
}

.video-card .blog-read-more:hover,
.video-card__watch:not(.blog-featured-read-more):hover {
	color: #00c3ff;
}

.blog-featured-read-more.video-card__watch {
	color: #ffffff;
	gap: 10px;
}

.blog-featured-read-more.video-card__watch:hover {
	color: #ffffff;
	background-color: #00a8d9;
}

.video-card .blog-read-more-arrow,
.video-card__watch-arrow {
	display: block;
	width: 18px;
	height: 10px;
}

.blog-featured-read-more.video-card__watch .video-card__watch-arrow {
	filter: brightness(0) invert(1);
}

/* Featured / sidebar reuse */
.blog-featured-videos .blog-featured-image-wrapper,
.video-sidebar-card__image {
	position: relative;
}

.blog-featured-videos .video-card__media {
	border-radius: 12px;
	aspect-ratio: 16 / 9;
}

.video-play-badge {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(11, 22, 56, 0.72);
	pointer-events: none;
}

.video-play-badge::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #00c3ff;
}

.blog-archive-videos .blog-posts-grid {
	align-items: stretch;
}

.video-single__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: none;
	line-height: 0;
}

.video-single__player iframe,
.video-single__player .opus-video-player {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	max-width: none;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 0;
	display: block;
	transform: translate(-50%, -50%);
	background: #ffffff;
}

.video-single__header {
	gap: 10px;
	margin-bottom: 40px;
}

.video-single__header .video-card__runtime {
	margin: 0;
}

.video-single__header .video-card__runtime-text {
	color: #233469;
	opacity: 1;
}

.video-single__main {
	gap: 40px;
}

.video-single__content {
	margin: 0;
}

.video-single__content + .video-cta--card {
	margin-top: 60px; /* 40px column gap + 60px = 100px from description */
}

.video-single__content,
.video-single__content p {
	font-family: 'Onest', sans-serif;
	font-weight: 300;
	font-size: 17px;
	line-height: 30px;
	color: #0b1638;
}

.video-single__sidebar .blog-sidebar-title {
	margin-bottom: 0;
}

.video-single__sidebar .video-sidebar-card--featured {
	gap: 20px;
}

.video-single__sidebar .video-sidebar-card--featured .blog-sidebar-post-image {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	margin-bottom: 0;
	background: transparent;
	overflow: hidden;
	border-radius: 12px;
	line-height: 0;
}

.video-single__sidebar .video-sidebar-card--featured .blog-sidebar-post-image > a {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.video-single__sidebar .video-sidebar-card--featured .blog-sidebar-post-image img {
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	/* Crop YouTube mqdefault's 1–2px baked-in black edge */
	transform: translate(-50%, -50%) scale(1.06);
}

.video-single__sidebar .video-sidebar-watch {
	color: #00c3ff;
	font-weight: 600;
	font-size: 17px;
	line-height: 17px;
}

.video-single__sidebar .video-sidebar-watch:hover {
	color: #00c3ff;
}

/* Figma single CTA — white card in main column */
.video-cta--card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	padding: 32px;
	margin: 0 0 100px;
}

.video-cta--card .video-cta__inner {
	max-width: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	width: 100%;
}

.video-cta--card .video-cta__copy {
	flex: 1 1 auto;
	max-width: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.video-cta--card .video-cta__dots {
	margin: 0;
	width: 64px;
	height: 12px;
}

.video-cta--card .video-cta__title {
	margin: 0;
	font-family: 'Onest', sans-serif;
	font-size: 28px;
	line-height: 36px;
	font-weight: 700;
	color: #0b1638;
}

.video-cta--card .video-cta__content {
	margin: 0;
	max-width: 439px;
	font-family: 'Onest', sans-serif;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #0b1638;
}

.video-cta--card .video-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
	padding: 18px 34px;
	border-radius: 30px;
	background: #fd2171;
	color: #ffffff;
	font-family: 'Onest', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
}

.video-cta--card .video-cta__button:hover {
	background: #fd2171;
	color: #ffffff;
}

.video-cta--card .video-cta__button img {
	display: block;
	width: 18px;
	height: 10px;
}

.video-cta:not(.video-cta--card) {
	background: linear-gradient(90deg, rgba(196, 196, 196, 0.2), #ffffff);
	padding: 72px 0;
}

.video-cta:not(.video-cta--card) .video-cta__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 180px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 64px;
}

.media-centre-section-videos {
	background: #ffffff;
	border-bottom: 1px solid #eaeaea;
}

.media-centre-section-videos .blog-posts-grid {
	align-items: stretch;
}

@media (max-width: 1400px) {
	.video-cta:not(.video-cta--card) .video-cta__inner {
		padding: 0 40px;
	}
}

@media (max-width: 980px) {
	.video-single__content + .video-cta--card {
		margin-top: 0; /* keep 40px gap — same as blog singles */
	}

	.video-cta--card {
		margin-bottom: 40px;
	}

	.video-cta--card .video-cta__inner,
	.video-cta:not(.video-cta--card) .video-cta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
	}

	.video-cta:not(.video-cta--card) .video-cta__inner {
		padding: 0 40px;
	}

	.video-cta--card .video-cta__title {
		font-size: 24px;
		line-height: 32px;
	}
}

@media (max-width: 768px) {
	.video-single__main {
		gap: 30px;
	}

	.video-cta:not(.video-cta--card) {
		padding: 48px 0;
	}

	.video-cta:not(.video-cta--card) .video-cta__inner {
		padding: 0 20px;
	}

	.video-cta--card {
		padding: 24px;
		margin-bottom: 30px;
	}

	.video-card__play {
		width: 64px;
		height: 64px;
	}

	.video-card__play-icon {
		width: 18px;
		height: 22px;
	}

	.video-play-badge {
		width: 52px;
		height: 52px;
		margin: -26px 0 0 -26px;
	}

	.video-play-badge::before {
		border-width: 8px 0 8px 13px;
	}
}

