/* ==========================================================================
   HUB MAIN SECTIONS — Shared Stylesheet
   --------------------------------------------------------------------------
   통합관리자 허브가 모든 워드프레스 사이트에 공통으로 내려주는 메인 섹션 디자인.
   각 사이트 <head> 에 한 번만 연결합니다.

       <link rel="stylesheet" href="https://{허브도메인}/public-assets/main-sections.css">

   Naming     BEM  .hubms-{block}__{element}  /  --{modifier}  /  .is-{state}
   Responsive Desktop-first (max-width). 모든 미디어 쿼리는 10번 섹션에서 구간별로 관리
   --------------------------------------------------------------------------
   TABLE OF CONTENTS

     00. Design Tokens
     01. Legacy · Generic Layout      .hubms-section / grid / card / badge
     02. Component · Button
     03. Shared Pattern · Section Header
     04. Section · Hero               메인 비주얼
     05. Section · HeroBar            로고(신뢰) 바
     06. Section · Lawyer             변호사 슬라이더
     07. Section · Case               성공사례
     08. Section · Path               상황별 안내 (FIND YOUR PATH)
     09. Section · Review             고객후기 (한 줄 롤링 + 확대 보기)
     10. Responsive                   1024 · 960 · 900 · 768 · 640 · 600 · 560
     11. Accessibility                reduced motion
   ========================================================================== */


/* ==========================================================================
   00. DESIGN TOKENS
   ========================================================================== */
:root {
    /* Layout */
    --hubms-container: 1280px;

    /* Brand — 와인 계열이 섹션별로 조금씩 달라 값을 그대로 보존했습니다.
       하나로 통일하려면 아래 토큰의 값만 같게 바꾸면 됩니다. */
    --hubms-accent: #8b1528;           /* 변호사 · 성공사례 */
    --hubms-accent-hover: #6d101f;     /* 변호사 프로필 버튼 hover */
    --hubms-accent-alt: #8b1e1e;       /* 상황별 안내 · 고객후기 */
    --hubms-hero-accent: #8c2a2a;      /* 히어로 강조 */
    --hubms-btn-bg: #6b1d24;           /* 히어로 Primary 버튼 */
    --hubms-btn-bg-hover: #52141a;

    /* Neutral */
    --hubms-ink: #1f2228;
}


/* ==========================================================================
   01. LEGACY · GENERIC LAYOUT
   ========================================================================== */
.hubms-section {
    padding: 64px 20px;
}

.hubms-section:nth-of-type(even) {
    background: #f7f8f9;
}

.hubms-container {
    max-width: 1120px;
    margin: 0 auto;
}

.hubms-h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #16202a;
    text-align: center;
}

.hubms-subtitle {
    margin: 0 0 36px;
    font-size: 15px;
    color: #667080;
    text-align: center;
}

.hubms-h2 + .hubms-grid,
.hubms-h2 + .hubms-press-list {
    margin-top: 36px;
}

/* Grid */
.hubms-grid {
    display: grid;
    gap: 22px;
}

.hubms-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.hubms-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card */
.hubms-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6e9ec;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hubms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 30, 45, 0.08);
}

/* Badge */
.hubms-badge {
    align-self: flex-start;
    margin: 14px 16px 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #2f6fed;
    background: #eef4ff;
}


/* ==========================================================================
   02. COMPONENT · BUTTON
   ========================================================================== */
