/**
 * 파일명: home-forest.css
 * 파일경로: /home/thejoagi/corebizflow.com/wp-content/plugins/custom-post/assets/css/home-forest.css
 * 기능: 기프트조아 홈페이지 포레스트(Forest) 테마 (page-home-forest.php) 전용 스타일.
 *       카키 올리브 그린 계열 컬러, 웨이브 히어로, 탭 언더라인 카테고리 네비,
 *       4열 포스트 그리드, 2×2 아이콘 카드 HowTo, 아웃라인 태그 클라우드 등
 * 작성일: 2026-03-20
 * 수정일: 2026-03-20 (카키 팔레트 적용, eyebrow 가시성 개선)
 */

/* ═══════════════════════════════════════════════════════════
   CSS 변수 — Forest 테마
═══════════════════════════════════════════════════════════ */
:root {
    --cptg-primary:     #5c6b3a;   /* 카키 올리브 그린 */
    --cptg-primary-dk:  #495630;   /* 카키 진하게 */
    --cptg-primary-lt:  #e4ead0;   /* 카키 연하게 */
    --cptg-dark:        #1e2710;   /* 딥 카키 */
    --cptg-text:        #2a3318;
    --cptg-muted:       #6b6b5a;
    --cptg-bg:          #f4f0e6;   /* 크림 웜 베이지 */
    --cptg-bg-alt:      #ebe6d8;   /* 크림 베이지 진하게 */
    --cptg-card-bg:     #ffffff;
    --cptg-border:      #c8c0a0;   /* 카키 탠 경계선 */
    --cptg-border-lt:   #ddd8c4;
    --cptg-badge-bg:    #495630;
    --cptg-badge-text:  #ffffff;
    --cptg-radius:      12px;
    --cptg-radius-sm:   6px;
    --cptg-font:        -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   테마 레이아웃 격리 (body.cptg-home-forest-page 스코프)
═══════════════════════════════════════════════════════════ */
body.cptg-home-forest-page #page,
body.cptg-home-forest-page .site,
body.cptg-home-forest-page #content,
body.cptg-home-forest-page .site-content,
body.cptg-home-forest-page #primary,
body.cptg-home-forest-page .content-area,
body.cptg-home-forest-page main.site-main,
body.cptg-home-forest-page #main,
body.cptg-home-forest-page .hfeed {
    width:     100% !important;
    max-width: none !important;
    padding:   0 !important;
    margin:    0 !important;
    float:     none !important;
}

body.cptg-home-forest-page footer.site-footer,
body.cptg-home-forest-page #footer,
body.cptg-home-forest-page .site-footer,
body.cptg-home-forest-page #colophon,
body.cptg-home-forest-page .footer-widgets,
body.cptg-home-forest-page #footer-widgets { display: none !important; }

body.cptg-home-forest-page #scroll-top,
body.cptg-home-forest-page .scroll-top,
body.cptg-home-forest-page #scrollTop,
body.cptg-home-forest-page .scrollTop,
body.cptg-home-forest-page #back-to-top,
body.cptg-home-forest-page .back-to-top,
body.cptg-home-forest-page .backtotop,
body.cptg-home-forest-page #backToTop,
body.cptg-home-forest-page #scrollToTop,
body.cptg-home-forest-page .scrollToTop,
body.cptg-home-forest-page [class*="scroll-to-top"],
body.cptg-home-forest-page [id*="scroll-to-top"],
body.cptg-home-forest-page [class*="back-to-top"],
body.cptg-home-forest-page [id*="back-to-top"],
body.cptg-home-forest-page .floating-buttons,
body.cptg-home-forest-page .scroll-top-button,
body.cptg-home-forest-page .share-button { display: none !important; }

body.cptg-home-forest-page .entry-content,
body.cptg-home-forest-page .entry-header,
body.cptg-home-forest-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:         12px 24px;
    border-radius:   8px;
    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-dk);
    border:     2px solid #fff;
}
.cptg-btn-white:hover { background: var(--cptg-primary-lt); color: var(--cptg-primary-dk); }

