/* =========================================================================
   왼쪽 사이드바 (include/submenu.inc.php) + 사이드바가 있는 페이지의 틀 여백
   index_new.php 디자인. 폭(219px)·float 은 기존 common.css 그대로 둬서 다른 페이지 레이아웃이 깨지지 않게 합니다.
   ========================================================================= */
.yn-side {
  --yn-ink: #14171c;
  --yn-ink-2: #3d434d;
  --yn-ink-3: #5f6672;
  --yn-line: #e2e5ea;
  --yn-surface: #f2f4f7;
  --yn-blue: #1a64e0;
  --yn-sky: #d9eefb;
  --yn-butter: #fff2b8;
  --yn-ease: cubic-bezier(.16, 1, .3, 1);

  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; color: var(--yn-ink);
  text-align: left; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
.yn-side *, .yn-side *::before, .yn-side *::after { box-sizing: border-box; font-family: inherit; }
.yn-side :where(h2, h3, p, ul, li) { margin: 0; padding: 0; list-style: none; background: none; border: 0; float: none; text-align: left; }
.yn-side a { color: inherit; text-decoration: none; }
.yn-side :focus-visible { outline: 3px solid var(--yn-blue); outline-offset: 3px; border-radius: 8px; }

/* 카드: 무료 테스트 / 프로그램 다운로드 */
.yn-side__card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; border-radius: 20px; transition: transform .3s var(--yn-ease), box-shadow .3s var(--yn-ease); }
.yn-side__card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(20, 23, 28, .3); }
.yn-side__card--sky { background: var(--yn-sky); }
.yn-side__card--butter { background: var(--yn-butter); }
.yn-side__ico { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: #fff; fill: none; stroke: var(--yn-ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.yn-side__card strong { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; color: var(--yn-ink); padding-right: 40px; }
.yn-side__card span { font-size: 13px; color: var(--yn-ink-2); }
.yn-side__card em { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--yn-ink); }
.yn-side__card em svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--yn-ease); }
.yn-side__card:hover em svg { transform: translateX(3px); }

/* 연장/결제 */
.yn-side__pay { padding: 18px 18px 14px; border-radius: 20px; border: 1px solid var(--yn-line); background: #fff; }
.yn-side__pay h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; color: var(--yn-ink); }
.yn-side__pay > p { margin-top: 2px; font-size: 13px; color: var(--yn-ink-3); }
.yn-side__pay h3 { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--yn-line); font-size: 13px; font-weight: 800; color: var(--yn-ink); }
.yn-side__pay ul { margin-top: 4px; }
.yn-side__pay li a { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 0 6px; margin: 0 -6px; border-radius: 8px; font-size: 13px; color: var(--yn-ink-2); transition: background-color .2s, color .2s; }
.yn-side__pay li a::after { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.yn-side__pay li a:hover { background: var(--yn-surface); color: var(--yn-ink); }

/* 고객 지원센터 */
.yn-side__call { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--yn-ink); color: #fff !important; }
.yn-side__call svg { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: #ffd80a; fill: none; stroke: var(--yn-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yn-side__call span { display: flex; flex-direction: column; font-size: 12px; color: #c9ced6; line-height: 1.35; }
.yn-side__call b { font-size: 16px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- 사이드바가 있는 페이지의 틀: 새 헤더 아래 여백 + 게시판 상단 배너 ---------- */
#mr_container .leftmenuex ~ .content_sub { margin-top: 28px; }
#mr_container .leftmenuex ~ .content_sub > div > img[src^="/img/sub/"] { display: block; max-width: 100%; height: auto; border-radius: 20px; }

/* 휴대폰(기존 common.css 의 767px 이하 규칙과 같은 기준): 사이드바를 본문 아래 가로 카드로 */
@media (max-width: 767px) {
  /* 기존 .container 는 휴대폰에서도 970px 고정이라 화면을 넘침 → 사이드바가 있는 틀만 화면 폭에 맞춤 */
  #mr_container .container:has(> .leftmenuex) { display: flex; flex-direction: column; width: auto !important; max-width: 100%; padding: 0 16px; box-sizing: border-box; }
  #mr_container .container:has(> .leftmenuex) > .content_sub { order: 1; width: 100% !important; float: none !important; margin-top: 16px; }
  #mr_container .container:has(> .leftmenuex) > .content_sub img { max-width: 100%; height: auto; }
  /* 사이드바는 본문 아래로, 카드 두 줄 */
  #mr_container .container:has(> .leftmenuex) > .yn-side { order: 2; float: none; width: 100%; flex-direction: row; flex-wrap: wrap; margin-top: 32px; }
  #mr_container .yn-side > * { flex: 1 1 160px; }
  #mr_container .yn-side > .yn-side__pay, #mr_container .yn-side > .yn-side__call { flex-basis: 100%; }
}
