/* ========================================
   게시판 갤러리 스타일
   ======================================== */

/* 갤러리 섹션 */
.board_gallery_section {
    background-color: #f5f5f5;
    padding: 80px 0 150px;
}

/* 배너 */
.board_banner {
    width: 100%;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, #28BFFF 0%, #6AC7FA 100%);
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(40, 191, 255, 0.2);
}

.banner_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.banner_text {
    color: #fff;
}

.banner_text p {
    line-height: 1.6;
}

.banner_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #fff;
    color: #28BFFF;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.banner_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner_btn span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 갤러리 그리드 */
.board_gallery_grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery_item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.gallery_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery_item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery_image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery_item:hover .gallery_image img {
    transform: scale(1.05);
}

.gallery_image.no_image {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.gallery_image.no_image span {
    color: #999;
    font-size: 1rem;
}

.gallery_title {
    padding: 20px 25px;
}

.gallery_title p {
    color: #1D1D1F;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 반응형 - 갤러리 */
@media screen and (max-width: 1200px) {
    .board_gallery_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 720px) {
    .board_gallery_section {
        padding: 60px 0 100px;
    }
    
    .board_banner {
        padding: 30px 25px;
        margin-bottom: 40px;
    }
    
    .banner_content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .banner_text p {
        font-size: 1rem;
    }
    
    .banner_btn {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .board_gallery_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery_title {
        padding: 15px 20px;
    }
}

/* ========================================
   게시판 공통 스타일
   ======================================== */


/* 게시판 래퍼 */
.board_wrap {
    max-width: 1520px;
    width: 94%;
    margin: 0 auto;
    padding: 100px 0 150px;
    background-color: #f5f5f5;
}

/* 게시판 타이틀 */
.board_title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1D1D1F;
    color: #1D1D1F;
}

/* ========================================
   카테고리
   ======================================== */
.board_category {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.board_category a {
    padding: 10px 25px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-size: 0.938rem;
    font-weight: 500;
    transition: all 0.3s;
}

.board_category a:hover {
    background: #B56AFF;
    color: #fff;
    border-color: #B56AFF;
}

.board_category a.active {
    background: #B56AFF;
    color: #fff;
    border-color: #B56AFF;
    font-weight: 600;
}

/* ========================================
   검색
   ======================================== */
.board_search {
    margin-bottom: 30px;
    text-align: right;
}

.board_search form {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.board_search input[type="text"] {
    padding: 12px 20px;
    width: 300px;
    border: 1px solid #d9d9d9;
    border-radius: 25px;
    font-size: 0.938rem;
    outline: none;
    transition: border-color 0.3s;
}

.board_search input[type="text"]:focus {
    border-color: #B56AFF;
}

.board_search button {
    padding: 12px 30px;
    background: #B56AFF;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.938rem;
    font-weight: 600;
    transition: all 0.3s;
}

.board_search button:hover {
    background: #9f50e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 106, 255, 0.3);
}

/* ========================================
   게시글 목록 테이블
   ======================================== */
.board_list {
    width: 100%;
    border-top: 2px solid #1D1D1F;
    background: #fff;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.board_list thead {
    background: #f8f9fa;
}

.board_list th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.938rem;
    color: #1D1D1F;
    border-bottom: 1px solid #e0e0e0;
}

.board_list td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.938rem;
    color: #666;
}

.board_list tbody tr {
    transition: background-color 0.2s;
}

.board_list tbody tr:hover {
    background-color: #fafafa;
}

.board_list td.subject {
    text-align: left;
}

.board_list td.subject a {
    color: #1D1D1F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.board_list td.subject a:hover {
    color: #B56AFF;
}

/* 공지사항 행 */
.board_list tr.notice {
    background: #fffbf0;
}

.board_list tr.notice:hover {
    background: #fff8e6;
}

/* 배지 */
.badge_notice {
    display: inline-block;
    padding: 4px 10px;
    background: #FF6633;
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

.badge_new {
    display: inline-block;
    padding: 3px 8px;
    background: #50B507;
    color: #fff;
    border-radius: 4px;
    font-size: 0.688rem;
    font-weight: 600;
    margin-left: 6px;
}

/* ========================================
   페이징
   ======================================== */
.board_pagination {
    margin-top: 50px;
    text-align: center;
}

.board_pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    border: 1px solid #d9d9d9;
    background: #fff;
    text-decoration: none;
    color: #666;
    border-radius: 5px;
    font-size: 0.938rem;
    transition: all 0.3s;
}

.board_pagination a:hover {
    background: #f5f5f5;
    border-color: #B56AFF;
    color: #B56AFF;
}

.board_pagination a.active {
    background: #B56AFF;
    color: #fff;
    border-color: #B56AFF;
    font-weight: 600;
}

/* ========================================
   버튼
   ======================================== */
.board_write_btn {
    margin-top: 30px;
    text-align: right;
}

.board_write_btn a {
    display: inline-block;
    padding: 14px 40px;
    background: #B56AFF;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.board_write_btn a:hover {
    background: #9f50e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 106, 255, 0.3);
}

/* ========================================
   데이터 없음
   ======================================== */
.no_data {
    padding: 100px 20px;
    text-align: center;
    color: #999;
    font-size: 1.125rem;
    background: #fff;
    border-radius: 10px;
}

/* ========================================
   글쓰기 폼
   ======================================== */
.write_form {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.write_row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.write_row:last-child {
    border-bottom: none;
}

.write_label {
    width: 180px;
    padding: 20px 25px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.938rem;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    border-right: 1px solid #f0f0f0;
}

.write_input {
    flex: 1;
    padding: 20px 25px;
}

.write_input input[type="text"],
.write_input input[type="email"],
.write_input select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    font-size: 0.938rem;
    outline: none;
    transition: border-color 0.3s;
}

.write_input input[type="text"]:focus,
.write_input input[type="email"]:focus,
.write_input select:focus {
    border-color: #B56AFF;
}

.write_input textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    resize: vertical;
    min-height: 400px;
    font-size: 0.938rem;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.write_input textarea:focus {
    border-color: #B56AFF;
}

.write_input input[type="file"] {
    padding: 10px 0;
    font-size: 0.875rem;
}

.write_input label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.938rem;
}

.write_input input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.required {
    color: #FF6633;
    margin-left: 4px;
    font-weight: 700;
}

/* ========================================
   폼 버튼
   ======================================== */
.write_buttons {
    margin-top: 40px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.write_buttons button,
.write_buttons a {
    padding: 14px 50px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn_submit {
    background: #B56AFF;
    color: #fff;
}

.btn_submit:hover {
    background: #9f50e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 106, 255, 0.3);
}

.btn_cancel {
    background: #95a5a6;
    color: #fff;
}

.btn_cancel:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* ========================================
   반응형
   ======================================== */
@media screen and (max-width: 1080px) {
    .board_wrap {
        padding: 80px 0 100px;
    }
    
    .board_title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .board_search input[type="text"] {
        width: 250px;
    }
}

@media screen and (max-width: 720px) {
    .board_wrap {
        padding: 60px 0 80px;
    }
    
    .board_title {
        font-size: 1.75rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .board_category a {
        padding: 8px 18px;
        font-size: 0.875rem;
    }
    
    .board_search {
        text-align: center;
    }
    
    .board_search form {
        flex-direction: column;
        width: 100%;
    }
    
    .board_search input[type="text"] {
        width: 100%;
    }
    
    .board_search button {
        width: 100%;
    }
    
    /* 모바일에서 테이블 스크롤 */
    .board_list_wrap {
        overflow-x: auto;
    }
    
    .board_list th,
    .board_list td {
        padding: 12px 10px;
        font-size: 0.875rem;
    }
    
    .board_list th {
        white-space: nowrap;
    }
    
    .write_row {
        flex-direction: column;
    }
    
    .write_label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 20px;
    }
    
    .write_input {
        padding: 15px 20px;
    }
    
    .write_input textarea {
        min-height: 300px;
    }
    
    .write_buttons {
        flex-direction: column;
    }
    
    .write_buttons button,
    .write_buttons a {
        width: 100%;
        padding: 14px 30px;
    }
}
