/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
	--primary-blue: #0056b3;
	--primary-dark: #003d80;
	--primary-yellow: #ffcc00;
	--accent-yellow: #ffdb4d;
	--text-dark: #1f2937;
	--text-light: #6b7280;
	--bg-white: #ffffff;
	--bg-light: #f3f4f6;
	--wa-green: #25d366;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--radius: 12px;
	--header-height: 80px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: "Poppins", sans-serif;
	color: var(--text-dark);
	line-height: 1.6;
	background-color: var(--bg-white);
}
a {
	text-decoration: none;
	color: inherit;
	transition: 0.3s;
}
ul {
	list-style: none;
}
img {
	max-width: 100%;
	display: block;
}

/* =========================================
   2. LAYOUT & UTILITIES
========================================= */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.section {
	padding: 80px 0;
}
.bg-light {
	background-color: var(--bg-light);
}
.text-sm {
	font-size: 0.875rem;
	color: var(--text-light);
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}
.grid-4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 25px;
}

.section-header {
	text-align: center;
	margin-bottom: 50px;
}
.section-header h2 {
	font-size: 2.25rem;
	color: var(--primary-blue);
	margin-bottom: 10px;
}

.hidden-element {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.8s ease-out,
		transform 0.8s ease-out;
	will-change: opacity, transform;
}
.show-element {
	opacity: 1;
	transform: translateY(0);
}
.delay-100 {
	transition-delay: 0.1s;
}
.delay-200 {
	transition-delay: 0.2s;
}
.delay-300 {
	transition-delay: 0.3s;
}

/* =========================================
   3. COMPONENTS (Buttons, Cards)
========================================= */
/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: 50px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}
.btn-primary {
	background-color: var(--primary-yellow);
	color: var(--primary-blue);
}
.btn-primary:hover {
	background-color: var(--accent-yellow);
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(255, 204, 0, 0.3);
}

.btn-outline {
	border: 2px solid white;
	color: white;
	padding: 8px 24px;
}
.btn-outline:hover {
	background-color: white;
	color: var(--primary-blue);
}

/* Cards */
.card {
	background: var(--bg-white);
	border-radius: var(--radius);
	overflow: hidden;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

.feature-card {
	padding: 30px;
	text-align: center;
}
.icon-box {
	font-size: 2.5rem;
	color: var(--primary-blue);
	margin-bottom: 20px;
}

.program-card .card-image {
	height: 200px;
	background-size: cover;
	background-position: center;
	position: relative;
}
.play-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: 0.3s;
	cursor: pointer;
}
.program-card:hover .play-overlay {
	opacity: 1;
}
.play-overlay i {
	font-size: 2rem;
	color: white;
	background: rgba(255, 255, 255, 0.2);
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	backdrop-filter: blur(5px);
}
.program-card .card-body {
	padding: 20px;
	text-align: center;
}

.tutor-card img {
	height: 250px;
	width: 100%;
	object-fit: cover;
}
.tutor-card .card-body {
	padding: 15px;
	text-align: center;
}
.badge {
	display: inline-block;
	background: #e0f2fe;
	color: var(--primary-blue);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 5px;
}

/* =========================================
   4. HEADER & NAV (Desktop Default)
========================================= */
.header {
	background: transparent;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	height: var(--header-height);
	display: flex;
	align-items: center;
	transition:
		background-color 0.4s ease,
		backdrop-filter 0.4s ease,
		box-shadow 0.4s ease;
	will-change: background-color, backdrop-filter, box-shadow;
}
.header.scrolled {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-sm);
}

.header.scrolled .logo {
	color: var(--primary-blue);
}
.logo {
	font-size: 1.5rem;
	font-weight: 800;
	color: white;
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 2;
}
.logo-img {
	height: 60px;
	width: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid white;
}

.header.scrolled .logo-img {
	border-color: var(--primary-blue);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	position: relative;
}

.nav-menu {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	gap: 30px;
	align-items: center;
}

.nav-link {
	font-weight: 500;
	color: white;
	position: relative;
	opacity: 0.9;
}
.header.scrolled .nav-link {
	color: var(--text-dark);
}
.nav-link:hover {
	opacity: 1;
	color: var(--primary-yellow);
}
.header.scrolled .nav-link:hover {
	color: var(--primary-blue);
}

.nav-link::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -5px;
	left: 0;
	background-color: var(--primary-yellow);
	transition: width 0.3s;
}
.nav-link:hover::after {
	width: 100%;
}

