/* ===================================
   TIK.R — Hero Section
   White bg, 3-layer: CREATIVE / photo / MEDIA
   =================================== */

/* Wrapper needed for white bg edge-to-edge */
.hero-container {
	width: 100%;
	background: #ffffff;
	color: black;
}

.hero {
	margin-top: var(--navbar-height);
	margin-inline: auto;
	position: relative;
	width: 100%;
	/* height: calc(100svh - (var(--navbar-height) + var(--ticker-height))); */
	min-height: calc(100svh - (var(--navbar-height) + var(--ticker-height)));
	overflow: hidden;
	background-image: url("/public/reading-magazine.png");
	height: auto;
	background-position: center bottom;
	background-size: contain;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-bottom: 2rem;
}

.hero-content {
	width: 100%;
	padding: 0 5%;
	gap: 2rem;
	display: flex;
	justify-content: center;
	align-items: start;
	color: var(--purple);
	margin-top: 4%;
	font-size: 1.7rem;
	font-weight: bolder;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero-left-text {
	text-align: end;
}

.center-div {
	width: 750px;
	height: 10vh;
}

.hero-right-text {
	text-align: start;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hero-btn {
	font-weight: 500;
	border: 1px solid black;
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
	width: max-content;
	text-align: center;
	color: black;
	font-size: 1rem;
}

/* TABLET */
@media (max-width: 950px) {
	.hero {
		background-position: center top;
		background-size: cover;
		min-height: 420px;
	}

	/* Overlay putih di kiri-kanan biar teks kebaca */
	.hero::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(
			to right,
			rgba(255, 255, 255, 0.85) 0%,
			rgba(255, 255, 255, 0.1) 45%,
			rgba(255, 255, 255, 0.1) 55%,
			rgba(255, 255, 255, 0.85) 100%
		);
		pointer-events: none;
		z-index: 0;
	}

	.hero-content {
		position: relative;
		z-index: 1;
		gap: 1rem;
		font-size: 1.2rem;
		margin-top: 0;
		padding: 2rem 2.5rem;
		justify-content: space-between;
		align-items: flex-start;
		width: 100%;
	}

	.center-div {
		display: none;
	}
}

/* MOBILE */
@media (max-width: 600px) {
	.hero {
		background-position: center 10%;
		background-size: cover;
		min-height: unset;
		height: 260px; /* hanya untuk gambar */
		align-items: flex-start;
		padding: 0;
	}

	/* Setelah hero, konten teks di section terpisah */
	.hero-content {
		position: static;
		background: #fff;
		flex-direction: row; /* kiri-kanan tetap */
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: flex-start;
		padding: 1.5rem;
		gap: 1rem;
		border-top: 3px solid #c084fc;
		margin-top: 260px; /* dorong keluar dari hero */
	}

	.center-div {
		display: none;
	}

	.hero-left-text {
		text-align: left;
		font-size: 1.1rem;
	}
	.hero-right-text {
		text-align: right;
		font-size: 1.1rem;
	}

	.hero-btn {
		display: block;
		text-align: center;
		margin: 0.5rem auto 0;
		width: 100%;
	}
}
