/* =========================================================
   MODERN ARTIKEL
   Website Ditjen Kesehatan Lanjutan
   Minimal - Modern - Elegant - Informative
========================================================= */

:root {
	--artikel-primary: #2cbfa4;
	--artikel-primary-dark: #159b84;
	--artikel-dark: #172522;
	--artikel-text: #384742;
	--artikel-muted: #7b8985;
	--artikel-light: #f5f9f8;
	--artikel-border: #e8efed;
	--artikel-white: #ffffff;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.artikel-breadcrumb {
	padding: 7px 0;
	background: #ffffff;
	border-bottom: 1px solid #edf2f0;
}

.artikel-breadcrumb-list {
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: 13px;
}

.artikel-breadcrumb-list .breadcrumb-item {
	color: #899590;
}

.artikel-breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
	color: #b8c4c0;
	content: "/";
	padding: 0 9px;
}

.artikel-breadcrumb-list a {
	color: #687671;
	text-decoration: none;
	transition: color 0.25s ease;
}

.artikel-breadcrumb-list a:hover {
	color: var(--artikel-primary);
}

.artikel-breadcrumb-list i {
	margin-right: 5px;
}

.artikel-breadcrumb-list .active {
	color: var(--artikel-primary);
}

/* =========================================================
   HERO
========================================================= */

.artikel-hero {
	position: relative;
	min-height: 500px;
	overflow: hidden;
	display: flex;
	align-items: center;
	background: #15231f;
}

.artikel-hero-bg {
	position: absolute;
	inset: -5%;
	background-image: url("../img/bg-img/bg-artikel.png");
	background-size: cover;
	background-position: center;
	transform: scale(1.08);
	will-change: transform;
}

.artikel-hero-overlay {
	position: absolute;
	inset: 0;

	background: linear-gradient(
		90deg,
		rgba(10, 29, 25, 0.92) 0%,
		rgba(10, 29, 25, 0.72) 42%,
		rgba(10, 29, 25, 0.25) 100%
	);
}

.artikel-hero-content {
	position: relative;
	z-index: 2;
}

.artikel-hero-inner {
	max-width: 720px;
	padding: 90px 0;
}

.artikel-hero-label {
	display: inline-flex;
	align-items: center;
	gap: 12px;

	color: rgba(255, 255, 255, 0.85);

	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;

	margin-bottom: 20px;
}

.artikel-hero-line {
	width: 38px;
	height: 2px;
	background: var(--artikel-primary);
}

.artikel-hero h1 {
	margin: 0 0 20px;

	color: #ffffff;

	font-size: clamp(46px, 7vw, 82px);
	line-height: 0.95;
	font-weight: 700;
	letter-spacing: -2px;
}

.artikel-hero p {
	max-width: 620px;

	margin: 0;

	color: rgba(255, 255, 255, 0.78);

	font-size: 17px;
	line-height: 1.8;
}

.artikel-hero-scroll {
	position: absolute;
	z-index: 3;

	bottom: 30px;
	left: 50%;

	transform: translateX(-50%);

	display: flex;
	flex-direction: column;
	align-items: center;

	gap: 8px;

	color: rgba(255, 255, 255, 0.65);

	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.artikel-hero-scroll i {
	font-size: 18px;
	animation: artikelScroll 1.8s infinite ease-in-out;
}

@keyframes artikelScroll {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(6px);
	}
}

/* =========================================================
   SECTION
========================================================= */

.artikel-section {
	position: relative;

	padding: 100px 0 110px;

	background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.artikel-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;

	gap: 50px;

	margin-bottom: 70px;
}

.artikel-section-heading {
	max-width: 600px;
}

.artikel-section-label {
	display: inline-block;

	margin-bottom: 12px;

	color: var(--artikel-primary);

	font-size: 12px;
	font-weight: 700;

	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.artikel-section-heading h2 {
	margin: 0;

	color: var(--artikel-dark);

	font-size: clamp(32px, 4vw, 48px);

	font-weight: 700;

	line-height: 1.15;

	letter-spacing: -1px;
}

.artikel-heading-line {
	width: 55px;
	height: 3px;

	margin-top: 20px;

	background: var(--artikel-primary);

	border-radius: 20px;
}

.artikel-section-description {
	max-width: 400px;
}

.artikel-section-description p {
	margin: 0;

	color: var(--artikel-muted);

	font-size: 14px;
	line-height: 1.8;
}

/* =========================================================
   ARTICLE LIST
========================================================= */

.artikel-list {
	display: flex;
	flex-direction: column;

	gap: 75px;
}

/* =========================================================
   ARTICLE ITEM
========================================================= */

.artikel-item {
	position: relative;

	display: grid;

	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);

	gap: 70px;

	align-items: center;
}

/* Alternating */

