.board-container{
	width:1280px;
	margin:50px auto;
	min-height:500px;
	padding: 0 20px;
}
/* 게시판 영역 */
.board-title{
    font-size:42px;
    font-weight:700;
    margin-bottom:25px;
}
.board-smalltxt{
	display:block;
	padding-bottom:10px;
	font-size:18px;
}
/* 상단 버튼 */
.board-top{
    text-align:right;
    margin-bottom:10px;
	margin-top:20px;
}

.board-write-btn{
    background:#444;
    color:#fff;
    padding:8px 16px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
	display:inline-block;
}

.board-write-btn:hover{
    background:#1858c9;
}

/* 테이블 */
.board-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

/* 헤더 */
.board-table thead th{
    background:#f7f7f7;
    border-top:2px solid #222;
    border-bottom:1px solid #ddd;
    padding:12px;
    font-size:14px;
}

/* 셀 */
.board-table td{
    padding:14px 12px;
    border-bottom:1px solid #eee;
    font-size:14px;
}

/* 제목 링크 */
.board-table td.col-title a{
    color:#222;
    text-decoration:none;
}

.board-table td.col-title a:hover{
    text-decoration:underline;
}

/* 번호 */
.col-num{
    width:80px;
    text-align:center;
    color:#777;
}

/* 날짜&view */
.col-date,
.col-view{
    width:120px;
    text-align:center;
    color:#888;
}

/* 빈 게시판 */
.board-empty{
    text-align:center;
    padding:40px;
    color:#888;
}

/* hover */
.board-table tbody tr:hover{
    background:#fafafa;
}
.board-hero{
    width:100%;
    height:450px;
	position:relative;
    background-image:url('/assets/images/board-hero.jpg');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
	flex-direction: column;
    align-items:center;
    justify-content:center;
}

/* opacity 레이어 */
.board-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.4); /* opacity 조절 */
}

/* 타이틀 */
.board-hero-title{
    font-size:48px;
    font-weight:700;
    margin-bottom:10px;
	position:relative;
	z-index:2;
	text-align:center;
	color:#fff;
}

.board-hero p{
    font-size:14px;
	text-align:center;
	position:relative;
	z-index:2;
	color:#fff;
	margin-top:0;
	line-height:1.5;
}
/* 게시글 카드 */
.board-view{
	max-width:980px;
	margin:0 auto;
    background:#fff;
    overflow:hidden;
}

.board-view-header{
    padding:30px 35px 15px;
    border-bottom:1px solid #eee;
}

.board-view-title{
    font-size:34px;
    font-weight:600;
    margin-bottom:30px;
}

.board-view-meta{
    font-size:13px;
    color:#888;
    display:flex;
    gap:15px;
	justify-content: flex-end;
}

/* 내용 */
.board-view-content{
	min-height:400px;
    padding:30px 20px;
    line-height:1.7;
    font-size:15px;
    color:#333;
}
.board-view-content img{
    max-width:100%;
}
/* 하단 버튼 */
.board-view-bottom{
	border-top:1px solid #ccc;
    padding-top:20px;
    text-align:right;
}

/* 목록버튼 */
.board-list-btn{
    background:#444;
    color:#fff;
    padding:8px 16px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
	display:inline-block;
}

.board-list-btn:hover{
    background:#1858c9;
}
/* ===============================
   게시글 작성 / 수정
================================ */

.board-write-container{
    max-width:900px;
    margin:60px auto;
    padding:40px;
    background:#fff;
    border-radius:8px;
}

.board-write-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:30px;
}

