/**
 * Home "Impact stories" slider styles — Figma node 4290:6817.
 */

.gh-impact {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: var(--gh-accent);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
	padding: 80px 160px;
}

.gh-impact--light {
	background: #faf1fe;
}

.gh-impact__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	max-width: 1120px;
	width: 100%;
}

.gh-impact__title {
	margin: 0;
	font-family: 'schibsted_grotesk_demi', Arial, sans-serif;
	font-weight: normal;
	font-size: 32px;
	line-height: 40px;
	color: var(--gh-text-primary);
}

.gh-impact__subtitle {
	margin: 0;
	font-family: 'avenir_next_worldmedium', 'Verdana';
	font-weight: normal;
	font-size: 16px;
	line-height: 28px;
	color: var(--gh-text-secondary);
}

/* ---- Slider ---- */

.gh-impact__slider {
	position: relative;
	max-width: 1120px;
	width: 100%;
}

.gh-impact__track {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
}

.gh-impact__card {
	margin: 0;
	width: 100%;
	background: var(--gh-white);
	border-radius: 24px;
	padding: 48px 64px;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 74px;
}

.gh-impact__card--active {
	display: flex;
}

/* ---- Arrow buttons ---- */

.gh-impact__arrow {
	position: absolute;
	top: 52%;
	transform: translateY(-50%);
	z-index: 2;
	width: 80px;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	color: var(--gh-text-primary);
	transition: opacity 0.2s;
}

.gh-impact__arrow--prev {
	left: -40px;
}

.gh-impact__arrow--next {
	right: -40px;
}

.gh-impact__arrow:hover {
	opacity: 0.7;
}

/* ---- Card content ---- */

.gh-impact__body {
	width: 640px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.gh-impact__quote {
	margin: 0;
	font-family: 'schibsted_grotesk_medium', Arial, sans-serif;
	font-weight: normal;
	font-size: 16px;
	line-height: 32px;
	color: var(--gh-text-primary);
}

.gh-impact__quote strong {
	font-family: 'schibsted_grotesk_demi', Arial, sans-serif;
	font-weight: normal;
}

.gh-impact__cite {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gh-impact__name {
	font-family: 'avenir_next_worldbold', 'Verdana';
	font-weight: normal;
	font-size: 20px;
	line-height: 28px;
	color: var(--gh-text-primary);
}

.gh-impact__role {
	font-family: 'avenir_next_worldmedium', 'Verdana';
	font-weight: normal;
	font-size: 14px;
	line-height: 24px;
	color: var(--gh-text-secondary);
}

/* ---- Portrait + play button ---- */

.gh-impact__portrait {
	position: relative;
	flex-shrink: 0;
	width: 384px;
	height: 288px;
	border-radius: 12px;
	overflow: hidden;
	background: #e6e6e6;
}

.gh-impact__portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gh-impact__play {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 48px;
	height: 48px;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	transition: transform 0.2s;
}

.gh-impact__play:hover {
	transform: scale(1.1);
}

/* ---- Video popup modal ---- */

.gh-impact-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gh-impact-popup[aria-hidden="true"] {
	display: none;
}

.gh-impact-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

.gh-impact-popup__dialog {
	position: relative;
	width: 90vw;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: visible;
}

.gh-impact-popup__body {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	overflow: hidden;
}

.gh-impact-popup__close {
	position: absolute;
	top: -20px;
	right: -20px;
	z-index: 2;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: var(--gh-white, #fff);
	color: var(--gh-text-primary, #1a1a1a);
	cursor: pointer;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.2s ease;
}

.gh-impact-popup__close:hover {
	background: #f0f0f0;
}

.gh-impact-popup__body iframe {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	border: none;
}

/* ---- Responsive ---- */

@media (min-width: 1024px) and (max-width: 1439px) {
	.gh-impact {
		padding: 64px 40px;
	}
}

@media (max-width: 1023px) {
	.gh-impact {
		padding: 56px 24px;
	}
	.gh-impact__slider {
		gap: 16px;
	}
	.gh-impact__card {
		padding: 40px 32px;
	}
	.gh-impact__body {
		width: 100%;
	}
}

@media (max-width: 991px) {
	.gh-impact__portrait{
		width: 300px;
	}
	.gh-impact {
		gap: 32px;
		padding: 48px 30px;
	}
	.gh-impact__quote {
		font-size: 16px;
		line-height: 32px;
	}
	.gh-impact__slider {
		gap: 12px;
	}
	.gh-impact__card{
		gap: 30px;
	}
}

@media (max-width: 767px) {
	.gh-impact__title{
		font-size: 32px;
		line-height: 40px;
	}
	.gh-impact__card {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
		border-radius: 16px;
		gap: 32px;
	}
	.gh-impact__name{
		font-size: 18px;
    	line-height: 24px;
	}
	.gh-impact__cite{
		gap: 0;
	}
	.gh-impact__head {
		align-items: flex-start;
		text-align: left;
	}
	.gh-impact__portrait {
		width: 100%;
		height: auto;
		aspect-ratio: 384 / 288;
	}
	.gh-impact__arrow {
		width: 62px;
	}
	.gh-impact__arrow--prev {
		left: -30px;
	}
	.gh-impact__arrow--next {
		right: -30px;
	}
	.gh-impact__arrow img {
		width: 100%;
		height: 100%;
	}
	.gh-impact-popup__close {
		width: 30px;
		height: 30px;
		top: -30px;
		right: 0;
	}
}

@media (min-width: 1025px) {
	.gh-impact__title {
		font-size: 40px;
		line-height: 48px;
	}
}
