/* =========================================================
   내부 페이지 공통 (about / implant 등)
   ========================================================= */
body { background: #fff; color: #1f2937; }
.page { display: block; }

/* 배너 */
.page-hero {
    position: relative; min-height: 260px;
    display: flex; align-items: center; overflow: hidden; color: #fff;
}
.page-hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background: #14305e url('/assets/images/hero.webp') center/cover no-repeat;
}
.page-hero--treatment .page-hero__bg {
    background-image: url('/assets/images/page-banner.webp');
    background-position: center 20%;
}
.page-hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,16,38,.72) 0%, rgba(6,16,38,.45) 60%, rgba(6,16,38,.3) 100%);
}
.page-hero__inner {
    position: relative; width: 100%; max-width: 1100px; margin: 0 auto;
    padding: calc(var(--header-h) + 20px) 24px 28px;
}
.page-hero__title { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.page-hero__subtitle { margin: 0; font-size: 16px; font-weight: 400; color: rgba(255,255,255,.8); }

/* breadcrumb */
/* 띠섹션을 본문 위 스택 컨텍스트로 (드롭다운이 본문 위에 뜸).
   단, 전체 메뉴 오버레이(50)·모달(100) 보다는 아래여야 메뉴를 열 때 가려짐 → z-index 30 */
.page-nav { border-bottom: 1px solid #e8ebf0; background: #fff; position: relative; z-index: 30; }
.page-nav__inner {
    max-width: 1100px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; font-size: 15px; flex-wrap: wrap;
}
.page-nav__crumb { position: relative; display: flex; align-items: center; gap: 10px; }
.page-nav__group { color: #B0B8C1; }
.page-nav__group:hover { color: #8b96a3; }
.page-nav__current {
    display: inline-flex; align-items: center; gap: 6px;
    color: #333D4B; font-weight: 700; font-size: 15px;
    background: none; border: 0; padding: 0; cursor: pointer;
}
.page-nav__chev { width: 18px; height: 18px; display: block; flex-shrink: 0; transition: transform .2s; }
.page-nav__crumb.is-open .page-nav__chev { transform: rotate(180deg); }

/* 브레드크럼 드롭다운 메뉴 */
.page-nav__menu {
    position: absolute; top: calc(100% + 10px); left: 0; z-index: 40;
    min-width: 200px; padding: 8px; background: #fff;
    border: 1px solid #e8ebf0; border-radius: 12px;
    box-shadow: 0 14px 40px rgba(20, 48, 94, .14);
    display: flex; flex-direction: column;
}
.page-nav__menu[hidden] { display: none; }
.page-nav__menu-link {
    padding: 10px 14px; border-radius: 8px; font-size: 14.5px; color: #4b5563; white-space: nowrap;
}
.page-nav__menu-link:hover { background: #f3f5f8; color: #14305e; }
.page-nav__menu-link.is-active { color: var(--brand); font-weight: 700; background: #eef3fb; }

/* 목록 카테고리 셀렉트 드롭다운 */
.list-select-wrap { position: relative; }
.list-select__menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
    min-width: 170px; padding: 6px; background: #fff;
    border: 1px solid #e8ebf0; border-radius: 10px;
    box-shadow: 0 12px 32px rgba(20, 48, 94, .12);
    display: flex; flex-direction: column;
}
.list-select__menu[hidden] { display: none; }
.list-select__menu button {
    text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer;
    font-size: 14px; color: #4b5563; border-radius: 7px;
}
.list-select__menu button:hover { background: #f3f5f8; }
.list-select__menu button.is-active { color: var(--brand); font-weight: 700; background: #eef3fb; }

/* 섹션 공통 */
.sec { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.sec--center { text-align: center; }
.sec__head { margin-bottom: 32px; }
.sec--center .sec__head { margin-bottom: 40px; }
.sec__eyebrow {
    display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
    color: #9aa5b1; text-transform: uppercase; margin-bottom: 6px;
}
.sec__title { margin: 0; font-size: 26px; font-weight: 700; color: #111827; }
.sec__lead { margin: 14px auto 0; max-width: 760px; color: #6b7280; font-size: 16px; line-height: 1.7; }

/* 이미지 자리표시자 */
.img-ph {
    background: #e9edf2; color: #97a2af;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; border-radius: 8px;
}

/* 사이트 푸터 */
.site-footer-b { background: #f3f5f8; border-top: 1px solid #e6e9ee; }
.site-footer-b__inner { max-width: 1100px; margin: 0 auto; padding: 36px 24px 44px; }
.site-footer-b__top {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding-bottom: 22px; border-bottom: 1px solid #e2e6eb; flex-wrap: wrap;
}
.site-footer-b__brand img { height: 38px; width: auto; display: block; opacity: .85; }
.site-footer-b__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer-b__nav a { font-size: 15px; font-weight: 600; color: #4b5563; }
.site-footer-b__nav a:hover { color: var(--brand); }
.site-footer-b__info { margin-top: 20px; }
.site-footer-b__info p { margin: 0 0 8px; font-size: 13.5px; color: #8b96a3; line-height: 1.6; }
.site-footer-b__info strong { color: #4b5563; }
.site-footer-b__info .bar { margin: 0 8px; color: #cbd2da; }
.site-footer-b__copy { font-size: 13px; color: #aab2bc; }

@media (max-width: 640px) {
    .page-hero__title { font-size: 22px; }
    .page-hero__subtitle { font-size: 14px; }
    .sec { padding: 48px 18px; }
    .sec__title { font-size: 22px; }
    .site-footer-b__top { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   페이지 진입 트랜지션 (아래 → 위로 올라오며 등장)
   ========================================================= */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageRiseUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page > * { animation: pageRiseUp .6s cubic-bezier(.22,.61,.36,1) both; }
.page > :first-child { animation: pageFadeIn .55s ease both; } /* 배너는 페이드만 (상단 공백 방지) */
.page > :nth-child(2) { animation-delay: .06s; }
.page > :nth-child(3) { animation-delay: .13s; }
.page > :nth-child(4) { animation-delay: .20s; }
.page > :nth-child(5) { animation-delay: .27s; }
.page > :nth-child(6) { animation-delay: .34s; }
.page > :nth-child(7) { animation-delay: .41s; }
.page > :nth-child(8) { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
    .page > * { animation: none !important; }
}

/* =========================================================
   공통 컴포넌트 — 카테고리 태그 / 목록 도구 / 페이지네이션
   ========================================================= */
.tag {
    display: inline-block; padding: 4px 11px; border-radius: 6px;
    font-size: 12.5px; font-weight: 600; line-height: 1.3;
}
.tag--implant  { background: #e8f3ff; color: #2f80ed; }
.tag--tip      { background: #fff3e0; color: #e08a00; }
.tag--notice   { background: #efeaff; color: #7c5cff; }
.tag--paper    { background: #e7f7ee; color: #12a35f; }
.tag--news     { background: #e2f5f4; color: #0d9488; }
.tag--device   { background: #ffeceb; color: #ef5350; }
.tag--care     { background: #e8f3ff; color: #2f80ed; }
.tag--treat    { background: #fff3e0; color: #e08a00; }
.tag--cosmetic { background: #ffecf2; color: #ec4899; }
.tag--cost     { background: #e7f7ee; color: #12a35f; }

/* 목록 상단 도구 (필터 + 검색) */
.list-tools { display: flex; align-items: center; gap: 10px; }
.list-select {
    display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px;
    border: 1px solid #e5e8eb; border-radius: 8px; background: #fff;
    color: #4e5968; font-size: 14px; font-weight: 500; cursor: pointer;
}
.list-select__chev { width: 16px; height: 16px; }
.list-search {
    display: flex; align-items: center; height: 42px; padding: 0 6px 0 14px;
    border: 1px solid #e5e8eb; border-radius: 8px; background: #fff;
}
.list-search input { border: 0; outline: 0; width: 200px; background: none; font-size: 14px; color: #333d4b; }
.list-search input::placeholder { color: #b0b8c1; }
.list-search button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 0; background: none; color: #8b95a1; cursor: pointer;
}
.list-search button svg { width: 18px; height: 18px; }

/* 페이지네이션 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.pager__num, .pager__arrow {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; border-radius: 8px; border: 0; background: none;
    color: #8b95a1; font-size: 15px; cursor: pointer; text-decoration: none;
}
.pager__num.is-active { background: #333d4b; color: #fff; font-weight: 700; }
.pager__arrow:hover, .pager__num:hover:not(.is-active) { background: #f1f3f5; color: #4e5968; }

@media (max-width: 768px) {
    .page-nav__aside { width: 100%; }
    .list-tools { width: 100%; }
    .list-search { flex: 1; }
    .list-search input { width: 100%; flex: 1; }
}