.board-write-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.board-form-row{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.board-form-row label{
    font-size:14px;
    font-weight:600;
    color:#555;
}

.board-form-row input{
    padding:12px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:15px;
}

.board-form-row textarea{
    padding:14px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:15px;
    resize:vertical;
}

.board-form-row input:focus,
.board-form-row textarea:focus{
    outline:none;
    border-color:#2b6cb0;
}

.board-form-actions{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.board-btn-submit{
    padding:12px 26px;
    border:none;
    background:#2b6cb0;
    color:#fff;
    border-radius:6px;
    font-size:15px;
    cursor:pointer;
}

.board-btn-submit:hover{
    background:#1e4f88;
}

.board-btn-cancel{
    padding:12px 26px;
    background:#eee;
    border-radius:6px;
    text-decoration:none;
    color:#333;
}

.board-btn-cancel:hover{
    background:#ddd;
}

.board-nav{
    margin-top:40px;
    border-top:1px solid #eee;
}

.board-nav-item{
    display:flex;
    gap:20px;
    padding:14px 10px;
    border-bottom:1px solid #eee;
}

.board-nav-label{
    width:80px;
    font-weight:600;
    color:#666;
}

.board-nav-item a{
    color:#333;
    text-decoration:none;
}

.board-nav-item a:hover{
    text-decoration:underline;
}

/* 전체 영역 */
.board-write-container{
    max-width:1280px;
    margin:60px auto;
    padding:0px;
}

/* 제목 */
.board-write-title{
    font-size:34px;
    font-weight:700;
    margin-bottom:30px;
}

/* 작성 박스 */
.board-write-box{
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:8px;
    padding:30px;
}

/* 폼 row */
.board-form-row{
    margin-bottom:25px;
}

/* label */
.board-form-row label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
}

/* input */
.board-form-row input[type="text"]{
    width:100%;
    height:46px;
    padding:0 12px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
}

/* textarea */
.board-form-row textarea{
    width:100%;
}

/* tinyMCE editor border 보정 */
.tox-tinymce{
    border-radius:6px !important;
}

/* 버튼 영역 */
.board-form-actions{
    margin-top:30px;
    display:flex;
    justify-content:flex-end;
    gap:10px;
}

/* 버튼 */
.board-btn{
    padding:10px 22px;
    border-radius:6px;
    border:none;
    font-size:14px;
    cursor:pointer;
}

/* 등록 버튼 */
.board-btn-submit{
    background:#444;
    color:#fff;
}

.board-btn-submit:hover{
    background:#1858c9;
}

/* 취소 버튼 */
.board-btn-cancel{
    background:#eee;
    color:#333;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
}

.board-btn-cancel:hover{
    background:#ddd;
}

/* ===============================
   MOBILE (768px 이하)
================================ */
@media (max-width:768px){

    .board-container{
        width:100%;
        margin:0px auto;
        padding:0;
		min-height:200px;
    }

    /* 게시판 타이틀 */
    .board-title{
        display:none;
    }
	.board-top{
		margin:20px 20px 20px 0;
	}
    /* 히어로 */
    .board-hero{
        height:220px;
    }

    .board-hero-title{
        font-size:28px;
        text-align:center;
        padding:0 15px;
    }

    /* 글쓰기 버튼 */
    .board-write-btn{
        padding:7px 12px;
        font-size:13px;
    }

    /* 테이블 */
	.board-table thead th {
		background: #f7f7f7;
		border-top: 2px solid #222;
		border-bottom: 1px solid #ddd;
		padding: 10px 5px;
		font-size: 14px;
	}

    .board-table{
        width:100%;
		table-layout:fixed;   /* 중요 */
    }

    .board-table tr{
        border-bottom:1px solid #eee;
        padding: 0;
    }

    .board-table td{
        border:none;
        padding:10px 0px;
        font-size:14px;
    }

	.col-num{
		color:#aaa;
		white-space:nowrap;
		width:36px;
		text-align:center;
	}
	.col-view{
		width:55px;
		text-align:center;
	}
	.col-title{
		width:auto;
		overflow:hidden;
	}

	.col-title a{
		display:block;
		white-space:nowrap;
		overflow:hidden;
		text-overflow:ellipsis;
	}
	
	.col-date{
		color:#888;
		width:70px;
		white-space:nowrap;
		text-align:center;
	}
	td.col-num,
	td.col-date,
	td.col-view{
		 font-size:11px;
	 }
    /* 게시글 보기 */
    .board-view{
        max-width:100%;
    }

    .board-view-header{
        padding:20px 15px;
    }

    .board-view-title{
        font-size:22px;
    }

    .board-view-meta{
        font-size:12px;
        flex-wrap:wrap;
        gap:8px;
    }

    .board-view-content{
        padding:20px 15px;
        font-size:14px;
        line-height:1.6;
    }
    
    .board-view-content img{
        max-width:100%;
        width: 100%;
        height: auto;
    }

    /* 작성폼 */
    .board-write-container{
        margin:30px auto;
        padding:25px 20px;
        border-radius:6px;
    }

    .board-write-title{
        font-size:22px;
        margin-bottom:20px;
    }

    .board-form-row input,
    .board-form-row textarea{
        font-size:14px;
        padding:10px;
    }

    .board-form-actions{
        flex-direction:column;
    }

    .board-btn-submit,
    .board-btn-cancel{
        width:100%;
        text-align:center;
        padding:12px;
        font-size:14px;
		display: inline-block;
    }
	.board-view-bottom{
		margin-bottom:20px;
	}

}