/* ─── 섹션 공통 헤더 ─────────────────────────────────────── */
.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 — 웨이브 하단 + 부동 장식 아이콘 (중앙 정렬)
═══════════════════════════════════════════════════════════ */
.cptg-hero {
    background: linear-gradient(155deg, #1e2710 0%, #2c3a18 50%, #3a4e22 100%);
    padding:    0;
    color:      #fff;
    overflow:   hidden;
    position:   relative;
}

/* ── 부동 장식 아이콘 ── */
.cptg-hero-bg-icons {
    position: absolute;
    inset:    0;
    pointer-events: none;
    overflow: hidden;
    z-index:  1;
}
.cptg-hbi {
    position: absolute;
    color:    rgba(255, 255, 255, 0.07);
}
.cptg-hbi svg { display: block; }

.hbi-1 { top: 10%; left:  5%; width: 80px; height: 80px; }
.hbi-2 { top: 60%; left:  3%; width: 56px; height: 56px; }
.hbi-3 { top:  8%; right: 6%; width: 72px; height: 72px; }
.hbi-4 { top: 55%; right: 4%; width: 60px; height: 60px; }

/* ── 히어로 콘텐츠 (중앙 정렬) ── */
.cptg-hero-inner {
    position:   relative;
    z-index:    2;
    text-align: center;
    padding:    88px 24px 96px;
    max-width:  780px;
    margin:     0 auto;
}

.cptg-hero-eyebrow {
    font-size:      12px;
    font-weight:    700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color:          rgba(255,255,255,0.82);
    margin:         0 0 20px;
}

.cptg-hero-title {
    font-size:   44px;
    font-weight: 800;
    line-height: 1.2;
    margin:      0 0 20px;
    color:       #fff;
}
.cptg-hero-title br { display: block; }

.cptg-hero-subtitle {
    font-size:   16px;
    line-height: 1.85;
    color:       rgba(255,255,255,0.78);
    margin:      0 0 40px;
}

.cptg-hero-cta {
    display:         flex;
    gap:             12px;
    justify-content: center;
    flex-wrap:       wrap;
}
.cptg-hero-cta .cptg-btn { justify-content: center; }

/* ── 웨이브 하단 ── */
.cptg-hero-wave {
    position: relative;
    z-index:  2;
    line-height: 0;
    margin-top: -2px;
}
.cptg-hero-wave svg {
    display: block;
    width:   100%;
    height:  64px;
}

/* ═══════════════════════════════════════════════════════════
   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: #2c3a18; }
.cptg-compare-table thead th:nth-child(3) { background: #364419; }
.cptg-compare-table thead th:nth-child(4) { background: #404e1c; }
.cptg-compare-table thead th:nth-child(5) { background: #4a5a20; }
.cptg-compare-table thead th:nth-child(6) { background: var(--cptg-primary); }
.cptg-compare-table thead th:first-child {
    text-align:   left;
    background:   #101508;
    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: var(--cptg-primary-lt); }
.cptg-compare-table tbody th {
    padding:      14px 18px;
    font-weight:  600;
    color:        var(--cptg-dark);
    text-align:   left;
    background:   #f8f6ee;
    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 — 탭 언더라인 스타일
═══════════════════════════════════════════════════════════ */
.cptg-cat-nav {
    background:    #fff;
    border-bottom: 2px solid var(--cptg-border-lt);
    padding:       0 24px;
    position:      sticky;
    top:           0;
    z-index:       100;
}
.admin-bar .cptg-cat-nav { top: 32px; }

.cptg-cat-list {
    display:         flex;
    flex-wrap:       wrap;   /* 줄바꿈 허용 */
    gap:             0;
    list-style:      none;
    margin:          0;
    padding:         0;
    align-items:     stretch;
}

/* 탭 언더라인 스타일 */
.cptg-cat-btn {
    display:          inline-flex;
    align-items:      center;
    gap:              5px;
    padding:          14px 18px;
    font-size:        14px;
    font-weight:      500;
    color:            var(--cptg-muted);
    text-decoration:  none;
    border:           none;
    border-bottom:    3px solid transparent;
    border-radius:    0;
    white-space:      nowrap;
    min-height:       48px;
    background:       transparent;
    margin-bottom:    -2px;
    position:         relative;
}
.cptg-cat-btn:hover {
    color:              var(--cptg-primary);
    border-bottom-color: var(--cptg-primary-lt);
}
.cptg-cat-btn.active {
    color:              var(--cptg-primary);
    font-weight:        700;
    border-bottom-color: var(--cptg-primary);
    background:          transparent;
}
.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: var(--cptg-primary-lt);
    color:      var(--cptg-primary-dk);
}