.artikel-item-reverse {
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.artikel-item-reverse .artikel-image-wrapper {
	order: 2;
}

.artikel-item-reverse .artikel-content {
	order: 1;
}

/* =========================================================
   ARTICLE SCROLL PARALLAX
   Artikel muncul dari sisi layar ketika masuk viewport
========================================================= */

/* ---------------------------------------------------------
   Kondisi awal
   Artikel kiri keluar ke sisi kiri
--------------------------------------------------------- */

.artikel-item.artikel-parallax-left {
	opacity: 0;

	transform: translate3d(-120px, 0, 0);

	transition:
		opacity 0.9s ease,
		transform 1s cubic-bezier(0.22, 1, 0.36, 1);

	will-change: transform, opacity;
}

/* ---------------------------------------------------------
   Kondisi awal
   Artikel kanan keluar ke sisi kanan
--------------------------------------------------------- */

.artikel-item.artikel-parallax-right {
	opacity: 0;

	transform: translate3d(120px, 0, 0);

	transition:
		opacity 0.9s ease,
		transform 1s cubic-bezier(0.22, 1, 0.36, 1);

	will-change: transform, opacity;
}

/* ---------------------------------------------------------
   Artikel ketika masuk viewport
--------------------------------------------------------- */

.artikel-item.artikel-parallax-left.artikel-parallax-visible,
.artikel-item.artikel-parallax-right.artikel-parallax-visible {
	opacity: 1;

	transform: translate3d(0, 0, 0);
}

/* ---------------------------------------------------------
   Sedikit delay untuk artikel berikutnya
   Membuat gerakan terasa lebih natural
--------------------------------------------------------- */

.artikel-list .artikel-item:nth-child(2) {
	transition-delay: 0.08s;
}

.artikel-list .artikel-item:nth-child(3) {
	transition-delay: 0.16s;
}

.artikel-list .artikel-item:nth-child(4) {
	transition-delay: 0.24s;
}

.artikel-list .artikel-item:nth-child(5) {
	transition-delay: 0.32s;
}

.artikel-list .artikel-item:nth-child(6) {
	transition-delay: 0.4s;
}

.artikel-list .artikel-item:nth-child(7) {
	transition-delay: 0.48s;
}

.artikel-list .artikel-item:nth-child(8) {
	transition-delay: 0.56s;
}

/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
	.artikel-item.artikel-parallax-left,
	.artikel-item.artikel-parallax-right {
		opacity: 1;

		transform: none;

		transition: none;

		will-change: auto;
	}
}

/* =========================================================
   IMAGE
========================================================= */

.artikel-image-wrapper {
	position: relative;
	overflow: visible;
	padding-bottom: 38px;
}

/* Frame putih seperti card artikel pada halaman Beranda */

.artikel-image-link {
	position: relative;
	display: block;

	overflow: hidden;

	/* Membentuk frame putih */
	padding: 10px;

	aspect-ratio: 16 / 10;
	box-sizing: border-box;

	background: #ffffff;
	border: 1px solid rgba(232, 239, 237, 0.85);
	border-radius: 28px;

	box-shadow: 0 18px 45px rgba(27, 55, 49, 0.12);

	text-decoration: none;

	transition:
		transform 0.4s ease,
		box-shadow 0.4s ease;
}

/* Foto berada di dalam frame putih */

.artikel-image {
	width: 100%;
	height: 100%;

	display: block;

	object-fit: cover;

	border-radius: 20px;

	transition:
		transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1),
		filter 0.5s ease;
}

/* Overlay hanya berada pada area foto */

.artikel-image-overlay {
	position: absolute;

	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;

	display: flex;

	align-items: center;
	justify-content: center;

	border-radius: 20px;

	background: linear-gradient(
		135deg,
		rgba(44, 191, 164, 0.1),
		rgba(13, 38, 32, 0.7)
	);

	opacity: 0;

	transition: opacity 0.4s ease;
}

.artikel-read-more {
	display: flex;

	align-items: center;

	gap: 10px;

	padding: 12px 18px;

	color: #ffffff;

	font-size: 12px;
	font-weight: 600;

	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 3px;

	transform: translateY(12px);

	transition:
		transform 0.4s ease,
		background 0.3s ease;
}

.artikel-image-link:hover {
	transform: translateY(-4px);

	box-shadow: 0 25px 55px rgba(27, 55, 49, 0.17);
}

.artikel-image-link:hover .artikel-image {
	transform: scale(1.045);
}

.artikel-image-link:hover .artikel-image-overlay {
	opacity: 1;
}

.artikel-image-link:hover .artikel-read-more {
	transform: translateY(0);
}

.artikel-read-more:hover {
	background: var(--artikel-primary);
	border-color: var(--artikel-primary);
}

