:root {
	--green-emerald: #006d3b; /* Hijau Zamrud - Islam, ketenangan, kepemimpinan */
	--golden: #d4af37; /* Emas - Kejayaan, kebijaksanaan, kehormatan */
	--white-pure: #f8f9fa; /* Putih - Kesucian, keterbukaan, kejujuran */
	--blue-sky: #0077b6; /* Biru Langit - Intelektualitas, kepercayaan */
	--gray-stone: #5a5a5a; /* Abu-abu - Netral, profesional, modern */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	width: 100%;
	height: 100%;
	background: var(--white-pure);
}

/* Navigation */

.navbar {
	background-color: var(--green-emerald);
	/* Warna biru ITB */
}

.navbar-brand img {
	width: 13em;
}

.nav-link {
	color: var(--white-pure);
	transition: color 0.3s ease;
}

.nav-link::after {
	content: "";
	display: block;
	width: 0;
	margin-top: 3px;
	height: 2px;
	background: var(--white-pure);
	transition: width 0.3s ease;
}

.nav-link:hover {
	color: rgba(0, 0, 0, 0.5);
}

.nav-link:hover::after {
	width: 100%;
}

/* Styling Offcanvas (Sidebar) */
.offcanvas {
	background-color: var(--green-emerald);
	/* Warna latar sidebar */
	color: white;
}

.offcanvas-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title img {
	width: 12em;
}

.offcanvas-header .close {
	color: white;
	font-size: 1.5em;
	margin-right: 0.5em;
}

/* Styling Grouping List */
.list-group-item {
	background-color: transparent;
	color: white;
	border: none;
	padding: 10px 15px;
}

.list-group-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.list-group-title {
	font-weight: bold;
	color: yellow;
	padding: 10px 15px;
	margin-top: 10px;
}

/* Carousel */

.carousel-item {
	width: 100%;
	position: relative;
	height: 100vh;
	min-height: 300px;
}

.carousel-item img {
	width: 100%;
	object-fit: cover;
	height: 100%;
}

.carousel-inner::after {
	content: "";
	position: absolute;
	z-index: 1;
	background: rgba(0, 0, 0, 0.5);
	width: 100%;
	height: 100%;
}

/* History */
.history {
	color: black;
}

.content .caption p {
	margin-top: 2em;
	line-height: 2;
}

.history .profile-history {
	margin: 5em auto;
	margin-bottom: 3em;
	position: relative;
	width: 80em;
	height: 35em;
	border-radius: 30px;
	overflow: hidden;
}

.history .profile-history img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Overlay hitam */
.profile-history::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5); /* Transparansi overlay */
}

/* Content-Card */

.content-card {
	padding-top: 1.5em;
}

.card-section {
	margin-top: 3em;
	display: flex;
	gap: 2em;
	flex-wrap: wrap;
}

.grid-card {
	margin-top: 4em;
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
}

.card-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 1em 2em;
	background: rgba(79, 74, 69, 0.5);
	border-radius: 0.6em;
}

.card-item h5 {
	margin: 0;
}

.card-item i {
	font-size: 2em;
}

.card-item h2 {
	color: var(--white-pure);
	font-size: 1.5em;
}

/* News */

.news div {
	z-index: 2;
}

.news .caption h2 {
	color: black;
}

/* Card News */
.card {
	position: relative;
	width: 18em;
	height: 18rem;
	background: var(--white-pure);
	color: var(--white-pure);
	border-radius: 0.5em;
	overflow: hidden;
	border: none;
	display: flex;
	flex-wrap: wrap;
}

.card-body {
	position: absolute;
	bottom: 0;
	font-size: 0.9em;
}

.card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s ease;
}

.card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.card:hover img {
	scale: 1.2;
}

/* More Button */

.news .caption {
	display: grid;
}

.news .caption .more-news {
	place-self: center;
}

.news .caption .more-news {
	color: var(--white-pure);
	background: var(--gray-stone);
	margin-top: 3em;
	padding: 0.7em 2.3em;
	font-size: 1.1em;
	border: none;
	border-radius: 0.2em;
	transition: all 0.5s ease;
}

.news .caption .more-news:hover {
	background: var(--blue-sky);
	color: var(--white-pure);
}

/* Category */
.category-label {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--golden);
	color: white;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 5px;
	z-index: 3;
}

/* News */

.news:not(.new-news) .card-body {
	font-size: 1.2em;
}

#news .card {
	width: 19rem !important;
	height: 19em;
}

#new-news .card {
	width: 17rem !important;
	height: 17em;
}

/* Dokumentasi */

.documentation .more {
	color: var(--white-pure);
	background: var(--gray-stone);
	margin-top: 3em;
	padding: 0.7em 2.3em;
	font-size: 1.1em;
	border: none;
	border-radius: 0.2em;
	transition: all 0.5s ease;
}

.documentation .more:hover {
	background: var(--blue-sky);
	color: var();
}

/* Dokumentasi */
.dokumentasi {
	color: var(--white-pure);
	padding-top: 5rem;
}

/* Copyright */
.copyright {
	padding: 1.5em 0;
	color: var(--white-pure);
	background: var(--wood-brown);
}

.copyright p {
	margin: 0;
	display: flex;
	justify-content: center;
	font-size: 1em;
}

/* Solo News */

#all-news {
	background-image: none !important;
	background: var(--green-zamrud) !important;
}