/* ═══════════════════════════════════════════════════════════
   MAIN POST GRID — 4열 카드 그리드
═══════════════════════════════════════════════════════════ */
.cptg-main {
    background: var(--cptg-bg);
    padding:    56px 24px;
}
.cptg-post-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);   /* 4열 */
    gap:                   22px;
    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: 4 / 3;
    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:           var(--cptg-primary);
}
.cptg-thumb-placeholder svg { width: 40px; height: 40px; }

.cptg-card-badge {
    position:       absolute;
    top:            10px;
    left:           10px;
    background:     var(--cptg-badge-bg);
    color:          var(--cptg-badge-text);
    font-size:      11px;
    font-weight:    700;
    padding:        3px 9px;
    border-radius:  4px;
    letter-spacing: 0.3px;
}

/* 카드 본문 */
.cptg-card-body {
    padding:        16px;
    display:        flex;
    flex-direction: column;
    flex:           1;
    gap:            6px;
}
.cptg-card-date {
    font-size: 12px;
    color:     var(--cptg-muted);
}
.cptg-card-title {
    font-size:          15px;
    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:          13px;
    color:              var(--cptg-muted);
    line-height:        1.6;
    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:      4px;
    min-height:      40px;
}
.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:   6px;
    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: var(--cptg-primary); }
