*{margin:0;padding:0;box-sizing:border-box;}
body{
    font-family:"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background:#ffffff; /* ★ 전체 배경을 순백색 유지 */
    color:#222;
    line-height:1.5;
}

/* 전체 래퍼 */
.wrap{
    max-width:1200px;
    margin:0 auto;
}

/* 상단 이미지 */
.cs-hero{
    width:100%;
    height:150px;
    background:url("img/center.png") center/cover no-repeat; /* ← 여기 변경 */
    position:relative;
    overflow:hidden;
}
.cs-hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.25);
}
.cs-hero-title{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1;
    font-size:40px;
    font-weight:700;
    color:#fff;
    text-shadow:0 2px 8px rgba(0,0,0,0.25);
    letter-spacing:5px;
}

/* 내부 영역 */
.section-inner{
    padding:45px 40px 80px;
    background:#ffffff; /* ★ 섹션 배경도 흰색 */
}

/* 탭 영역 */
.cs-tab-wrap{
    max-width:520px;
    margin:0 auto 35px;
    background:#ffffff;
    border:1px solid #e3e3e3;
    border-radius:10px;
    display:flex;
    overflow:hidden;
}
.cs-tab{
    flex:1;
    text-align:center;
    padding:16px 10px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
    color:#444;
}
.cs-tab:hover{
    background:#f7f7f7;
}
.cs-tab.active{
    background:#1F5FFF;
    color:#ffffff;
}
.cs-tab-wrap a {
    text-decoration:none;
    color:inherit;       /* 기존 글자색 유지 */
    display:block;       /* div처럼 전체 클릭 영역 */
}

.board-view {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e1e6f0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

/* 헤더 */
.view-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e3e8f3;
}

.view-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
}

.view-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.view-meta .meta-item strong {
    font-weight: 600;
    margin-left: 3px;
    color: #374151;
}

/* 본문 */
.view-body {
    padding: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: #303642;
    min-height: 200px;
}

/* 첨부파일 */
.view-file {
    padding: 14px 24px;
    border-top: 1px solid #eef1f7;
    border-bottom: 1px solid #eef1f7;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fbff;
    font-size: 14px;
}

.file-label {
    font-weight: 600;
    color: #374151;
}

.file-link {
    color: #1664ff;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

/* 이전/다음글 */
.view-nav {
    padding: 6px 24px 10px;
    font-size: 14px;
}

.nav-row {
    display: grid;
    grid-template-columns: 70px 1fr 90px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #f1f3f9;
}

.nav-row:first-child {
    border-top: none;
}

.nav-label {
    font-weight: 600;
    color: #6b7280;
}

.nav-title {
    color: #111827;
    text-decoration: none;
}

.nav-title:hover {
    color: #1664ff;
    text-decoration: underline;
}

.nav-date {
    text-align: right;
    color: #9ca3af;
    font-size: 13px;
}

.nav-none {
    grid-column: 2 / 4;
    color: #9ca3af;
}

/* 버튼 */
.view-buttons {
    padding: 18px 24px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #eef1f7;
}

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: 0.15s ease;
}

.btn-outline:hover {
    border-color: #1664ff;
    color: #1664ff;
}

/* 반응형 */
@media(max-width:768px){
    .cs-hero{height:180px;}
    .cs-hero-title{font-size:30px;}
    .section-inner{padding:20px 16px 60px;}
    .cs-tab{font-size:14px;padding:14px 6px;}
}
.view-nav input{
    text-decoration: none;
}
