/**
 * 파일명: home-ocean.css
 * 파일경로: /home/thejoagi/corebizflow.com/wp-content/plugins/custom-post/assets/css/home-ocean.css
 * 기능: 기프트조아 홈페이지 오션(Ocean) 테마 (page-home-ocean.php) 전용 스타일.
 *       청록 계열 컬러, Split 히어로, Pill 카테고리 네비, 3열 포스트 그리드,
 *       타임라인 HowTo, 좌측 border FAQ 아코디언, 컬러 태그 클라우드 등
 * 작성일: 2026-03-19
 * 수정일: 2026-03-19
 */

/* ═══════════════════════════════════════════════════════════
   CSS 변수 — Ocean 테마
═══════════════════════════════════════════════════════════ */
:root {
    --cptg-primary:     #0891b2;   /* 청록 */
    --cptg-primary-dk:  #0e7490;   /* 청록 진하게 */
    --cptg-primary-lt:  #e0f2fe;   /* 청록 연하게 */
    --cptg-dark:        #0c1a2e;   /* 딥 네이비 */
    --cptg-text:        #1e293b;
    --cptg-muted:       #64748b;
    --cptg-bg:          #f0f9ff;   /* 연한 하늘색 */
    --cptg-bg-alt:      #e0f2fe;   /* 연한 하늘색 진하게 */
    --cptg-card-bg:     #ffffff;
    --cptg-border:      #bae6fd;   /* 청록 계열 경계선 */
    --cptg-border-lt:   #e0f2fe;
    --cptg-badge-bg:    #0e7490;
    --cptg-badge-text:  #ffffff;
    --cptg-radius:      14px;      /* 더 둥근 모서리 */
    --cptg-radius-sm:   8px;
    --cptg-font:        'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   테마 레이아웃 격리 (body.cptg-home-ocean-page 스코프)
═══════════════════════════════════════════════════════════ */
body.cptg-home-ocean-page #page,
body.cptg-home-ocean-page .site,
body.cptg-home-ocean-page #content,
body.cptg-home-ocean-page .site-content,
body.cptg-home-ocean-page #primary,
body.cptg-home-ocean-page .content-area,
body.cptg-home-ocean-page main.site-main,
body.cptg-home-ocean-page #main,
body.cptg-home-ocean-page .hfeed {
    width:     100% !important;
    max-width: none !important;
    padding:   0 !important;
    margin:    0 !important;
    float:     none !important;
}

body.cptg-home-ocean-page footer.site-footer,
body.cptg-home-ocean-page #footer,
body.cptg-home-ocean-page .site-footer,
body.cptg-home-ocean-page #colophon,
body.cptg-home-ocean-page .footer-widgets,
body.cptg-home-ocean-page #footer-widgets { display: none !important; }

body.cptg-home-ocean-page #scroll-top,
body.cptg-home-ocean-page .scroll-top,
body.cptg-home-ocean-page #scrollTop,
body.cptg-home-ocean-page .scrollTop,
body.cptg-home-ocean-page #back-to-top,
body.cptg-home-ocean-page .back-to-top,
body.cptg-home-ocean-page .backtotop,
body.cptg-home-ocean-page #backToTop,
body.cptg-home-ocean-page #scrollToTop,
body.cptg-home-ocean-page .scrollToTop,
body.cptg-home-ocean-page [class*="scroll-to-top"],
body.cptg-home-ocean-page [id*="scroll-to-top"],
body.cptg-home-ocean-page [class*="back-to-top"],
body.cptg-home-ocean-page [id*="back-to-top"],
body.cptg-home-ocean-page .floating-buttons,
body.cptg-home-ocean-page .scroll-top-button,
body.cptg-home-ocean-page .share-button { display: none !important; }

body.cptg-home-ocean-page .entry-content,
body.cptg-home-ocean-page .entry-header,
body.cptg-home-ocean-page .post {
    max-width: none !important;
    padding:   0 !important;
    margin:    0 !important;
}

/* ─── 페이지 래퍼 ─────────────────────────────────────────── */
.cptg-page-wrapper {
    width:       100%;
    max-width:   100%;
    overflow-x:  hidden;
    font-family: var(--cptg-font);
    color:       var(--cptg-text);
    line-height: 1.6;
    background:  #fff;
}

.cptg-page-wrapper *,
.cptg-page-wrapper *::before,
.cptg-page-wrapper *::after {
    box-sizing: border-box;
}

.cptg-page-wrapper h1,
.cptg-page-wrapper h2,
.cptg-page-wrapper h3,
.cptg-page-wrapper h4 {
    margin-top:  0;
    padding-top: 0;
    font-family: var(--cptg-font);
    line-height: 1.3;
}

.cptg-page-wrapper p { margin-top: 0; }

.cptg-sr-only {
    position:   absolute;
    width:      1px;
    height:     1px;
    padding:    0;
    margin:     -1px;
    overflow:   hidden;
    clip:       rect(0,0,0,0);
    white-space: nowrap;
    border:     0;
}

/* ═══════════════════════════════════════════════════════════
   컨테이너
═══════════════════════════════════════════════════════════ */
.cptg-container {
    max-width: 1200px;
    margin:    0 auto;
    padding:   0 24px;
}

/* ═══════════════════════════════════════════════════════════
   공용 버튼
═══════════════════════════════════════════════════════════ */
.cptg-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             7px;
    padding:         13px 26px;
    border-radius:   50px;          /* Pill 버튼 */
    font-size:       15px;
    font-weight:     600;
    text-decoration: none;
    cursor:          pointer;
    white-space:     nowrap;
    min-height:      44px;
    font-family:     var(--cptg-font);
    letter-spacing:  0.1px;
}
.cptg-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.cptg-btn-primary {
    background: var(--cptg-primary);
    color:      #fff;
    border:     2px solid var(--cptg-primary);
}
.cptg-btn-primary:hover {
    background:  var(--cptg-primary-dk);
    border-color: var(--cptg-primary-dk);
    color:        #fff;
}

