/**
 * 파일명: content.css
 * 파일경로: /home/easyflyc/xn--v69ar42b8joqa.com/assets/css/
 * 기능: 콘텐츠 페이지 전용 컴포넌트 스타일 (.content-body 내부에서 사용)
 * 작성일: 2026-03-03
 */

/* ── 요약 박스 (글 상단 핵심 요약) ── */
.content-summary {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

/* ── 강조 박스 (중요 정보) ── */
.content-highlight {
    background: #FFF0F3;
    border-top: 3px solid var(--color-primary);
    border-radius: 0 0 8px 8px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}

/* ── 팁 박스 ── */
.content-tip {
    background: #F2FAF5;
    border-top: 3px solid #2B8A4B;
    border-radius: 0 0 8px 8px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}

/* ── 주의 박스 ── */
.content-warning {
    background: #FFFAF0;
    border-top: 3px solid #CC8800;
    border-radius: 0 0 8px 8px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.8;
}

/* ── 박스 제목 ── */
.content-highlight-title,
.content-tip-title,
.content-warning-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.content-highlight-title { color: var(--color-primary); }
.content-tip-title { color: #2B8A4B; }
.content-warning-title { color: #CC8800; }

/* ── 핵심 포인트 목록 ── */
.content-key-points {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 28px 0;
}

.content-key-points h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 12px;
}

.content-key-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-key-points li {
    font-size: 14px;
    padding: 4px 0 4px 22px;
    position: relative;
    color: var(--color-text);
    line-height: 1.7;
}

.content-key-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ── 테이블 ── */
.content-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}

.content-table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
}

.content-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
    vertical-align: top;
}

.content-table tr:last-child td {
    border-bottom: none;
}

.content-table tr:nth-child(even) td {
    background: var(--color-bg);
}

/* ── FAQ ── */
.content-faq {
    margin: 32px 0;
}

.content-faq > h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.content-faq-item {
    border-bottom: 1px solid var(--color-border-light);
    padding: 16px 0;
}

.content-faq-item:last-child {
    border-bottom: none;
}

.content-faq-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.content-faq-item p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ── CTA 박스 ── */
.content-cta-box {
    background: var(--color-primary);
    border-radius: 10px;
    padding: 28px 32px;
    text-align: center;
    margin: 32px 0;
}

.content-cta-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.content-cta-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    line-height: 1.7;
}

.content-cta-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
}

.content-cta-btn:hover,
.content-cta-btn:focus {
    background: var(--color-accent-dark);
    color: var(--color-primary);
}

.content-cta-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin: 10px 0 0;
}

/* ── 단계 목록 ── */
.content-step-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: step-counter;
}

.content-step-list li {
    position: relative;
    padding: 12px 16px 12px 52px;
    margin-bottom: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    counter-increment: step-counter;
}

.content-step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 14px;
    top: 12px;
    width: 26px;
    height: 26px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 50%;
    line-height: 26px;
    text-align: center;
}

/* ── 목차 (TOC) ── */
.content-toc {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 14px;
}

.content-toc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
}

.content-toc ol {
    padding-left: 22px;
    margin: 0;
}

.content-toc li {
    padding: 3px 0;
    line-height: 1.7;
}

.content-toc a {
    color: var(--color-primary);
    text-decoration: none;
}

.content-toc a:hover {
    text-decoration: underline;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .content-cta-box {
        padding: 22px 20px;
    }

    .content-cta-box h3 {
        font-size: 18px;
    }

    .content-table th,
    .content-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .content-key-points {
        padding: 16px 18px;
    }
}
