@import url("./common.css");

/* 웹 환경에서도 모바일과 동일한 구조 적용 */

.article-title {
    display: flex;
    align-items: center;
    padding: 38px 0 32px;
    height: 100px;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: #222;
    -webkit-font-smoothing: auto;
}

.article-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #000;
    border-bottom: 1px solid #DBDBDB;
}

.article-date {
    font-weight: 400;
    font-size: 16px;
    color: #888;
}

.article-content {
    margin-top: 30px;
}

.article-content p {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    -webkit-font-smoothing: auto;
}

.article-content ul,
.article-content ol {
    /* list-style: none; 속성을 제거하고 아래와 같이 설정합니다. */
    padding-left: 1em; /* 브라우저 기본 들여쓰기와 비슷하게 설정 */
    margin-bottom: 5px;
}

.article-content ul {
    list-style-type: disc; /* 원형 불릿 */
}

.article-content ol {
    list-style-type: decimal; /* 숫자 */
}

.article-content li {
    line-height: 1.6; /* 본문 p 태그와 줄 간격 맞춤 */
}

.article-content table {
    padding-top: 2px 0 1px;
    width: 100%;
    border-top: 2px solid #363b4e;
    border-bottom: 1px solid #363b4e;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 9px 10px 10px 10px;
    border-bottom: 1px solid #ddd;

    &:not(:first-child) {
        border-left: 1px solid #ddd;
    }

    &:not(:last-child) {
        border-right: 1px solid #ddd;
    }
}

.article-content th {
    background: #f8f7f6;
}



.btn-back {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0;
    width: 130px;
    height: 30px;
    background-color: #000;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.8;
    color: #fff;
}

/* 이미지 숨기기 */
body#news-page .article-image-container,
body#news-page .article-image {
    display: none;
}

/* 에러 상태 */
body#news-page .error-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

body#news-page .error-state h2 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 16px;
    font-weight: 600;
}

body#news-page .error-state p {
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 에러 상태 */
.news-error-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.error-content {
    max-width: 400px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 24px;
    color: #dc3545;
}

.error-content h2 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 16px;
    font-weight: 600;
}

.error-content p {
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 모바일 스타일 */
@media (max-width: 768px) {
    .main-content {
        padding: 0 30px;
    }

    .article-wrapper {
        display: block;
        padding: 20px 0;
    }

    .article-title {
        padding: 0;
        height: auto;
    }

    .article-date {
        display: block;
        margin-top: 10px;
        font-size: 14px;
    }

    .article-content {
        margin-top: 23px;
        ;
    }

    .article-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .btn-back {
        margin-top: 40px;
        height: 34px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {}