:root {
	--warna-putih: #ffffff;
	--ml-emas: #d4af37;          /* Emas Melayu */
	--ml-emas-soft: #e6c967;     /* Aksen emas muda */
	--ml-hijau: #0f5132;         /* Hijau zamrud */
	--ml-hijau-soft: #1b7050;    /* Hijau muda */
	--ml-krem: #fff6e5;          /* Latar lembut */
	--ml-coklat: #5a3825;        /* Kayu/ukiran */
	--ml-tinta: #1d1d1f;         /* Teks utama */
	--shadow-soft: 0 10px 25px rgba(0,0,0,.08);
	--radius-xl: 1.25rem;
}
body { 
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
	color: var(--ml-tinta); 
}

/* Navbar*/
.apple-navbar {
	background-color: rgba(16, 59, 30, 0.6); /* semi transparan */
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	padding: 0.6rem 1rem;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apple-navbar.scrolled {
	background-color: rgba(16, 59, 30, 0.88);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Logo + Brand */
.apple-navbar .navbar-brand span {
	letter-spacing: 0.5px;
}


/* Nav Links */
.apple-navbar .nav-link {
	font-weight: 500;
	transition: color 0.3s ease, transform 0.2s ease;
}

.apple-navbar .nav-link:hover {
	color: #ffc107 !important;
	transform: translateY(-1px);
}

.apple-navbar .nav-link.active {
	color: #ffc107 !important;
}

/* Toggle Hamburger Button */
.apple-toggle {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 22px;
	height: 16px;
	cursor: pointer;
	transition: transform 0.3s ease-in-out;
}

.hamburger span {
	display: block;
	height: 2px;
	width: 100%;
	background: white;
	border-radius: 1px;
	transition: 0.3s ease;
}

/* Toggle Animation when Open */
.apple-toggle.collapsed .hamburger span:nth-child(1) {
	transform: none;
}
.apple-toggle:not(.collapsed) .hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.apple-toggle:not(.collapsed) .hamburger span:nth-child(2) {
	opacity: 0;
}

.apple-toggle:not(.collapsed) .hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.heading-serif { 
	font-family: Marcellus, Georgia, 'Times New Roman', serif; 
	letter-spacing:.3px; 
}

.hero {
	background:
	linear-gradient(rgba(15,81,50,.72), rgba(15,81,50,.72)),
	url('<?= base_url("assets/images/heros.jpg") ?>') center/cover no-repeat;
	color:#fff; 
	position: relative;
	margin-top: 40px;
}

.hero-card { 
	background: rgba(255,255,255,.08); 
	border:1px solid rgba(255,255,255,.2); 
	box-shadow: var(--shadow-soft); backdrop-filter: blur(6px); 
	border-radius: var(--radius-xl); 
}

.hero .btn-utama { 
	background: var(--ml-emas); 
	border-color: var(--ml-emas); 
	color:#1a1a1a; font-weight:700; 
}

.hero .btn-utama:hover { 
	background: #f2d480; 
	border-color:#f2d480; 
}

.hero .d-flex span {
	background-color: rgba(255, 215, 0, 0.1); /* emas transparan */
	padding: 6px 12px;
	border-radius: 20px;
	transition: background-color 0.3s ease;
}
.hero .d-flex span:hover {
	background-color: rgba(255, 215, 0, 0.25);
}


/* ====== CONTAINER SCROLL PENDUKUNG ====== */
.pendukung-container {
	max-height: 180px; /* kira-kira 2 item list */
	overflow-y: auto;
	border-radius: 12px;
	box-shadow: 0px 6px 18px rgba(0,0,0,0.08);
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.badge-bounce {
    animation: bounce 0.3s ease;
}

/* Scrollbar Custom */
.pendukung-container::-webkit-scrollbar {
	width: 8px;
}
.pendukung-container::-webkit-scrollbar-thumb {
	background-color: var(--warna-emas);
	border-radius: 4px;
}
.pendukung-container::-webkit-scrollbar-track {
	background-color: #f0f0f0;
}

/* List */
#listPendukung {
	margin-bottom: 0;
}

/* Item */
#listPendukung .list-group-item {
	border: none;
	border-bottom: 1px solid #eee;
	padding: 12px 16px;
	background-color: var(--warna-putih);
	transition: all 0.2s ease-in-out;
}
#listPendukung .list-group-item:hover {
	background-color: #fffbe6;
	border-left: 5px solid var(--warna-emas);
	padding-left: 20px;
}

/* Item pertama highlight */
#listPendukung .list-group-item:first-child {
	background: linear-gradient(to right, #fff7e0, #fff);
	font-weight: bold;
}

/* ===== Kronologi ===== */
.timeline {
	overflow-x: hidden;
	position: relative;
	margin: 2rem 0;
	z-index: 1;
}

.timeline::after {
	overflow-x: hidden;
	content: '';
	position: absolute;
	width: 4px;
	background-color: #198754;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 0;
}

