/**
 * 파일명: home-crimson.css
 * 파일경로: /home/thejoagi/corebizflow.com/wp-content/plugins/custom-post/assets/css/home-crimson.css
 * 기능: 기프트조아 홈페이지 크림슨(Crimson) 테마 (page-home-crimson.php) 전용 스타일
 *       테마 격리, Hero, 비교표(데스크톱+모바일), 포스트 그리드,
 *       FAQ 아코디언, HowTo, 태그 클라우드, CTA 등 전체 레이아웃 포함
 * 작성일: 2026-03-18
 * 수정일: 2026-03-19
 */

/* ═══════════════════════════════════════════════════════════
   CSS 변수
═══════════════════════════════════════════════════════════ */
:root {
    --cptg-primary:     #e84118;
    --cptg-primary-dk:  #c0320f;
    --cptg-dark:        #1a1a2e;
    --cptg-text:        #2d3436;
    --cptg-muted:       #636e72;
    --cptg-bg:          #f5f6fa;
    --cptg-card-bg:     #ffffff;
    --cptg-border:      #e8ecef;
    --cptg-badge-bg:    #0a3d62;
    --cptg-badge-text:  #ffffff;
    --cptg-radius:      10px;
    --cptg-radius-sm:   6px;
    --cptg-font:        -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   테마 레이아웃 격리
   body.cptg-home-page 클래스가 붙을 때 테마의 wrapper 제약 해제
═══════════════════════════════════════════════════════════ */
body.cptg-home-page #page,
body.cptg-home-page .site,
body.cptg-home-page #content,
body.cptg-home-page .site-content,
body.cptg-home-page #primary,
body.cptg-home-page .content-area,
body.cptg-home-page main.site-main,
body.cptg-home-page #main,
body.cptg-home-page .hfeed {
    width:     100% !important;
    max-width: none !important;
    padding:   0 !important;
    margin:    0 !important;
    float:     none !important;
}

/* 테마 기본 푸터 숨김 (커스텀 푸터로 대체) */
body.cptg-home-page footer.site-footer,
body.cptg-home-page #footer,
body.cptg-home-page .site-footer,
body.cptg-home-page #colophon,
body.cptg-home-page .footer-widgets,
body.cptg-home-page #footer-widgets { display: none !important; }

/* 테마 Scroll-to-Top 버튼 숨김 (커스텀 버튼으로 대체) */
body.cptg-home-page #scroll-top,
body.cptg-home-page .scroll-top,
body.cptg-home-page #scrollTop,
body.cptg-home-page .scrollTop,
body.cptg-home-page #back-to-top,
body.cptg-home-page .back-to-top,
body.cptg-home-page .backtotop,
body.cptg-home-page #backToTop,
body.cptg-home-page #scrollToTop,
body.cptg-home-page .scrollToTop,
body.cptg-home-page [class*="scroll-to-top"],
body.cptg-home-page [id*="scroll-to-top"],
body.cptg-home-page [class*="back-to-top"],
body.cptg-home-page [id*="back-to-top"],
body.cptg-home-page .floating-buttons,
body.cptg-home-page .scroll-top-button,
body.cptg-home-page .share-button { display: none !important; }

/* 테마의 entry-content 폭 제한 해제 */
body.cptg-home-page .entry-content,
body.cptg-home-page .entry-header,
body.cptg-home-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;
}

/* 섹션 요소 전역 box-sizing */
.cptg-page-wrapper *,
.cptg-page-wrapper *::before,
.cptg-page-wrapper *::after {
    box-sizing: border-box;
}

/* 테마 h1~h6 마진 초기화 (섹션 제목에 영향 방지) */
.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;
}

/* 테마 p 마진 초기화 */
.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 20px;
}

