/* ================================================
   Top Bar Component
   ================================================ */

.topbar {
	background-color: var(--brand-primary);
	padding: var(--sp-2) 0;
	font-family: Montserrat, var(--font-primary);
}

.topbar__contact {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.topbar__contact-icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.topbar__contact-text {
	color: #ffffff;
	font-size: var(--fs-100);
	font-weight: 500;
	line-height: 1.22;
}

.topbar__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--sp-4);
}

/* Search Box */
.topbar__search {
	position: relative;
	background-color: #ffffff;
	border-radius: 30px;
	padding: var(--sp-1) var(--sp-3);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	max-width: 217px;
}

.topbar__search-input {
	border: none;
	outline: none;
	background: transparent;
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-100);
	color: var(--gray-900);
	width: 100%;
}

.topbar__search-input::placeholder {
	color: var(--gray-500);
}

.topbar__search-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

/* Register Button */
.topbar__register-btn {
	background-color: var(--brand-secondary);
	color: #ffffff;
	font-family: Montserrat, var(--font-primary);
	font-size: var(--fs-200);
	font-weight: 600;
	padding: var(--sp-1) var(--sp-3);
	border-radius: 40px;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
}

.topbar__register-btn:hover {
	background-color: #1a2954;
	color: #ffffff;
	transform: translateY(-2px);
}

/* Responsive */

/* Tablet & Mobile (≤991px): thu gọn giống thanh đỏ trong design */
@media (max-width: 991.98px) {
	.topbar {
		height: var(--header-topbar-height-mobile, 48px);
		padding: 0;
		display: flex;
		align-items: center;
	}

	.topbar .row {
		justify-content: center;
	}

	.topbar__contact,
	.topbar__actions {
		width: 100%;
		justify-content: center;
	}

	/* Ẩn icon, email, search, nút ĐĂNG KÝ trên mobile/tablet */
	.topbar__contact-icon,
	.topbar__actions {
		display: none;
	}

	/* Dòng tên trường cho tablet/mobile */
	.topbar__contact-text--school {
		display: block;
		text-align: center;
		font-size: var(--fs-100);
		text-transform: uppercase;
	}
}