.timeline-item {
	padding: 1rem 2rem;
	position: relative;
	width: 50%;
	box-sizing: border-box; /* cegah meluber */
	z-index: 3;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: calc(50%); }

.timeline-icon {
	position: absolute;
	top: 15px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	text-align: center;
	line-height: 40px;
	color: white;
	font-size: 1.2rem;
	z-index: 1;
}

.timeline-item.left .timeline-icon { right: -20px; }
.timeline-item.right .timeline-icon { left: -20px; }

.timeline-content {
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 8px;
	word-wrap: break-word; /* cegah teks panjang bikin meluber */
}

/* Mobile fix */
@media (max-width: 767px) {
	.timeline::after { left: 20px; }
	.timeline-item {
		width: 100%;
		padding-left: 60px;
		padding-right: 20px;
	}
	.timeline-item.right, 
	.timeline-item.left { left: 0; }
	.timeline-item.left .timeline-icon,
	.timeline-item.right .timeline-icon { left: 0; right: auto; }
}

.berita-headline {
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}
.berita-headline img {
	height: 420px;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.berita-headline:hover img {
	transform: scale(1.08);
}
.headline-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.5rem;
	background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
	color: white;
}
.headline-overlay h3 {
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1.3;
	transition: color 0.3s ease;
}
.headline-overlay h3:hover {
	color: #ffc107;
}
.headline-overlay p {
	font-size: 0.95rem;
	opacity: 0.9;
}
.headline-overlay .badge {
	font-size: 0.75rem;
	letter-spacing: 0.5px;
	padding: 0.4rem 0.6rem;
}

/* ===== Card Berita Kecil ===== */
.berita-item {
	border-radius: 10px;
	overflow: hidden;
	background: white;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.berita-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.berita-item img {
	height: 160px;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.berita-item:hover img {
	transform: scale(1.05);
}
.berita-item .card-body {
	padding: 0.85rem;
}
.berita-item h6 {
	font-weight: 600;
	font-size: 0.95rem;
	min-height: 48px;
	line-height: 1.3;
}
.berita-item small {
	font-size: 0.8rem;
	color: #6c757d;
}
.berita-item p {
	font-size: 0.85rem;
	color: #6c757d;
}

/* ===== Efek Global Card ===== */
.card {
	border: none;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
	.berita-headline img { height: 300px; }
}
@media (max-width: 768px) {
	.berita-headline img { height: 250px; }
	.headline-overlay h3 { font-size: 1.3rem; }
}

/* ===== FAQ ===== */
.faq-accordion .accordion-item {
	border: none;
	margin-bottom: 1rem;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.faq-accordion .accordion-button {
	font-weight: 600;
	color: #198754;
	background-color: #f8f9fa;
	padding: 1rem;
	transition: all 0.3s ease;
}
.faq-accordion .accordion-button:not(.collapsed) {
	background-color: #198754;
	color: white;
}
.faq-accordion .accordion-button:focus {
	box-shadow: none;
}
.faq-accordion .accordion-body {
	background-color: white;
	font-size: 0.95rem;
	color: #555;
}

/* Icon Style */
.faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #198754;
	color: white;
	transition: all 0.3s ease;
}
.accordion-button:not(.collapsed) .faq-icon {
	transform: rotate(180deg);
	background-color: #ffc107;
	color: #000;
}

/* Smooth Collapse Animation */
.smooth-collapse {
	transition: height 0.4s ease;
}

/* ===== Tentang Kami ===== */
.ornament-top img,
.ornament-bottom img {
  display: block;
  width: 100%;
  height: auto;
}

.tentang-kami {
	margin-top: 80px;
	overflow-x: hidden;
	background:linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.95)), url('<?= base_url("assets/images/motif-melayu.png") ?>') center/cover fixed;
}
#tentang-profil .card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#tentang-profil .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* List Style */
#tentang-profil ul {
  padding-left: 1.25rem;
}
#tentang-profil li {
  margin-bottom: 6px;
}

/* Tablet */
@media (max-width: 768px) {
  #tentang-profil .card-body {
    padding: 1rem;
  }
}

/* Smartphone */
@media (max-width: 576px) {
  #tentang-profil {
    padding: 1.5rem 0.75rem;
  }
  #tentang-profil .card-body {
    padding: 0.75rem;
  }
}

/* ===== FOOTER ===== */
.footer-melayu {
	background: linear-gradient(180deg, #0f5132 0%, #064420 100%);
	font-family: 'Segoe UI', sans-serif;
}

.footer-melayu a:hover {
	color: #ffff !important;
}

.footer-melayu .btn-outline-warning {
	border-color: #ffc107;
	color: #ffc107;
}

.footer-melayu .btn-outline-warning:hover {
	background-color: #ffc107;
	color: #064420;
}

@media (max-width: 767px) {
	.footer-melayu {
		text-align: center;
	}
	.footer-melayu .d-flex {
		justify-content: center;
	}
}