/* ═══════════════════════════════════════════════════════════
   공용 버튼
═══════════════════════════════════════════════════════════ */
.cptg-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    padding:         13px 24px;
    border-radius:   var(--cptg-radius-sm);
    font-size:       15px;
    font-weight:     600;
    text-decoration: none;
    cursor:          pointer;
    white-space:     nowrap;
    min-height:      44px; /* 모바일 터치 타겟 */
    font-family:     var(--cptg-font);
}
.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.8);
}
.cptg-btn-outline:hover { background: rgba(255,255,255,0.15); 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: #f0f0f0; 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.15); 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 SECTION
═══════════════════════════════════════════════════════════ */
.cptg-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 60%, #3d3d3d 100%);
    padding:    80px 20px;
    text-align: center;
    color:      #fff;
}
.cptg-hero-inner {
    max-width: 760px;
    margin:    0 auto;
}
.cptg-hero-eyebrow {
    font-size:      13px;
    font-weight:    600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color:          rgba(255,255,255,0.6);
    margin:         0 0 16px;
}
.cptg-hero-title {
    font-size:   42px;
    font-weight: 800;
    line-height: 1.25;
    margin:      0 0 20px;
    color:       #fff;
}
.cptg-hero-subtitle {
    font-size:   16px;
    line-height: 1.75;
    color:       rgba(255,255,255,0.8);
    margin:      0 0 36px;
}
.cptg-hero-cta {
    display:         flex;
    gap:             12px;
    justify-content: center;
    flex-wrap:       wrap;
}

/* ═══════════════════════════════════════════════════════════
   DEFINITION SECTION (AI Overview 최적화)
═══════════════════════════════════════════════════════════ */
.cptg-definition-section {
    background: #fff;
    padding:    56px 20px;
}
.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.85;
    color:       var(--cptg-text);
    margin:      0 0 40px;
    text-align:  left;
}
.cptg-stat-row {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   20px;
}
.cptg-stat-item {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            4px;
    padding:        20px 12px;
    background:     var(--cptg-bg);
    border-radius:  var(--cptg-radius);
}
.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 — 데스크톱 테이블 + 모바일 카드
   SEO: 두 뷰 모두 같은 텍스트 데이터 보유, 미디어 쿼리로 교차 표시
═══════════════════════════════════════════════════════════ */
.cptg-compare-section {
    background: var(--cptg-bg);
    padding:    60px 20px;
}

/* ── 데스크톱 테이블 (≥ 769px 표시) ── */
.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.1);
}
.cptg-compare-table thead th:first-child {
    text-align:   left;
    background:   #12122a;
    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: #fafbfc; }
.cptg-compare-table tbody tr:hover { background: #f0f4ff; }
.cptg-compare-table tbody th {
    padding:      14px 18px;
    font-weight:  600;
    color:        var(--cptg-dark);
    text-align:   left;
    background:   #f9fafb;
    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-dark);
    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);
    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; }
.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-top:    1px solid var(--cptg-border);
    border-bottom: 1px solid var(--cptg-border);
    padding:       0 20px;
    position:      sticky;
    top:           0;
    z-index:       100;
}

/* 워드프레스 관리자 바 오프셋 (32px 데스크톱 / 46px 모바일) */
.admin-bar .cptg-cat-nav { top: 32px; }

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

.cptg-cat-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    padding:         14px 16px;
    font-size:       14px;
    font-weight:     500;
    color:           var(--cptg-muted);
    text-decoration: none;
    border-bottom:   2px solid transparent;
    white-space:     nowrap;
    min-height:      44px;
}
.cptg-cat-btn:hover { color: var(--cptg-primary); }
.cptg-cat-btn.active {
    color:        var(--cptg-primary);
    font-weight:  700;
    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(232,65,24,0.12);
    color:      var(--cptg-primary);
}

/* ═══════════════════════════════════════════════════════════
   MAIN POST GRID (쇼핑몰 카드 그리드)
═══════════════════════════════════════════════════════════ */
.cptg-main {
    background: var(--cptg-bg);
    padding:    52px 20px;
}
.cptg-post-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   24px;
    margin-bottom:         40px;
}

.cptg-post-card {
    background:     var(--cptg-card-bg);
    border-radius:  var(--cptg-radius);
    border:         1px solid var(--cptg-border);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
}

/* 썸네일 */
.cptg-card-thumb-link { display: block; }
.cptg-card-thumb {
    position:     relative;
    width:        100%;
    aspect-ratio: 4 / 2.8;
    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:      #f0f3f7;
    color:           #b2bec3;
}
.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:      44px;
}
.cptg-card-cta svg { width: 14px; height: 14px; }
.cptg-card-cta:hover { text-decoration: underline; }