.hubms-btn--primary,
.hubms-btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Primary — 버건디 채움 버튼 */
.hubms-btn--primary {
    gap: 10px;
    padding: 14px 28px;
    color: #fff;
    background-color: var(--hubms-btn-bg);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hubms-btn--primary:hover {
    background-color: var(--hubms-btn-bg-hover);
}

/* Secondary — 하단선 링크 */
.hubms-btn--secondary {
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #ccc;
    color: #333;
    background-color: transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hubms-btn--secondary:hover {
    border-color: #111;
    color: #000;
}

/* Arrow */
.hubms-btn__arrow {
    transition: transform 0.2s ease;
}

.hubms-btn:hover .hubms-btn__arrow {
    transform: translateX(4px);
}


/* ==========================================================================
   03. SHARED PATTERN · SECTION HEADER
   변호사 · 성공사례 · 상황별 안내 · 고객후기가 같은 구조의 헤더를 사용합니다.
   (섹션 고유 값 — 여백, 글자 크기 등 — 은 각 섹션 블록에서 지정)
   ========================================================================== */

/* Wrapper */
.hubms-lawyer__header,
.hubms-case__header,
.hubms-path__header,
.hubms-review__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* Eyebrow — 변호사 · 성공사례 */
.hubms-lawyer__eyebrow,
.hubms-case__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hubms-accent);
}

.hubms-lawyer__eyebrow .line,
.hubms-case__eyebrow .line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: var(--hubms-accent);
}

/* Title — 변호사 · 성공사례 */
.hubms-lawyer__section-title,
.hubms-case__section-title {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.hubms-lawyer__section-title-line.is-accent,
.hubms-case__section-title-line.is-accent {
    color: var(--hubms-accent);
}

/* Description — 변호사 · 성공사례 */
.hubms-lawyer__section-desc,
.hubms-case__section-desc {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Title line — 상황별 안내 · 고객후기 */
.hubms-path__title-line,
.hubms-review__section-title-line {
    display: block;
}

/* More link — 상황별 안내 · 고객후기 (공통 뼈대) */
.hubms-path__more,
.hubms-review__more-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}


/* ==========================================================================
   04. SECTION · HERO
   ========================================================================== */
.hubms-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    background-color: #f7f6f5;
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 좌측 텍스트 가독성을 위한 소프트 오버레이 */
.hubms-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(247, 246, 245, 0.95) 0%, rgba(247, 246, 245, 0.75) 45%, rgba(247, 246, 245, 0) 80%);
}

.hubms-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--hubms-container);
    margin: 0 auto;
    padding: 60px 24px 0;
}

.hubms-hero__content {
    max-width: 580px;
}

/* Eyebrow */
.hubms-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hubms-hero-accent);
}

/* Title */
.hubms-hero__title {
    margin-bottom: 24px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111;
}

.hubms-hero__line.is-accent {
    color: var(--hubms-hero-accent);
}

/* Description */
.hubms-hero__desc {
    margin-bottom: 36px;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    word-break: keep-all;
}

/* Buttons (스타일은 02. Button) */
.hubms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}


/* ==========================================================================
   05. SECTION · HEROBAR
   ========================================================================== */
.hubms-herobar--dark {
    width: 100%;
    padding: 30px 0;
    box-sizing: border-box;
    color: #fff;
    background-color: #121212;
}

