/* fontsize 는 작성하지말것 */
ol li,
ul li::before {
    content: none;

    padding-left: 0;
    margin-left: 0;

}
.markdown ol > li {
    counter-increment: none !important;
    position: relative;
    padding-left: 0rem;
    margin-bottom: 0rem;
}



/* Timeline - 심플 모던 스타일 (세로선 제거) */
.timeline {
    position: relative;
    padding: 0;
    margin: 24px 0;
}

.timeline-item-content {
    position: relative;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    border-left: 3px solid #0066cc;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: start;
}

.timeline-item-content strong {
    color: #0066cc;
    font-weight: 600;
    padding-top: 2px;
}

.timeline-item-content span {
    display: block;
    color: #495057;
    line-height: 1.5;
}

/* 대체 스타일 - 블록형 */
.timeline.block .timeline-item-content {
    display: block;
    padding: 12px 16px;
}

.timeline.block .timeline-item-content strong {
    display: inline-block;
    background: #e7f3ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* 대체 스타일 - 인라인형 */
.timeline.inline .timeline-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.timeline.inline .timeline-item-content strong {
    flex-shrink: 0;
    background: #0066cc;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.timeline.inline .timeline-item-content span {
    margin: 0;
}

/* 반응형 타임라인 */
@media (max-width: 768px) {
    .timeline-item-content {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 16px;
        margin-bottom: 12px;
    }

    .timeline-item-content strong {
        padding-top: 0;
        margin-bottom: 4px;
    }

    .timeline.block .timeline-item-content,
    .timeline.inline .timeline-item-content {
        display: block;
        padding: 12px 16px;
    }

    .timeline.inline .timeline-item-content strong {
        display: inline-block;
        background: #e7f3ff;
        color: #0066cc;
        padding: 4px 8px;
        margin-bottom: 6px;
        min-width: auto;
    }
}

/* ===========================================
   카드형 레이아웃 스타일 (920px 컨테이너 기준)
   =========================================== */

/* 기본 카드 컨테이너 */
.card {
    display: grid;
    gap: 12px;
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
}

/* 1블럭 카드 (한 줄에 1개) */
.card.card-single {
    grid-template-columns: 1fr;
}

/* 2블럭 카드 (한 줄에 2개) */
.card.card-double {
    grid-template-columns: repeat(2, 1fr);
}

/* 3블럭 카드 (한 줄에 3개) - 여백 최적화 */
.card.card-triple {
    grid-template-columns: repeat(3, 1fr);
}

/* 5개 카드 특별 처리 (3+2 배치) */
.card.card-triple:has(.card-item:nth-child(5):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.card.card-triple:has(.card-item:nth-child(5):last-child) .card-item:nth-child(4),
.card.card-triple:has(.card-item:nth-child(5):last-child) .card-item:nth-child(5) {
    grid-column: auto;
}

/* 5개 카드 대체 방법 - 클래스 기반 */
.card.card-five {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card.card-five .card-item:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2;
}

.card.card-five .card-item:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.card.card-triple .card-item {
    padding: 16px;
}

.card.card-triple .card-item .h4,
.card.card-five .card-item .h4 {
    margin: 0 0 6px 0;
    gap: 6px;
}

.card.card-triple .card-item .h4::before,
.card.card-five .card-item .h4::before {
    width: 6px;
    height: 6px;
}

.card.card-triple .card-item p,
.card.card-five .card-item p {
    line-height: 1.4;
}

/* 자동 반응형 카드 (5개 문제 해결) */
.wrap:has(.card) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 0 auto 40px;
    max-width: 1200px;
}

/* 920px 컨테이너 내 일반 카드 */
.card:not(.card-single):not(.card-double):not(.card-triple):not(.card-five) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 0 0 32px 0;
    padding: 0;
}

/* 5개 이상 카드 자동 배치 개선 */
.card:not(.card-single):not(.card-double):not(.card-triple):not(.card-five):has(.card-item:nth-child(5)) {
    grid-template-columns: repeat(3, 1fr);
}

.card:not(.card-single):not(.card-double):not(.card-triple):not(.card-five):has(.card-item:nth-child(5)) .card-item:nth-child(4) {
    grid-column: 1 / 3;
}

.card:not(.card-single):not(.card-double):not(.card-triple):not(.card-five):has(.card-item:nth-child(5)) .card-item:nth-child(5) {
    grid-column: 3;
}

/* Card Item (920px 컨테이너 최적화) */
.card-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    position: relative;
    overflow: hidden;
}