/* =========================================================
   ARTICLE CAPTION
   Nama Rumah Sakit + Penulis
========================================================= */

.artikel-caption {
	position: absolute;

	left: 35px;
	right: 35px;
	bottom: 0;

	z-index: 5;

	padding: 17px 24px 16px;

	background: #ffffff;

	border: 1px solid rgba(232, 239, 237, 0.9);
	border-radius: 20px;

	box-shadow: 0 12px 30px rgba(28, 55, 49, 0.12);

	box-sizing: border-box;

	transition:
		transform 0.35s ease,
		box-shadow 0.35s ease;
}

.artikel-caption h4 {
	margin: 0 0 5px;

	color: #15221f;

	font-size: 17px;
	font-weight: 700;

	line-height: 1.35;
	letter-spacing: -0.2px;
}

.artikel-caption p {
	margin: 0;

	color: #899792;

	font-size: 14px;
	font-weight: 400;

	line-height: 1.4;
}

.artikel-image-wrapper:hover .artikel-caption {
	transform: translateY(-4px);

	box-shadow: 0 16px 35px rgba(28, 55, 49, 0.16);
}

/* =========================================================
   ARTICLE CONTENT
========================================================= */

.artikel-content {
	max-width: 580px;
}

.artikel-meta {
	display: flex;

	align-items: center;

	gap: 12px;

	margin-bottom: 18px;

	color: var(--artikel-muted);

	font-size: 11px;

	letter-spacing: 0.7px;

	text-transform: uppercase;
}

.artikel-date i {
	margin-right: 5px;

	color: var(--artikel-primary);
}

.artikel-meta-dot {
	width: 4px;
	height: 4px;

	background: #c8d3cf;

	border-radius: 50%;
}

.artikel-category {
	color: var(--artikel-primary);

	font-weight: 700;
}

/* =========================================================
   TITLE
========================================================= */

.artikel-title {
	margin: 0;

	color: var(--artikel-dark);

	font-size: clamp(25px, 3vw, 36px);

	line-height: 1.25;

	font-weight: 700;

	letter-spacing: -0.5px;
}

.artikel-title a {
	color: inherit;

	text-decoration: none;

	transition: color 0.25s ease;
}

.artikel-title a:hover {
	color: var(--artikel-primary-dark);
}

.artikel-title-line {
	width: 45px;
	height: 2px;

	margin: 22px 0;

	background: var(--artikel-primary);
}

.artikel-excerpt {
	margin: 0 0 28px;

	color: #6e7c77;

	font-size: 14px;

	line-height: 1.9;
}

/* =========================================================
   BUTTON
========================================================= */

.artikel-button {
	display: inline-flex;

	align-items: center;

	gap: 15px;

	color: var(--artikel-dark);

	font-size: 12px;

	font-weight: 700;

	letter-spacing: 0.5px;

	text-decoration: none;

	text-transform: uppercase;

	transition: color 0.25s ease;
}

.artikel-button-icon {
	width: 35px;
	height: 35px;

	display: flex;

	align-items: center;
	justify-content: center;

	color: #ffffff;

	background: var(--artikel-primary);

	border-radius: 50%;

	transition:
		transform 0.3s ease,
		background 0.3s ease;
}

.artikel-button:hover {
	color: var(--artikel-primary);
}

.artikel-button:hover .artikel-button-icon {
	transform: translateX(5px);

	background: var(--artikel-primary-dark);
}

/* =========================================================
   PAGINATION
========================================================= */

.artikel-pagination {
	margin-top: 90px;

	padding-top: 35px;

	border-top: 1px solid var(--artikel-border);
}

.artikel-pagination-inner {
	display: flex;

	justify-content: center;
}

.artikel-pagination .pagination {
	display: flex;

	align-items: center;

	gap: 6px;

	margin: 0;

	padding: 0;

	list-style: none;
}

.artikel-pagination .page-item {
	margin: 0;
}