/* 페이지네이션 */
.cptg-pagination {
    display:         flex;
    justify-content: center;
    gap:             4px;
    flex-wrap:       wrap;
}
.cptg-pagination .page-numbers {
    display:         inline-flex;
    align-items:     center;
    gap:             4px;
    padding:         8px 14px;
    border-radius:   var(--cptg-radius-sm);
    border:          1px solid var(--cptg-border);
    font-size:       14px;
    color:           var(--cptg-text);
    text-decoration: none;
    background:      #fff;
    min-height:      44px;
}
.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; }
.cptg-no-posts p { margin: 0 0 20px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   MID-PAGE CTA BANNER
═══════════════════════════════════════════════════════════ */
.cptg-cta-banner {
    background: linear-gradient(135deg, var(--cptg-primary) 0%, #c0320f 100%);
    padding:    52px 20px;
    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.85);
    margin:    0;
}
.cptg-cta-actions {
    display:     flex;
    gap:         12px;
    flex-wrap:   wrap;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY HUB (내부링크)
═══════════════════════════════════════════════════════════ */
.cptg-hub-section {
    background: #fff;
    padding:    60px 20px;
}
.cptg-hub-block { margin-bottom: 44px; }
.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:   1px 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:             6px;
    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;
}
.cptg-hub-more svg { width: 14px; height: 14px; }

.cptg-hub-posts {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   16px;
}
.cptg-hub-item {
    border:        1px solid var(--cptg-border);
    border-radius: var(--cptg-radius-sm);
    overflow:      hidden;
    background:    #fff;
}
.cptg-hub-item-link {
    display:         flex;
    gap:             12px;
    text-decoration: none;
    color:           inherit;
    padding:         12px;
    min-height:      44px;
}
.cptg-hub-item-thumb {
    flex-shrink:   0;
    width:         100px;
    height:        70px;
    border-radius: 4px;
    overflow:      hidden;
    background:    var(--cptg-bg);
}
.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 SECTION
═══════════════════════════════════════════════════════════ */
.cptg-howto-section {
    background: var(--cptg-bg);
    padding:    60px 20px;
}
.cptg-howto-list {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   20px;
    list-style:            none;
    margin:                0 0 36px;
    padding:               0;
}
.cptg-howto-item {
    background:    #fff;
    border:        1px solid var(--cptg-border);
    border-radius: var(--cptg-radius);
    padding:       24px 20px;
}
.cptg-howto-num {
    display:      block;
    font-size:    32px;
    font-weight:  900;
    color:        var(--cptg-primary);
    line-height:  1;
    margin-bottom: 12px;
    opacity:      0.9;
}
.cptg-howto-body strong {
    display:      block;
    font-size:    16px;
    font-weight:  700;
    color:        var(--cptg-dark);
    margin-bottom: 6px;
}
.cptg-howto-body p {
    font-size:   14px;
    color:       var(--cptg-muted);
    margin:      0;
    line-height: 1.6;
}
.cptg-howto-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION — AI Overview + 아코디언
═══════════════════════════════════════════════════════════ */
.cptg-faq-section {
    background: #fff;
    padding:    60px 20px;
}
.cptg-faq-list {
    max-width: 840px;
    margin:    0 auto;
}
.cptg-faq-item {
    background:    #fff;
    border:        1px solid var(--cptg-border);
    border-radius: var(--cptg-radius-sm);
    margin-bottom: 8px;
    overflow:      hidden;
}
.cptg-faq-question { margin: 0; }
.cptg-faq-toggle {
    width:           100%;
    background:      none;
    border:          none;
    padding:         16px 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:      52px;
    font-family:     var(--cptg-font);
}
.cptg-faq-toggle:hover { color: #FF8000; }
.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: #fff; }
.cptg-faq-toggle[aria-expanded="true"] .cptg-faq-icon {
    transform: rotate(180deg);
    color: #FF8000;
}
.cptg-faq-answer {
    padding:     0 20px 20px;
    font-size:   15px;
    color:       var(--cptg-text);
    line-height: 1.8;
    border-top:  1px solid var(--cptg-border);
    margin:      0;
}
.cptg-faq-answer[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   TAGS SECTION
═══════════════════════════════════════════════════════════ */
.cptg-tags-section {
    background: var(--cptg-bg);
    padding:    52px 20px;
}
.cptg-tag-cloud {
    display:   flex;
    flex-wrap: wrap;
    gap:       8px;
}
.cptg-tag {
    display:         inline-block;
    padding:         9px 16px;
    border-radius:   20px;
    border:          1px solid var(--cptg-border);
    font-size:       13px;
    color:           var(--cptg-text);
    text-decoration: none;
    background:      #fff;
    min-height:      44px;
    line-height:     1.4;
}
.cptg-tag:hover {
    background:   rgba(232,65,24,0.08);
    border-color: var(--cptg-primary);
    color:        var(--cptg-primary);
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM CTA
═══════════════════════════════════════════════════════════ */
.cptg-bottom-cta {
    background: var(--cptg-dark);
    padding:    64px 20px;
    text-align: center;
    color:      #fff;
}
.cptg-bottom-cta-inner {
    max-width: 680px;
    margin:    0 auto;
}
.cptg-bottom-cta h2 {
    font-size:   28px;
    font-weight: 800;
    margin:      0 0 14px;
    color:       #fff;
}
.cptg-bottom-cta p {
    font-size:   16px;
    color:       rgba(255,255,255,0.78);
    margin:      0 0 32px;
    line-height: 1.75;
}
.cptg-bottom-cta strong { color: #ffd32a; }
.cptg-bottom-cta-actions {
    display:         flex;
    gap:             12px;
    justify-content: center;
    flex-wrap:       wrap;
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM FOOTER — 홈페이지 전용 쇼핑몰 스타일 푸터
═══════════════════════════════════════════════════════════ */
.cptg-footer {
    background:  #111827;
    color:       rgba(255,255,255,0.75);
    font-family: var(--cptg-font);
    font-size:   14px;
}

/* ── 메인 영역 ── */
.cptg-footer-main {
    padding:       60px 20px 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-brand {}
.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.50);
    line-height: 1.8;
    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.65);
    background:    rgba(255,255,255,0.07);
    padding:       5px 12px;
    border-radius: 20px;
    border:        1px solid rgba(255,255,255,0.10);
}
.cptg-footer-badge svg { width: 12px; height: 12px; }
.cptg-footer-cta { margin-top: 4px; }

/* ── 링크 컬럼 공통 ── */
.cptg-footer-col {}
.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:        4px;
}
.cptg-footer-links li {}
.cptg-footer-links a {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    color:           rgba(255,255,255,0.62);
    text-decoration: none;
    font-size:       14px;
    padding:         5px 0;
    min-height:      34px;
    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.5; }
.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.08);
    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.38);
    margin:      0;
}
.cptg-footer-contact-label svg { width: 13px; height: 13px; }