.cptg-btn-outline {
    background: transparent;
    color:      #fff;
    border:     2px solid rgba(255,255,255,0.75);
}
.cptg-btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.cptg-btn-secondary {
    background: #fff;
    color:      var(--cptg-primary);
    border:     2px solid var(--cptg-primary);
}
.cptg-btn-secondary:hover { background: var(--cptg-primary); color: #fff; }

.cptg-btn-white {
    background: #fff;
    color:      var(--cptg-primary);
    border:     2px solid #fff;
}
.cptg-btn-white:hover { background: var(--cptg-primary-lt); color: var(--cptg-primary-dk); }

.cptg-btn-outline-white {
    background: transparent;
    color:      #fff;
    border:     2px solid #fff;
}
.cptg-btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ─── 섹션 공통 헤더 ─────────────────────────────────────── */
.cptg-section-title {
    font-size:   26px;
    font-weight: 700;
    color:       var(--cptg-dark);
    margin:      0 0 8px;
}
.cptg-section-desc {
    font-size: 15px;
    color:     var(--cptg-muted);
    margin:    0 0 32px;
}
.cptg-section-header { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════
   HERO — Split 레이아웃 (텍스트 좌 / 장식 원형 우)
═══════════════════════════════════════════════════════════ */
.cptg-hero {
    background: linear-gradient(135deg, #0c1a2e 0%, #0a3d62 55%, #0891b2 100%);
    padding:    0;
    color:      #fff;
    overflow:   hidden;
}
.cptg-hero .cptg-container { padding-top: 0; padding-bottom: 0; }

.cptg-hero-split {
    display:     flex;
    align-items: center;
    min-height:  480px;
    position:    relative;
}

.cptg-hero-inner {
    flex:         0 0 58%;
    max-width:    58%;
    text-align:   left;
    padding:      72px 0 72px;
    position:     relative;
    z-index:      2;
}

.cptg-hero-eyebrow {
    font-size:      12px;
    font-weight:    700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color:          rgba(255,255,255,0.55);
    margin:         0 0 18px;
}

.cptg-hero-title {
    font-size:   40px;
    font-weight: 800;
    line-height: 1.22;
    margin:      0 0 20px;
    color:       #fff;
}

.cptg-hero-title br { display: block; }

.cptg-hero-subtitle {
    font-size:   16px;
    line-height: 1.8;
    color:       rgba(255,255,255,0.78);
    margin:      0 0 36px;
}

.cptg-hero-cta {
    display:     flex;
    gap:         12px;
    flex-wrap:   wrap;
}

/* ── 장식 요소 (우측) ── */
.cptg-hero-deco {
    flex:     1;
    position: relative;
    height:   480px;
    overflow: hidden;
    z-index:  1;
}

.cptg-hero-deco-circle {
    position:      absolute;
    border-radius: 50%;
    border:        2px solid rgba(8, 145, 178, 0.35);
}
.cptg-hero-deco-circle.c1 {
    width:  320px;
    height: 320px;
    top:    50%;
    left:   50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 145, 178, 0.08);
}
.cptg-hero-deco-circle.c2 {
    width:  200px;
    height: 200px;
    top:    50%;
    left:   50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.50);
}
.cptg-hero-deco-circle.c3 {
    width:  100px;
    height: 100px;
    top:    50%;
    left:   50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 145, 178, 0.22);
    border-color: rgba(8, 145, 178, 0.70);
}

