.mdh-gs{
	--navy:#003057; --ink:#000; --line:#000;
	--year:56px; --year-lh:64px;
	--title:20px;
	--desc:18px; --desc-lh:28px;
	--box:376px;
	--img-w:304px; --img-h:200px;
	--pitch:272px;
	--seg-mask:64px;
	--tail:216px;
	--off:100px;
	font-family:"Poppins",system-ui,-apple-system,sans-serif;
	color:var(--ink);
	padding:64px 20px;
}
.mdh-gs *{ box-sizing:border-box; }
.mdh-gs .mtl{ position:relative; max-width:1000px; margin:0 auto; }

/* center line: starts at first year, ends one tail below last year */
.mdh-gs .mtl-rows{ position:relative; }
.mdh-gs .mtl-line{
	position:absolute; left:50%; transform:translateX(-50%);
	top:calc(var(--pitch)/2);
	bottom:calc(var(--pitch)/2 - var(--tail));
	width:1px; background:transparent; z-index:0;
}
.mdh-gs .mtl-line__fill{ position:absolute; top:0; left:0; width:100%; height:100%; background:var(--line); }

/* each milestone occupies a fixed pitch; cells positioned around the line */
.mdh-gs .mtl-row{ position:relative; z-index:1; min-height:var(--pitch); }

.mdh-gs .mtl-cell--year{
	position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
	z-index:2; background:#fff; padding:0 12px; line-height:var(--seg-mask);
}
.mdh-gs .mtl-year{ font-weight:700; font-size:var(--year); line-height:var(--year-lh); color:var(--yc); white-space:nowrap; }

.mdh-gs .mtl-cell--right{
	position:absolute; top:50%; left:50%; transform:translateY(-50%);
	margin-left:var(--off); width:var(--box); text-align:left;
}
.mdh-gs .mtl-cell--left{
	position:absolute; top:50%; right:50%; transform:translateY(-50%);
	margin-right:var(--off); width:var(--box); text-align:right;
}

.mdh-gs .mtl-title{ margin:0 0 8px; font-weight:600; font-size:var(--title); line-height:1.35; letter-spacing:.02em; color:var(--navy); }


.mdh-gs .mtl-desc{ margin:0; max-width:var(--box); font-weight:400; font-size:var(--desc); line-height:var(--desc-lh); letter-spacing:.025em; color:var(--ink); }
.mdh-gs .mtl-cell--left .mtl-title,
.mdh-gs .mtl-cell--left .mtl-desc{ margin-left:auto; }

.mdh-gs .mtl-media{ margin:0; }
.mdh-gs .mtl-cell--left .mtl-media{ display:flex; justify-content:flex-end; }
.mdh-gs .mtl-media img{ display:block; width:var(--img-w); max-width:100%; height:var(--img-h); object-fit:cover; border-radius:12px; }

/* closing block */
.mdh-gs .mtl-legacy{ position:relative; z-index:1; text-align:center; margin-top:96px; }
.mdh-gs .mtl-arch{ width:min(560px,90%); height:auto; overflow:visible; }
.mdh-gs .mtl-arch text{ font-family:"Poppins",sans-serif; font-weight:600; font-size:32px; letter-spacing:.05em; fill:var(--ink); }
.mdh-gs .mtl-legacy__sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.mdh-gs .mtl-legacy__photo{ margin:8px auto 20px; }
.mdh-gs .mtl-legacy__photo img{ width:192px; height:192px; object-fit:cover; border-radius:16px; display:block; margin:0 auto; }
.mdh-gs .mtl-legacy__desc{ max-width:416px; margin:0 auto; font-weight:400; font-size:var(--desc); line-height:var(--desc-lh); letter-spacing:.025em; color:var(--ink); }

/* reveal start-state (subtle) — added by JS as .js-anim */
.mdh-gs.js-anim .mtl-row,
.mdh-gs.js-anim .mtl-legacy{ opacity:0; transform:translateY(30px); }

/* while editing in Elementor: always visible */
.mdh-gs.mdh-editor .mtl-row,
.mdh-gs.mdh-editor .mtl-legacy{ opacity:1 !important; transform:none !important; }
.mdh-gs.mdh-editor .mtl-line__fill{ height:100% !important; }