.hubms-herobar__container {
    max-width: var(--hubms-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* List — 열 수는 템플릿이 --hubms-cols 로 전달 (기본 5) */
.hubms-herobar__list {
    display: grid;
    grid-template-columns: repeat(var(--hubms-cols, 5), 1fr);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hubms-herobar__item {
    position: relative;
    padding: 0;                     /* 여백은 내부 링크 영역에서 처리 */
    box-sizing: border-box;
}

/* 세로 구분선 (|) */
.hubms-herobar__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
}

/* Link / Inner — 영역 전체가 클릭되도록 */
.hubms-herobar__link,
.hubms-herobar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hubms-herobar__link:hover {
    opacity: 0.85;
    cursor: pointer;
}

.hubms-herobar__link:hover .hubms-herobar__title {
    text-decoration: underline;
}

/* Icon — 흰색 선 아이콘(SVG/PNG) 기준.
   검은색 PNG 를 흰색으로 바꾸려면 filter: brightness(0) invert(1); 추가 */
.hubms-herobar__img {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Text */
.hubms-herobar__text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.hubms-herobar__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
}

.hubms-herobar__desc {
    font-size: 12px;
    line-height: 1.3;
    color: #a0a0a0;
    white-space: nowrap;
}


/* ==========================================================================
   06. SECTION · LAWYER
   ========================================================================== */
.hubms-lawyer-section {
    width: 100%;
    background-color: #fff;
}

.hubms-lawyer {
    max-width: var(--hubms-container);
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* ── Header (공통 구조는 03. Shared Pattern) ───────────────────────────── */
.hubms-lawyer__header {
    margin-bottom: 40px;
}

.hubms-lawyer__header-left {
    max-width: 760px;
}

.hubms-lawyer__section-title {
    margin: 0 0 16px;
    font-size: 38px;
}

.hubms-lawyer__section-desc {
    font-size: 15px;
}

/* ── Prev / Next ──────────────────────────────────────────────────────── */
.hubms-lawyer__nav {
    display: flex;
    gap: 10px;
}

.hubms-lawyer__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hubms-lawyer__nav-btn.next {
    border-color: var(--hubms-accent);
    color: #fff;
    background-color: var(--hubms-accent);
}

.hubms-lawyer__nav-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* ── Slider ───────────────────────────────────────────────────────────── */
.hubms-lawyer__slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;               /* 영역 밖 카드는 숨김 */
}

/* PC: JS 로 이동 / 모바일: 네이티브 스크롤 */
.hubms-lawyer__track {
    display: flex;
    gap: 24px;
    margin-bottom: -10px;
    padding: 10px 4px 20px;         /* 그림자 잘림 방지 여백 */
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;       /* IE / Edge */
    scrollbar-width: none;          /* Firefox */
}

.hubms-lawyer__track::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari */
}

/* ── Card ─────────────────────────────────────────────────────────────── */
.hubms-lawyer__card {
    position: relative;
    display: flex;
    flex: 0 0 520px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hubms-lawyer__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* PC 시안: 첫 번째 카드를 더 넓게 */
.hubms-lawyer__card.is-first {
    flex: 0 0 675px;
}

.hubms-lawyer__card-num {
    display: none;                  /* 모바일에서만 노출 */
}

/* Photo */
.hubms-lawyer__photo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 42%;
    background-color: #f4f4f4;
}

.hubms-lawyer__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hubms-lawyer__overlay-text {
    position: absolute;
    top: 20px;
    right: 16px;
    left: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    word-break: keep-all;
}

/* Body */
.hubms-lawyer__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
}

.hubms-lawyer__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
    margin: 0 0 12px;
}

/* 강조 라인(출신): 혼자 한 줄 전체를 차지 */
.hubms-lawyer__title-line.is-accent {
    width: 100%;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hubms-accent);
}

