/* 전체 요소 박스 사이징 보더박스 적용 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #fbf3ea;
    width: 1920px;
    display: flex;
    flex-direction: column;
}

.board-wrapper {
    width: 1200px;
    margin: 0 auto;
    padding-top: 120px;
    flex: 1;
}

/* 자유게시판 제목 */
.board-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    /*border-bottom: 3px solid #ddd;*/
    padding-bottom: 15px;
    padding-top: 40px;
    margin: 0;
}

/* 검색폼과 등록버튼 묶음 */
.board-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-left: 30px;
}

/* 검색폼 : input과 버튼 한 줄 */
.search-form {
    display: flex;
    align-items: center;
}

/* select 스타일 */
#searchType {
    padding: 8px 15px;
    font-size: 16px;
    border: 1px solid #F8A92B;
    border-radius: 20px 0 0 20px;
    background-color: white;
    color: #333;
    cursor: pointer;
    outline: none;
    width: 110px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0%200l5%206%205-6z'%20fill%3D'%23F8A92B'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px 6px;

    /* input과 테두리 겹치도록 마진 조정 */
    margin-right: -1px;
}

/* select 포커스 시 */
#searchType:focus {
    border-color: #d98617;
}

/* select 옵션 */
#searchType option {
    padding: 8px 15px;
    font-size: 16px;
    color: #333;
}

/* 검색 input */
.search-form input[type="text"] {
    width: 300px;
    padding: 8px 15px;
    font-size: 16px;
    border: 1px solid #F8A92B;
    border-radius: 0 0 0 0;
    outline: none;

    /* select와 테두리 겹치도록 마진 조정 */
    margin-left: -1px;
    margin-right: -1px;
}

/* 검색 버튼 (노란색, 둥근 모서리) */
.btn-search {
    background-color: #F8A92B;
    border: 1px solid #f8a92b;
    color: white;
    padding: 8px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: #d98617;
}

/* 글 등록 버튼 (노란색, 완전 둥근) */
.btn-register {
    background-color: #F8A92B;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #d98617;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    text-align: center;
    table-layout: fixed;
    font-size: 18px;
}

.board-table thead th {
    background-color: #f5f5f5;
    padding: 15px;
    border-bottom: 2px solid #333;
}

.board-table tbody td {
    padding: 25px;
    border-bottom: 1px solid #ddd;
}

.board-table td.title {
    text-align: left;
    color: #007bff;
}
.board-table td {
    height: 78px;
    padding: 0 !important;
    line-height: 78px;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.board-table td.title a {
    text-decoration: none;
    color: inherit;
}

.board-table td.title a:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 30px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 16px;
}

.pagination span,
.pagination a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}
.pagination a.active {
    color: #f8a92b;
}