/* tablet + mobile: single column, line on the left */
@media (max-width:860px){
	.mdh-gs{ --year:40px; --year-lh:44px; --title:17px; padding:40px 16px; }
	.mdh-gs .mtl-line{ left:18px; transform:none; top:22px; bottom:22px; }
	.mdh-gs .mtl-row{ min-height:0; margin-bottom:56px; padding-left:52px; display:flex; flex-direction:column; }
	.mdh-gs .mtl-row:last-child{ margin-bottom:0; }
	.mdh-gs .mtl-cell--year,
	.mdh-gs .mtl-cell--left,
	.mdh-gs .mtl-cell--right{ position:static; transform:none; margin:0; width:auto; text-align:left; background:transparent; padding:0; }
	.mdh-gs .mtl-cell--year{ order:0; margin-left:0; margin-bottom:10px; line-height:1; }
	.mdh-gs .mtl-cell--right{ order:1; }
	.mdh-gs .mtl-cell--left{ order:2; }
	.mdh-gs .mtl-cell--right:empty,
	.mdh-gs .mtl-cell--left:empty{ display:none; }
	.mdh-gs .mtl-cell--left .mtl-title,
	.mdh-gs .mtl-cell--left .mtl-desc{ margin-left:0; }
	.mdh-gs .mtl-desc{ max-width:none; }
	.mdh-gs .mtl-cell--left .mtl-media{ justify-content:flex-start; margin-top:14px; }
	.mdh-gs .mtl-media img{ width:100%; max-width:var(--img-w); height:auto; }
}

@media (prefers-reduced-motion:reduce){
	.mdh-gs.js-anim .mtl-row,
	.mdh-gs.js-anim .mtl-legacy{ opacity:1 !important; transform:none !important; }
	.mdh-gs .mtl-line__fill{ height:100% !important; }
}


/* =========================================================
   MDH TIMELINE RESPONSIVE PATCH
   Applies only from 1400px down
   1401px+ remains completely unchanged
   Add this at the END of the existing CSS
========================================================= */


/* =========================================================
   1201px to 1400px
========================================================= */

@media (min-width: 1201px) and (max-width: 1400px) {

	 body .mdh-gs {
		--year: 50px !important;
		--year-lh: 58px !important;
		--title: 19px !important;
		--desc: 17px !important;
		--desc-lh: 27px !important;

		--box: 340px !important;
		--img-w: 286px !important;
		--img-h: 188px !important;

		--pitch: 272px !important;
		--off: 78px !important;
		--tail: 200px !important;
		--seg-mask: 60px !important;

		padding: 56px 24px !important;
	}

	body .mdh-gs .mtl {
		width: 100%;
		max-width: 920px;
	}

	body .mdh-gs .mtl-title,
	body .mdh-gs .mtl-desc {
		max-width: 100%;
		overflow-wrap: break-word;
	}

	body .mdh-gs .mtl-arch {
		width: min(640px, 85vw);
	}

	body .mdh-gs .mtl-legacy__photo img {
		width: 184px;
		height: 184px;
	}
}


/* =========================================================
   1025px to 1200px
========================================================= */

@media (min-width: 1025px) and (max-width: 1200px) {

	body .mdh-gs {
		--year: 46px !important;
		--year-lh: 54px !important;
		--title: 18px !important;
		--desc: 16px !important;
		--desc-lh: 25px !important;

		--box: 300px !important;
		--img-w: 265px !important;
		--img-h: 174px !important;

		--pitch: 260px !important;
		--off: 60px !important;
		--tail: 185px !important;
		--seg-mask: 56px !important;

		padding: 50px 22px !important;
	}

	body .mdh-gs .mtl {
		width: 100%;
		max-width: 840px;
	}

	body .mdh-gs .mtl-title,
	body .mdh-gs .mtl-desc {
		max-width: 100%;
		overflow-wrap: break-word;
	}

	body .mdh-gs .mtl-arch {
		width: min(600px, 84vw);
	}

	body .mdh-gs .mtl-arch text {
		font-size: 30px;
	}

	body .mdh-gs .mtl-legacy {
		margin-top: 84px;
	}
}


/* =========================================================
   861px to 1024px
   Alternating desktop layout remains active
========================================================= */

