/* =============================================
   SINGLE MAHAKARYA
   ============================================= */

.maha-page {
	background: var(--sba-white);
}

/* Hero */
.maha-hero {
	position: relative;
}

.maha-hero__media {
	position: relative;
	height: 450px;
	overflow: hidden;
}

.maha-hero__bg {
	width: 100%;
	height: 100%;
	background-color: var(--sba-andalas-blue);
	background-size: cover;
	background-position: center;
}

.maha-hero__panel {
	position: relative;
	margin-top: -100px;
	z-index: 2;
}

.maha-hero__panel-inner {
	max-width: var(--sba-site-max);
	margin: 0 auto;
	padding: 0 var(--sba-site-gutter);
}

.maha-hero__box {
	max-width: 560px;
	background: var(--sba-andalas-blue);
	border-radius: 0 0 150px 0;
	padding: 48px 52px 52px;
	box-shadow: 0 16px 40px rgba(33, 106, 149, 0.22);
}

.maha-hero__title {
	margin: 0;
	font-family: 'SIG Headline', sans-serif;
	font-weight: 700;
	font-size: 44px;
	line-height: 1.15;
	color: var(--sba-white);
}

.maha-hero__title::after {
	content: '';
	display: block;
	width: 72px;
	height: 4px;
	margin-top: 18px;
	background: var(--sba-sbi-green);
	border-radius: 2px;
}

.maha-hero__intro {
	margin: 20px 0 0;
	font-family: 'SIG Text', sans-serif;
	font-size: 16px;
	line-height: 28px;
	color: rgba(255, 255, 255, 0.92);
}

.maha-hero__intro + .maha-hero__intro {
	margin-top: 16px;
}

/* Tentang */
.maha-about {
	padding: 88px 0 96px;
	overflow: visible;
}

