/* Loaded only by the MedTechG Home Custom test template. */

/* 커스텀 메인 전체 폰트 통일 */
#mtg-home-custom,
#mtg-home-custom * {
	font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
}

#mtg-home-custom {
	--mtg-navy: #062e64;
	--mtg-blue: #0c5ca5;
	--mtg-cyan: #08b9c4;
	--mtg-ink: #1a2738;
	--mtg-muted: #6d7988;
	--mtg-line: #dce3eb;
	--mtg-soft: #f5f8fb;
	background: #fff;
	color: var(--mtg-ink);
	font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif!important;
	font-size: 16px;
	line-height: 1.75;
}

#mtg-home-custom.container_wrap {
	border-top: 0;
	clear: both;
}

#mtg-home-custom,
#mtg-home-custom * { box-sizing: border-box; }
#mtg-home-custom a { color: inherit; text-decoration: none; }
#mtg-home-custom h1,
#mtg-home-custom h2,
#mtg-home-custom h3,
#mtg-home-custom p { margin-top: 0; }
#mtg-home-custom img { display: block; max-width: 100%; }

#mtg-home-custom .mtg-home-container {
	margin: 0 auto;
	max-width: 1400px;
	padding: 0 36px;
	width: 100%;
}

#mtg-home-custom .mtg-home-hero {
	background-color: #e2edf5;
	background-image:
		linear-gradient(90deg, rgba(239,246,250,.98) 0%, rgba(239,246,250,.84) 36%, rgba(239,246,250,.08) 72%),
		var(--mtg-home-hero-image);
	background-position: center, center right;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 520px;
}

#mtg-home-custom .mtg-home-hero__inner {
	align-items: center;
	display: flex;
	min-height: 520px;
}

#mtg-home-custom .mtg-home-hero__copy {
	max-width: 620px;
	padding: 70px 0;
}

#mtg-home-custom .mtg-home-eyebrow {
	color: var(--mtg-blue);
	font-family: Georgia, serif;
	font-size: 15px;
	letter-spacing: .04em;
	margin-bottom: 14px;
}

#mtg-home-custom .mtg-home-hero h1 {
	color: #17283c;
	font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
	font-size: clamp(36px, 4vw, 62px);
	font-weight: 500;
	line-height: 1.35;
	margin-bottom: 22px;
}

#mtg-home-custom .mtg-home-hero__description {
	font-size: 16px;
	margin-bottom: 28px;
}

#mtg-home-custom .mtg-home-button {
	align-items: center;
	border: 1px solid currentColor;
	display: inline-flex;
	font-size: 14px;
	gap: 28px;
	justify-content: space-between;
	min-width: 190px;
	padding: 12px 18px;
	transition: transform .2s ease, opacity .2s ease;
}

#mtg-home-custom a.mtg-home-button:hover {
	opacity: .84;
	transform: translateY(-2px);
}

#mtg-home-custom .mtg-home-button--primary {
	background: var(--mtg-navy);
	border-color: var(--mtg-navy);
	color: #fff;
}

#mtg-home-custom .mtg-home-button--disabled {
	cursor: not-allowed;
	opacity: .5;
}

#mtg-home-custom .mtg-home-section { padding: 64px 0 72px; }
#mtg-home-custom .mtg-home-section--soft { background: #fff; }
#mtg-home-custom .mtg-home-section--bottom { padding-top: 28px; }

#mtg-home-custom .mtg-home-section__header {
	align-items: center;
	border-bottom: 1px solid var(--mtg-line);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	margin-bottom: 38px;
	padding-bottom: 14px;
}

#mtg-home-custom .mtg-home-section__header h2 {
	grid-column: 2;
	text-align: center;
}

#mtg-home-custom .mtg-home-section__header > a {
	grid-column: 3;
	justify-self: end;
}

#mtg-home-custom .mtg-home-section__header h2,
#mtg-home-custom .mtg-home-events__header h2 {
	color: var(--mtg-navy);
	font-family: "Noto Serif JP", "Yu Mincho", serif;
	font-size: 22px;
	font-weight: 600;
	margin: 0;
}

#mtg-home-custom .mtg-home-section__header > a {
	color: var(--mtg-muted);
	font-size: 13px;
}

#mtg-home-custom .mtg-home-grid {
	display: grid;
	gap: 24px;
}

#mtg-home-custom .mtg-home-grid--news {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

#mtg-home-custom .mtg-home-grid--hospital,
#mtg-home-custom .mtg-home-grid--insights {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

#mtg-home-custom .mtg-home-grid--hospital .mtg-home-card:first-child {
	grid-column: span 2;
}

#mtg-home-custom .mtg-home-card {
	border: 1px solid #9bb3cc;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	padding: 14px;
}