@media (min-width: 861px) and (max-width: 1024px) {

	body .mdh-gs {
		--year: 40px !important;
		--year-lh: 48px !important;
		--title: 17px !important;
		--desc: 15px !important;
		--desc-lh: 24px !important;

		--box: 270px !important;
		--img-w: 235px !important;
		--img-h: 156px !important;

		--pitch: 250px !important;
		--off: 42px !important;
		--tail: 170px !important;
		--seg-mask: 52px !important;

		padding: 44px 20px !important;
	}

	body .mdh-gs .mtl {
		width: 100%;
		max-width: 760px;
	}

	body .mdh-gs .mtl-cell--right {
		margin-left: var(--off);
		width: var(--box);
	}

	body .mdh-gs .mtl-cell--left {
		margin-right: var(--off);
		width: var(--box);
	}

	body .mdh-gs .mtl-title,
	body .mdh-gs .mtl-desc {
		max-width: 100%;
		overflow-wrap: break-word;
	}

	body .mdh-gs .mtl-media img {
		max-width: 100%;
	}

	body .mdh-gs .mtl-arch {
		width: min(540px, 82vw);
	}

	body .mdh-gs .mtl-arch text {
		font-size: 28px;
	}

	body .mdh-gs .mtl-legacy {
		margin-top: 72px;
	}

	body .mdh-gs .mtl-legacy__photo img {
		width: 170px;
		height: 170px;
	}

	body .mdh-gs .mtl-legacy__desc {
		max-width: 390px;
	}
}


/* =========================================================
   Tablet: 768px to 860px
   Switches to single-column layout
========================================================= */

@media (min-width: 768px) and (max-width: 860px) {

	body .mdh-gs {
		--year: 40px !important;
		--year-lh: 46px !important;
		--title: 18px !important;
		--desc: 16px !important;
		--desc-lh: 26px !important;
		--img-w: 420px !important;

		padding: 42px 24px !important;
	}

	body .mdh-gs .mtl {
		width: 100%;
		max-width: 680px;
	}

	body .mdh-gs .mtl-line {
		left: 22px;
		top: 24px;
		bottom: 24px;
		transform: none;
	}

	body .mdh-gs .mtl-row {
		min-height: 0;
		margin-bottom: 58px;
		padding-left: 62px;
		display: flex;
		flex-direction: column;
	}

	body .mdh-gs .mtl-row:last-child {
		margin-bottom: 0;
	}

	body .mdh-gs .mtl-cell--year,
	body .mdh-gs .mtl-cell--left,
	body .mdh-gs .mtl-cell--right {
		position: static;
		width: auto;
		margin: 0;
		padding: 0;
		transform: none;
		text-align: left;
		background: transparent;
	}

	body .mdh-gs .mtl-cell--year {
		order: 0;
		margin-left: 0;
		margin-bottom: 12px;
		line-height: 1;
	}

	body .mdh-gs .mtl-cell--right {
		order: 1;
	}

	body .mdh-gs .mtl-cell--left {
		order: 2;
	}

	body .mdh-gs .mtl-cell--right:empty,
	body .mdh-gs .mtl-cell--left:empty {
		display: none;
	}

	body .mdh-gs .mtl-cell--left .mtl-title,
	body .mdh-gs .mtl-cell--left .mtl-desc {
		margin-left: 0;
	}

	body .mdh-gs .mtl-title,
	body .mdh-gs .mtl-desc {
		width: 100%;
		max-width: 100%;
		text-align: left;
		overflow-wrap: break-word;
	}

	body .mdh-gs .mtl-cell--left .mtl-media {
		justify-content: flex-start;
		margin-top: 16px;
	}

	body .mdh-gs .mtl-media img {
		width: 100%;
		max-width: var(--img-w);
		height: auto;
	}

	body .mdh-gs .mtl-legacy {
		margin-top: 68px;
	}

	body .mdh-gs .mtl-arch {
		width: min(520px, 90%);
	}

	body .mdh-gs .mtl-arch text {
		font-size: 27px;
	}

	body .mdh-gs .mtl-legacy__photo img {
		width: 168px;
		height: 168px;
	}

	body .mdh-gs .mtl-legacy__desc {
		max-width: 400px;
	}
}