.artikel-pagination .page-link {
	width: 38px;
	height: 38px;

	display: flex;

	align-items: center;
	justify-content: center;

	padding: 0;

	color: #6f7c77;

	background: #ffffff;

	border: 1px solid var(--artikel-border);

	border-radius: 4px;

	font-size: 12px;

	text-decoration: none;

	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.artikel-pagination .page-link:hover {
	color: #ffffff;

	background: var(--artikel-primary);

	border-color: var(--artikel-primary);

	transform: translateY(-2px);
}

.artikel-pagination .page-item.active .page-link {
	color: #ffffff;

	background: var(--artikel-primary);

	border-color: var(--artikel-primary);
}

.artikel-pagination .page-item.disabled .page-link {
	opacity: 0.4;

	pointer-events: none;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.artikel-empty {
	padding: 100px 20px;

	text-align: center;

	background: #ffffff;

	border: 1px solid var(--artikel-border);

	border-radius: 6px;
}

.artikel-empty-icon {
	width: 75px;
	height: 75px;

	display: flex;

	align-items: center;
	justify-content: center;

	margin: 0 auto 25px;

	color: var(--artikel-primary);

	background: rgba(44, 191, 164, 0.08);

	border-radius: 50%;

	font-size: 27px;
}

.artikel-empty h3 {
	margin: 0 0 10px;

	color: var(--artikel-dark);

	font-size: 22px;
}

.artikel-empty p {
	margin: 0;

	color: var(--artikel-muted);

	font-size: 14px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
	.artikel-hero {
		min-height: 430px;
	}

	.artikel-hero-inner {
		padding: 70px 0;
	}

	.artikel-section {
		padding: 80px 0;
	}

	.artikel-section-header {
		align-items: flex-start;

		flex-direction: column;

		gap: 20px;

		margin-bottom: 55px;
	}

	.artikel-section-description {
		max-width: 600px;
	}

	.artikel-item,
	.artikel-item-reverse {
		grid-template-columns: 1fr;

		gap: 35px;
	}

	.artikel-item-reverse .artikel-image-wrapper,
	.artikel-item-reverse .artikel-content {
		order: initial;
	}

	.artikel-content {
		max-width: 100%;
	}

	.artikel-image-wrapper {
		padding-bottom: 35px;
	}

	.artikel-caption {
		left: 30px;
		right: 30px;
	}
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
	.artikel-breadcrumb {
		padding: 7px 0;
	}

	.artikel-breadcrumb-list {
		font-size: 12px;
	}

	.artikel-hero {
		min-height: 390px;
	}

	.artikel-hero-bg {
		background-position: center;
	}

	.artikel-hero-overlay {
		background: linear-gradient(
			90deg,
			rgba(10, 29, 25, 0.88),
			rgba(10, 29, 25, 0.55)
		);
	}

	.artikel-hero-inner {
		padding: 60px 15px;
	}

	.artikel-hero h1 {
		font-size: 48px;
		letter-spacing: -1px;
	}

	.artikel-hero p {
		font-size: 14px;

		line-height: 1.7;
	}

	.artikel-hero-scroll {
		display: none;
	}

	.artikel-section {
		padding: 65px 0 75px;
	}

	.artikel-section-header {
		margin-bottom: 45px;
	}

	.artikel-section-heading h2 {
		font-size: 31px;
	}

	.artikel-section-description p {
		font-size: 13px;
	}

	.artikel-list {
		gap: 60px;
	}

	.artikel-item,
	.artikel-item-reverse {
		gap: 30px;
	}

	.artikel-image-wrapper {
		padding-bottom: 30px;
	}

	.artikel-image-link {
		padding: 7px;
		border-radius: 22px;
	}

	.artikel-image {
		border-radius: 16px;
	}

	.artikel-image-overlay {
		top: 7px;
		right: 7px;
		bottom: 7px;
		left: 7px;
		border-radius: 16px;
	}

	.artikel-caption {
		left: 20px;
		right: 20px;

		padding: 14px 18px 13px;

		border-radius: 16px;
	}

	.artikel-caption h4 {
		font-size: 14px;
	}

	.artikel-caption p {
		font-size: 12px;
	}

	.artikel-meta {
		font-size: 10px;
	}

	.artikel-title {
		font-size: 25px;
	}

	.artikel-excerpt {
		font-size: 13px;
		line-height: 1.8;
	}

	.artikel-pagination {
		margin-top: 65px;
	}

	.artikel-pagination .page-link {
		width: 34px;
		height: 34px;

		font-size: 11px;
	}
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
	.artikel-hero {
		min-height: 350px;
	}

	.artikel-hero h1 {
		font-size: 42px;
	}

	.artikel-section-heading h2 {
		font-size: 28px;
	}

	.artikel-list {
		gap: 50px;
	}

	.artikel-title {
		font-size: 22px;
	}

	.artikel-title-line {
		margin: 17px 0;
	}

	.artikel-button {
		font-size: 10px;
	}

	.artikel-image-wrapper {
		padding-bottom: 28px;
	}

	.artikel-image-link {
		padding: 6px;
		border-radius: 19px;
	}

	.artikel-image {
		border-radius: 14px;
	}

	.artikel-image-overlay {
		top: 6px;
		right: 6px;
		bottom: 6px;
		left: 6px;
		border-radius: 14px;
	}

	.artikel-caption {
		left: 15px;
		right: 15px;

		padding: 12px 15px;

		border-radius: 14px;
	}

	.artikel-caption h4 {
		font-size: 13px;
	}

	.artikel-caption p {
		font-size: 11px;
	}
}