/* 점 격자 패턴 */
.cptg-hero-deco-grid {
    position:        absolute;
    inset:           0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════════
   DEFINITION SECTION
═══════════════════════════════════════════════════════════ */
.cptg-definition-section {
    background: var(--cptg-bg);
    padding:    60px 24px;
}
.cptg-definition-block {
    max-width:  860px;
    margin:     0 auto;
    text-align: center;
}
.cptg-definition-heading {
    font-size:   24px;
    font-weight: 700;
    color:       var(--cptg-dark);
    margin:      0 0 16px;
}
.cptg-definition-desc {
    font-size:   16px;
    line-height: 1.9;
    color:       var(--cptg-text);
    margin:      0 0 40px;
    text-align:  left;
}

.cptg-stat-row {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   16px;
}
.cptg-stat-item {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            6px;
    padding:        22px 12px;
    background:     #fff;
    border-radius:  var(--cptg-radius);
    border:         1px solid var(--cptg-border-lt);
}
.cptg-stat-icon svg { width: 22px; height: 22px; color: var(--cptg-primary); }
.cptg-stat-num {
    font-size:   24px;
    font-weight: 800;
    color:       var(--cptg-primary);
    line-height: 1;
}
.cptg-stat-label {
    font-size: 13px;
    color:     var(--cptg-muted);
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON TABLE — 청록 헤더
═══════════════════════════════════════════════════════════ */
.cptg-compare-section {
    background: #fff;
    padding:    64px 24px;
}

.cptg-compare-table-wrap {
    overflow-x:              auto;
    -webkit-overflow-scrolling: touch;
    border-radius:           var(--cptg-radius);
    border:                  1px solid var(--cptg-border);
    margin-bottom:           20px;
    background:              #fff;
}
.cptg-compare-table {
    width:           100%;
    border-collapse: collapse;
    font-size:       14px;
    min-width:       560px;
}
.cptg-compare-table thead th {
    padding:       14px 18px;
    background:    var(--cptg-dark);
    color:         #fff;
    font-weight:   700;
    text-align:    center;
    font-size:     14px;
    white-space:   nowrap;
    border-right:  1px solid rgba(255,255,255,0.10);
}
/* 각 열 헤더에 청록 악센트 */
.cptg-compare-table thead th:nth-child(2) { background: #0e5a78; }
.cptg-compare-table thead th:nth-child(3) { background: #0e6a82; }
.cptg-compare-table thead th:nth-child(4) { background: #0e7a8e; }
.cptg-compare-table thead th:nth-child(5) { background: #0e8a9a; }
.cptg-compare-table thead th:nth-child(6) { background: var(--cptg-primary); }

.cptg-compare-table thead th:first-child {
    text-align:   left;
    background:   #07111e;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.cptg-compare-table thead th:last-child { border-right: none; }
.cptg-compare-table tbody tr:nth-child(even) { background: var(--cptg-bg); }
.cptg-compare-table tbody tr:hover { background: #e0f2fe; }
.cptg-compare-table tbody th {
    padding:      14px 18px;
    font-weight:  600;
    color:        var(--cptg-dark);
    text-align:   left;
    background:   #f8fbfd;
    white-space:  nowrap;
    border-right: 1px solid var(--cptg-border);
    border-top:   1px solid var(--cptg-border);
}
.cptg-compare-table tbody td {
    padding:      14px 18px;
    text-align:   center;
    color:        var(--cptg-text);
    border-top:   1px solid var(--cptg-border);
    border-right: 1px solid var(--cptg-border);
}
.cptg-compare-table tbody td:last-child { border-right: none; }

/* ── 모바일 카드 (≤ 768px, 기본 숨김) ── */
.cptg-compare-cards {
    display:               none;
    grid-template-columns: repeat(2, 1fr);
    gap:                   12px;
    margin-bottom:         20px;
}
.cptg-compare-card {
    border:        1px solid var(--cptg-border);
    border-radius: var(--cptg-radius);
    overflow:      hidden;
    background:    #fff;
}
.cptg-compare-card-header {
    background:  var(--cptg-primary);
    color:       #fff;
    padding:     12px 16px;
    display:     flex;
    align-items: center;
    gap:         8px;
    font-size:   15px;
    font-weight: 700;
}
.cptg-compare-card-header svg { width: 16px; height: 16px; flex-shrink: 0; }
.cptg-compare-card-body { padding: 0; margin: 0; }
.cptg-compare-card-row {
    display:       flex;
    padding:       10px 14px;
    border-bottom: 1px solid var(--cptg-border-lt);
    font-size:     13px;
    gap:           8px;
}
.cptg-compare-card-row:last-child { border-bottom: none; }
.cptg-compare-card-row dt {
    flex:        0 0 80px;
    font-weight: 600;
    color:       var(--cptg-muted);
    font-size:   12px;
}
.cptg-compare-card-row dd {
    margin:      0;
    color:       var(--cptg-text);
    font-weight: 500;
    word-break:  keep-all;
}

.cptg-compare-note {
    display:     flex;
    align-items: flex-start;
    gap:         6px;
    font-size:   13px;
    color:       var(--cptg-muted);
    margin-top:  12px;
    line-height: 1.6;
}
.cptg-compare-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--cptg-primary); }
.cptg-compare-note a { color: var(--cptg-primary); text-decoration: none; }
.cptg-compare-note a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY NAVIGATION — Pill 버튼 스타일
═══════════════════════════════════════════════════════════ */
.cptg-cat-nav {
    background:    #fff;
    border-top:    1px solid var(--cptg-border-lt);
    border-bottom: 1px solid var(--cptg-border-lt);
    padding:       12px 24px;
    position:      sticky;
    top:           0;
    z-index:       100;
}
.admin-bar .cptg-cat-nav { top: 32px; }

.cptg-cat-list {
    display:         flex;
    flex-wrap:       wrap;   /* 줄바꿈 허용 */
    gap:             8px;
    list-style:      none;
    margin:          0;
    padding:         0;
    align-items:     center;
}

/* Pill 스타일 */
.cptg-cat-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    padding:         7px 16px;
    font-size:       14px;
    font-weight:     500;
    color:           var(--cptg-muted);
    text-decoration: none;
    border-radius:   50px;
    border:          1px solid var(--cptg-border);
    white-space:     nowrap;
    min-height:      36px;
    background:      transparent;
}
.cptg-cat-btn:hover {
    color:        var(--cptg-primary);
    border-color: var(--cptg-primary);
    background:   var(--cptg-primary-lt);
}
.cptg-cat-btn.active {
    color:       #fff;
    font-weight: 700;
    background:  var(--cptg-primary);
    border-color: var(--cptg-primary);
}
.cptg-cat-count {
    font-size:     11px;
    background:    var(--cptg-bg);
    color:         var(--cptg-muted);
    padding:       1px 6px;
    border-radius: 10px;
}
.cptg-cat-btn.active .cptg-cat-count {
    background: rgba(255,255,255,0.25);
    color:      #fff;
}

/* ═══════════════════════════════════════════════════════════
   MAIN POST GRID — 3열, 더 큰 카드
═══════════════════════════════════════════════════════════ */
.cptg-main {
    background: var(--cptg-bg);
    padding:    56px 24px;
}
.cptg-post-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);   /* 4열 */
    gap:                   28px;
    margin-bottom:         40px;
}

.cptg-post-card {
    background:     var(--cptg-card-bg);
    border-radius:  var(--cptg-radius);
    border:         1px solid var(--cptg-border-lt);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
}

/* 썸네일 */
.cptg-card-thumb-link { display: block; }
.cptg-card-thumb {
    position:     relative;
    width:        100%;
    aspect-ratio: 16 / 10;   /* 약간 더 넓은 비율 */
    overflow:     hidden;
    background:   var(--cptg-bg);
}
.cptg-card-thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
}
.cptg-thumb-placeholder {
    width:           100%;
    height:          100%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      var(--cptg-bg-alt);
    color:           #93c5fd;
}
.cptg-thumb-placeholder svg { width: 44px; height: 44px; }

.cptg-card-badge {
    position:      absolute;
    top:           12px;
    left:          12px;
    background:    var(--cptg-badge-bg);
    color:         var(--cptg-badge-text);
    font-size:     11px;
    font-weight:   700;
    padding:       4px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* 카드 본문 */
.cptg-card-body {
    padding:        20px;
    display:        flex;
    flex-direction: column;
    flex:           1;
    gap:            7px;
}
.cptg-card-date {
    font-size: 12px;
    color:     var(--cptg-muted);
}
.cptg-card-title {
    font-size:          16px;
    font-weight:        700;
    color:              var(--cptg-dark);
    line-height:        1.45;
    margin:             0;
    display:            -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow:           hidden;
}
.cptg-card-title a { color: inherit; text-decoration: none; }
.cptg-card-title a:hover { color: var(--cptg-primary); }

.cptg-card-excerpt {
    font-size:          14px;
    color:              var(--cptg-muted);
    line-height:        1.65;
    margin:             0;
    flex:               1;
    display:            -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow:           hidden;
}
.cptg-card-cta {
    display:         inline-flex;
    align-items:     center;
    gap:             4px;
    font-size:       13px;
    font-weight:     600;
    color:           var(--cptg-primary);
    text-decoration: none;
    margin-top:      6px;
    min-height:      44px;
}
.cptg-card-cta svg { width: 14px; height: 14px; }
.cptg-card-cta:hover { text-decoration: underline; }

/* 페이지네이션 */
.cptg-pagination {
    display:         flex;
    justify-content: center;
    gap:             6px;
    flex-wrap:       wrap;
}
.cptg-pagination .page-numbers {
    display:         inline-flex;
    align-items:     center;
    gap:             4px;
    padding:         8px 16px;
    border-radius:   50px;
    border:          1px solid var(--cptg-border);
    font-size:       14px;
    color:           var(--cptg-text);
    text-decoration: none;
    background:      #fff;
    min-height:      40px;
}
.cptg-pagination .page-numbers.current {
    background:   var(--cptg-primary);
    color:        #fff;
    border-color: var(--cptg-primary);
    font-weight:  700;
}
.cptg-pagination .page-numbers svg { width: 14px; height: 14px; }

/* 글 없음 */
.cptg-no-posts {
    text-align: center;
    padding:    60px 20px;
    color:      var(--cptg-muted);
}
.cptg-no-posts svg { width: 48px; height: 48px; margin-bottom: 12px; display: block; margin-left: auto; margin-right: auto; color: #93c5fd; }
.cptg-no-posts p { margin: 0 0 20px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   MID-PAGE CTA BANNER — 청록 그라디언트
═══════════════════════════════════════════════════════════ */
.cptg-cta-banner {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #38bdf8 100%);
    padding:    56px 24px;
    color:      #fff;
}
.cptg-cta-inner {
    max-width:       1100px;
    margin:          0 auto;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             32px;
    flex-wrap:       wrap;
}
.cptg-cta-text h2 {
    font-size:   26px;
    font-weight: 800;
    margin:      0 0 8px;
    color:       #fff;
}
.cptg-cta-text p {
    font-size: 15px;
    color:     rgba(255,255,255,0.88);
    margin:    0;
}
.cptg-cta-actions {
    display:     flex;
    gap:         12px;
    flex-wrap:   wrap;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY HUB — 연한 하늘색 배경
═══════════════════════════════════════════════════════════ */
.cptg-hub-section {
    background: var(--cptg-bg);
    padding:    64px 24px;
}
.cptg-hub-block { margin-bottom: 48px; }
.cptg-hub-block:last-child { margin-bottom: 0; }

.cptg-hub-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   16px;
    padding-bottom:  12px;
    border-bottom:   2px solid var(--cptg-border);
    flex-wrap:       wrap;
    gap:             8px;
}
.cptg-hub-cat-title {
    font-size:   20px;
    font-weight: 700;
    margin:      0;
}
.cptg-hub-cat-title a {
    display:         inline-flex;
    align-items:     center;
    gap:             7px;
    color:           var(--cptg-dark);
    text-decoration: none;
    min-height:      44px;
}
.cptg-hub-cat-title a:hover { color: var(--cptg-primary); }
.cptg-hub-cat-title svg { width: 16px; height: 16px; color: var(--cptg-primary); }

.cptg-hub-more {
    display:         inline-flex;
    align-items:     center;
    gap:             3px;
    font-size:       13px;
    font-weight:     600;
    color:           var(--cptg-primary);
    text-decoration: none;
    white-space:     nowrap;
    min-height:      44px;
    padding:         6px 14px;
    border:          1px solid var(--cptg-border);
    border-radius:   50px;
    background:      #fff;
}
.cptg-hub-more svg { width: 14px; height: 14px; }
.cptg-hub-more:hover { background: var(--cptg-primary); color: #fff; border-color: var(--cptg-primary); }

.cptg-hub-posts {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   16px;
}
.cptg-hub-item {
    border:        1px solid var(--cptg-border-lt);
    border-radius: var(--cptg-radius);
    overflow:      hidden;
    background:    #fff;
}
.cptg-hub-item-link {
    display:         flex;
    gap:             12px;
    text-decoration: none;
    color:           inherit;
    padding:         14px;
    min-height:      44px;
}
.cptg-hub-item-thumb {
    flex-shrink:   0;
    width:         100px;
    height:        70px;
    border-radius: var(--cptg-radius-sm);
    overflow:      hidden;
    background:    var(--cptg-bg-alt);
}
.cptg-hub-item-thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
}
.cptg-thumb-sm .cptg-thumb-placeholder svg { width: 28px; height: 28px; }
.cptg-hub-item-body {
    display:         flex;
    flex-direction:  column;
    justify-content: center;
    gap:             6px;
    min-width:       0;
}
.cptg-hub-item-title {
    font-size:          14px;
    font-weight:        600;
    color:              var(--cptg-dark);
    margin:             0;
    line-height:        1.4;
    display:            -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow:           hidden;
}
.cptg-hub-item-link:hover .cptg-hub-item-title { color: var(--cptg-primary); }
.cptg-hub-item-date {
    font-size:   12px;
    color:       var(--cptg-muted);
    display:     inline-flex;
    align-items: center;
    gap:         4px;
}
.cptg-hub-item-date svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════════════
   HowTo — 타임라인 스타일 (번호 원형 + 세로 연결선)
═══════════════════════════════════════════════════════════ */
.cptg-howto-section {
    background: #fff;
    padding:    64px 24px;
}
.cptg-howto-list {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   0;
    list-style:            none;
    margin:                0 0 40px;
    padding:               0;
    position:              relative;
}

/* 아이템 간 가로 연결선 */
.cptg-howto-list::before {
    content:    '';
    position:   absolute;
    top:        30px;               /* 번호 원형 중앙 높이 */
    left:       calc(12.5%);        /* 1번 원형 중앙 */
    right:      calc(12.5%);        /* 4번 원형 중앙 */
    height:     2px;
    background: var(--cptg-border);
    z-index:    0;
}

.cptg-howto-item {
    background:    transparent;
    border:        none;
    padding:       0 16px 0;
    text-align:    center;
    position:      relative;
    z-index:       1;
}

/* 번호 원형 래퍼 */
.cptg-howto-num-wrap {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    margin-bottom:  20px;
}

/* 번호 원형 */
.cptg-howto-num {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           60px;
    height:          60px;
    border-radius:   50%;
    background:      var(--cptg-primary);
    color:           #fff;
    font-size:       18px;
    font-weight:     800;
    line-height:     1;
    margin-bottom:   0;
    border:          4px solid #fff;
    outline:         2px solid var(--cptg-border);
    position:        relative;
    z-index:         2;
}

.cptg-howto-body {
    text-align: center;
}
.cptg-howto-body strong {
    display:       block;
    font-size:     16px;
    font-weight:   700;
    color:         var(--cptg-dark);
    margin-bottom: 8px;
}
.cptg-howto-body p {
    font-size:   14px;
    color:       var(--cptg-muted);
    margin:      0;
    line-height: 1.65;
}

/* 마지막 아이템의 연결선 숨김 */
.cptg-howto-connector { display: none; }

.cptg-howto-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   FAQ — 좌측 border 아코디언 스타일
═══════════════════════════════════════════════════════════ */
.cptg-faq-section {
    background: var(--cptg-bg);
    padding:    64px 24px;
}
.cptg-faq-list {
    max-width: 840px;
    margin:    0 auto;
}

.cptg-faq-item {
    background:     #fff;
    border:         none;
    border-left:    4px solid var(--cptg-border);
    border-radius:  0 var(--cptg-radius-sm) var(--cptg-radius-sm) 0;
    margin-bottom:  8px;
    overflow:       hidden;
}
/* 열린 항목: 좌측 border 색상 변경 */
.cptg-faq-item:has(.cptg-faq-toggle[aria-expanded="true"]) {
    border-left-color: var(--cptg-primary);
    background:        rgba(8, 145, 178, 0.04);
}

.cptg-faq-question { margin: 0; }
.cptg-faq-toggle {
    width:           100%;
    background:      none;
    border:          none;
    padding:         18px 20px;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             12px;
    cursor:          pointer;
    text-align:      left;
    font-size:       15px;
    font-weight:     600;
    color:           var(--cptg-dark);
    line-height:     1.5;
    min-height:      56px;
    font-family:     var(--cptg-font);
}
.cptg-faq-toggle:hover { color: var(--cptg-primary); }
.cptg-faq-toggle span { flex: 1; }
.cptg-faq-icon {
    flex-shrink: 0;
    width:       18px !important;
    height:      18px !important;
    transition:  transform 0.25s ease;
    color:       var(--cptg-muted);
}
.cptg-faq-toggle[aria-expanded="true"] {
    color: var(--cptg-primary);
}
.cptg-faq-toggle[aria-expanded="true"] .cptg-faq-icon {
    transform:  rotate(180deg);
    color:      var(--cptg-primary);
}
.cptg-faq-answer {
    padding:     0 20px 20px;
    font-size:   15px;
    color:       var(--cptg-text);
    line-height: 1.85;
    border-top:  1px solid var(--cptg-border-lt);
    margin:      0;
}
.cptg-faq-answer[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   TAGS — 컬러 필 태그 (# 없이, nth-child 교차 색상)
═══════════════════════════════════════════════════════════ */
.cptg-tags-section {
    background: #fff;
    padding:    56px 24px;
}
.cptg-tag-cloud {
    display:   flex;
    flex-wrap: wrap;
    gap:       10px;
}
.cptg-tag {
    display:         inline-flex;
    align-items:     center;
    padding:         8px 18px;
    border-radius:   50px;
    font-size:       13px;
    font-weight:     500;
    text-decoration: none;
    min-height:      36px;
    line-height:     1.4;
    background:      var(--cptg-bg);
    color:           var(--cptg-primary);
    border:          1px solid var(--cptg-border);
}

/* 교차 색상 */
.cptg-tag:nth-child(5n+1) { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.cptg-tag:nth-child(5n+2) { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cptg-tag:nth-child(5n+3) { background: #fff7ed; color: #b45309; border-color: #fed7aa; }
.cptg-tag:nth-child(5n+4) { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.cptg-tag:nth-child(5n+5) { background: #fff1f2; color: #be123c; border-color: #fecdd3; }

.cptg-tag:hover {
    filter:  brightness(0.93);
    outline: 2px solid currentColor;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM CTA — 딥 청록 배경
═══════════════════════════════════════════════════════════ */
.cptg-bottom-cta {
    background: linear-gradient(160deg, #0c1a2e 0%, #0e4c6e 100%);
    padding:    72px 24px;
    text-align: center;
    color:      #fff;
}
.cptg-bottom-cta-inner {
    max-width: 680px;
    margin:    0 auto;
}
.cptg-bottom-cta h2 {
    font-size:   30px;
    font-weight: 800;
    margin:      0 0 16px;
    color:       #fff;
}
.cptg-bottom-cta p {
    font-size:   16px;
    color:       rgba(255,255,255,0.78);
    margin:      0 0 36px;
    line-height: 1.8;
}
.cptg-bottom-cta strong { color: #67e8f9; }
.cptg-bottom-cta-actions {
    display:         flex;
    gap:             12px;
    justify-content: center;
    flex-wrap:       wrap;
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM FOOTER — 딥 네이비
═══════════════════════════════════════════════════════════ */
.cptg-footer {
    background:  #0c1a2e;
    color:       rgba(255,255,255,0.72);
    font-family: var(--cptg-font);
    font-size:   14px;
}
.cptg-footer-main {
    padding:       60px 24px 52px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cptg-footer-grid {
    display:               grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap:                   52px;
    align-items:           start;
}

.cptg-footer-logo {
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    font-size:   22px;
    font-weight: 800;
    color:       #fff;
    margin:      0 0 14px;
    line-height: 1;
}
.cptg-footer-logo svg { width: 22px; height: 22px; color: var(--cptg-primary); }
.cptg-footer-tagline {
    font-size:   14px;
    color:       rgba(255,255,255,0.48);
    line-height: 1.85;
    margin:      0 0 22px;
}
.cptg-footer-badges {
    display:   flex;
    flex-wrap: wrap;
    gap:       8px;
    margin:    0 0 28px;
}
.cptg-footer-badge {
    display:       inline-flex;
    align-items:   center;
    gap:           5px;
    font-size:     12px;
    font-weight:   600;
    color:         rgba(255,255,255,0.60);
    background:    rgba(8, 145, 178, 0.15);
    padding:       5px 12px;
    border-radius: 50px;
    border:        1px solid rgba(8, 145, 178, 0.30);
}
.cptg-footer-badge svg { width: 12px; height: 12px; }
.cptg-footer-cta { margin-top: 4px; }

.cptg-footer-col-title {
    font-size:      12px;
    font-weight:    700;
    color:          rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin:         0 0 18px;
}
.cptg-footer-links {
    list-style: none;
    margin:     0;
    padding:    0;
    display:    flex;
    flex-direction: column;
    gap:        2px;
}
.cptg-footer-links a {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    color:           rgba(255,255,255,0.58);
    text-decoration: none;
    font-size:       14px;
    padding:         5px 0;
    min-height:      32px;
    line-height:     1.4;
    word-break:      keep-all;
}
.cptg-footer-links a:hover { color: #fff; }
.cptg-footer-links svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.45; }
.cptg-footer-links a:hover svg { opacity: 1; }

.cptg-footer-contact {
    margin-top:    20px;
    padding-top:   18px;
    border-top:    1px solid rgba(255,255,255,0.07);
    display:       flex;
    flex-direction: column;
    gap:           8px;
}
.cptg-footer-contact-label {
    display:     inline-flex;
    align-items: center;
    gap:         6px;
    font-size:   12px;
    color:       rgba(255,255,255,0.35);
    margin:      0;
}
.cptg-footer-contact-label svg { width: 13px; height: 13px; }

.cptg-footer-bottom {
    background: rgba(0,0,0,0.25);
    padding:    18px 24px;
}
.cptg-footer-bottom-inner {
    max-width:       1200px;
    margin:          0 auto;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    flex-wrap:       wrap;
    gap:             12px;
}
.cptg-footer-copy {
    font-size: 13px;
    color:     rgba(255,255,255,0.30);
    margin:    0;
}
.cptg-footer-copy a { color: rgba(255,255,255,0.50); text-decoration: none; }
.cptg-footer-copy a:hover { color: #fff; }
.cptg-footer-legal { display: flex; gap: 20px; }
.cptg-footer-legal a {
    font-size:       13px;
    color:           rgba(255,255,255,0.36);
    text-decoration: none;
}
.cptg-footer-legal a:hover { color: rgba(255,255,255,0.78); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 태블릿 (≤ 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cptg-post-grid          { grid-template-columns: repeat(2, 1fr); }
    .cptg-stat-row           { grid-template-columns: repeat(2, 1fr); }
    .cptg-howto-list         { grid-template-columns: repeat(2, 1fr); }
    .cptg-howto-list::before { display: none; } /* 연결선 숨김 */
    .cptg-hub-posts          { grid-template-columns: repeat(2, 1fr); }
    .cptg-hero-title         { font-size: 34px; }
    .cptg-hero-inner         { flex: 0 0 65%; max-width: 65%; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 모바일 (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .admin-bar .cptg-cat-nav { top: 46px; }

    /* Hero — 세로 레이아웃으로 전환 */
    .cptg-hero           { padding: 0; }
    .cptg-hero-split     { flex-direction: column; min-height: auto; }
    .cptg-hero-inner     { flex: none; max-width: 100%; padding: 52px 12px 40px; text-align: center; }
    .cptg-hero-deco      { display: none; }
    .cptg-hero-title     { font-size: 26px; }
    .cptg-hero-subtitle  { font-size: 14px; }
    .cptg-hero-cta       { justify-content: center; flex-direction: column; align-items: stretch; }
    .cptg-hero-cta .cptg-btn { justify-content: center; }

    /* Definition */
    .cptg-definition-section { padding: 40px 12px; }
    .cptg-stat-row           { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* 비교표 */
    .cptg-compare-section    { padding: 40px 12px; }
    .cptg-compare-table-wrap { display: none; }
    .cptg-compare-cards      { display: grid; }

    /* 카테고리 네비 */
    .cptg-cat-nav  { padding: 10px 12px; }

    /* Post grid */
    .cptg-post-grid { grid-template-columns: 1fr; gap: 20px; }

    /* CTA */
    .cptg-cta-inner   { flex-direction: column; text-align: center; }
    .cptg-cta-actions { justify-content: center; }

    /* Hub */
    .cptg-hub-posts { grid-template-columns: 1fr; }

    /* HowTo */
    .cptg-howto-list { grid-template-columns: 1fr; }
    .cptg-howto-list::before { display: none; }
    .cptg-howto-item { padding: 0; text-align: left; }
    .cptg-howto-num-wrap { flex-direction: row; margin-bottom: 12px; }
    .cptg-howto-num { width: 48px; height: 48px; font-size: 16px; flex-shrink: 0; }
    .cptg-howto-body { text-align: left; }

    /* FAQ */
    .cptg-faq-section { padding: 40px 12px; }
    .cptg-faq-toggle  { font-size: 14px; padding: 14px 12px; }
    .cptg-faq-answer  { padding: 0 12px 12px; font-size: 14px; }

    /* 타이포 */
    .cptg-section-title { font-size: 20px; }
    .cptg-cta-text h2   { font-size: 20px; }
    .cptg-bottom-cta h2 { font-size: 22px; }

    /* 패딩 */
    .cptg-main          { padding: 36px 12px; }
    .cptg-hub-section,
    .cptg-howto-section,
    .cptg-tags-section  { padding: 40px 12px; }
    .cptg-cta-banner    { padding: 40px 12px; }
    .cptg-bottom-cta    { padding: 52px 12px; }

    /* 푸터 */
    .cptg-footer-main  { padding: 44px 12px 40px; }
    .cptg-footer-grid  {
        grid-template-columns: 1fr 1fr;
        gap:                   36px 24px;
    }
    .cptg-footer-brand { grid-column: 1 / -1; }
    .cptg-footer-bottom { padding: 12px; }
    .cptg-footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
    .cptg-footer-legal { justify-content: center; gap: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 소형 모바일 (≤ 480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .cptg-container          { padding: 0 10px; }
    .cptg-stat-row           { grid-template-columns: repeat(2, 1fr); }
    .cptg-compare-cards      { grid-template-columns: 1fr; }
    .cptg-hub-item-link      { flex-direction: column; }
    .cptg-hub-item-thumb     { width: 100%; height: 160px; }
    .cptg-bottom-cta-actions { flex-direction: column; align-items: stretch; }
    .cptg-bottom-cta-actions .cptg-btn { justify-content: center; }
    .cptg-hero-title         { font-size: 22px; }
    .cptg-compare-card-row dt { flex: 0 0 72px; }
    /* 푸터: 브랜드 전폭 + 카테고리 2열 */
    .cptg-footer-grid        { grid-template-columns: 1fr 1fr; gap: 20px; }
    .cptg-footer-brand       { grid-column: span 2; }
    .cptg-footer-badges      { gap: 6px; }
    .cptg-footer-legal       { flex-wrap: wrap; gap: 12px; }
}
