.logo {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: clamp(0.5rem, 2vw, 1.8rem);
	/* jarak antar gambar */
	flex-wrap: wrap;
	/* biar kalau layar kecil, logo & banner bisa turun ke bawah */
}

/* Banner */
.logo .banner {
	width: clamp(200px, 40vw, 450px);
	/* width: clamp(200px, 30vw, 500px); */
	height: auto;
	max-height: 65px;
	object-fit: contain;
}

/* Logo */
.logo .brand-logo {
	height: clamp(30px, 8vh, 60px);
	width: auto;
	object-fit: contain;
}

.hero {
	width: 100%;
	/* height: clamp(400px, 70vh, 650px); */
	max-height: 800px;
	height: 600px;
	/* fleksibel */
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* biar gambar slider tetap penuh */
}

.navbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/* align-items: stretch; */
	/* tinggi row = tinggi konten terbesar */
	gap: 2rem;
}

.contact-hero {
	flex-wrap: wrap;
}

.card-grid {
	display: grid;
	/* gap: 15px; */
	/* jarak antar card horizontal & vertikal */
	padding: 20px;
	/* jarak dari tepi container */
	width: 100%;
	max-width: 1200px;
	/* container maksimal */
	margin-inline: auto;
}

.card {
	position: relative;
	width: 100%;
	/* min-width: 240px; */
	/* aspect-ratio: 264 / 390; */
	aspect-ratio: 264 / 430;
	text-align: center;
}

/* Header-card responsif */
.header-card {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);

	width: clamp(150px, 80%, 225px);
	aspect-ratio: 1 / 1;

	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
		0 2px 4px -2px rgb(0 0 0 / 0.1);
	background: linear-gradient(90deg, #fdcb2b 34%, #ffdd69 100%);
	z-index: 10;

	display: flex;
	align-items: center;
	justify-content: center;
}

.berita-lain {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 15px;
	/* jarak antara foto dan konten */
	border-bottom: 1px solid #b3b3b3;
	padding-block: 8px;
}

.berita-value {
	width: 100%;
	/* height: 500px; */
	min-height: 756px;
	display: grid;
	grid-template-columns: 2fr 3fr;
	/* kiri 2 bagian, kanan 3 bagian */
	gap: 33px;
	margin-top: auto;
	background: white;
	border-radius: 30px;
	padding: 33px;
}

.berita-terbaru-card {
	grid-column: 1;
	/* kolom kiri */
}

.berita-lain-container {
	grid-column: 2;
	/* kolom kanan */
	overflow-y: auto;
	/* kanan bisa scroll */
	max-height: 100%;
	/* batasi tinggi biar nggak tembus keluar */
	padding-right: 8px;
	/* ruang untuk scrollbar */
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
}

.berita-lain-container::-webkit-scrollbar {
	width: 6px;
}

.berita-lain-container::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.berita-lain-container::-webkit-scrollbar-track {
	background: transparent;
}

.pendanaan-value {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	max-height: 253px;
	/* batasi tinggi */
	overflow-y: auto;
	/* aktifkan scroll ke bawah */
	scrollbar-width: thin;
	/* Firefox */
	scrollbar-color: #ccc transparent;

	height: 100%;
	max-height: 800px;
}

.pendanaan-value {
	width: 100%;
	/* height: 253px; */
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;

	height: 100%;
	max-height: 800px;
}

.pendanaan-value-card {
	width: 100%;
	/* height: 100%; */
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	/* overflow: hidden; */
	border-radius: 16px;

	max-height: 253px;
}

/* scrollbar Chrome, Edge, Safari */
.pendanaan-value::-webkit-scrollbar {
	width: 6px;
}

.pendanaan-value::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.pendanaan-value::-webkit-scrollbar-track {
	background: transparent;
}

.footer-value {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	/* Bisa wrap ke bawah */
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	gap: 20px;
	/* Jarak antar kolom */
	padding: 20px;
}