.cptg-no-posts p { margin: 0 0 20px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   MID-PAGE CTA BANNER — 포레스트 그린 그라디언트
═══════════════════════════════════════════════════════════ */
.cptg-cta-banner {
    background: linear-gradient(135deg, #495630 0%, #5c6b3a 55%, #6d7f46 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:   6px;
    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 — 2×2 아이콘 카드 그리드
═══════════════════════════════════════════════════════════ */
.cptg-howto-section {
    background: #fff;
    padding:    64px 24px;
}
.cptg-howto-list {
    display:               grid;
    grid-template-columns: repeat(2, 1fr);   /* 2×2 그리드 */
    gap:                   24px;
    list-style:            none;
    margin:                0 0 40px;
    padding:               0;
}

.cptg-howto-item {
    background:    var(--cptg-bg);
    border:        1px solid var(--cptg-border-lt);
    border-radius: var(--cptg-radius);
    padding:       36px 28px 30px;
    text-align:    center;
    position:      relative;
}

/* 아이콘 원형 */
.cptg-howto-icon {
    width:           72px;
    height:          72px;
    border-radius:   50%;
    background:      var(--cptg-primary);
    color:           #fff;
    display:         flex;
    align-items:     center;
    justify-content: center;
    margin:          0 auto 16px;
    flex-shrink:     0;
}
.cptg-howto-icon svg { width: 30px; height: 30px; }

/* 단계 번호 (우상단 배지) */
.cptg-howto-num {
    position:       absolute;
    top:            16px;
    right:          20px;
    font-size:      11px;
    font-weight:    800;
    color:          var(--cptg-primary);
    letter-spacing: 0.5px;
    background:     var(--cptg-primary-lt);
    padding:        3px 8px;
    border-radius:  20px;
    line-height:    1.4;
}

.cptg-howto-body { text-align: center; }
.cptg-howto-body strong {
    display:       block;
    font-size:     17px;
    font-weight:   700;
    color:         var(--cptg-dark);
    margin-bottom: 10px;
}
.cptg-howto-body p {
    font-size:   14px;
    color:       var(--cptg-muted);
    margin:      0;
    line-height: 1.7;
}

.cptg-howto-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   FAQ — 녹색 아코디언
═══════════════════════════════════════════════════════════ */
.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:        1px solid var(--cptg-border-lt);
    border-radius: var(--cptg-radius);
    margin-bottom: 8px;
    overflow:      hidden;
}
.cptg-faq-item:has(.cptg-faq-toggle[aria-expanded="true"]) {
    border-color: var(--cptg-primary);
    background:   rgba(92, 107, 58, 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 — 아웃라인 스타일 (테두리만, 채우기 없음)
═══════════════════════════════════════════════════════════ */
.cptg-tags-section {
    background: #fff;
    padding:    56px 24px;
}
.cptg-tag-cloud {
    display:   flex;
    flex-wrap: wrap;
    gap:       8px;
}
.cptg-tag {
    display:         inline-flex;
    align-items:     center;
    padding:         7px 16px;
    border-radius:   6px;
    font-size:       13px;
    font-weight:     500;
    text-decoration: none;
    min-height:      34px;
    background:      transparent;
    color:           var(--cptg-primary-dk);
    border:          1.5px solid var(--cptg-border);
    line-height:     1.4;
}
.cptg-tag:hover {
    background:   var(--cptg-primary);
    color:        #fff;
    border-color: var(--cptg-primary);
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM CTA — 딥 포레스트 배경
═══════════════════════════════════════════════════════════ */
.cptg-bottom-cta {
    background: linear-gradient(160deg, #1e2710 0%, #2c3a18 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: #c8d9a0; }
.cptg-bottom-cta-actions {
    display:         flex;
    gap:             12px;
    justify-content: center;
    flex-wrap:       wrap;
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM FOOTER — 딥 포레스트
═══════════════════════════════════════════════════════════ */
.cptg-footer {
    background:  #131b0b;
    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(92, 107, 58, 0.15);
    padding:       5px 12px;
    border-radius: 50px;
    border:        1px solid rgba(92, 107, 58, 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.28);
    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); }

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP — 그린 포인트
═══════════════════════════════════════════════════════════ */
#cptgScrollTopBtn {
    position:    fixed;
    bottom:      28px;
    right:       24px;
    width:       50px;
    height:      50px;
    cursor:      pointer;
    opacity:     0;
    visibility:  hidden;
    transform:   translateY(12px);
    transition:  opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index:     990;
    display:     flex;
    align-items:     center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
#cptgScrollTopBtn.cptg-stb-visible {
    opacity:    1;
    visibility: visible;
    transform:  translateY(0);
}
#cptgScrollTopBtn:hover { transform: translateY(-3px); }

.cptg-stb-bg {
    position:      absolute;
    inset:         0;
    border-radius: 50%;
    background:    var(--cptg-dark);
}
#cptgScrollTopBtn:hover .cptg-stb-bg { background: #14532d; }

.cptg-stb-ring {
    position:  absolute;
    width:     100%;
    height:    100%;
    transform: rotate(-90deg);
}
.cptg-stb-track {
    fill:         none;
    stroke:       rgba(255,255,255,0.18);
    stroke-width: 3;
}
.cptg-stb-fill {
    fill:              none;
    stroke:            var(--cptg-primary);
    stroke-width:      3;
    stroke-linecap:    round;
    stroke-dasharray:  113.1;
    stroke-dashoffset: 113.1;
    transition:        stroke-dashoffset 0.12s linear;
}
.cptg-stb-inner {
    position:       relative;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            1px;
    pointer-events: none;
    user-select:    none;
}
.cptg-stb-arrow {
    width:        14px !important;
    height:       14px !important;
    color:        rgba(255,255,255,0.95);
    stroke-width: 2.8;
    display:      block;
    flex-shrink:  0;
}
#cptgScrollTopBtn:hover .cptg-stb-arrow {
    animation: cptgArrowBounce 0.45s ease forwards;
}
@keyframes cptgArrowBounce {
    0%   { transform: translateY(0); }
    35%  { transform: translateY(-4px); }
    65%  { transform: translateY(-1px); }
    100% { transform: translateY(-2px); }
}
.cptg-stb-pct {
    font-size:      9px;
    font-weight:    700;
    color:          rgba(255,255,255,0.80);
    line-height:    1;
    letter-spacing: -0.3px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 대형 태블릿 (≤ 1280px): 4열 → 3열
═══════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .cptg-post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   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-hub-posts   { grid-template-columns: repeat(2, 1fr); }
    .cptg-hero-title  { font-size: 36px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 모바일 (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .admin-bar .cptg-cat-nav { top: 46px; }

    /* Hero */
    .cptg-hero-inner    { padding: 60px 12px 68px; }
    .cptg-hero-title    { font-size: 26px; }
    .cptg-hero-subtitle { font-size: 14px; }
    .cptg-hero-cta      { flex-direction: column; align-items: stretch; }
    .cptg-hbi           { display: none; } /* 작은 화면에서 장식 아이콘 숨김 */

    /* 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: 0 12px; }

    /* Post grid */
    .cptg-post-grid { grid-template-columns: 1fr; gap: 18px; }

    /* 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 — 1열로 전환 */
    .cptg-howto-list { grid-template-columns: 1fr; gap: 16px; }
    .cptg-howto-item { padding: 24px 20px; text-align: left; display: flex; align-items: flex-start; gap: 16px; }
    .cptg-howto-icon { margin: 0; flex-shrink: 0; width: 52px; height: 52px; }
    .cptg-howto-icon svg { width: 22px; height: 22px; }
    .cptg-howto-body { text-align: left; }
    .cptg-howto-num  { position: static; margin-bottom: 6px; align-self: flex-start; }

    /* 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; }
}