#mtg-home-custom .mtg-home-card__meta {
	color: var(--mtg-blue);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	margin-bottom: 8px;
	min-height: 1.5em;
}

#mtg-home-custom .mtg-home-card__media {
	background: #e3e9ef;
	display: block;
	margin-bottom: 16px;
	overflow: hidden;
}

#mtg-home-custom .mtg-home-card__image {
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
	transition: transform .3s ease;
	width: 100%;
}

#mtg-home-custom .mtg-home-card__image--empty {
	background: linear-gradient(145deg, #082f65, #0a497f);
	display: block;
}

#mtg-home-custom .mtg-home-card__media:hover .mtg-home-card__image {
	transform: scale(1.025);
}

#mtg-home-custom .mtg-home-card__title,
#mtg-home-custom .mtg-home-card__summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#mtg-home-custom .mtg-home-card__title {
	font-family: "Noto Serif JP", "Yu Mincho", serif;
	font-size: 15px!important;
	font-weight: 600;
	line-height: 1.6;
	margin-bottom: 8px;
	min-height: 3.2em;
}

#mtg-home-custom .mtg-home-card--featured .mtg-home-card__title {
	font-size: 16px!important;
}

#mtg-home-custom .mtg-home-card__summary {
	color: var(--mtg-muted);
	font-size: 14px!important;
	line-height: 1.7;
	margin-bottom: 12px;
	min-height: 3.4em;
}

#mtg-home-custom .mtg-home-card__more,
#mtg-home-custom .mtg-home-events__all {
	color: var(--mtg-blue);
	font-size: 13px!important;
}


#mtg-home-custom .mtg-home-card__more {
	margin-top: auto;
}


#mtg-home-custom .mtg-home-bottom-grid {
	align-items: stretch;
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#mtg-home-custom .mtg-home-events,
#mtg-home-custom .mtg-home-newsletter {
	border: 1px solid #9bb3cc;
	border-radius: 14px;
	min-height: 230px;
	padding: 30px 34px;
}

#mtg-home-custom .mtg-home-newsletter {
	display: flex;
	flex-direction: column;
}

#mtg-home-custom .mtg-home-newsletter .mtg-home-button {
	align-self: flex-end;
	margin-top: auto;
}

#mtg-home-custom .mtg-home-events__header {
	border-bottom: 1px solid var(--mtg-line);
	padding-bottom: 12px;
}

#mtg-home-custom .mtg-home-event {
	align-items: center;
	border-bottom: 1px solid #e8edf2;
	display: grid;
	font-size: 13px;
	gap: 16px;
	grid-template-columns: 92px 110px minmax(0, 1fr) 10px;
	min-height: 52px;
}

#mtg-home-custom .mtg-home-event time { color: var(--mtg-muted); }

#mtg-home-custom .mtg-home-event__tag {
	color: var(--mtg-blue);
}

#mtg-home-custom .mtg-home-event__tag,
#mtg-home-custom .mtg-home-event__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#mtg-home-custom .mtg-home-events__all {
	display: inline-block;
	margin-top: 15px;
}

#mtg-home-custom .mtg-home-newsletter {
	background: var(--mtg-navy);
	border-color: var(--mtg-navy);
	color: #fff;
}

#mtg-home-custom .mtg-home-newsletter h2 {
		font-family: "Noto Serif JP", "Yu Mincho", serif;
	color: #fff;
	font-size: 18px;
	margin-bottom: 10px;
}

#mtg-home-custom .mtg-home-newsletter p {
		font-family: "Noto Serif JP", "Yu Mincho", serif;
	font-size: 13px;
	margin-bottom: 20px;
	opacity: .82;
}

#mtg-home-custom .mtg-home-newsletter .mtg-home-button {
	color: #fff;
	min-width: 160px;
}

#mtg-home-custom .mtg-home-final {
	background: linear-gradient(120deg, #08a7b6, #09c4c4);
	border-radius: 16px;
	color: #fff;
	margin: 10px auto 64px;
	max-width: 1328px;
	overflow: hidden;
min-height: 170px;
padding: 44px 0;
	width: calc(100% - 72px);
}

#mtg-home-custom .mtg-home-final .mtg-home-container {
	max-width: none;
	padding-left: 48px;
	padding-right: 48px;
}

#mtg-home-custom .mtg-home-final__inner {
	align-items: center;
	display: flex;
	gap: 36px;
	justify-content: space-between;
}

#mtg-home-custom .mtg-home-final h2 {
	color: #fff;
	font-size: 20px;
	margin-bottom: 7px;
}

#mtg-home-custom .mtg-home-final p {
	font-size: 13px;
	margin-bottom: 0;
}

#mtg-home-custom .mtg-home-final__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
}