/* 일반 라인(이름 · 직함): 한 줄에 나란히 */
.hubms-lawyer__title-line:not(.is-accent) {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.hubms-lawyer__slogan {
    margin: 0 0 14px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.hubms-lawyer__history {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.hubms-lawyer__history li {
    position: relative;
    padding-left: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

.hubms-lawyer__history li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #aaa;
}

.hubms-lawyer__cases-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
}

.hubms-lawyer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hubms-lawyer__tag {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #555;
    background-color: #f2f2f2;
}

/* Profile link */
.hubms-lawyer__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background-color: var(--hubms-accent);
    transition: background-color 0.2s ease;
}

.hubms-lawyer__link:hover {
    background-color: var(--hubms-accent-hover);
}

.hubms-lawyer__mobile-footer {
    display: none;                  /* 모바일에서만 노출 */
}


/* ==========================================================================
   07. SECTION · CASE (성공사례)
   ========================================================================== */
.hubms-case-section {
    width: 100%;
    background-color: #f8fafc;
}

.hubms-case {
    max-width: var(--hubms-container);
    margin: 0 auto;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* ── Header (공통 구조는 03. Shared Pattern) ───────────────────────────── */
.hubms-case__header {
    margin-bottom: 32px;
}

.hubms-case__section-title {
    margin: 0 0 12px;
    font-size: 34px;
}

.hubms-case__section-desc {
    font-size: 14px;
}

.hubms-case__more-link {
    padding-bottom: 2px;
    border-bottom: 1px solid #111;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hubms-case__more-link:hover {
    border-color: var(--hubms-accent);
    color: var(--hubms-accent);
}

/* ── Category tabs (pill) ─────────────────────────────────────────────── */
.hubms-case__tabs-wrap {
    margin-bottom: 32px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hubms-case__tabs-wrap::-webkit-scrollbar {
    display: none;
}

.hubms-case__tabs {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.hubms-case__tab {
    padding: 10px 22px;
    border: 1px solid #e5e5e8;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hubms-case__tab:hover {
    background-color: #eaeaea;
}

.hubms-case__tab.is-active {
    border-color: var(--hubms-accent);
    color: #fff;
    background-color: var(--hubms-accent);
}

/* ── Grid (3 columns) ─────────────────────────────────────────────────── */
.hubms-case__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hubms-case__card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hubms-case__card:hover {
    transform: translateY(-5px);
}

.hubms-case__card-inner {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── Paper (판결문 서류 느낌의 카드 상단) ──────────────────────────────── */
.hubms-case__paper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    background-color: #f9f9fb;
}

.hubms-case__paper-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hubms-case__paper-badge {
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    background: #fff;
}

.hubms-case__paper-no {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
}

/* 배경에 은은하게 깔리는 서류 이미지 */
.hubms-case__paper-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-position: center;
    background-size: cover;
    opacity: 0.9;
    filter: grayscale(100%);
}

/* 붉은 결과 스탬프 (기울어진 박스) */
.hubms-case__stamp {
    position: relative;
    z-index: 2;
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    padding: 6px 16px;
    border: 2px solid var(--hubms-accent);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(139, 21, 40, 0.15);
    transform: rotate(-6deg);
}

.hubms-case__stamp-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--hubms-accent);
}

/* ── Body ─────────────────────────────────────────────────────────────── */
.hubms-case__body {
    padding: 20px 18px;
}

.hubms-case__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    word-break: keep-all;
}

.hubms-case__summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    word-break: keep-all;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* ==========================================================================
   08. SECTION · PATH (상황별 안내 / FIND YOUR PATH)
   ========================================================================== */
.hubms-path-section {
    padding: 72px 0 80px;
    background: #fff;
}

.hubms-path {
    max-width: var(--hubms-container);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ── Header (공통 구조는 03. Shared Pattern) ───────────────────────────── */
.hubms-path__header {
    gap: 24px;
    margin-bottom: 36px;
}

.hubms-path__eyebrow {
    margin-bottom: 14px;
    font-family: "Noto Serif KR", serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hubms-accent-alt);
}

.hubms-path__title {
    margin: 0 0 22px;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--hubms-ink);
}

.hubms-path__title-line.is-accent {
    color: var(--hubms-accent-alt);
}

.hubms-path__desc {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.75;
    color: #2c2f36;
}

.hubms-path__note {
    max-width: 640px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555a63;
}

.hubms-path__more {
    gap: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--hubms-ink);
    color: var(--hubms-ink);
}

/* Arrow */
.hubms-path__more .arrow,
.hubms-path__link .arrow {
    font-style: normal;
    transition: transform 0.2s;
}

.hubms-path__more:hover .arrow,
.hubms-path__card:hover .hubms-path__link .arrow {
    transform: translateX(4px);
}

/* ── Grid (큰 카드 2 + 작은 카드 4) ───────────────────────────────────── */
.hubms-path__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hubms-path__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    padding: 28px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 6px;
    color: #fff;
    background: #1c2230;
}

