/* ==========================================================
   이벤트 게시판 스킨 (event)
========================================================== */
.mev {
	--accent: #844ad7;
	--accent-deep: #5b2aa6;
	--ink: #121212;
	--text: #4b4b52;
	--muted: #8b8b94;
	--line: #e9e7ee;
	--soft: #f7f6f9;
	max-width: calc(var(--wrap, 1200px) + var(--gutter, 40px) * 2);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 88px) var(--gutter, 20px) clamp(64px, 8vw, 120px);
	box-sizing: border-box;
	color: var(--ink);
	font-family: 'Pretendard Variable', Pretendard, sans-serif;
	font-size: 16px; line-height: 1.6;
	word-break: keep-all;
}
.mev :where(*, *:before, *:after) { box-sizing: border-box; }
.mev :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.mev :where(h1, h2, p) { margin: 0; }
.mev :where(a) { color: inherit; text-decoration: none; }
.mev img { display: block; max-width: 100%; }
.mev [hidden] { display: none !important; }
.mev .mc-icon { width: 18px; height: 18px; }

/* 머리말 */
.mev-head { margin-bottom: 28px; text-align: center; }
.mev-eyebrow { margin-bottom: 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mev-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; font-weight: 900; letter-spacing: -0.045em; }
.mev-desc { margin-top: 16px; font-size: 17px; color: var(--muted); }
.mev-head--small .mev-title { font-size: clamp(28px, 3.4vw, 40px); }