@media (max-width: 768px) {
	.cover-hero h3 {
		font-size: 40px;
	}

	.cover-hero p {
		font-size: 20px;
	}

	.header-card>img {
		width: 3rem;
	}

	.header-card>svg {
		width: 3rem;
	}

	.card-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
		gap: 20px;
		padding: 20px;
		justify-items: center;
		padding-inline: 20px;
		margin: 0;
		justify-content: center;
	}

	.card {
		position: relative;
		width: 100%;
		/* min-width: 240px; */
		/* aspect-ratio: 305 / 415; */
		aspect-ratio: 270 / 415;
		text-align: center;
		width: 160px;
	}

	.header-card {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		width: clamp(70px, 40%, 225px);
		aspect-ratio: 1 / 1;
		overflow: hidden;
		border-radius: 50%;
		box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
		background: linear-gradient(90deg, #fdcb2b 34%, #ffdd69 100%);
		z-index: 10;
		display: flex;
		align-items: center;
		justify-content: center;
		/* width: 75px; */
	}

	.lower-card {
		background: white;
		border-radius: 18px;
		width: 100%;
		aspect-ratio: 200/300;
		position: absolute;
		bottom: 0;
		box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
		box-shadow: 0 4px 6px 2px rgba(0, 0, 0, 0.1), 0 2px 40px -2px rgba(0, 0, 0, 0.1);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: end;
		z-index: 9;
		padding: 20px 20px;
		gap: 20px;
		max-height: 200px;

	}

	.lower-card>div {
		line-height: 1;
	}

	.lower-card>div>h3 {
		font-size: 17px;
		font-weight: 900;
		color: #073c64;
		line-height: 1;
		margin-bottom: 5px;
		line-height: 1;
	}

	.lower-card>div>p {
		font-size: 12px;
		line-height: 1;
	}

	.lower-card>a {
		cursor: pointer;
		background: #10598f;
		color: white;
		font-size: 16px;
		font-weight: 700;
		height: 30px;
		border-radius: 40px;
		padding-inline: 10px;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.links-hibah-icon {
		font-size: 60px;
		color: #10598f;
	}

	.berita-lain {
		flex-direction: column;
		align-items: stretch;
	}

	.berita-lain>.berita-foto {
		width: 100%;
	}

	.berita-lain-content {
		margin-top: 10px;
	}

}

/* kalau layar kecil → stack, scroll di .berita-value */
@media (max-width: 980px) {
	.berita-value {
		display: flex;
		flex-direction: column;
		height: 485px;
		overflow-y: auto;
		/* scroll penuh */
	}

	.berita-terbaru-card {
		order: 1;
	}

	.berita-lain-container {
		order: 2;
		overflow-y: visible;
		/* biar ikut scroll parent */
		max-height: none;
	}

	.pendanaan-value {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pendanaan-value {
		grid-template-columns: 1fr;
	}

	.lower-card>div,
	.lower-card>div>h3,
	.lower-card>div>p {
		line-height: 1;
	}

	.footer-content {
		padding: 10px 10px;
	}

	.pendanaan {
		padding: 10px;
	}

	#nav-links {
		display: none;
	}
	.logo {
		column-gap: clamp(3.5rem, 2vw, 1.8rem);
	}

	.nav-toggle {
		display: block;
	}

	#nav-links {
		position: absolute;
		top: 60px; /* tinggi navbar */
		left: 0;
		right: 0;
		background: #fff;
		display: none;
		flex-direction: column;
		gap: 10px;
		padding: 15px 20px;
		border-top: 1px solid #ddd;
	}

	#nav-links.active {
		display: flex;
		animation: dropdown 0.3s ease;
		z-index: 999999;
		position: absolute;
		top: 125px;
		/* margin-top: 65px; */
	}
	#nav-links.active a {
		padding: 5px;
	}

	#nav-links.active a:hover {
		padding: 5px;
		background-color: var(--primary-color);
		color: #fff;
	}

	#nav-links > .dropdown > .dropdown-content {
		position: relative !important;
	}

	@keyframes dropdown {
		from {
		opacity: 0;
		transform: translateY(-10px);
		}
		to {
		opacity: 1;
		transform: translateY(0);
		}
	}
}

@media (max-width: 540px) {
	#nav-links {
		display: none;
	}	
	.banner {
		display: none;
	}
	.action-line {
		align-items: end !important;
		flex-direction: column;
	}
	.right-side {
		margin-top: 10px;
		display: flex !important;
		flex-direction: column;
	}
	.fasilitas-card {
		display: contents;
	}

	.fasilitas-side > img {
		display: none;
	}

	.fasilitas-value {
		margin-bottom: 10px;
	}

	.fasilitas-carousel__value {
		min-width: 230px;
	}
	.fasilitas-side > h2 {
		word-wrap: break-word;
		word-break: break-word;
	}
	.pendanaan {
		padding: 10px;
	}
	.pendanaan-header h2 {
		word-wrap: break-word;
		word-break: break-word;
	}

	.header-faqs {
		display: grid !important;
	}

	.head-right {
		align-items: normal !important;
		display: grid;
	}

	.header-faqs h1::after {
		bottom: 100px !important;
	}

	.poster-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 260px)) !important;
		justify-content: center !important;
	}

	.hidden-sm {
		display: none;
	}

	.hidden-lg {
		display: block;
	}
	
}

@media (max-width: 600px) {
	.footer-value {
		grid-template-columns: 1fr;
	}

	.contact-hero {
		position: absolute;
		bottom: 35px;
		gap: 5px;
	}

	.cover-hero {

		justify-content: flex-start;
		gap: 10px;
		padding-top: 20px;
	}

	.links-hibah-icon {
		font-size: 50px;
		color: #10598f;
	}
}

/* layar besar → kanan punya scroll sendiri */
@media (min-width: 601px) and (max-width : 1200px) {

	.header-card {
		width: clamp(105px, 60%, 225px);
	}

	.links-hibah-icon {
		font-size: 80px;
	}

	.header-card>svg {
		width: 4.5rem;

	}

	.header-card>img {
		width: 4.5rem;

	}

	.lower-card>div,
	.lower-card>div>h3,
	.lower-card>div>p {
		line-height: 1;
	}

}

@media (min-width: 767px) {

	.berita-lain-container {
		overflow-y: auto;
		max-height: 100%;
		/* biar nggak keluar parent */
	}

	.about-container {
		padding: 20px;
		background-color: #fff;
		margin-top: 20px;
		border-radius: 15px;
		box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
		max-width: 1200px;
		margin: 30px auto 10px auto;
	}
	.hidden-lg {
		display: none;
	}

}

@media (min-width: 900px) {
	.berita-lain>.berita-foto {
		width: 100%;
		aspect-ratio: 181/115;
		overflow: hidden;
		border-radius: 14px;
		max-width: 190px;
	}

	.berita-lain-content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin-left: 1.25rem;
		gap: 0.75rem;
		width: 100%;
	}
	.navbar {
		justify-content: center;
	}
}