/* Montserrat (SIL Open Font License), latin letters and digits only; Bangla falls through to the site font. */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* MediChakri home hero, version 5: laid out to match the approved reference picture.
   Text on the left, the team on the right, one amber bar behind the team (drawn in CSS).
   Every size is the reference size (measured on a 1672px-wide picture) multiplied by --u, so the layout scales as one piece.
   Layers: green  >  amber bar  >  people (transparent picture)  >  text column. */
.mcx-hero {
	--u: clamp(0.58px, 0.0598vw, 0.861px); /* 1 reference pixel; stops growing at 1440px wide, like the site's own page width */
	--mcx-pad: 24px; /* side space of the site grid (same as the menu and the sections below) */
	--mcx-art-l: calc(50% - 250 * var(--u)); /* left edge of the team picture */
	--mcx-art-r: max(var(--mcx-pad), calc((100% - 1280px) / 2 + var(--mcx-pad))); /* right gap = the page grid */
	--mcx-bar-cx: calc(var(--mcx-art-l) + 0.402 * (100% - var(--mcx-art-l) - var(--mcx-art-r))); /* middle of the orange bar */
	--mcx-green: #06351b;
	--mcx-amber: #f59e0b;
	--mcx-mint: #4ade80;
	--mcx-ink: #2e2a24; /* softer black for text on the orange buttons */
	font-family: "Montserrat", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	position: relative;
	overflow: hidden;
	padding-top: 80px; /* the fixed menu bar is 80px high (68px on phones) */
	padding-bottom: 0; /* the search box overlaps the bottom 48px, the team stands right down to the edge */
	background: var(--mcx-green);
	color: #fff;
}

.mcx-stage {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: calc(700 * var(--u));
}

/* right side: bar + people */
.mcx-art {
	position: absolute;
	z-index: 4; /* the team is the top layer of the hero (in front of the text) */
	top: 0;
	left: var(--mcx-art-l); /* measured from the middle, so it stays with the page grid */
	right: var(--mcx-art-r); /* same right edge as the menu button and the sections below */
	bottom: 0;
	pointer-events: none;
}
.mcx-bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 24.6%;
	width: 31.2%;
	background: var(--mcx-amber);
	transform-origin: 50% 0;
	will-change: transform;
	-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
	animation: mcxBarDrop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mcx-art .mcx-hero-art {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
}
.mcx-art picture {
	display: block;
}
.mcx-art img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: 1649 / 871; /* reserve the space before the picture arrives, so nothing jumps */
	animation: mcxFade 0.7s 0.15s ease-out both; /* fade only: no sliding, so no shaking */
}