/* =========================================================
   Mobile: 481px to 767px
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {

	body .mdh-gs {
		--year: 36px !important;
		--year-lh: 42px !important;
		--title: 17px !important;
		--desc: 15px !important;
		--desc-lh: 25px !important;

		padding: 36px 18px !important;
	}

	body .mdh-gs .mtl {
		width: 100%;
		max-width: 620px;
	}

	body .mdh-gs .mtl-line {
		left: 20px;
		top: 22px;
		bottom: 22px;
	}

	body .mdh-gs .mtl-row {
		margin-bottom: 52px;
		padding-left: 56px;
	}

	body .mdh-gs .mtl-cell--year {
		margin-left: 0;
		margin-bottom: 10px;
	}

	body .mdh-gs .mtl-title,
	body .mdh-gs .mtl-desc {
		width: 100%;
		max-width: 100%;
		overflow-wrap: break-word;
	}

	body .mdh-gs .mtl-cell--left .mtl-media {
		margin-top: 14px;
	}

	body .mdh-gs .mtl-media img {
		width: 100%;
		max-width: 380px;
		height: auto;
	}

	body .mdh-gs .mtl-legacy {
		margin-top: 58px;
	}

	body .mdh-gs .mtl-arch {
		width: min(470px, 96%);
	}

	body .mdh-gs .mtl-arch text {
		font-size: 25px;
	}

	body .mdh-gs .mtl-legacy__photo {
		margin-top: 4px;
	}

	body .mdh-gs .mtl-legacy__photo img {
		width: 154px;
		height: 154px;
	}

	body .mdh-gs .mtl-legacy__desc {
		width: 100%;
		max-width: 380px;
	}
}


/* =========================================================
   Small mobile: 391px to 480px
========================================================= */

@media (min-width: 391px) and (max-width: 480px) {

	body .mdh-gs {
		--year: 34px !important;
		--year-lh: 40px !important;
		--title: 16px !important;
		--desc: 15px !important;
		--desc-lh: 24px !important;

		padding: 30px 14px !important;
	}

	body .mdh-gs .mtl {
		width: 100%;
		max-width: 100%;
	}

	body .mdh-gs .mtl-line {
		left: 16px;
		top: 20px;
		bottom: 20px;
	}

	body .mdh-gs .mtl-row {
		margin-bottom: 46px;
		padding-left: 48px;
	}

	body .mdh-gs .mtl-cell--year {
		margin-left: 0;
		margin-bottom: 10px;
	}

	body .mdh-gs .mtl-title,
	body .mdh-gs .mtl-desc {
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	body .mdh-gs .mtl-media img {
		width: 100%;
		max-width: 100%;
		height: auto;
		border-radius: 10px;
	}

	body .mdh-gs .mtl-legacy {
		margin-top: 50px;
	}

	body .mdh-gs .mtl-arch {
		width: 100%;
		max-width: 420px;
	}

	body .mdh-gs .mtl-arch text {
		font-size: 22px;
	}

	body .mdh-gs .mtl-legacy__photo img {
		width: 144px;
		height: 144px;
		border-radius: 14px;
	}

	body .mdh-gs .mtl-legacy__desc {
		max-width: 330px;
	}
}


/* =========================================================
   Extra-small mobile: up to 390px
========================================================= */

@media (max-width: 390px) {

	body .mdh-gs {
		--year: 30px !important;
		--year-lh: 36px !important;
		--title: 15px !important;
		--desc: 14px !important;
		--desc-lh: 23px !important;

		padding: 26px 12px !important;
	}

	body .mdh-gs .mtl {
		width: 100%;
		max-width: 100%;
	}

	body .mdh-gs .mtl-line {
		left: 14px;
		top: 18px;
		bottom: 18px;
	}

	body .mdh-gs .mtl-row {
		margin-bottom: 42px;
		padding-left: 42px;
	}

	body .mdh-gs .mtl-cell--year {
		margin-left: -28px;
		margin-bottom: 8px;
	}

	body .mdh-gs .mtl-title {
		margin-bottom: 6px;
	}

	body .mdh-gs .mtl-title,
	body .mdh-gs .mtl-desc {
		width: 100%;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	body .mdh-gs .mtl-media img {
		width: 100%;
		max-width: 100%;
		height: auto;
		border-radius: 10px;
	}

	body .mdh-gs .mtl-legacy {
		margin-top: 44px;
	}

	body .mdh-gs .mtl-arch {
		width: 100%;
		max-width: 360px;
	}

	body .mdh-gs .mtl-arch text {
		font-size: 19px;
		letter-spacing: 0.035em;
	}

	body .mdh-gs .mtl-legacy__photo {
		margin: 2px auto 16px;
	}

	body .mdh-gs .mtl-legacy__photo img {
		width: 132px;
		height: 132px;
		border-radius: 12px;
	}

	body .mdh-gs .mtl-legacy__desc {
		width: 100%;
		max-width: 300px;
	}
}