.maha-about__inner {
	max-width: var(--sba-site-max);
	margin: 0 auto;
	padding: 0 var(--sba-site-gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

.maha-about__eyebrow {
	margin: 0 0 12px;
	font-family: 'SIG Text', sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 34px;
	letter-spacing: 0;
	color: var(--sba-sbi-green);
}

.maha-about__title {
	margin: 0 0 32px;
	font-family: 'SIG Headline', sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 50px;
	letter-spacing: 0;
	color: var(--sba-sig-navy);
}

.maha-about__text p {
	margin: 0 0 20px;
	font-family: 'SIG Text', sans-serif;
	font-size: 16px;
	line-height: 28px;
	color: var(--sba-dark-grey);
}

.maha-about__text p:last-child {
	margin-bottom: 0;
}

.maha-about__visual {
	padding-right: 28px;
	overflow: visible;
}

.maha-visual {
	position: relative;
	width: 489px;
	max-width: 100%;
	margin-left: auto;
	margin-bottom: 0; /* was 110px when image callout was shown */
}

.maha-visual__photo {
	position: relative;
	width: 489px;
	max-width: 100%;
	height: 489px;
	overflow: hidden;
}

.maha-visual__photo img {
	width: 489px;
	height: 489px;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.maha-visual__callout {
	position: absolute;
	right: -20px;
	bottom: -90px;
	left: auto;
	width: calc(100% - 32px);
	min-height: 230px;
	background: var(--sba-andalas-blue);
	border-radius: 0 0 120px 0;
	overflow: hidden;
}

.maha-visual__callout-watermark {
	position: absolute;
	inset: 0;
	background-color: transparent;
	background-image: url('../images/White.png');
	background-repeat: repeat;
	background-size: var(--sba-white-pattern-md);
	background-position: left bottom;
	mix-blend-mode: screen;
	opacity: var(--sba-white-pattern-opacity);
	pointer-events: none;
}

.maha-visual__callout-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	height: 100%;
	padding: 32px 40px 36px 32px;
}

.maha-visual__callout-title {
	position: relative;
	margin: 0;
	max-width: 340px;
	font-family: 'SIG Headline', sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.35;
	color: var(--sba-white);
}

.maha-visual__callout-title::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	margin-top: 16px;
	background: var(--sba-sbi-green);
	border-radius: 2px;
}

.maha-visual__callout-text {
	margin: 0;
	max-width: 340px;
	font-family: 'SIG Text', sans-serif;
	font-size: 14px;
	line-height: 24px;
	color: rgba(255, 255, 255, 0.92);
}

/* Dokumentasi */
.maha-docs {
	--maha-docs-gutter: max(var(--sba-site-gutter), calc((100vw - var(--sba-site-max)) / 2 + var(--sba-site-gutter)));
	--maha-docs-slide: 489px;
	--maha-docs-gap: 16px;
	position: relative;
	padding: 88px 0 80px;
	background: var(--sba-andalas-blue);
	overflow: hidden;
}

.maha-docs__pattern {
	position: absolute;
	inset: 0;
	background-color: transparent;
	background-image: url('../images/White.png');
	background-repeat: repeat;
	background-size: var(--sba-white-pattern-lg);
	background-position: center;
	mix-blend-mode: screen;
	opacity: var(--sba-white-pattern-opacity);
	pointer-events: none;
}

.maha-docs__inner {
	position: relative;
	z-index: 1;
	max-width: var(--sba-site-max);
	margin: 0 auto;
	padding: 0 var(--sba-site-gutter);
}

.maha-docs__inner--head {
	margin-bottom: 48px;
}

.maha-docs__title {
	margin: 0;
	font-family: 'SIG Headline', sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.2;
	color: var(--sba-white);
	text-align: center;
}

.maha-docs__slider {
	position: relative;
	z-index: 1;
}

.maha-docs__viewport {
	overflow: hidden;
	width: 100%;
	margin-bottom: 36px;
}

.maha-docs__track {
	display: flex;
	gap: var(--maha-docs-gap);
	padding-left: var(--maha-docs-gutter);
	padding-right: var(--maha-docs-gutter);
	transition: transform 0.35s ease;
	will-change: transform;
}

.maha-docs__slide {
	flex: 0 0 var(--maha-docs-slide);
	width: var(--maha-docs-slide);
	margin: 0;
	border-radius: 0;
	overflow: hidden;
}

.maha-docs__slide img {
	width: var(--maha-docs-slide);
	height: 380px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.maha-docs__inner--foot {
	padding-left: calc(32px + 20px);
}

.maha-docs__footer {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 32px;
}

.maha-docs__nav {
	display: flex;
	gap: 0;
	flex-shrink: 0;
}

.maha-docs__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: var(--sba-transition);
}

.maha-docs__btn--prev {
	background: var(--sba-btn-fill, #F1F1F1);
	color: var(--sba-sig-navy);
}

.maha-docs__btn--next {
	background: var(--sba-white);
	color: var(--sba-sig-navy);
}

.maha-docs__btn:hover {
	opacity: 0.88;
}

.maha-docs__btn:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Mahakarya lainnya */
.maha-related {
	--maha-related-image-w: 393px;
	--maha-related-body-w: 315px;
	--maha-related-intro-h: 210px;
	--maha-related-body-h: 320px;
	--maha-related-overlap: 56px;
	padding: 88px 0 100px;
	background: var(--sba-white);
}

.maha-related__inner {
	max-width: var(--sba-site-max);
	margin: 0 auto;
	padding: 0 var(--sba-site-gutter);
}

.maha-related__grid {
	display: grid;
	grid-template-columns: var(--maha-related-image-w) repeat(2, var(--maha-related-image-w));
	gap: 24px;
	align-items: start;
	justify-content: start;
}

.maha-related-intro {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: var(--maha-related-image-w);
	height: var(--maha-related-intro-h);
	padding: 28px 26px 24px;
	background: var(--sba-sbi-green);
	border-radius: 0 0 90px 0;
}

.maha-related-intro__title {
	margin: 0;
	font-family: 'SIG Headline', sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.25;
	color: var(--sba-sig-navy);
}

.maha-related-intro__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'SIG Text', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: var(--sba-white);
	text-decoration: none;
}

.maha-related-intro__link:hover {
	color: var(--sba-sig-navy);
}

.maha-related-card {
	position: relative;
	box-sizing: border-box;
	width: var(--maha-related-image-w);
	max-width: 100%;
	padding-bottom: 8px;
}

.maha-related-card__image {
	width: 100%;
	height: var(--maha-related-image-w);
	overflow: hidden;
	background: var(--sba-light-grey);
}

.maha-related-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.maha-related-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: var(--maha-related-body-w);
	max-width: 100%;
	height: var(--maha-related-body-h);
	margin: calc(var(--maha-related-overlap) * -1) 0 0;
	padding: 24px 28px 28px;
	background: var(--sba-white);
	box-shadow: 0 8px 28px rgba(40, 76, 101, 0.12);
}