#mtg-home-custom .mtg-home-button--light {
	background: rgba(255,255,255,.16);
	color: #fff;
	min-width: 170px;
}

#mtg-home-custom .mtg-home-empty {
	background: #fff8dd;
	border: 1px solid #ead598;
	color: #675629;
	font-size: 14px;
	margin: 0;
	padding: 14px 17px;
}

@media only screen and (max-width: 1100px) {
	#mtg-home-custom .mtg-home-grid--news,
	#mtg-home-custom .mtg-home-grid--insights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#mtg-home-custom .mtg-home-grid--hospital {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#mtg-home-custom .mtg-home-grid--hospital .mtg-home-card:first-child {
		grid-column: span 3;
	}

	#mtg-home-custom .mtg-home-card--featured .mtg-home-card__image {
		aspect-ratio: 2 / 1;
	}

	#mtg-home-custom .mtg-home-bottom-grid {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 767px) {
	#mtg-home-custom .mtg-home-container { padding: 0 20px; }

	#mtg-home-custom .mtg-home-hero,
	#mtg-home-custom .mtg-home-hero__inner { min-height: 500px; }

	#mtg-home-custom .mtg-home-hero {
		background-image:
			linear-gradient(90deg, rgba(239,246,250,.95), rgba(239,246,250,.7)),
			var(--mtg-home-hero-image);
		background-position: center, 65% center;
	}

	#mtg-home-custom .mtg-home-hero__description br { display: none; }
	#mtg-home-custom .mtg-home-section { padding: 46px 0 52px; }

	#mtg-home-custom .mtg-home-section__header {
		align-items: flex-start;
		gap: 15px;
	}

	#mtg-home-custom .mtg-home-section__header h2,
	#mtg-home-custom .mtg-home-events__header h2 {
		font-size: 18px;
	}

	#mtg-home-custom .mtg-home-grid--news,
	#mtg-home-custom .mtg-home-grid--hospital,
	#mtg-home-custom .mtg-home-grid--insights {
		grid-template-columns: 1fr;
	}

	#mtg-home-custom .mtg-home-grid--hospital .mtg-home-card:first-child {
		grid-column: auto;
	}

	#mtg-home-custom .mtg-home-card--featured .mtg-home-card__image {
		aspect-ratio: 16 / 9;
	}

	#mtg-home-custom .mtg-home-events,
	#mtg-home-custom .mtg-home-newsletter {
		padding: 20px 18px;
	}

	#mtg-home-custom .mtg-home-event {
		gap: 4px 10px;
		grid-template-columns: auto 1fr 10px;
		padding: 12px 0;
	}

	#mtg-home-custom .mtg-home-event__title {
		grid-column: 1 / 3;
		grid-row: 2;
	}

	#mtg-home-custom .mtg-home-event > span:last-child {
		grid-column: 3;
		grid-row: 1 / 3;
	}

	#mtg-home-custom .mtg-home-final__inner,
	#mtg-home-custom .mtg-home-final__actions {
		align-items: stretch;
		flex-direction: column;
	}

	#mtg-home-custom .mtg-home-button--light { width: 100%; }
	
	#mtg-home-custom .mtg-home-final {
	border-radius: 12px;
	margin-bottom: 40px;
	width: calc(100% - 40px);
}

#mtg-home-custom .mtg-home-final .mtg-home-container {
	padding-left: 20px;
	padding-right: 20px;
}
	
	
}


#mtg-home-custom .mtg-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

#mtg-home-custom .mtg-home-hero__actions .mtg-home-button {
	min-width: 190px;
	justify-content: center;
}

#mtg-home-custom .mtg-home-button--ghost {
	background: rgba(255, 255, 255, 0.35);
	border-color: rgba(6, 46, 100, 0.35);
	color: var(--mtg-navy);
}

#mtg-home-custom a.mtg-home-button {
	opacity: 1;
}

#mtg-home-custom a.mtg-home-button:hover {
	opacity: 1;
	transform: translateY(-2px);
}

#mtg-home-custom a.mtg-home-button--primary:hover {
	background: var(--mtg-blue);
	border-color: var(--mtg-blue);
	color: #fff;
}

#mtg-home-custom a.mtg-home-button--ghost:hover {
	background: #fff;
	border-color: var(--mtg-navy);
	color: var(--mtg-navy);
}


/* 모바일 섹션 타이틀 및 전체보기 정렬 */
@media only screen and (max-width: 600px) {
	#mtg-home-custom .mtg-home-section__header {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
	}

	#mtg-home-custom .mtg-home-section__header h2 {
		grid-column: 1;
		text-align: left;
	}

	#mtg-home-custom .mtg-home-section__header > a {
		grid-column: 2;
		white-space: nowrap;
	}
}