/* left side: text */
.mcx-left {
	position: relative;
	z-index: 3;
	width: calc(600 * var(--u));
	margin-left: max(var(--mcx-pad), calc((100% - 1280px) / 2 + var(--mcx-pad))); /* same left edge as the menu logo and the sections below */
	padding-top: calc(72 * var(--u));
	padding-bottom: calc(96 * var(--u)); /* keeps the numbers clear of the search box */
}
.mcx-copy > * {
	animation: mcxFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* pill: two short lines with a pulse icon */
.mcx-badge {
	display: inline-flex;
	align-items: center;
	gap: calc(14 * var(--u));
	margin: 0;
	padding: calc(10 * var(--u)) calc(22 * var(--u)) calc(10 * var(--u)) calc(16 * var(--u));
	border: max(1px, calc(1.5 * var(--u))) solid rgba(74, 222, 128, 0.6);
	border-radius: 999px;
	font-size: max(13px, calc(15.5 * var(--u)));
	line-height: 1.32;
	font-weight: 500;
	color: #fff;
}
.mcx-badge svg {
	flex: none;
	width: max(24px, calc(38 * var(--u)));
	height: max(24px, calc(38 * var(--u)));
	color: var(--mcx-mint);
}

/* heading: three lines, "Medical Job" in amber */
.mcx-title {
	margin: calc(16 * var(--u)) 0 0;
	font-size: max(36px, calc(80 * var(--u)));
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
	color: #fff;
	animation-delay: 0.1s;
}
/* the reference letters are spaced a little differently on each line */
.mcx-title > span:nth-child(1),
.mcx-title > span:nth-child(2) {
	font-size: 1.06em;
	line-height: 0.98;
	letter-spacing: 0.02em;
}
.mcx-title > span:nth-child(1) {
	word-spacing: 0.2em;
}
.mcx-title > span:nth-child(2) {
	word-spacing: 0.12em;
}
.mcx-title > span {
	display: block;
}
.mcx-title .mcx-amber {
	color: var(--mcx-amber);
}
.mcx-sub {
	max-width: calc(500 * var(--u));
	margin: calc(22 * var(--u)) 0 0;
	font-size: max(15px, calc(20 * var(--u)));
	font-weight: 400;
	line-height: 1.28;
	color: rgba(255, 255, 255, 0.92);
	animation-delay: 0.2s;
}

/* buttons */
.mcx-cta {
	display: flex;
	flex-wrap: wrap;
	gap: calc(18 * var(--u));
	margin-top: calc(33 * var(--u));
	animation-delay: 0.3s;
}
.mcx-hero .mcx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: calc(12 * var(--u));
	min-height: max(46px, calc(55 * var(--u)));
	padding: 0 calc(20 * var(--u));
	border: max(1.5px, calc(2 * var(--u))) solid transparent;
	border-radius: 999px;
	box-sizing: border-box;
	font-size: max(14px, calc(18 * var(--u)));
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.mcx-btn svg {
	flex: none;
	width: max(18px, calc(24 * var(--u)));
	height: max(18px, calc(24 * var(--u)));
}
.mcx-hero .mcx-btn--amber {
	background: var(--mcx-amber);
	color: var(--mcx-ink);
	font-weight: 700;
}
.mcx-hero .mcx-btn--amber:hover {
	background: #fbbf24;
	transform: translateY(-2px);
}
.mcx-hero .mcx-btn--ghost {
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
	font-weight: 500;
}
.mcx-hero .mcx-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}
.mcx-hero .mcx-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
.mcx-free {
	padding: calc(6 * var(--u)) calc(11 * var(--u));
	border-radius: 999px;
	background: var(--mcx-amber);
	color: var(--mcx-ink);
	font-size: max(11px, calc(14 * var(--u)));
	font-weight: 800;
	line-height: 1;
}

/* live numbers: icon, value over label, thin dividers */
.mcx-hero-stats {
	margin-top: calc(42 * var(--u));
	animation: mcxFadeUp 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mcx-hero-stats .mcx-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(10 * var(--u)) 0;
	max-width: none;
	padding: 0;
}
.mcx-stat {
	position: relative;
	display: flex;
	align-items: center;
	gap: calc(14 * var(--u));
	padding: 0 calc(16 * var(--u));
}
.mcx-stat:first-child {
	padding-left: 0;
}
.mcx-stat + .mcx-stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: calc(48 * var(--u));
	width: 1px;
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-50%);
}
.mcx-stat svg {
	flex: none;
	width: max(24px, calc(36 * var(--u)));
	height: max(24px, calc(36 * var(--u)));
	color: #fff;
}
.mcx-stat-value {
	font-size: max(17px, calc(24 * var(--u)));
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
}
.mcx-stat-label {
	margin-top: calc(3 * var(--u));
	font-size: max(11px, calc(14 * var(--u)));
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
}

/* desktop: the orange bar has its own layer, above the orbit circles and icons */
.mcx-bard {
	position: absolute;
	z-index: 1;
	top: 0;
	bottom: 0;
	left: var(--mcx-art-l);
	right: var(--mcx-art-r);
	pointer-events: none;
}
.mcx-art .mcx-bar {
	display: none;
}
/* solid green under the bar, so where the bar fades out at the bottom the circles still stay hidden behind it */
.mcx-bard::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 24.6%;
	width: 31.2%;
	background: var(--mcx-green);
	transform-origin: 50% 0;
	animation: mcxBarDrop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* decoration: perfect circles (drawn as vector lines) around the bar, with medical icons travelling on them like planets */