.nav-actions {
	display: flex;
	z-index: 2;
}
.header.scrolled .btn-outline {
	border-color: var(--primary-blue);
	color: var(--primary-blue);
}
.header.scrolled .btn-outline:hover {
	background-color: var(--primary-blue);
	color: white;
}

.mobile-toggle,
.close-menu,
.mobile-only-btn {
	display: none;
}

/* =========================================
   5. SECTIONS (Hero, Footer)
========================================= */
.hero {
	padding-top: var(--header-height);
	min-height: 100vh;
	background:
		linear-gradient(135deg, rgba(0, 86, 179, 0.85), rgba(0, 30, 60, 0.9)),
		url("https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?q=80&w=1600&auto=format&fit=crop");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
}
.hero-title {
	font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
	line-height: 1.2;
	margin-bottom: 20px;
	font-weight: 700;
}
.hero-title .highlight {
	color: var(--primary-yellow);
}
.hero-desc {
	font-size: 1.25rem;
	max-width: 700px;
	margin: 0 auto 40px;
	opacity: 0.9;
}

.footer {
	background: #0f172a;
	color: #cbd5e1;
	padding: 60px 0 20px;
}
.footer-content {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
.footer-brand h3 {
	color: white;
	margin-bottom: 15px;
}
.footer h4 {
	color: white;
	margin-bottom: 20px;
	font-size: 1.1rem;
}
.footer ul li {
	margin-bottom: 10px;
}
.footer ul li a:hover {
	color: var(--primary-yellow);
}
.footer-contact p {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.footer-bottom {
	border-top: 1px solid #334155;
	padding-top: 20px;
	text-align: center;
	font-size: 0.9rem;
}

.floating-wa {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: var(--wa-green);
	color: white;
	padding: 12px 24px;
	border-radius: 50px;
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 100;
	animation: bounce 2s infinite;
}
.floating-wa:hover {
	transform: scale(1.05);
}
@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* =========================================
   6. RESPONSIVE (Mobile Overrides)
========================================= */
@media (max-width: 968px) {
	.mobile-toggle {
		display: block;
		font-size: 1.5rem;
		color: white;
		cursor: pointer;
	}
	.header.scrolled .mobile-toggle {
		color: var(--primary-blue);
	}

	.nav-actions {
		display: none;
	}

	.nav-menu {
		position: fixed;
		top: 0;
		right: -100%;
		left: auto;
		transform: none;

		width: 70%;
		height: 100vh;
		background: white;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		z-index: 1001;

		transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
	}

	.nav-menu.active {
		right: 0;
	}

	.nav-link {
		color: var(--text-dark);
		font-size: 1.2rem;
		margin: 15px 0;
	}

	.close-menu {
		display: block;
		position: absolute;
		top: 30px;
		right: 30px;
		font-size: 2rem;
		cursor: pointer;
		color: var(--text-dark);
	}

	.mobile-only-btn {
		display: inline-flex;
		margin-top: 30px;
		border-color: var(--primary-blue);
		color: var(--primary-blue);
	}

	.hero-title {
		font-size: 2.5rem;
	}
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-contact p {
		justify-content: center;
	}
}

/* --- UI TAMBAHAN --- */
.filter-dropdown {
	margin-top: 15px;
	padding: 12px 45px 12px 20px;
	border-radius: 50px;
	border: 2px solid var(--bg-light);
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-dark);
	outline: none;
	cursor: pointer;
	background-color: var(--bg-white);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;

	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230056b3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 16px;
}

.filter-dropdown:hover,
.filter-dropdown:focus {
	border-color: var(--primary-blue);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.modal.active {
	display: flex;
	opacity: 1;
}
.modal-content {
	background: #f3f4f6;
	padding: 50px 20px 20px;
	border-radius: var(--radius);
	width: 90%;
	max-width: 800px;
	position: relative;
}
.close-modal {
	position: absolute;
	top: 10px;
	right: 16px;
	color: #000;
	font-size: 1.5rem;
	cursor: pointer;
	transition: 0.3s;
}
.close-modal:hover {
	color: var(--primary-yellow);
}
.program-flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.program-flex .card {
	flex: 1 1 240px;
	max-width: 280px;
}
.feature-flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.feature-flex .card {
	flex: 1 1 300px;
	max-width: 350px;
}