.hubms-path__card.is-wide {
    grid-column: span 2;
}

/* 배경 이미지 + 어두운 오버레이 */
.hubms-path__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform 0.5s ease;
}

.hubms-path__card:hover .hubms-path__bg {
    transform: scale(1.05);
}

.hubms-path__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 16, 26, 0.55) 0%, rgba(12, 16, 26, 0.82) 100%);
}

.hubms-path__top,
.hubms-path__content {
    position: relative;
    z-index: 1;
}

.hubms-path__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hubms-path__no {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
}

.hubms-path__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #fff;
}

.hubms-path__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.hubms-path__card-title {
    margin: 0 0 10px;
    font-family: "Noto Serif KR", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
    color: #fff;
}

.hubms-path__card.is-wide .hubms-path__card-title {
    font-size: 26px;
}

.hubms-path__card-desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
}

.hubms-path__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}

/* 카드 전체를 클릭 가능하게 */
.hubms-path__link::after {
    content: "";
    position: absolute;
    inset: 0;
}


/* ==========================================================================
   09. SECTION · REVIEW (고객후기)
   한 줄 자동 롤링 + 드래그 + 클릭 시 확대 보기 (동작은 템플릿이 함께 내려주는 스크립트)

   .hubms-review-section
     └ .hubms-review[data-hubms-review]
         ├ .hubms-review__header
         └ .hubms-review__viewport
             └ .hubms-review__track
                 └ .hubms-review__card × N      (복제 카드는 스크립트가 추가)
   .hubms-review-lb                             (확대 보기 — 스크립트가 body 에 추가)
   ========================================================================== */

/* Tokens — 후기 섹션과 확대 보기가 함께 사용 */
.hubms-review-section,
.hubms-review-lb {
    --hubms-review-accent: var(--hubms-accent-alt);
    --hubms-review-accent-hover: #911d0c;       /* 더보기 링크 hover 만 다른 와인색 (통일 가능) */
    --hubms-review-accent-bg: #f7ecec;
    --hubms-review-ink: var(--hubms-ink);
    --hubms-review-muted: #7a808a;
    --hubms-review-line: #e5e1da;
}

.hubms-review-section *,
.hubms-review-section *::before,
.hubms-review-section *::after,
.hubms-review-lb *,
.hubms-review-lb *::before,
.hubms-review-lb *::after {
    box-sizing: border-box;
}

.hubms-review-section {
    width: 100%;
    padding: 72px 0 80px;
}

.hubms-review {
    width: 100%;
    max-width: var(--hubms-container);
    margin: 0 auto;
    padding: 60px 24px 0;
}

/* ── Header (공통 구조는 03. Shared Pattern) ───────────────────────────── */
.hubms-review__header {
    gap: 24px;
    margin-bottom: 32px;
}

.hubms-review__header-left {
    min-width: 0;
}

.hubms-review__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hubms-review-accent);
}

.hubms-review__eyebrow .line {
    display: block;
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.hubms-review__section-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 14px;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--hubms-review-ink);
}

.hubms-review__section-title-line.is-accent {
    color: var(--hubms-review-accent);
}

.hubms-review__section-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--hubms-review-muted);
    word-break: keep-all;
}

.hubms-review__more-link {
    gap: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--hubms-review-ink);
    color: var(--hubms-review-ink);
    transition: color 0.2s ease;
}

.hubms-review__more-link:hover {
    color: var(--hubms-review-accent-hover);
}

/* ── Rolling viewport ─────────────────────────────────────────────────── */
.hubms-review__viewport {
    position: relative;
    padding: 8px 0 18px;            /* 호버로 떠오르는 카드와 그림자가 잘리지 않도록 */
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;            /* 세로 스크롤은 페이지, 가로 드래그는 롤링이 처리 */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    /* 양쪽 가장자리를 부드럽게 */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.hubms-review__viewport.is-dragging {
    cursor: grabbing;
}

.hubms-review__track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

/* ── Card ─────────────────────────────────────────────────────────────── */
.hubms-review__card {
    display: flex;
    flex: 0 0 240px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hubms-review-line);
    border-radius: 10px;
    background: #fff;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hubms-review__card:focus-visible {
    outline: 2px solid var(--hubms-review-accent);
    outline-offset: 2px;
}