.maha-related-card__head {
	flex-shrink: 0;
}

.maha-related-card__title {
	margin: 0 0 12px;
	min-height: calc(34px * 2);
	font-family: 'SIG Text', sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 34px;
	letter-spacing: 0;
	color: var(--sba-sig-navy);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.maha-related-card__line {
	display: block;
	width: 48px;
	height: 3px;
	margin: 0;
	background: var(--sba-sbi-green);
	border-radius: 0;
}

.maha-related-card__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 0;
	padding-top: 12px;
}

.maha-related-card__text {
	margin: 0;
	flex: 0 1 auto;
	min-height: 0;
	font-family: 'SIG Text', sans-serif;
	font-size: 14px;
	line-height: 22px;
	color: var(--sba-muted);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.maha-related-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	flex-shrink: 0;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid var(--sba-btn-fill, #F1F1F1);
	background: transparent;
	font-family: 'SIG Text', sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 18px;
	color: var(--sba-sig-navy);
	text-decoration: none;
	transition: var(--sba-transition);
	box-sizing: border-box;
}

.maha-related-card__btn:hover {
	background: var(--sba-btn-fill, #F1F1F1);
	color: var(--sba-sig-navy);
}

.maha-related-card__btn img {
	filter: none;
}

.maha-related-card__btn:hover img {
	filter: none;
}

@media (max-width: 1024px) {
	.maha-about__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.maha-about__visual {
		padding-right: 24px;
	}

	.maha-visual {
		width: 100%;
		margin: 0 auto;
	}

	.maha-visual__photo {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.maha-visual__photo img {
		width: 100%;
		height: 100%;
		min-height: 0;
	}

	.maha-visual__callout {
		right: -20px;
		left: auto;
		bottom: -72px;
		width: calc(100% - 24px);
		border-radius: 0 0 110px 0;
	}

	.maha-related__grid {
		grid-template-columns: 1fr;
		max-width: var(--maha-related-image-w);
		margin: 0 auto;
	}

	.maha-related-intro {
		width: 100%;
		height: var(--maha-related-intro-h);
	}

	.maha-related-card {
		max-width: 100%;
	}

	.maha-docs {
		--maha-docs-slide: min(489px, 78vw);
	}

	.maha-docs__inner--foot {
		padding-left: calc(24px + 20px);
	}
}

@media (max-width: 768px) {
	.maha-hero__media {
		height: 380px;
	}

	.maha-hero__panel {
		margin-top: -80px;
	}

	.maha-hero__box {
		padding: 36px 32px 40px;
		border-radius: 0 0 80px 0;
	}

	.maha-hero__title {
		font-size: 36px;
	}

	.maha-about {
		padding: 64px 0 72px;
	}

	.maha-about__title {
		font-size: 32px;
		line-height: 42px;
	}

	.maha-about__eyebrow {
		font-size: 20px;
		line-height: 28px;
	}

	.maha-about__visual {
		padding-right: 16px;
	}

	.maha-visual {
		margin-bottom: 0;
	}

	.maha-visual__callout {
		right: -12px;
		left: auto;
		bottom: -60px;
		width: calc(100% - 16px);
		border-radius: 0 0 90px 0;
	}

	.maha-visual__callout-title {
		font-size: 20px;
	}

	.maha-docs {
		--maha-docs-slide: min(489px, 86vw);
		--maha-docs-gutter: 20px;
		padding: 64px 0 56px;
	}

	.maha-docs__title {
		font-size: 28px;
	}

	.maha-docs__inner--head {
		margin-bottom: 32px;
	}

	.maha-docs__slide img {
		height: 300px;
	}

	.maha-docs__inner--foot {
		padding-left: calc(20px + 20px);
	}

	.maha-docs__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.maha-related-intro {
		height: var(--maha-related-intro-h);
		border-radius: 0 0 80px 0;
	}
}

@media (max-width: 640px) {
	.maha-hero__panel-inner,
	.maha-about__inner,
	.maha-docs__inner,
	.maha-related__inner {
		padding-left: 16px;
		padding-right: 16px;
	}
}