/* ── 저작권 바 ── */
.cptg-footer-bottom {
    background: rgba(0,0,0,0.30);
    padding:    18px 20px;
}
.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.32);
    margin:    0;
}
.cptg-footer-copy a {
    color:           rgba(255,255,255,0.55);
    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.38);
    text-decoration: none;
}
.cptg-footer-legal a:hover { color: rgba(255,255,255,0.80); }

/* ═══════════════════════════════════════════════════════════
   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);
    box-shadow:    0 4px 16px rgba(26,26,46,0.30);
    transition:    background-color 0.2s ease, box-shadow 0.2s ease;
}
#cptgScrollTopBtn:hover .cptg-stb-bg {
    background: #16213e;
    box-shadow: 0 6px 22px rgba(26,26,46,0.42);
}

.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;               /* 2π × 18 */
    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.82);
    line-height:    1;
    letter-spacing: -0.3px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 태블릿 (≤ 1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cptg-post-grid  { grid-template-columns: repeat(3, 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: 34px; }
}

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

    /* 관리자 바 모바일 오프셋 */
    .admin-bar .cptg-cat-nav { top: 46px; }

    /* Hero */
    .cptg-hero           { padding: 56px 12px; }
    .cptg-hero-title     { font-size: 26px; }
    .cptg-hero-subtitle  { font-size: 14px; }
    .cptg-hero-cta       { 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; }   /* 카드 표시 */

    /* Post grid */
    .cptg-post-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* CTA Banner */
    .cptg-cta-inner   { flex-direction: column; text-align: center; }
    .cptg-cta-actions { justify-content: center; }

    /* Hub & Howto */
    .cptg-hub-posts   { grid-template-columns: 1fr; }
    .cptg-howto-list  { grid-template-columns: 1fr; }

    /* 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: 48px 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-post-grid          { grid-template-columns: 1fr; }
    .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; }
}