/* Card Item hover effect */
.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #00a8ff);
    /* transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease; */
}

/* .card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.12);
    border-color: transparent;
}

.card-item:hover::before {
    transform: scaleX(1);
} */

/* Card Item Heading */
.card-item .h4 {
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Item Icon (optional bullet) */
.card-item .h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #0066cc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* 4블럭 이상 카드 여백 최적화 */
.card.card-triple .card-item,
.card[class*="card-"] .card-item:nth-child(n+4) {
    padding: 12px;
}

.card.card-triple .card-item .h4,
.card[class*="card-"] .card-item:nth-child(n+4) .h4 {
    margin: 0 0 4px 0;
    gap: 4px;
}

.card-item:hover .h4::before {
    transform: scale(1.3);
    background-color: #00a8ff;
}

/* Card Item Content */
.card-item p {
    margin: 0;
    line-height: 1.4;
    color: #495057;
}

/* Strong text highlighting */
.card-item .strong {
    color: #0066cc;
    font-weight: 600;
}

/* ===========================================
   카드형 반응형 스타일 (920px 기준)
   =========================================== */

/* 모바일 사이즈 (767px 이하) - 더 넉넉한 여백 */
@media (max-width: 767px) {
    /* 전체 컨테이너 여백 */
    body {
        padding: 16px;
    }
    
    /* 모든 카드를 1블럭으로 변경 */
    .card.card-single,
    .card.card-double,
    .card.card-triple,
    .card.card-five {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 0 28px 0;
    }
    
    /* 5개 카드 모바일 초기화 */
    .card.card-five .card-item:nth-child(4),
    .card.card-five .card-item:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
    
    /* 일반 카드 모바일 */
    .card:not(.card-single):not(.card-double):not(.card-triple):not(.card-five) {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card:not(.card-single):not(.card-double):not(.card-triple):not(.card-five) .card-item:nth-child(4),
    .card:not(.card-single):not(.card-double):not(.card-triple):not(.card-five) .card-item:nth-child(5) {
        grid-column: auto;
    }
    
    .card-item {
        padding: 16px;
        margin-bottom: 6px;
    }
    
    .card-item .h4 {
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .card-item .h4::before {
        width: 6px;
        height: 6px;
    }
    
    .card-item p {
        line-height: 1.5;
    }
    
    /* 섹션 타이틀 여백 */
    h2 {
        margin: 28px 0 16px 0;
        padding-bottom: 8px;
        border-bottom: 1px solid #e9ecef;
    }
    
    h3 {
        margin: 24px 0 12px 0;
    }
    
    h4 {
        margin: 20px 0 10px 0;
    }
    
    /* 인용문구 여백 */
    .blockquote {
        margin: 24px 0;
        padding: 16px;
    }
}

/* 기존 자동 반응형 카드 스타일 유지 */
/* For 2 cards per row on medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .wrap:has(.card) {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For 3 cards per row on large screens */
@media (min-width: 1200px) {
    .wrap:has(.card) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile optimization for auto-fit cards */
@media (max-width: 767px) {
    .wrap:has(.card) {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }
}

/* Alternative card style with gradient border */
.card.gradient-border {
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #0066cc, #00a8ff) border-box;
    border: 2px solid transparent;
}

/* Card numbering (optional) */
.card[data-number]::after {
    content: attr(data-number);
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Loading animation for dynamic content */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    /*animation: cardFadeIn 0.4s ease-out backwards;*/
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* For more than 6 cards */
.card:nth-child(n+7) { animation-delay: 0.7s; }




/* Description List - 심플 모던 스타일 (920px 컨테이너용) */
.description-list {
    width: 100%;
    padding: 0;
    margin: 16px 0;
}

/* Description Term (제목) */
.description-list dt {
    font-weight: 600;
    color: #212529;
    margin: 0 0 4px 0;
    padding: 0;
    border-left: 3px solid #0066cc;
    padding-left: 12px;
}

/* Description Details (설명) */
.description-list dd {
    margin: 0 0 16px 0;
    padding: 0 0 0 15px;
    line-height: 1.4;
    color: #495057;
}

/* 마지막 항목 간격 제거 */
.description-list dd:last-child {
    margin-bottom: 0;
}

/* 강조 텍스트 */
 .mark {
    background-color: #e7f3ff;
    color: #0066cc;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* 대체 스타일 - 카드형 */
.description-list.card-style {
    gap: 16px;
}

.description-list.card-style dt {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    border-left: none;
}

.description-list.card-style dd {
    background: #fff;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin-bottom: 16px;
}

/* 대체 스타일 - 넘버링 */
.description-list.numbered {
    counter-reset: item;
}

.description-list.numbered dt {
    counter-increment: item;
    position: relative;
    border-left: none;
    padding-left: 40px;
}

.description-list.numbered dt::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.description-list.numbered dd {
    padding-left: 40px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .description-list dt {
        padding-left: 12px;
        border-left-width: 2px;
    }
    
    .description-list dd {
        padding-left: 12px;
        margin-bottom: 12px;
    }
    
    .description-list.numbered dt {
        padding-left: 32px;
    }
    
    .description-list.numbered dt::before {
        width: 20px;
        height: 20px;
    }
    
    .description-list.numbered dd {
        padding-left: 32px;
    }
}

/* 인쇄 스타일 */
@media print {
    .description-list dd {
        background: none;
        border-left: 2px solid #000;
        padding-left: 16px;
    }
    
    .description-list dt::before {
        background: none;
        border: 2px solid #000;
    }
}

/* ===========================================
   새로운 템플릿 요소 스타일
   =========================================== */

/* 아코디언 스타일 (920px 컨테이너용) */
.accordion {
    width: 100%;
    margin: 0 0 32px 0;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header h4 {
    margin: 0;
    color: #212529;
}

.accordion-icon {
    font-weight: bold;
    color: #0066cc;
    transition: transform 0.3s ease;
}

.accordion-content {
    padding: 20px 24px;
    background: #fff;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* 정보 박스 스타일 (920px 컨테이너용) */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    border-left: 3px solid;
}

.info-box.info-primary {
    background: #e7f3ff;
    border-left-color: #0066cc;
}

.info-box.info-success {
    background: #d4edda;
    border-left-color: #28a745;
}

.info-box.info-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h4 {
    margin: 0 0 4px 0;
    color: #212529;
}

.info-content p {
    margin: 0;
    color: #495057;
    line-height: 1.4;
}

/* 배지 스타일 */
.badge-container {
    margin: 16px 0;
}

.badge-container h4 {
    margin-bottom: 8px;
    color: #212529;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

.badge.badge-primary { background: #0066cc; }
.badge.badge-secondary { background: #4a90c2; }
.badge.badge-success { background: #5fa8d3; }
.badge.badge-info { background: #7bb3d9; }
.badge.badge-warning { background: #9ec5e0; color: #fff; }

/* 통계 컨테이너 스타일 (920px 컨테이너용) */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

span.stat-number {
    display: block;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 4px;
    font-size: 1.5em;
    line-height: 1.2;
}

span.stat-label {
    display: block;
    color: #6c757d;
    font-weight: 500;
}

/* 팀 카드 스타일 (920px 컨테이너용) */
.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.team-info h4 {
    margin: 0 0 4px 0;
    color: #212529;
}

.team-role {
    margin: 0 0 8px 0;
    color: #0066cc;
    font-weight: 600;
}

.team-desc {
    margin: 0;
    color: #6c757d;
    line-height: 1.4;
}

/* FAQ 스타일 (details 태그 기반) */
.faq-container {
    width: 100%;
    margin: 16px 0;
}

.faq-container .faq-item {
    margin-bottom: 8px;
}

.faq-container .faq-item:last-child {
    margin-bottom: 0;
}

.faq-container details {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.faq-container details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none;
    outline: none;
}

.faq-container details summary::-webkit-details-marker {
    display: none;
}

.faq-container details summary:hover {
    background: #f8f9fa;
}

.faq-container details summary h4 {
    margin: 0;
    color: #212529;
    flex: 1;
}

.faq-container details summary::after {
    content: '▼';
    color: #0066cc;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}


.faq-container details[open] summary::after {
    transform: rotate(180deg);
}

.faq-container details p {
    padding: 2rem 3rem 2rem 3rem;
    background: #f8f9fa;
    margin: 0;
    color: #495057;
    line-height: 1.4;
}

/* 피처 그리드 스타일 (920px 컨테이너용) - 여백 최적화 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.1);
}

.feature-icon {
    margin-bottom: 12px;
}

.feature-item h4 {
    margin: 0 0 8px 0;
    color: #212529;
}

.feature-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.4;
}

/* 프로그레스 바 스타일 */
.progress-container {
    margin: 30px 0;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-header span {
    color: #495057;
    font-weight: 500;
}

.progress-percent {
    color: #0066cc;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00a8ff);
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* ===========================================
   미니 카드 그리드 스타일
   =========================================== */

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

article.mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s ease;
}

article.mini-card:hover {
    transform: translateY(-2px);
    border-color: #0066cc;
}

span.mini-card-icon {
    margin-bottom: 8px;
    display: block;
}

h6.mini-card-title {
    font-weight: 500;
    color: #495057;
    line-height: 1.3;
    margin: 0;
    font-size: 0.9em;
}

/* ===========================================
   스탯 바 스타일 (메인컬러 연계)
   =========================================== */

.stat-bars {
    margin: 16px 0;
}

.stat-bar {
    margin-bottom: 12px;
}

.stat-bar:last-child {
    margin-bottom: 0;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 500;
}

.stat-value {
    color: #0066cc;
    font-weight: 600;
}

.stat-track {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* 메인컬러 연계 시스템 */
.stat-fill[data-color="primary"] {
    background: #0066cc;
}

.stat-fill[data-color="secondary"] {
    background: #4a90c2;
}

.stat-fill[data-color="success"] {
    background: #5fa8d3;
}

.stat-fill[data-color="info"] {
    background: #7bb3d9;
}

.stat-fill[data-color="warning"] {
    background: #9ec5e0;
}

/* 커스텀 컬러 지원 */
.stat-fill[data-color="custom"] {
    background: var(--custom-color, #0066cc);
}
/* ===========================================
   과거/현재 비교형 레이아웃 (920px 컨테이너용)
   =========================================== */

/* 기본 가로형 비교 레이아웃 */
.comparison-timeline {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 32px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comparison-item {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
}

.comparison-item.past {
    border-left: 4px solid #6c757d;
}

.comparison-item.present {
    border-left: 4px solid #0066cc;
}

.comparison-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.comparison-item.past .comparison-label {
    background: #6c757d;
}

.comparison-item.present .comparison-label {
    background: #0066cc;
}

.comparison-content {
    color: #495057;
    line-height: 1.5;
}

.comparison-content h4 {
    margin: 0 0 8px 0;
    color: #212529;
    font-weight: 600;
}

.comparison-content p {
    margin: 0;
}

.comparison-arrow {
    font-size: 24px;
    color: #0066cc;
    font-weight: bold;
    flex-shrink: 0;
}

/* 세로형 비교 레이아웃 */
.comparison-timeline.vertical {
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 32px auto;
}

.comparison-timeline.vertical .comparison-arrow {
    font-size: 20px;
    align-self: center;
}

/* Before/After 비교형 */
.before-after-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin: 32px 0;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.comparison-section {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.comparison-section.before {
    border-top: 4px solid #dc3545;
}

.comparison-section.after {
    border-top: 4px solid #28a745;
}

.section-header {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.comparison-section.before .section-header {
    background: #dc3545;
}

.comparison-section.after .section-header {
    background: #28a745;
}

.section-content h4 {
    margin: 0 0 12px 0;
    color: #212529;
    font-weight: 600;
}

.section-content ul {
    margin: 0;
    padding-left: 20px;
}

.section-content li {
    margin-bottom: 6px;
    color: #495057;
    line-height: 1.4;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    flex-shrink: 0;
}

.vs-divider::before,
.vs-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #0066cc;
}

.vs-divider::before {
    left: -20px;
}

.vs-divider::after {
    right: -20px;
}

/* ===========================================
   특징/혜택 세로형 강조 레이아웃 (920px 컨테이너용)
   =========================================== */

.feature-highlight-list {
    width: 100%;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-highlight-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid #0066cc;
    padding-left: 20px;
}

.feature-highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0066cc, #00a8ff);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.feature-highlight-item:hover {
    transform: translateX(8px);
    border-left-color: #00a8ff;
}

.feature-highlight-item:hover::before {
    transform: scaleY(1);
}

.feature-highlight-item h4 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-highlight-item h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #0066cc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-highlight-item:hover h4::before {
    background: #00a8ff;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 168, 255, 0.2);
}

.feature-highlight-item p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
    word-break: keep-all;
}

/* 넘버링 버전 */
.feature-highlight-list.numbered {
    counter-reset: feature-counter;
}

.feature-highlight-list.numbered .feature-highlight-item {
    counter-increment: feature-counter;
    padding-left: 44px;
}

.feature-highlight-list.numbered .feature-highlight-item::after {
    content: counter(feature-counter);
    position: absolute;
    left: -2px;
    top: 12px;
    width: 24px;
    height: 24px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-highlight-list.numbered .feature-highlight-item:hover::after {
    background: #00a8ff;
    transform: scale(1.1);
}

.feature-highlight-list.numbered .feature-highlight-item h4::before {
    display: none;
}

/* 컴팩트 버전 */
.feature-highlight-list.compact .feature-highlight-item {
    padding: 8px 0;
    padding-left: 16px;
}

.feature-highlight-list.compact .feature-highlight-item h4 {
    margin-bottom: 8px;
}

/* ===========================================
   좌우 번갈아 배치 레이아웃 (920px 컨테이너용)
   =========================================== */

.alternating-layout {
    width: 100%;
    margin: 20px 0;
}

.alt-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.alt-item:last-child {
    margin-bottom: 0;
}

.alt-item:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
    transform: translateY(-4px);
}

/* 짝수 번째 항목 순서 뒤바꾸기 */
.alt-item:nth-child(even) {
    flex-direction: row-reverse;
}

.alt-image {
    flex: 0 0 200px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.alt-image .placeholder {
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.alt-content {
    flex: 1;
    padding: 8px 0;
}

.alt-content h3 {
    margin: 0 0 6px 0;
    color: #212529;
    font-weight: 700;
    line-height: 1.2;
}

.alt-content p {
    margin: 0 0 8px 0;
    color: #495057;
    line-height: 1.4;
}

.alt-content p:last-child {
    margin-bottom: 0;
}

.alt-content .highlight {
    color: #0066cc;
    font-weight: 600;
}

/* 번호 추가 버전 */
.alternating-layout.numbered .alt-item {
    position: relative;
    padding-left: 60px;
}

.alternating-layout.numbered .alt-item::before {
    content: counter(alt-counter);
    counter-increment: alt-counter;
    position: absolute;
    left: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
}

.alternating-layout.numbered {
    counter-reset: alt-counter;
}

/* 컴팩트 버전 */
.alternating-layout.compact .alt-item {
    gap: 20px;
    padding: 16px;
    margin-bottom: 24px;
}

.alternating-layout.compact .alt-image {
    flex: 0 0 140px;
    height: 120px;
}

.alternating-layout.compact .alt-content h3 {
    margin-bottom: 8px;
}

.alternating-layout.compact .alt-content p {
    margin-bottom: 8px;
}

/* 상세정보 출력용 반응형 디자인 (920px 기준) */
@media (max-width: 920px) {
    /* 전체적인 여백 최적화 */
    .card {
        margin: 0 0 24px 0;
        gap: 16px;
    }
    
    .card-item {
        padding: 16px;
        margin-bottom: 4px;
    }
    
    /* 섹션 간 구분 */
    h2, h3, h4 {
        margin-top: 24px;
        margin-bottom: 12px;
    }
    
    h2:first-child, h3:first-child, h4:first-child {
        margin-top: 0;
    }
    
    /* 본문 여백 */
    p {
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
        margin: 24px 0;
    }
    
    .team-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
    
    .badges {
        gap: 8px;
        margin: 20px 0;
    }
    
    .badge {
        padding: 8px 12px;
        margin-bottom: 6px;
    }
    
    .accordion-header,
    .faq-container details summary {
        padding: 12px 16px;
    }
    
    .accordion-content,
    .faq-container details p {
        padding: 16px;
    }
    
    .info-box {
        padding: 16px;
        margin: 20px 0;
    }
    
    /* 테이블 여백 */
    .scroll {
        margin: 20px 0;
    }
    
    table {
        margin-bottom: 12px;
    }
    
    th, td {
        padding: 10px 12px;
    }
    
    /* 이미지 그리드 여백 */
    .img {
        margin: 20px 0;
        gap: 10px;
    }
    
    /* 구분선 여백 */
    hr {
        margin: 24px 0;
    }
    
    /* 첨부파일 여백 */
    .flex.flex-column.align-items-start {
        margin: 20px 0;
        gap: 8px;
    }
    
    .mini-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 32px 0;
    }
    
    article.mini-card {
        padding: 16px 12px;
    }
    
    h6.mini-card-title {
        font-size: 0.9em;
        line-height: 1.4;
    }
    
    .stat-bar {
        margin-bottom: 20px;
    }
    
    .stat-track {
        height: 10px;
    }
    
    /* Description List 여백 증가 */
    .description-list {
        margin: 32px 0;
    }
    
    .description-list dt {
        margin-bottom: 8px;
        padding-left: 16px;
    }
    
    .description-list dd {
        margin-bottom: 24px;
        padding-left: 18px;
        line-height: 1.6;
    }
    
    /* 타임라인 여백 */
    .timeline {
        margin: 32px 0;
    }
    
    .timeline-item-content {
        margin-bottom: 20px;
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    
    /* 특징/혜택 세로형 강조 레이아웃 모바일 */
    .feature-highlight-list {
        margin: 20px 0;
        gap: 6px;
    }
    
    .feature-highlight-item {
        padding: 10px 0;
        padding-left: 16px;
        border-radius: 0;
        border-left-width: 3px;
    }
    
    .feature-highlight-item h4 {
        margin-bottom: 6px;
        gap: 6px;
        line-height: 1.3;
    }
    
    .feature-highlight-item h4::before {
        width: 6px;
        height: 6px;
    }
    
    .feature-highlight-item p {
        line-height: 1.5;
    }
    
    .feature-highlight-list.numbered .feature-highlight-item {
        padding-left: 36px;
    }
    
    .feature-highlight-list.numbered .feature-highlight-item::after {
        left: -2px;
        top: 10px;
        width: 22px;
        height: 22px;
        font-size: 0.85em;
    }
    
    .feature-highlight-list.compact .feature-highlight-item {
        padding: 6px 0;
        padding-left: 12px;
    }

    /* 과거/현재 비교형 레이아웃 모바일 */
    .comparison-timeline {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        margin: 24px 0;
    }
    
    .comparison-item {
        padding: 16px;
    }
    
    .comparison-arrow {
        font-size: 20px;
        transform: rotate(90deg);
    }
    
    .comparison-timeline.vertical .comparison-arrow {
        transform: none;
    }
    
    .before-after-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px;
        margin: 24px 0;
    }
    
    .comparison-section {
        padding: 20px;
    }
    
    .vs-divider {
        width: 50px;
        height: 50px;
        font-size: 14px;
        justify-self: center;
    }
    
    .vs-divider::before,
    .vs-divider::after {
        display: none;
    }

    /* 좌우 번갈아 레이아웃 모바일 */
    .alternating-layout {
        margin: 40px 0;
    }
    
    .alternating-layout .alt-item {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
        margin-bottom: 32px;
        border-radius: 12px;
    }
    
    .alternating-layout .alt-item:nth-child(even) {
        flex-direction: column;
    }
    
    .alternating-layout .alt-image {
        flex: none;
        width: 100%;
        height: 220px;
        order: -1;
        border-radius: 8px;
    }
    
    .alternating-layout .alt-content {
        padding: 0;
    }
    
    .alternating-layout .alt-content h3 {
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .alternating-layout .alt-content p {
        margin-bottom: 12px;
        line-height: 1.6;
    }
    
    .alternating-layout.numbered .alt-item {
        padding-left: 16px;
    }
    
    .alternating-layout.numbered .alt-item::before {
        left: auto;
        right: 16px;
        top: 16px;
        width: 28px;
        height: 28px;
    }
    
    .alternating-layout.compact .alt-item {
        gap: 12px;
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .alternating-layout.compact .alt-image {
        height: 160px;
    }
}

/* ===========================================
   모던 스테퍼 스타일 (920px 컨테이너용)
   =========================================== */

/* 기본 스테퍼 - 가로형 */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0;
    padding: 0;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.stepper .step {
    position: relative;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    color: #6c757d;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.stepper .step.start,
.stepper .step.completed {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.stepper .step.current {
    background: #fff;
    border-color: #0066cc;
    color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
    transform: scale(1.05);
}

/* 원형 스테퍼 */
.stepper.circle .step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-width: auto;
}

.stepper.circle .step.current {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.15);
}

/* 세로형 스테퍼 */
.stepper.vertical {
    flex-direction: column;
    align-items: stretch;
    max-width: 400px;
    margin: 32px auto;
}

.stepper.vertical::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
    transform: none;
}

.stepper.vertical .step {
    border-radius: 8px;
    text-align: left;
    padding: 16px 20px 16px 60px;
    margin-bottom: 16px;
    min-width: auto;
    position: relative;
}

.stepper.vertical .step:last-child {
    margin-bottom: 0;
}

.stepper.vertical .step::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    z-index: 3;
}

.stepper.vertical .step.start::before,
.stepper.vertical .step.completed::before {
    background: #0066cc;
    border-color: #0066cc;
}

.stepper.vertical .step.current::before {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

/* 상세 설명 포함 스테퍼 */
.stepper.detailed {
    flex-direction: column;
    align-items: stretch;
    margin: 32px auto;
}

.stepper.detailed::before {
    display: none;
}

.stepper.detailed section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.stepper.detailed section:last-child {
    margin-bottom: 0;
}

.stepper.detailed section:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
}

.stepper.detailed section h4 {
    margin: 0 0 8px 0;
    color: #212529;
    font-weight: 700;
}

.stepper.detailed section p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

/* 넘버링 포함 상세 스테퍼 */
.stepper.detailed.numbered section {
    padding-left: 80px;
}

.stepper.detailed.numbered .step-number {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6c757d;
    transition: all 0.3s ease;
}

.stepper.detailed.numbered section:hover .step-number {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
    transform: scale(1.1);
}

/* 완료된 단계 스타일 */
.stepper.detailed.numbered section.completed .step-number {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.stepper.detailed.numbered section.completed .step-number::after {
    content: '✓';
    font-weight: bold;
}

.stepper.detailed.numbered section.current {
    border-left: 4px solid #0066cc;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
}

.stepper.detailed.numbered section.current .step-number {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

/* 프로그레스 바 추가 스타일 */
.stepper-progress {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 16px 0;
    overflow: hidden;
}

.stepper-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00a8ff);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 미니 스테퍼 (컴팩트 버전) */
.stepper.mini {
    margin: 16px 0;
}

.stepper.mini .step {
    padding: 8px 16px;
    font-size: 0.9em;
    min-width: 80px;
}

.stepper.mini.circle .step {
    width: 32px;
    height: 32px;
    font-size: 0.8em;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .stepper {
        margin: 24px 0;
    }
    
    .stepper .step {
        padding: 10px 16px;
        font-size: 0.9em;
        min-width: 100px;
    }
    
    .stepper.circle .step {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }
    
    .stepper.vertical {
        max-width: 100%;
        margin: 24px 0;
    }
    
    .stepper.vertical .step {
        padding: 12px 16px 12px 50px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .stepper.vertical .step::before {
        left: 12px;
        width: 12px;
        height: 12px;
    }
    
    .stepper.detailed {
        max-width: 100%;
        margin: 24px 0;
    }
    
    .stepper.detailed section {
        padding: 20px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .stepper.detailed.numbered section {
        padding-left: 64px;
    }
    
    .stepper.detailed.numbered .step-number {
        left: 20px;
        top: 20px;
        width: 32px;
        height: 32px;
        font-size: 0.9em;
    }
    
    .stepper-progress {
        margin: 12px 0;
        height: 4px;
    }
}

/* 모바일에서 가로 스크롤 방지 */
@media (max-width: 600px) {
    .stepper:not(.vertical):not(.detailed) {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .stepper:not(.vertical):not(.detailed)::before {
        display: none;
    }
    
    .stepper:not(.vertical):not(.detailed) .step {
        flex: 1;
        min-width: calc(50% - 6px);
        margin-bottom: 12px;
    }
    
    .stepper.circle:not(.vertical) .step {
        flex: 0 0 auto;
        min-width: auto;
        margin: 4px;
    }
}

/* 애니메이션 효과 */
@keyframes stepperSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stepper.animated .step,
.stepper.animated section {
    animation: stepperSlideIn 0.5s ease-out backwards;
}

.stepper.animated .step:nth-child(1),
.stepper.animated section:nth-child(1) { animation-delay: 0.1s; }
.stepper.animated .step:nth-child(2),
.stepper.animated section:nth-child(2) { animation-delay: 0.2s; }
.stepper.animated .step:nth-child(3),
.stepper.animated section:nth-child(3) { animation-delay: 0.3s; }
.stepper.animated .step:nth-child(4),
.stepper.animated section:nth-child(4) { animation-delay: 0.4s; }
.stepper.animated .step:nth-child(5),
.stepper.animated section:nth-child(5) { animation-delay: 0.5s; }
/* ===========================================
   뉴스 카드 3x3 그리드 스타일 (920px 컨테이너용)
   =========================================== */

/* 뉴스 카드 컨테이너 */
.news-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
    padding: 0;
}

/* 뉴스 카드 기본 스타일 */
.news-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.markdown .news-card a {
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.3);
}

/* 뉴스 카드 링크 */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 뉴스 카드 이미지 영역 */
.news-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.news-card:hover .news-card-image::before {
    opacity: 1;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail {
    transform: scale(1.05);
}

/* 썸네일 플레이스홀더 */
.news-thumbnail[src=""],
.news-thumbnail[src="#"],
.news-thumbnail:not([src]) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-thumbnail[src=""]::after,
.news-thumbnail[src="#"]::after,
.news-thumbnail:not([src])::after {
    content: '📰';
    font-size: 2.5em;
    opacity: 0.3;
}

/* 뉴스 카드 콘텐츠 영역 */
.news-card-content {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    height: 160px;
    position: relative;
}

/* 뉴스 카드 제목 */
.news-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #0066cc;
}

/* 뉴스 카드 설명 */
.news-card-description {
    color: #495057;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 네이버 블로그 특화 스타일 */
.naver-blog-card::after {
    content: 'NAVER';
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(3, 199, 90, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

.naver-blog-card .news-card-content {
    border-left: 3px solid #03c75a;
}

/* 로딩 애니메이션 */
@keyframes newsCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: newsCardFadeIn 0.6s ease-out backwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }
.news-card:nth-child(9) { animation-delay: 0.9s; }

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .news-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .news-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0;
    }
    
    .news-card-image {
        height: 200px;
    }
    
    .news-card-content {
        padding: 18px;
        height: auto;
        min-height: 120px;
    }
    
    .news-card-title {
        font-size: 1.05em;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }
    
    .news-card-description {
        font-size: 0.9em;
        -webkit-line-clamp: 2;
    }
    
    .naver-blog-card::after {
        top: 10px;
        right: 10px;
        padding: 3px 6px;
        font-size: 0.65em;
    }
}

@media (max-width: 480px) {
    .news-wrap {
        gap: 12px;
        margin: 16px 0;
    }
    
    .news-card-image {
        height: 160px;
    }
    
    .news-card-content {
        padding: 16px;
        min-height: 100px;
    }
    
    .news-card-title {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .news-card-description {
        font-size: 0.85em;
        line-height: 1.4;
    }
}

/* 뉴스 카드 대체 스타일 - 컴팩트 버전 */
.news-wrap.compact .news-card {
    border-radius: 8px;
}

.news-wrap.compact .news-card-image {
    height: 140px;
}

.news-wrap.compact .news-card-content {
    padding: 16px;
    height: 120px;
}

.news-wrap.compact .news-card-title {
    font-size: 1em;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
}

.news-wrap.compact .news-card-description {
    font-size: 0.9em;
    -webkit-line-clamp: 2;
}

/* 뉴스 카드 대체 스타일 - 리스트 버전 */
.news-wrap.list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.news-wrap.list .news-card {
    display: flex;
    border-radius: 8px;
    height: 120px;
}

.news-wrap.list .news-card-image {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
}

.news-wrap.list .news-card-content {
    padding: 16px;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-wrap.list .news-card-title {
    font-size: 1em;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
}

.news-wrap.list .news-card-description {
    font-size: 0.9em;
    -webkit-line-clamp: 2;
}

.news-wrap.list .naver-blog-card::after {
    top: 8px;
    right: 8px;
}

.markdown .news-card a::after{
    content: none;
}

/* 채팅 출력 스타일 */
.output {
    background: none !important;
    color: #999 !important;
    font-style: italic;
    white-space: pre;
    color: #c0c1c2 !important;
    padding: 1em !important;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0) 100%);
    overflow-x: hidden;
    margin: 1.5rem;
}

.typing-status {
    font-size: 0.85em;
    color: #999;
    font-weight: 500;
    margin-bottom: 0.5em;
    background: linear-gradient(45deg, #999, #666, #999);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rendered {
    display: none;
    padding: 1em;
}

.message-box table {
    border-top: 1px solid var(--black800);
    margin: 0.8rem 0 2rem;
  }
  .message-box table th {
    font-weight: 500;
    color: var(--gray900);
    background: var(--gray100);
  }
  .message-box table td {
    color: var(--gray700);
  }
  .message-box table th,
  .message-box table td {
    line-height: 1.4;
    padding: 1.2rem 2rem;
    border-right: 1px solid var(--black300);
    border-bottom: 1px solid var(--black300);
    text-align: left;
    font-size: 1.5rem;
    height: 4.6rem;
    word-break: keep-all;
    text-wrap: balance;
  }
  .message-box table th:last-of-type,
  .message-box table td:last-of-type {
    border-right: none;
  }

  .markdown video{
    width: 100% !important;
    max-width: 100% !important;
  }