h2::after {
	content: "";
	display: block;
	width: 100px;
	margin-top: 10px;
	height: 10px;
	border-radius: 10em;
	background: var(--blue-sky);
}

/* Footer */
.footer {
	color: var(--white-pure);
	background: var(--green-emerald);
}

.footer a,
.footer .mbr-text a {
	color: var(--white-pure);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer a:hover,
.footer .mbr-text a:hover {
	color: var(--golden);
}

.footer .img-fluid {
	width: 7em;
}

.footer-lower .row:nth-child(2) {
	margin: auto;
	text-align: center;
}

.footer-lower .row:nth-child(2) .col-md-6 {
	justify-content: center !important;
}

/* Thumbnail Video */

.thumbnail-video {
	outline: 5px solid var(--green-emerald);
	padding: 10px;
	border-radius: 2em;
	width: 100%;
	height: 40em;
	overflow: hidden;
}

/* Profile */

.profile-grid {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
}

.thumbnail {
	background-size: 100%;
	background-position: center;
	transition: all 0.5s ease;
}

.thumbnail .card-body {
	font-size: 1.05em !important;
}

.thumbnail:hover {
	background-size: 120%;
}

/* Thumbnail News */

.single {
	width: 60em;
	text-align: justify;
}

.thumbnail_news img {
	object-fit: cover;
	height: auto;
	max-height: 400px;
}

.article {
	line-height: 1.7;
	font-size: 1rem;
}

.pagination {
	margin-top: 2em;
}

.pagination a {
	text-decoration: none;
}

/* Single News */

#all-news .card {
	width: 17em !important;
	height: 17em;
}

#all-news .card img {
	width: 100%;
}

.grid-card {
	display: flex;
	flex-wrap: wrap;
}

.article,
.article * {
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
	color: inherit;
	list-style: none;
}

.article h1::after,
.article h2::after {
	all: unset;
}

.single{
    max-width:100%;
}

.single h2{
    max-width:70%;
}

@media screen and (max-width: 1400px) {
    .single{
    max-width:100%;
}
	.profile-history {
		position: relative;
		width: 600%;
		height: 25em;
		border-radius: 30px;
		overflow: hidden;
	}

	.grid-card {
		grid-template-columns: 1fr 1fr 1fr;
		margin-top: 5em;
	}
}

@media screen and (max-width: 1024px) {
	.single h2{
		max-width: 100%;
	}
	
	.single .flex-sm-row{
	    flex-direction: column !important;
	    align-items: flex-start !important;
	}

	/* Carousel */
	.carousel-item {
		height: 100vh;
		width: 100%;
	}

	.carousel-item img {
		height: 100%;
		width: 100%;
		object-fit: cover;
		object-position: center;
	}

	.content {
		flex-direction: column;
	}

	.grid-card {
		flex-direction: column;
	}

	/* History */

	.profile-history {
		position: relative;
		width: 100%;
		height: 25em;
		border-radius: 30px;
		overflow: hidden;
	}

	.profile-history img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* Overlay hitam */
	.profile-history::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5); /* Transparansi overlay */
	}

	/* News */

	.grid-card {
		display: grid;
		place-items: center;
		grid-template-columns: 1fr 1fr;
		gap: 2em;
		margin-top: 5em;
	}
}

@media screen and (max-width: 767px) {
    .single{
    max-width:100%;
}
	.single h2{
		max-width: 100%;
	}
	
	.single .flex-sm-row{
	    flex-direction: column !important;
	    align-items: flex-start !important;
	}

	.single p {
		font-size: 1em;
	}

	.navbar-brand img {
		width: 10em;
	}

	.carousel-item {
		height: 100vh;
		width: 100%;
	}

	.carousel-item img {
		height: 100%;
		width: 100%;
		object-fit: cover;
		object-position: center;
	}

	.content {
		padding: 0;
		flex-direction: column-reverse;
	}

	.card-item {
		width: 100%;
	}

	.grid-card {
		flex-direction: column;
	}

	.history .profile-history {
		margin: 3em auto;
		margin-bottom: 3em;
		position: relative;
		width: 100%;
		height: 15em;
		border-radius: 30px;
		overflow: hidden;
	}

	.news:not(.new-news) .card {
		width: 20em !important;
		height: 20em;
	}

	.about .content {
		display: flex;
		flex-direction: column;
	}

	.grid-card {
		display: grid;
		place-items: center;
		grid-template-columns: 1fr;
		gap: 2em;
		margin-top: 5em;
	}

	.testimonial-item {
		flex-direction: column;
	}

	.footer button {
		border: none;
	}

	.footer button.active::after {
		content: "";
		display: block;
		width: 100%;
		margin-top: 15px;
		height: 2px;
		background: rgba(0, 0, 0, 0.5);
	}

	.footer button {
		color: var(--white-pure);
	}

	.list-unstyled {
		font-size: 0.9em;
		padding-left: 0.8em;
		line-height: 1.5em;
	}

	.bottom a {
		font-size: 0.8em;
	}

	.thumbnail-video {
		outline: 5px solid var(--green-emerald);
		padding: 10px;
		border-radius: 2em;
		width: 100%;
		height: 20em;
		overflow: hidden;
	}

	.caption.visi {
		margin: 0 !important;
	}

	#singlenews .caption .wrap{
		align-items:flex-start !important;
	}
}