@media (hover: hover) {
    .hubms-review__card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(31, 34, 40, 0.12);
    }
}

/* Image — 카톡 캡처처럼 세로로 긴 이미지 기준 */
.hubms-review__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3f1ed;
}

.hubms-review__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;           /* 대화 캡처는 위쪽부터 보이게 */
    pointer-events: none;           /* 이미지가 직접 클릭 · 우클릭 대상이 되지 않게 */
    -webkit-user-drag: none;
    user-select: none;
}

/* 투명 덮개 — 우클릭해도 "이미지 저장" 메뉴가 뜨지 않게 하는 억제 장치 (완전 차단은 불가능) */
.hubms-review__image::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* Body */
.hubms-review__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 16px 14px;
}

/* 결과 배지는 제목 위로 */
.hubms-review__result {
    order: -1;
    margin: 0;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--hubms-review-accent);
    background: var(--hubms-review-accent-bg);
}

.hubms-review__title {
    display: -webkit-box;
    min-height: 3em;                /* 2줄 높이로 맞춰 카드 높이 통일 */
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--hubms-review-ink);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hubms-review__date {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    color: var(--hubms-review-muted);
}

/* ── Lightbox (확대 보기) ─────────────────────────────────────────────── */
html.hubms-review-lb-lock {
    overflow: hidden;
}

.hubms-review-lb {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: rgba(12, 14, 18, 0.88);
}

.hubms-review-lb.is-open {
    display: flex;
}

.hubms-review-lb [hidden] {
    display: none !important;
}

.hubms-review-lb__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(92vw, 640px);
    margin: 0;
}

.hubms-review-lb__img {
    position: relative;
    width: 100%;
    height: min(78vh, 860px);
    background: center / contain no-repeat;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.hubms-review-lb__img::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hubms-review-lb figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 16px;
    color: #fff;
    text-align: center;
}

.hubms-review-lb__result {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    background: var(--hubms-review-accent);
}

.hubms-review-lb__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.hubms-review-lb__date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.hubms-review-lb__close {
    position: absolute;
    top: 14px;
    right: 20px;
    padding: 0 6px;
    border: 0;
    font-size: 38px;
    line-height: 1;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.hubms-review-lb__nav {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 0.15s ease;
}

.hubms-review-lb__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}


/* ==========================================================================
   10. RESPONSIVE
   Desktop-first. 큰 구간 → 작은 구간 순서로 작성해야 아래쪽 규칙이 위쪽을 덮어씁니다.
   (구간을 추가할 때도 이 순서를 지켜주세요)
   ========================================================================== */

/* --------------------------------------------------------------------------
   ≤ 1024px · Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

    /* HeroBar */
    .hubms-herobar__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .hubms-herobar__item:not(:last-child)::after {
        display: none;              /* 구분선 제거 */
    }

    /* Case */
    .hubms-case__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Review */
    .hubms-review__card {
        flex-basis: 220px;
    }
}

