/* Orion Our History — matches the real "our history" timeline section
   from about-us.html: a fixed-width thumbnail, a connecting dot+line
   column (lg+ only), and offset content, repeated per milestone.
   Breakpoints match this project's real ones: sm=640, md=769, lg=992,
   xl=1199, 1xl=1380, 2xl=1752. */

.orion-history {
	position: relative;
	margin-bottom: 40px;
}
@media (min-width: 769px) { .orion-history { margin-bottom: 50px; } }
@media (min-width: 992px) { .orion-history { margin-bottom: 70px; } }
@media (min-width: 1380px) { .orion-history { margin-bottom: 80px; } }
@media (min-width: 1752px) { .orion-history { margin-bottom: 100px; } }

/* Width/max-width is owned by the wrapping Elementor Container (Boxed
   content_width, responsive boxed_width) for the default timeline —
   this just supplies padding. Alternating (careers) sets its own
   max-width schedule so it matches other career sections when
   Elementor is full-bleed. */
.orion-history__container {
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* HTML global h2 schedule. */
h2.orion-history__title {
	margin: 0 0 20px;
	font-family: "El Messiri", serif;
	font-weight: 500;
	color: #000;
	font-size: 26px;
	line-height: 36px;
}
@media (min-width: 640px) {
	h2.orion-history__title { margin-bottom: 30px; font-size: 30px; line-height: 40px; }
}
@media (min-width: 769px) {
	h2.orion-history__title { font-size: 35px; line-height: 40px; }
}
@media (min-width: 1199px) {
	h2.orion-history__title { margin-bottom: 50px; font-size: 40px; line-height: 50px; }
}
@media (min-width: 1380px) {
	h2.orion-history__title { font-size: 46px; line-height: 55px; }
}
@media (min-width: 1752px) {
	h2.orion-history__title { font-size: 60px; line-height: 70px; }
}

.orion-history__timeline {
	display: grid;
	grid-template-columns: 1fr;
	gap: 35px;
}
@media (min-width: 1380px) { .orion-history__timeline { gap: 36px; } }
@media (min-width: 1752px) { .orion-history__timeline { gap: 40px; } }

.orion-history__item {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
@media (min-width: 769px) {
	.orion-history__item { flex-direction: row; overflow: visible; }
}

.orion-history__media {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: auto;
	flex-shrink: 0;
	aspect-ratio: 100 / 69;
	margin-bottom: 24px;
}
@media (min-width: 769px) {
	.orion-history__media {
		width: 215px;
		aspect-ratio: 100 / 69;
		margin-bottom: 0;
		margin-right: 10px;
	}
}
@media (min-width: 992px) {
	.orion-history__media {
		width: 230px;
		aspect-ratio: 100 / 65;
		margin-right: 32px;
	}
}
@media (min-width: 1199px) {
	.orion-history__media { width: 250px; }
}
@media (min-width: 1380px) {
	.orion-history__media { aspect-ratio: 1 / 1; }
}
@media (min-width: 1752px) {
	.orion-history__media { width: 283px; margin-right: 55px; }
}

.orion-history__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

.orion-history__line {
	display: none;
}
/* No height here — .orion-history__line's parent row stretches this to the
   item's real content height (see the align-items:stretch note below), and
   flex:1 1 auto (set in the 992px+ rule, where the line actually becomes
   visible) grows the connector to fill whatever space is left below the
   dot. A fixed px height would just be a guess that breaks on any device
   or content length that doesn't match it. */
.orion-history__connector{
	width: 2px;
	background-color: var(--orion-primary);
}
@media (min-width: 992px) {
	.orion-history__line {
		display: flex;
		flex-direction: column;
		align-items: center;
		flex-shrink: 0;
	}
	.orion-history__dot {
		width: 24px;
		height: 24px;
		border-radius: 50%;
		border: 2px solid var(--orion-primary);
		flex-shrink: 0;
	}
	.orion-history__connector {
		width: 2px;
		flex: 1 1 auto;
		background-color: var(--orion-primary);
	}
	/* HTML team/project detail timelines keep the line on the last item
	   (w-[2px] h-full on every history-item). Do not hide :last-child. */
}
@media (min-width: 1752px) {
	.orion-history__dot { width: 31px; height: 31px; }
}

.orion-history__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
@media (min-width: 769px) {
	.orion-history__content { margin-left: 20px; }
}
@media (min-width: 1752px) {
	.orion-history__content { margin-left: 31px; }
}

/* HTML global h6 schedule (font-lexend text-primary). */
.orion-history__tag {
	display: block;
	color: var(--orion-primary);
	margin-bottom: 15px;
	font-family: Lexend, sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.375;
}
@media (min-width: 640px)  { .orion-history__tag { font-size: 16px; line-height: 22px; } }
@media (min-width: 992px)  { .orion-history__tag { font-size: 17px; line-height: 23.375px; } }
@media (min-width: 1199px) { .orion-history__tag { font-size: 18px; line-height: 32px; } }
@media (min-width: 1752px) { .orion-history__tag { font-size: 22px; line-height: 32px; } }

.orion-history__headline {
	margin: 0 0 12px;
	font-family: "El Messiri", serif;
	font-weight: 400;
	color: #000;
	font-size: 26px;
	line-height: 30px;
}
@media (min-width: 640px)  { .orion-history__headline { line-height: 32px; } }
@media (min-width: 769px)  { .orion-history__headline { font-size: 30px; line-height: 38px; } }
@media (min-width: 1199px) { .orion-history__headline { line-height: 40px; } }
@media (min-width: 1380px) { .orion-history__headline { font-size: 36px; line-height: 40px; } }
@media (min-width: 1752px) { .orion-history__headline { font-size: 45px; line-height: 60px; } }

/* Real fluid p schedule (measured from the reference's own compiled CSS —
   its global "p, .p" rule: 14/14/14/15/15/15/18 across sm/md/lg/xl/1xl/2xl). */
.orion-history__desc {
	margin: 0;
	color: #464343;
	font-family: Lexend, sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 23px;
}
@media (min-width: 992px)  { .orion-history__desc { font-size: 15px; line-height: 25px; } }
@media (min-width: 1199px) { .orion-history__desc { line-height: 28px; } }
@media (min-width: 1752px) { .orion-history__desc { font-size: 18px; line-height: 32px; } }

/* ── Alternating variant (careers.html "Recruitment Process") ──────────
   Centered continuous line + alternating image/text. Scoped under
   .orion-history--alternating so Projects/Team timeline stays untouched. */

.orion-history--alternating {
	margin-bottom: 32px;
}
@media (min-width: 769px)  { .orion-history--alternating { margin-bottom: 50px; } }
@media (min-width: 992px)  { .orion-history--alternating { margin-bottom: 60px; } }
@media (min-width: 1380px) { .orion-history--alternating { margin-bottom: 80px; } }
@media (min-width: 1752px) { .orion-history--alternating { margin-bottom: 100px; } }

/* Match other career section containers when Elementor is full-bleed. */
.orion-history--alternating .orion-history__container {
	width: 100%;
	max-width: 100%;
}
@media (min-width: 640px)  { .orion-history--alternating .orion-history__container { max-width: 640px; } }
@media (min-width: 769px)  { .orion-history--alternating .orion-history__container { max-width: 769px; } }
@media (min-width: 992px)  { .orion-history--alternating .orion-history__container { max-width: 992px; } }
@media (min-width: 1199px) { .orion-history--alternating .orion-history__container { max-width: 1199px; } }
@media (min-width: 1380px) { .orion-history--alternating .orion-history__container { max-width: 1380px; } }
@media (min-width: 1752px) { .orion-history--alternating .orion-history__container { max-width: 1752px; } }

/* Careers h2 schedule (xl:mb-10 md:mb-7 mb-5) — not about-us history mb. */
.orion-history--alternating .orion-history__title {
	margin: 0 0 20px;
	font-family: var(--orion-font-heading, "El Messiri", serif);
	font-weight: 500;
	color: #000;
	font-size: 26px;
	line-height: 36px;
}
@media (min-width: 640px) {
	.orion-history--alternating .orion-history__title {
		font-size: 30px;
		line-height: 40px;
	}
}
@media (min-width: 769px) {
	.orion-history--alternating .orion-history__title {
		margin-bottom: 28px;
		font-size: 35px;
		line-height: 40px;
	}
}
@media (min-width: 1199px) {
	.orion-history--alternating .orion-history__title {
		margin-bottom: 40px;
		font-size: 40px;
		line-height: 50px;
	}
}
@media (min-width: 1380px) {
	.orion-history--alternating .orion-history__title {
		font-size: 46px;
		line-height: 55px;
	}
}
@media (min-width: 1752px) {
	.orion-history--alternating .orion-history__title {
		font-size: 60px;
		line-height: 70px;
	}
}

.orion-history--alternating .orion-history__timeline {
	position: relative;
	gap: 0;
}

/* Continuous vertical line (HTML absolute left-1/2 top-40…bottom-42). */
.orion-history--alternating .orion-history__timeline::before {
	content: none;
}
@media (min-width: 992px) {
	.orion-history--alternating .orion-history__timeline::before {
		content: "";
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		width: 2px;
		top: 160px;
		bottom: 168px;
		background-color: var(--orion-primary);
		z-index: 0;
	}
}
@media (min-width: 1199px) {
	.orion-history--alternating .orion-history__timeline::before {
		top: 184px;
		bottom: 184px;
	}
}
@media (min-width: 1380px) {
	.orion-history--alternating .orion-history__timeline::before {
		top: 200px;
		bottom: 212px;
	}
}
@media (min-width: 1752px) {
	.orion-history--alternating .orion-history__timeline::before {
		top: 216px;
		bottom: 212px;
	}
}

/* HTML: 1xl:mb-16 sm:mb-10 mb-8 + lg:flex-row gap-6/0 */
.orion-history--alternating .orion-history__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 24px;
	margin-bottom: 32px;
	overflow: visible;
}
@media (min-width: 640px) {
	.orion-history--alternating .orion-history__item { margin-bottom: 40px; }
}
@media (min-width: 992px) {
	.orion-history--alternating .orion-history__item {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0;
	}
	.orion-history--alternating .orion-history__item--reverse {
		flex-direction: row-reverse;
	}
}
@media (min-width: 1380px) {
	.orion-history--alternating .orion-history__item { margin-bottom: 64px; }
}
.orion-history--alternating .orion-history__item:last-child {
	margin-bottom: 0;
}

/* HTML before:pt-[55%] / lg:75% / xl:68% / 2xl:55% via aspect-ratio. */
.orion-history--alternating .orion-history__media {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: auto;
	aspect-ratio: 100 / 55;
	margin: 0;
	flex-shrink: 0;
}
@media (min-width: 992px) {
	.orion-history--alternating .orion-history__media {
		width: 45.5%;
		aspect-ratio: 100 / 75;
		flex: 0 0 auto;
		margin-right: 40px;
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__media {
		margin-right: 0;
		margin-left: 40px;
	}
}
@media (min-width: 1199px) {
	.orion-history--alternating .orion-history__media {
		width: 44%;
		aspect-ratio: 100 / 68;
		margin-right: 72px; /* xl:mr-18 */
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__media {
		margin-right: 0;
		margin-left: 72px;
	}
}
@media (min-width: 1380px) {
	.orion-history--alternating .orion-history__media {
		width: 43%;
		margin-right: 90px;
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__media {
		margin-right: 0;
		margin-left: 90px;
	}
}
@media (min-width: 1752px) {
	.orion-history--alternating .orion-history__media {
		width: 42.5%;
		aspect-ratio: 100 / 55;
		margin-right: 130px;
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__media {
		margin-right: 0;
		margin-left: 130px;
	}
}

.orion-history--alternating .orion-history__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	display: block;
}

/* Dots only — continuous line is on the timeline. */
.orion-history--alternating .orion-history__line {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
}
.orion-history--alternating .orion-history__connector {
	display: none;
}
@media (min-width: 992px) {
	.orion-history--alternating .orion-history__line {
		display: flex;
	}
	.orion-history--alternating .orion-history__dot {
		width: 22px;
		height: 22px;
		border-radius: 50%;
		border: 2px solid var(--orion-primary);
		background: #fff;
		flex-shrink: 0;
		box-sizing: border-box;
	}
}
@media (min-width: 1199px) {
	.orion-history--alternating .orion-history__dot { width: 28px; height: 28px; }
}
@media (min-width: 1380px) {
	.orion-history--alternating .orion-history__dot { width: 31px; height: 31px; }
}

.orion-history--alternating .orion-history__content {
	margin-left: 0;
	width: 100%;
}
@media (min-width: 992px) {
	.orion-history--alternating .orion-history__content {
		width: 50%;
		flex: 0 0 auto;
		box-sizing: border-box;
		padding: 20px 0 20px 40px; /* lg:py-5 lg:pl-10 */
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__content {
		padding: 20px 40px 20px 0;
	}
}
@media (min-width: 1199px) {
	.orion-history--alternating .orion-history__content {
		padding: 36px 0 36px 70px; /* xl:py-9 xl:pl-[70px] */
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__content {
		padding: 36px 80px 36px 0; /* xl:pr-20 */
	}
}
@media (min-width: 1380px) {
	.orion-history--alternating .orion-history__content {
		padding: 44px 0 44px 80px; /* 1xl:py-11 1xl:pl-[80px] */
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__content {
		padding: 44px 95px 44px 0;
	}
}
@media (min-width: 1752px) {
	.orion-history--alternating .orion-history__content {
		padding: 70px 0 70px 100px;
	}
	.orion-history--alternating .orion-history__item--reverse .orion-history__content {
		padding: 70px 130px 70px 0;
	}
}

/* Real fluid h3 schedule (measured via CDP against careers.html).
   HTML wraps h3 in `flex … mb-2` with h3 also `mb-2`/`xl:mb-3`; flex
   prevents margin collapse so both margins stack (16px / 20px). */
.orion-history--alternating .orion-history__headline {
	margin: 0 0 16px;
	font-family: var(--orion-font-heading, "El Messiri", serif);
	font-weight: 400;
	color: #000;
	font-size: 26px;
	line-height: 30px;
}
@media (min-width: 640px) {
	.orion-history--alternating .orion-history__headline { line-height: 32px; }
}
@media (min-width: 769px) {
	.orion-history--alternating .orion-history__headline {
		font-size: 30px;
		line-height: 38px;
	}
}
@media (min-width: 1199px) {
	.orion-history--alternating .orion-history__headline {
		margin-bottom: 20px;
		line-height: 40px;
	}
}
@media (min-width: 1380px) {
	.orion-history--alternating .orion-history__headline {
		font-size: 36px;
		line-height: 40px;
	}
}
@media (min-width: 1752px) {
	.orion-history--alternating .orion-history__headline {
		font-size: 45px;
		line-height: 60px;
	}
}

.orion-history--alternating .orion-history__desc {
	margin: 0;
	color: #464343;
	font-family: var(--orion-font-body, Lexend, sans-serif);
	font-weight: 300;
	font-size: 14px;
	line-height: 23px;
}
@media (min-width: 992px) {
	.orion-history--alternating .orion-history__desc {
		font-size: 15px;
		line-height: 25px;
	}
}
@media (min-width: 1199px) {
	.orion-history--alternating .orion-history__desc { line-height: 28px; }
}
@media (min-width: 1752px) {
	.orion-history--alternating .orion-history__desc {
		font-size: 18px;
		line-height: 32px;
	}
}