/* 필터 */
.mev-filter { display: flex; justify-content: center; gap: clamp(18px, 3vw, 36px); margin: 0 auto clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.mev-filter a { margin-bottom: -1px; padding: 12px 2px 14px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s, border-color .2s; }
.mev-filter a:hover { color: var(--ink); }
.mev-filter a.is-active { border-bottom-color: var(--ink); color: var(--ink); }

/* 배지 */
.mev-badge {
	display: inline-flex; align-items: center;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 12px; font-weight: 800; letter-spacing: .04em;
	background: var(--accent); color: #fff;
}
.mev-badge--soon { background: #fff; color: var(--accent); border: 1px solid rgba(132, 74, 215, .35); }
.mev-badge--ended { background: #e9e7ee; color: var(--muted); }
.mev-period { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.mev-period .mc-icon { color: var(--accent); }
.mev-period b { color: var(--ink); font-weight: 700; }

/* 대표 이벤트 */
.mev-feature {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center; gap: clamp(24px, 4vw, 56px);
	margin-bottom: clamp(40px, 5vw, 64px);
	padding: clamp(14px, 1.6vw, 20px);
	border-radius: 8px;
	background: var(--soft);
	transition: box-shadow .3s;
}
.mev-feature:hover { box-shadow: 0 20px 50px rgba(91, 42, 166, .1); }
.mev-feature__media { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: #e9e6ee; }
.mev-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mev-feature:hover .mev-feature__media img { transform: scale(1.03); }
.mev-feature__body { padding: 8px 16px 8px 0; }
.mev-feature__title { margin: 16px 0 10px; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.22; font-weight: 800; letter-spacing: -0.035em; }
.mev-feature__sub { margin-bottom: 18px; font-size: 17px; color: var(--text); }
.mev-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 700; }
.mev-more .mc-icon { transition: transform .25s; }
.mev-feature:hover .mev-more .mc-icon { transform: translateX(4px); }

/* 이미지가 없을 때 : 제목으로 만든 배너 */
.is-empty { display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(70% 90% at 80% 10%, #ffd6e4 0%, transparent 60%), radial-gradient(70% 90% at 10% 100%, #d8c4fb 0%, transparent 60%), #f4effc !important; }
.is-empty > span:not(.mev-badge) { font-size: clamp(20px, 2.4vw, 34px); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; text-align: center; color: var(--accent-deep); }

/* 카드 목록 */
.mev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 24px); }
.mev-card { display: block; transition: transform .25s; }
.mev-card:hover { transform: translateY(-4px); }
.mev-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 8px; background: #ece9f1; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.mev-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mev-card:hover .mev-card__media img { transform: scale(1.04); }
.mev-card__media .mev-badge { position: absolute; left: 14px; top: 14px; }
.mev-card__media.is-empty > span:not(.mev-badge) { font-size: 20px; }
.mev-card__body { padding: 16px 4px 0; }
.mev-card__title { display: block; font-size: 19px; line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; }
.mev-card__sub { margin-top: 4px; font-size: 15px; color: var(--text); }
.mev-card .mev-period { margin-top: 10px; font-size: 13px; }
.mev-card--ended { opacity: .62; }
.mev-card--ended .mev-card__media img { filter: grayscale(.6); }

.mev-empty { padding: 72px 20px; border-radius: 8px; background: var(--soft); text-align: center; color: var(--muted); }
.mev-empty .mev-btn { margin-top: 20px; }

/* 버튼 */
.mev-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 52px; padding: 0 24px;
	border-radius: 4px; border: 1px solid transparent;
	font-family: inherit; font-size: 15px; font-weight: 700;
	cursor: pointer;
	transition: transform .2s, background-color .2s, border-color .2s;
}
.mev-btn:hover { opacity: .92; }
.mev-btn--primary { background: var(--accent); color: #fff !important; }
.mev-btn--primary:hover { background: var(--accent-deep); }
.mev-btn--line { background: #fff; border-color: var(--line); color: var(--ink); }
.mev-btn--line:hover { border-color: var(--ink); }
.mev-btn--line .mc-icon { color: var(--accent); }
.mev-btn--dark { background: var(--ink); color: #fff !important; }

/* 페이지 / 하단 */
.mev-foot { position: relative; display: flex; justify-content: center; align-items: center; min-height: 52px; margin-top: clamp(40px, 5vw, 64px); }
.mev-foot__write { position: absolute; right: 0; top: 0; }
.mev .pg_wrap { float: none; margin: 0; }
.mev .pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
@media screen and (max-width: 767px) {
	.mev-foot { flex-direction: column; gap: 12px; }
	.mev-foot__write { position: static; }
	.mev .pg { gap: 4px; }
	.mev .pg_page, .mev .pg_current { min-width: 34px; height: 36px; padding: 0 6px; font-size: 13px; }
	.mev .pg_start, .mev .pg_end { display: none; } /* 맨처음 · 맨끝 은 좁은 화면에서 숨김 */
}
.mev .pg_page, .mev .pg_current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--text); }
.mev .pg_current { background: var(--ink); border-color: var(--ink); color: #fff; }
.mev-note { margin-top: 24px; text-align: center; font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------
   상세
---------------------------------------------------------- */
.mev-crumb { display: flex; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.mev-crumb span:before { content: '/'; margin-right: 8px; color: #c8c4cf; }
.mev-crumb a:hover { color: var(--accent); }
.mev-vhead { max-width: 860px; margin-bottom: clamp(28px, 4vw, 48px); }
.mev-vhead__title { margin: 16px 0 12px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.15; font-weight: 900; letter-spacing: -0.045em; }
.mev-vhead__sub { margin-bottom: 18px; font-size: 18px; color: var(--text); }
.mev-vbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.mev-vbody__main { display: flex; flex-direction: column; gap: 16px; }
.mev-vimg { width: 100%; border-radius: 8px; }
.mev-content { font-size: 17px; line-height: 1.8; color: var(--text); }
.mev-content img { height: auto; border-radius: 6px; }
.mev-content table { width: 100%; border-collapse: collapse; }
.mev-content td, .mev-content th { padding: 12px; border-bottom: 1px solid var(--line); }
.mev-side { position: sticky; top: calc(var(--hd-h-scrolled, 68px) + 24px); }
.mev-side__box { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.mev-side__label { font-size: 14px; font-weight: 700; color: var(--accent); }
.mev-side__title { margin-bottom: 10px; font-size: 21px; line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
.mev-side .mev-note { margin-top: 6px; text-align: left; }
.mev-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.mev-nav__link { font-size: 15px; font-weight: 700; }
.mev-nav__admin { display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.mev-nav__admin a:hover { color: var(--ink); }

/* ----------------------------------------------------------
   등록 폼
---------------------------------------------------------- */
.mev--write { max-width: 880px; }
.mev-form { display: flex; flex-direction: column; gap: 20px; }
.mev-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mev-field { display: flex; flex-direction: column; gap: 8px; }
.mev-field > span { font-size: 15px; font-weight: 700; }
.mev-field b { color: var(--accent); }
.mev-field small { font-weight: 400; color: var(--muted); }
.mev-field input[type=text], .mev-field input[type=password], .mev-field input[type=date] {
	width: 100%; height: 52px; padding: 0 16px;
	border: 1px solid var(--line); border-radius: 6px; background: #fff;
	font-family: inherit; font-size: 16px; color: var(--ink);
}
.mev-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(132, 74, 215, .12); }
.mev-upload { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mev-upload__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.mev-upload__drop { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; border: 2px dashed #d9d4e2; border-radius: 8px; background: var(--soft); cursor: pointer; transition: border-color .2s, background-color .2s; }
.mev-upload__drop:hover { border-color: var(--accent); background: #f4effc; }
.mev-upload__drop.has-image { border-style: solid; border-color: var(--line); }
.mev-upload__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mev-upload__hint { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--text); text-align: center; }
.mev-upload__hint small { font-size: 12px; font-weight: 400; color: var(--muted); }
.mev-upload__drop.has-image .mev-upload__hint { padding: 8px 14px; border-radius: 4px; background: rgba(255, 255, 255, .85); opacity: 0; transition: opacity .2s; }
.mev-upload__drop.has-image:hover .mev-upload__hint { opacity: 1; }
.mev-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mev-upload__del { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mev-form__btns { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.mev-form__btns .mev-btn { min-width: 140px; }

/* ==========================================================
   반응형
========================================================== */
@media screen and (max-width: 1024px) {
	.mev-feature { grid-template-columns: 1fr; }
	.mev-feature__body { padding: 4px 8px 12px; }
	.mev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mev-vbody { grid-template-columns: 1fr; }
	.mev-side { position: static; }
}
@media screen and (max-width: 767px) {
	.mev-filter { width: 100%; }
	.mev-filter a { flex: 1 1 0; padding: 10px 8px; text-align: center; font-size: 14px; }
	.mev-feature { border-radius: 8px; padding: 10px; }
	.mev-feature__media { border-radius: 6px; }
	.mev-grid { grid-template-columns: 1fr; }
	.mev-foot { flex-direction: column; gap: 16px; }
	.mev-foot__write { position: static; }
	.mev-form__row, .mev-upload { grid-template-columns: 1fr; }
	.mev-side__box { padding: 22px; border-radius: 8px; }
}

/* 병원소개 공통 머리 아래 : 필터는 왼쪽 정렬 작은 탭 */
.mev--intro { padding-top: clamp(28px, 4vw, 52px); }
.mev--intro .mev-filter { justify-content: flex-start; gap: 8px; border-bottom: 0; }
.mev--intro .mev-filter a { margin: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.mev--intro .mev-filter a.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.mev-card__media { box-shadow: none; }

/* 상단 배너 슬라이드 : 이벤트 이름 칩 + 가운데 큰 배너, 양옆 살짝 보임 */
.mev-hero { --w: clamp(260px, 36vw, 620px); position: relative; overflow: hidden; padding: clamp(18px, 2.2vw, 28px) 0 clamp(18px, 2.2vw, 26px); background: #3b3a40; color: #fff; font-family: 'Pretendard Variable', Pretendard, sans-serif; word-break: keep-all; }
.mev-hero__bg { position: absolute; inset: -40px; z-index: 0; }
.mev-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) brightness(.45) saturate(.8); }
.mev-hero > *:not(.mev-hero__bg) { position: relative; z-index: 1; }
.mev-hero__chips { display: flex; gap: 10px; max-width: 1200px; margin: 0 auto clamp(14px, 1.8vw, 22px); padding: 0 20px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.mev-hero__chips::-webkit-scrollbar { display: none; }
.mev-hero__chips a { flex: none; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 6px; background: transparent; color: #fff; font-size: 14px; text-decoration: none; white-space: nowrap; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.mev-hero__chips a:hover { background: rgba(255, 255, 255, .12); }
.mev-hero__chips a.is-active { border-color: #fff; background: #fff; color: #121212; }
.mev-hero__stage { position: relative; }
.mev-hero__track { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mev-hero__track:has(> :only-child) { justify-content: center; }
.mev-hero__slide { flex: none; width: var(--w); transition: transform .5s, opacity .5s; transform: scale(.8); opacity: .75; }
.mev-hero__slide.is-active { transform: none; opacity: 1; }
.mev-hero__slide a { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #2a292e; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.mev-hero__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mev-hero__slide a.is-empty { display: flex; padding: 20px; }
.mev-hero__slide a.is-empty > span { font-size: clamp(18px, 2.2vw, 30px); }
.mev-hero__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0 0 4px; border-radius: 50%; background: #fff; color: #121212; font-size: 28px; text-decoration: none; line-height: 1; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); cursor: pointer; }
.mev-hero__arrow--prev { left: calc(50% - var(--w) / 2 - 24px); }
.mev-hero__arrow--next { right: calc(50% - var(--w) / 2 - 24px); }
.mev-hero__cap { margin: clamp(14px, 1.8vw, 22px) 0 0; padding: 0 20px; text-align: center; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .92); }

/* 카드 목록 : 2열, 왼쪽 글 · 오른쪽 정사각 썸네일 */
.mev-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.mev-item { display: grid; grid-template-columns: minmax(0, 1fr) clamp(140px, 17vw, 232px); gap: clamp(16px, 2.4vw, 36px); height: 100%; padding: clamp(20px, 2.6vw, 36px); border-radius: 16px; background: var(--soft); transition: box-shadow .25s, transform .25s; }
.mev-item:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(91, 42, 166, .1); }
.mev-item__body { display: flex; flex-direction: column; min-width: 0; }
.mev-item__period { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.mev-item__title { display: block; margin-top: 4px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; }
.mev-item__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.mev-item__price { margin-top: auto; padding-top: 22px; font-size: 15px; font-weight: 600; color: #e0313f; }
.mev-item__price strong { margin-right: 2px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.mev-item__price strong.is-ask { font-size: clamp(22px, 2vw, 27px); font-weight: 700; }
.mev-item__media { overflow: hidden; align-self: center; aspect-ratio: 1; border-radius: 10px; background: #e9e6ee; }
.mev-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mev-item:hover .mev-item__media img { transform: scale(1.04); }
.mev-item__media.is-empty > span { font-size: 17px; }
.mev-item--ended { opacity: .6; }
.mev-item--ended .mev-item__media img { filter: grayscale(.6); }

/* D-Day 표시 + 막대 */
.mev-dday { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.mev-dday__label { flex: none; min-width: 3.2em; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--accent); }
.mev-dday__bar { position: relative; flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: #dedbe4; }
.mev-dday__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.mev-dday.is-today .mev-dday__label { color: #e0313f; }
.mev-dday--ended .mev-dday__label, .mev-dday--soon .mev-dday__label { color: var(--muted); }
.mev-dday--ended .mev-dday__bar i { background: #b9b5c2; }

@media screen and (max-width: 1024px) {
	.mev-list { grid-template-columns: 1fr; }
	.mev-hero { --w: 60vw; }
}
@media screen and (max-width: 767px) {
	.mev-hero__chips { justify-content: flex-start; }
	.mev-hero { --w: 80vw; }
	.mev-hero__chips a { padding: 5px 12px; font-size: 13px; }
	.mev-hero__slide a { border-radius: 10px; }
	.mev-hero__arrow { width: 36px; height: 36px; margin-top: -18px; font-size: 22px; }
	.mev-hero__arrow--prev { left: 4px; }
	.mev-hero__arrow--next { right: 4px; }
	.mev-hero__cap { font-size: 14px; }
	.mev-item { grid-template-columns: minmax(0, 1fr) 112px; padding: 18px; border-radius: 12px; }
	.mev-item__period { font-size: 14px; }
	.mev-item__price { padding-top: 14px; }
	.mev-dday__label { font-size: 16px; }
}
.mev-hero ~ .mev--view { padding-top: clamp(24px, 3vw, 40px); }
