/*
Theme Name: Hello Elementor Child
Description: Child theme untuk Hello Elementor
Author: Harry Sulistiadi
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Custom CSS mulai di bawah ini */

/* =========================================================
   CUSTOM 404 PAGE
   ========================================================= */

body.error404 {
	margin: 0;
	padding: 0;
}

body.error404 .custom-404 {
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;

	display: flex;
	flex-direction: column;

	justify-content: center; /* Tengah secara vertikal */
	align-items: center;     /* Tengah secara horizontal */

	margin: 0;
	padding: 30px 20px;

	box-sizing: border-box;
	text-align: center;
}

body.error404 .custom-404-inner {
	width: 100%;
	max-width: 700px;

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

	margin: 0 auto;
	padding: 0;

	box-sizing: border-box;
	text-align: center;
}

body.error404 .custom-404-image {
	width: 100%;
	max-width: 450px;
	margin: 0 0 30px;
	text-align: center;
}

body.error404 .custom-404-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

/* Pembungkus gambar 404 */
body.error404 .custom-404-image {
	width: 90%;
	max-width: 500px;
	margin: 0 auto 30px;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	body.error404 .custom-404-image {
		width: 95%;
		margin-bottom: 24px;
	}
}

/* Gambar responsif mengikuti ukuran browser */
body.error404 .custom-404-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

/* Tombol Back to Home */
body.error404 .custom-404-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 13px 28px;

	border-radius: 6px;
	background: #000000;
	color: #ffffff;

	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;

	text-decoration: none;

	transition: background-color 0.2s ease, color 0.2s ease;
}

body.error404 .custom-404-button:hover,
body.error404 .custom-404-button:focus {
	background: #ffd700;
	color: #000000;
	opacity: 1;
	text-decoration: none;
}

body.error404 {
	background: white !important;
}