@charset "UTF-8";

:root { 
  --line_color: #e0e0e0; 
  --main_color: #ff255b; 
}

.danaeun-main { width: 100%; overflow-x: hidden;}
.danaeun-main section { display: flex; width: 100%; height: 100vh; max-width: 1920px; margin: 0 auto; }

.main-l { flex-shrink: 0; width: 20%; display: flex; flex-direction: column; align-items: stretch; background: #fff; overflow: hidden; }
.main-l .logo { display: block; margin: 0 auto; padding-top: 20px; }
.main-r { flex: 1; height: 100%; background: #636060; box-sizing: border-box; }

/* 좌측 병원 사진 */
.ml-hosp-img { width: 100%; flex-shrink: 0; }
.ml-hosp-img img { width: 100%; height: clamp(130px, 24vh, 260px); object-fit: cover; display: block; }

/* 좌측 인용 문구 — 남은 공간을 위쪽에 두고 아래로 밀착 */
.ml-quote { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.ml-quote-inner { text-align: center;  line-height: 1.75; font-style: italic; }
.ml-quote-inner p { font-family: 'Noto Serif KR', serif; font-size: 20px; font-weight: 400; color: #333; transform: rotate(0.03deg);}
.ml-quote-inner strong { font-family: 'Noto Serif KR', serif; font-weight: 800; color: #111; }

/* 좌측 버튼 영역 */
.ml-btns { display: flex; width: 100%; flex-shrink: 0; }
.ml-btn-phone, .ml-btn-ch { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 30px 6px; text-decoration: none; line-height: 1.25; }
.ml-btn-phone { background: #ff1c5e; color: #fff; }
.ml-btn-phone i { font-size: clamp(13px, 1.1vw, 17px); }
.ml-btn-phone span { font-size: clamp(10px, 0.85vw, 16px); font-weight: 700; color: #fff;  padding-top:10px;}
.ml-btn-ch { background: #ffcc00; color: #333; }
.ml-btn-ch span { font-size: clamp(9px, 0.75vw, 16px); font-weight: 700; color: #333; padding-top:10px;}
.ml-ch-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #3c1e1e; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; }

.ml-btn-noncov {cursor:pointer; display: block; margin: 20px auto 10px; padding: 7px 28px; text-align: center; text-decoration: none; font-size: clamp(11px, 0.85vw, 13px); color: #555; border: 1.5px solid #bbb; border-radius: 999px; flex-shrink: 0; transition: background 0.2s, border-color 0.2s; width: fit-content; }
.ml-btn-noncov:hover { background: #f5f5f5; border-color: #999; }

/* 좌측 하단 푸터 정보 */
.ml-footer { padding: 6px 12px 10px; flex-shrink: 0; }
.ml-footer p { font-size: clamp(9px, 0.75vw, 12px); color: #999; line-height: 1.65; word-break: keep-all;}

.grid-container { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); width: 100%; height: 100%; overflow: hidden; }

.grid-item { position: relative; box-sizing: border-box; border: 1px solid rgba(255,255,255,0.07); background-color: transparent; }

.grid-slideshow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0s ease-in-out; transform: scale(1); }
.slide-bg.active { opacity: 1; animation: kenBurns 6s ease-in-out forwards; }
.grid-slideshow::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.48); z-index: 1; }

.spotlight-cursor { position: absolute; pointer-events: none; z-index: 1; transform: translate(-50%, -50%); -webkit-mask-image: radial-gradient(ellipse at center, black 45%, rgba(0,0,0,0.55) 72%, transparent 100%); mask-image: radial-gradient(ellipse at center, black 45%, rgba(0,0,0,0.55) 72%, transparent 100%); }

.spot-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-repeat: no-repeat; }

.content-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); z-index: 2; pointer-events: none; }

.overlay-item { position: relative; overflow: hidden; padding: 5%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(12px, 1.4vw, 22px); box-sizing: border-box; pointer-events: auto; cursor: pointer; text-decoration: none; }

/* VIEW 호버 오버레이 */
.overlay-item::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--hover-bg, rgba(0,0,0,0.22)); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.overlay-item:hover::before { opacity: 1; }

/* VIEW 화살표 요소 */
.oi-view { position: absolute; z-index: 2; bottom: 8%; left: 50%; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(calc(-50% - 10px)); transition: opacity 0.35s ease, transform 0.35s ease; }
.overlay-item:hover .oi-view { opacity: 1; transform: translateX(-50%); }

.oi-view-text { color: #fff; font-size: clamp(9px, 0.8vw, 16px); font-weight: 700; letter-spacing: 3px; line-height: 1; padding-left: 10px;}

.oi-arrow { display: inline-block; width: clamp(20px, 2vw, 30px); height: auto; }
.overlay-item:hover .oi-arrow { animation: arrowBounce 0.65s ease-in-out infinite; }

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}

.oi-icon { position: relative; z-index: 2; line-height: 1; }
.oi-icon img { width: 70px; height: 70px; object-fit: contain; display: block; }

.oi-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.oi-title { font-size: clamp(18px, 2.1vw, 32px); font-weight: 700; color: #ffffff; line-height: 1.35; letter-spacing: -0.3px; word-break: keep-all; text-align: center; }

.oi-tag { display: inline-block; color: #fff; font-size: clamp(10px, 0.9vw, 14px); font-weight: 600; letter-spacing: 2.2px; padding: 5px 16px; font-family: 'Montserrat', sans-serif; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.6); background: transparent; transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease; }
.overlay-item:hover .oi-tag { opacity: 0; }

.oi-desc { margin: 0; font-size: clamp(11px, 0.82vw, 16px); color: rgba(255,255,255,0.92); text-align: center; line-height: 1.85; opacity: 0; transition: opacity 0.35s ease 0.05s; word-break: keep-all; pointer-events: none; }
.overlay-item:hover .oi-desc { opacity: 1; }

/* 모바일 하단 영역 — 데스크탑에서 숨김 */
.main-mobile-bottom { display: none; }

@media screen and (max-width: 1024px) {
  .danaeun-main section { flex-direction: column; }
  .main-l { width: 100%; height: 70px; flex-direction: row; align-items: center; justify-content: flex-start; padding: 0 30px; flex-shrink: 0; }
  .main-l .logo { margin: 0; padding: 0; height: 50px; width: auto; }
  .main-l .ml-hosp-img, .main-l .ml-quote,
  .main-l .ml-btns, .main-l .ml-btn-noncov, .main-l .ml-footer { display: none; }
  .main-r { width: 100%; flex: 1; height: auto; padding-bottom: 0; background: none; }
  .spotlight-cursor { display: none; }
  .oi-icon img { width: clamp(36px, 5vw, 56px); height: clamp(36px, 5vw, 56px); }
  .oi-title { font-size: clamp(14px, 2vw, 26px); }
  .oi-tag { font-size: clamp(8px, 1vw, 11px); }

  /* 하단 영역 표시 */
  .main-mobile-bottom { display: block; background: #fff; }
  .main-mobile-bottom .ml-btn-noncov { margin: 14px auto 0; }
  .main-mobile-bottom .ml-footer { padding: 10px 16px 16px; }
  .main-mobile-bottom .ml-footer p { font-size: clamp(10px, 1.5vw, 13px); text-align: center;}
}

@media screen and (max-width: 767px) {
  .main-l { height: 70px; padding: 0 20px; }
  .main-l .logo { height: 50px; }
  .grid-container { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .content-overlay { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .oi-icon { font-size: clamp(20px, 5.5vw, 36px); }
  .oi-title { font-size: clamp(13px, 3.8vw, 22px); }
  .oi-tag { font-size: clamp(7px, 2vw, 10px); letter-spacing: 1px; padding: 3px 8px; background: var(--tag-color); border-color: var(--tag-color); }

  /* 모바일 호버 콘텐츠 숨김 */
  .overlay-item::before { display: none; }
  .oi-view { display: none; }
  .oi-desc { display: none; }
}

@media screen and (max-width: 480px) {
  .overlay-item { padding: 6% 5% 7%; }
  .oi-title { font-size: clamp(11px, 3.8vw, 16px); }
  .oi-tag { font-size: clamp(7px, 2.2vw, 9px); letter-spacing: 0.8px; }
}
