/*
 * DokterIN header — CSS port of the dokterin.co.id/artikel Tailwind header:
 * bg-white rounded-2xl flex justify-between items-center h-[72px] px-6 shadow-md
 * max-md:h-[56px] max-md:px-4.
 * Desktop nav from 1024px (main site uses 810px, but the full menu overflows
 * the bar below ~1120px), compact between 1024-1199px; hamburger + overlay below.
 */

.dokterin-header {
	--dh-primary: #1a75bb;
	--dh-primary-50: #e3effb;
	--dh-primary-100: #cfe2f7;
	--dh-border-soft: #dee2e6;
	--dh-text: #212529;
	--dh-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

	position: sticky;
	top: 0;
	z-index: 50;
	font-family: "Plus Jakarta Sans", sans-serif;
	letter-spacing: normal;
}

.admin-bar .dokterin-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .dokterin-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .dokterin-header {
		top: 0;
	}
}

.dokterin-header__wrap {
	box-sizing: border-box;
	max-width: 1260px;
	margin: 0 auto;
	padding: 14px 21px;
}

.dokterin-header__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 72px;
	padding: 0 21px;
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--dh-shadow);
}

.dokterin-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	outline: none;
}

.dokterin-header__logo img {
	display: block;
	width: 122px;
	height: 41px;
	object-fit: contain;
}

.dokterin-header__desktop {
	display: none;
	align-items: center;
	gap: 28px;
}

.dokterin-header__nav {
	font-weight: 500;
	position: relative;
	margin-top: -2px;
}

.dokterin-header__nav ul {
	display: flex;
	align-items: center;
	gap: 21px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dokterin-header__link {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: var(--dh-text);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.dokterin-header__link:hover,
.dokterin-header__link:focus-visible {
	color: var(--dh-primary);
}

.dokterin-header__link.is-current {
	color: var(--dh-primary);
	font-weight: 600;
	border-bottom-color: var(--dh-primary);
}

.dokterin-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dokterin-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: var(--dh-primary);
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	border-radius: 8px;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.dokterin-header__btn:hover {
	color: var(--dh-primary);
	opacity: 0.9;
}

.dokterin-header__btn:focus-visible {
	outline: 2px solid var(--dh-primary);
	outline-offset: 2px;
}

.dokterin-header__btn--outline {
	background: #fff;
	border-color: var(--dh-primary);
}

.dokterin-header__btn--outline:hover {
	background: var(--dh-primary-50);
}

.dokterin-header__btn--soft {
	background: var(--dh-primary-50);
	border-color: var(--dh-border-soft);
}

.dokterin-header__btn--soft:hover {
	background: var(--dh-primary-100);
}

.dokterin-header__btn-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-right: 7px;
}

.dokterin-header__lang {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 70px;
	height: 34px;
	padding: 0 7px;
	box-sizing: border-box;
	background: var(--dh-primary-50);
	border: 0;
	border-radius: 999px;
	margin: 0;
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	overflow: hidden;
	flex-shrink: 0;
}

.dokterin-header__lang:hover,
.dokterin-header__lang:focus {
	background: var(--dh-primary-50);
	color: inherit;
	border: 0;
	box-shadow: none;
}

.dokterin-header__lang:focus-visible {
	outline: 2px solid var(--dh-primary, #df1683);
	outline-offset: 2px;
}

.dokterin-header__lang::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 30px;
	height: 30px;
	background: #fff;
	border-radius: 50%;
	box-shadow: var(--dh-shadow);
	transition: transform 0.5s ease-in-out;
	transform: translateX(1px);
}

.dokterin-header__lang--alt::before {
	transform: translateX(36px);
}

.dokterin-header__lang-item {
	position: relative;
	z-index: 1;
	display: flex;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.dokterin-header__lang-item.is-current {
	opacity: 1;
}

.dokterin-header__lang-item img {
	display: block;
	width: 21px;
	height: 17px;
	object-fit: cover;
}

.dokterin-header__mobile {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dokterin-header__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--dh-primary);
	background: none;
	border: 0;
	cursor: pointer;
}

.dokterin-header__toggle:hover,
.dokterin-header__toggle:focus {
	color: var(--dh-primary);
	background: none;
}

@media (min-width: 1024px) {
	.dokterin-header__desktop {
		display: flex;
	}

	.dokterin-header__mobile {
		display: none;
	}
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.dokterin-header__desktop {
		gap: 16px;
	}

	.dokterin-header__nav ul {
		gap: 14px;
	}

	.dokterin-header__link {
		font-size: 13px;
	}

	.dokterin-header__actions {
		gap: 8px;
	}

	.dokterin-header__btn {
		padding: 6px 10px;
		font-size: 12px;
	}

	.dokterin-header__btn-icon {
		display: none;
	}
}

@media (max-width: 767px) {
	.dokterin-header__bar {
		height: 56px;
		padding: 0 16px;
	}

	.dokterin-header__logo img {
		width: 108px;
		height: 34px;
	}
}

.dokterin-header {
	transition: transform 0.3s ease;
	will-change: transform;
}

.dokterin-header.is-hidden {
	transform: translateY(-100%);
}


.skip-link {
	display: none;
}