/* --------------------------------------------------------------------------
   ≤ 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {

    /* Path */
    .hubms-path__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hubms-path__title {
        font-size: 32px;
    }

    .hubms-path__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   ≤ 900px
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {

    /* Generic */
    .hubms-grid--3,
    .hubms-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hubms-press-row {
        grid-template-columns: 84px 1fr;
    }

    .hubms-press-row__date {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   ≤ 768px · Mobile (Lawyer 카드가 세로형으로 전환)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Lawyer */
    .hubms-lawyer {
        padding: 30px 16px;
    }

    .hubms-lawyer__slider-wrap {
        overflow: visible;
    }

    .hubms-lawyer__track {
        gap: 16px;
        padding-right: 0;
        padding-left: 0;
    }

    /* 세로형 카드 — 다음 카드가 살짝 보이는 규격 */
    .hubms-lawyer__card,
    .hubms-lawyer__card.is-first {
        flex: 0 0 82%;
        flex-direction: column;
    }

    /* 상단 인덱스 (01, 02 …) */
    .hubms-lawyer__card-num {
        display: block;
        padding: 14px 16px 6px;
        font-size: 15px;
        font-weight: 800;
        color: var(--hubms-accent);
    }

    .hubms-lawyer__photo-wrap {
        width: 100%;
        height: 240px;
    }

    .hubms-lawyer__body {
        padding: 16px;
    }

    /* 하단 전체보기 영역 */
    .hubms-lawyer__mobile-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid #eee;
    }

    .hubms-lawyer__footer-text {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        color: #333;
    }

    .hubms-lawyer__more-btn {
        padding: 8px 14px;
        border-radius: 3px;
        font-size: 12px;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        background-color: var(--hubms-accent);
    }
}

/* --------------------------------------------------------------------------
   ≤ 640px · Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {

    /* Case */
    .hubms-case {
        padding: 30px 16px;
    }

    .hubms-case__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hubms-case__section-title {
        font-size: 24px;
    }

    .hubms-case__grid {
        grid-template-columns: 1fr;
    }

    .hubms-case__paper {
        height: 170px;
    }

    .hubms-case__stamp-text {
        font-size: 15px;
    }

    /* Review */
    .hubms-review-section {
        padding: 48px 0 56px;
    }

    .hubms-review {
        padding: 0 16px;
    }

    .hubms-review__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .hubms-review__section-title {
        font-size: 26px;
    }

    .hubms-review__track {
        gap: 12px;
    }

    .hubms-review__card {
        flex-basis: 160px;
    }

    .hubms-review__body {
        gap: 6px;
        padding: 12px 12px 10px;
    }

    .hubms-review__title {
        font-size: 13px;
    }

    .hubms-review__result {
        padding: 2px 9px;
        font-size: 11px;
    }

    /* Review · 확대 보기 — 이전/다음 버튼을 화면 양옆에 겹쳐 배치 */
    .hubms-review-lb {
        padding: 16px 8px;
    }

    .hubms-review-lb__nav {
        position: absolute;
        top: 50%;
        width: 38px;
        height: 38px;
        margin-top: -19px;
        background: rgba(0, 0, 0, 0.45);
    }

    .hubms-review-lb__nav.is-prev {
        left: 8px;
    }

    .hubms-review-lb__nav.is-next {
        right: 8px;
    }
}

/* --------------------------------------------------------------------------
   ≤ 600px
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {

    /* HeroBar */
    .hubms-herobar__list {
        grid-template-columns: 1fr;
    }

    .hubms-herobar__item {
        justify-content: flex-start;
        padding-left: 10px;
    }
}

/* --------------------------------------------------------------------------
   ≤ 560px · Small mobile
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {

    /* Generic */
    .hubms-section {
        padding: 44px 16px;
    }

    .hubms-h2 {
        font-size: 22px;
    }

    .hubms-grid--3,
    .hubms-grid--4 {
        grid-template-columns: 1fr;
    }

    /* Path */
    .hubms-path-section {
        padding: 48px 0 56px;
    }

    .hubms-path__grid {
        grid-template-columns: 1fr;
    }

    .hubms-path__card {
        min-height: 220px;
        padding: 22px;
    }

    .hubms-path__card.is-wide {
        grid-column: auto;
    }

    .hubms-path__title {
        font-size: 26px;
    }

    .hubms-path__card.is-wide .hubms-path__card-title {
        font-size: 22px;
    }
}


/* ==========================================================================
   11. ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hubms-review__card {
        transition: none;
    }
}