.mcx-orbwrap {
	position: absolute;
	z-index: 0; /* lowest layer: the circles and icons sit only on top of the green background */
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	/* icons fade out before the text on the left and before the menu bar at the top, so none of them is ever cut in half */
	-webkit-mask-image: linear-gradient(to right, transparent calc(var(--mcx-art-l) + 30 * var(--u)), #000 calc(var(--mcx-art-l) + 190 * var(--u))), linear-gradient(to bottom, transparent 0, #000 90px);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent calc(var(--mcx-art-l) + 30 * var(--u)), #000 calc(var(--mcx-art-l) + 190 * var(--u))), linear-gradient(to bottom, transparent 0, #000 90px);
	mask-composite: intersect;
	animation: mcxFade 1.2s 0.5s ease-out both;
}
/* the icon layer: no fade mask (each icon only travels where it can be seen) */
.mcx-orbwrap--chips {
	-webkit-mask-image: none;
	mask-image: none;
}
.mcx-orbits {
	position: absolute;
	left: calc(var(--mcx-bar-cx) - 730 * var(--u));
	top: calc(52% - 730 * var(--u));
	width: calc(1460 * var(--u));
	height: calc(1460 * var(--u));
	overflow: visible;
}
.mcx-orbits .mcx-line {
	fill: none;
	stroke: rgba(134, 239, 172, 0.34);
	stroke-width: 1.2;
	vector-effect: non-scaling-stroke;
}
.mcx-orbits .mcx-chip-bg {
	fill: #06351b;
	stroke: rgba(134, 239, 172, 0.7);
	stroke-width: 1.2;
	vector-effect: non-scaling-stroke;
}
.mcx-orbits .mcx-glyph {
	fill: none;
	stroke: #86efac;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@keyframes mcxSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes mcxBarDrop {
	from { transform: scaleY(0); }
	to { transform: scaleY(1); }
}
@keyframes mcxFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}
@keyframes mcxFade {
	from { opacity: 0; }
	to { opacity: 1; }
}
@media (min-width: 640px) {
	.mcx-hero {
		--mcx-pad: 32px;
	}
}
@media (min-width: 1024px) {
	.mcx-hero {
		--mcx-pad: 48px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mcx-bar, .mcx-bard::before, .mcx-art img, .mcx-copy > *, .mcx-hero-stats, .mcx-orbwrap { animation: none; }
	.mcx-hero .mcx-btn { transition: none; }
}

/* Bangla: taller lines */
html[lang^="bn"] body.sc-new-site .mcx-title {
	font-size: max(30px, calc(66 * var(--u)));
	line-height: 1.3;
	letter-spacing: 0;
}
html[lang^="bn"] body.sc-new-site .mcx-title > span {
	font-size: 1em;
	line-height: inherit;
	letter-spacing: 0;
	word-spacing: 0;
}
html[lang^="bn"] body.sc-new-site .mcx-sub {
	font-size: max(15px, calc(22 * var(--u)));
	line-height: 1.55;
}
html[lang^="bn"] body.sc-new-site .mcx-badge {
	line-height: 1.5;
}

/* small laptops: the picture starts a little further right so it never touches the buttons and numbers */
@media (min-width: 1024px) and (max-width: 1100px) {
	.mcx-hero {
		--mcx-art-l: calc(50% - 230 * var(--u));
	}
}

/* tablet and phone (up to 1023px): text on top, the team under it, numbers last. The orbit decoration is left out here to keep it clean. */
@media (max-width: 1023px) {
	.mcx-hero {
		--u: 0.62px;
		padding-bottom: 72px;
	}
	.mcx-stage {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}
	.mcx-left {
		display: contents;
	}
	.mcx-bard,
	.mcx-orbwrap {
		display: none;
	}
	.mcx-art .mcx-bar {
		display: block;
		left: 26.4%;
		width: 33.4%;
	}
	.mcx-copy {
		order: 1;
		padding: 36px var(--mcx-pad) 0;
		text-align: center;
	}
	.mcx-art {
		order: 2;
		position: relative;
		left: auto;
		right: auto;
		width: 100%;
		margin-top: 20px;
		padding-top: 44px; /* the bar shows above the heads */
		box-sizing: border-box;
	}
	.mcx-art .mcx-hero-art {
		position: relative;
	}
	.mcx-hero-stats {
		order: 3;
		margin-top: 26px;
		padding: 0 var(--mcx-pad);
	}
	.mcx-hero-stats .mcx-stats {
		justify-content: center;
	}
	.mcx-badge {
		font-size: 14px;
		padding: 10px 22px 10px 14px;
		gap: 12px;
		text-align: left;
	}
	.mcx-title {
		margin-top: 20px;
		font-size: clamp(38px, 10.5vw, 68px);
	}
	html[lang^="bn"] body.sc-new-site .mcx-title {
		font-size: clamp(30px, 7.8vw, 52px);
	}
	.mcx-sub,
	html[lang^="bn"] body.sc-new-site .mcx-sub {
		max-width: 32em;
		margin: 16px auto 0;
		font-size: 18px;
	}
	.mcx-cta {
		justify-content: center;
		gap: 12px;
		margin-top: 24px;
	}
	.mcx-hero .mcx-btn {
		min-height: 52px;
		padding: 0 26px;
		font-size: 16px;
		gap: 10px;
	}
	.mcx-btn svg {
		width: 22px;
		height: 22px;
	}
	.mcx-free {
		padding: 5px 10px;
		font-size: 12px;
	}
	.mcx-stat {
		gap: 10px;
		padding: 0 18px;
	}
	.mcx-stat svg {
		width: 30px;
		height: 30px;
	}
	.mcx-stat-value {
		font-size: 21px;
	}
	.mcx-stat-label {
		font-size: 13px;
	}
	.mcx-stat + .mcx-stat::before {
		height: 40px;
	}
}
@media (max-width: 767px) {
	.mcx-hero {
		padding-top: 68px;
	}
}

/* phone: text, the three counts and the search box only. The team picture, the orange bar and the two buttons are left out. */
@media (max-width: 640px) {
	.mcx-copy {
		padding: 24px 10px 0 var(--mcx-pad); /* a little less space on the right, so the text can run further right */
		text-align: left;
	}
	.mcx-badge {
		font-size: 13px;
		padding: 8px 18px 8px 12px;
	}
	.mcx-title {
		margin-top: 16px;
		line-height: 1.08;
	}
	html[lang^="bn"] body.sc-new-site .mcx-hero h1.mcx-title,
	html[lang^="bn"] body.sc-new-site .mcx-hero h1.mcx-title > span {
		line-height: 1.08; /* more specific than the site's own Bangla heading rule, which made the lines too far apart */
	}
	.mcx-sub,
	html[lang^="bn"] body.sc-new-site .mcx-sub {
		max-width: none;
		margin: 14px 0 0;
		font-size: 16px;
		line-height: 1.42;
	}
	html[lang^="bn"] body.sc-new-site .mcx-sub {
		line-height: 1.3;
	}
	/* the two buttons: small, always in one row */
	.mcx-cta {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 8px;
		margin-top: 20px;
	}
	.mcx-hero .mcx-btn {
		flex: 0 1 auto;
		min-height: 40px;
		padding: 0 14px;
		font-size: 13.5px;
		gap: 6px;
	}
	.mcx-btn svg {
		width: 16px;
		height: 16px;
	}
	.mcx-btn--ghost svg {
		display: none;
	}
	.mcx-free {
		padding: 3px 7px;
		font-size: 10px;
	}
	.mcx-art {
		display: none;
	}
	.mcx-hero-stats {
		margin-top: 28px;
		padding: 0 var(--mcx-pad);
	}
	.mcx-hero-stats .mcx-stats {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 0;
	}
	.mcx-stat {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 0 0 0 12px;
	}
	.mcx-stat:first-child {
		padding-left: 0;
	}
	.mcx-stat svg {
		width: 22px;
		height: 22px;
	}
	.mcx-stat-value {
		font-size: 17px;
	}
	.mcx-stat-label {
		font-size: 11px;
	}
}
