/* 커뮤니티 스타일 커스텀 */

/* ============================================
   전역 스타일
   ============================================ */
body,
button,
input,
select,
table,
textarea {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", Roboto, arial,
        Dotum, 돋움, sans-serif;
}

body {
    background-color: #edeef0;
    font-size: 13px;
}

/* 링크 기본 스타일 - 밑줄 제거 */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* 이미지 및 미디어 요소 기본 스타일 */
img {
    display: inline-block;
    vertical-align: middle;
}

svg {
    display: inline-block;
    vertical-align: middle;
}

video,
canvas,
audio {
    display: inline-block;
    vertical-align: middle;
}

iframe,
embed,
object {
    display: block;
    vertical-align: middle;
    max-width: 100%;
}

/* 본문 콘텐츠 내 이미지와 비디오만 max-width 제한 */
.board-view-content img,
.board-view-content video,
.board-comment-content img,
.board-comment-content video {
    max-width: 100%;
    height: auto;
}

/* ============================================
   폰트 설정
   ============================================ */
.board-title-font {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
}

.board-text-font {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
}

.board-small-font {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================
   색상 값
   ============================================ */
.board-text-primary {
    color: #000000;
}

.board-text-secondary {
    color: #666666;
}

.board-text-tertiary {
    color: #999999;
}

.board-bg-primary {
    background-color: #ffffff;
}

.board-bg-secondary {
    background-color: #f5f5f5;
}

.board-border-color {
    border-color: #e0e0e0;
}

.board-link-color {
    color: #0066cc;
}

.board-link-hover-color {
    color: #0052a3;
}

/* ============================================
   게시판 테이블 스타일
   ============================================ */
.board-table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #000000;
    border-left: none;
    border-right: none;
}

.board-table th {
    background-color: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    border-left: none !important;
    border-right: none !important;
    font-weight: 500;
    font-size: 13px;
    color: #666666;
    padding: 12px 8px;
    line-height: 1.5;
    text-align: left;
}

.board-table td {
    border-bottom: 1px solid #f0f0f0;
    border-left: none !important;
    border-right: none !important;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #000000;
}

/* 모든 셀의 좌우 보더 강제 제거 */
.board-table th,
.board-table td {
    border-left: none !important;
    border-right: none !important;
}

/* :last-child 선택자로 인한 보더 완전 제거 - 모든 가능한 조합에 대해 강제 제거 */
.board-table th:last-child,
.board-table td:last-child,
.board-table th:first-child,
.board-table td:first-child,
.board-table thead th:last-child,
.board-table thead td:last-child,
.board-table tbody th:last-child,
.board-table tbody td:last-child,
.board-table tfoot th:last-child,
.board-table tfoot td:last-child {
    border-left: none !important;
    border-right: none !important;
    border-right: 0 !important;
    border-left: 0 !important;
}

.board-table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

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

.board-table tbody tr:last-child td {
    border-bottom: none;
}

/* 현재글 스타일 */
.board-table tbody tr.current-post {
    background-color: #f0f8ff;
}

.board-table tbody tr.current-post:hover {
    background-color: #e0f0ff;
}

/* ============================================
   뱃지 스타일
   ============================================ */
.badge-new {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

.badge-new img {
    width: 100%;
    height: 100%;
    display: block;
}

.badge-image {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

.badge-image img {
    width: 100%;
    height: 100%;
    display: block;
}

.badge-video {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

.badge-video img {
    width: 100%;
    height: 100%;
    display: block;
}

.badge-current {
    display: inline-block;
    background-color: #0096ff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

/* 게시판 리스트 아이템 간격 */
.board-item {
    padding: 0.75rem 1rem;
}

/* 댓글 스타일 */
.comment-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.comment-item:last-child {
    border-bottom: none;
}

/* ============================================
   게시판 제목 링크 스타일
   ============================================ */
.board-title-link {
    color: #000000;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.board-title-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* ============================================
   작성자 아바타 스타일
   ============================================ */
.author-avatar {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
    border: 1px solid #d0d0d0;
}

/* 작성자 닉네임 - 한 줄 표시 */
.author-name {
    display: inline-block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* GNB 스타일 */
.gnb {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.gnb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gnb-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}

.gnb-logo:hover {
    color: #2563eb;
}

.gnb-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gnb-menu-item {
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.gnb-menu-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.gnb-menu-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* ============================================
   검색 영역 스타일
   ============================================ */
.board-search-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.board-search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.board-search-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.875rem;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
}

.board-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #000000;
}

.board-search-input:focus {
    outline: none;
    border-color: #0066cc;
}

.board-search-button {
    padding: 0.5rem 1.25rem;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.board-search-button:hover {
    background-color: #0052a3;
}

/* ============================================
   페이지네이션 스타일
   ============================================ */
.board-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.board-pagination-button {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.board-pagination-button:hover {
    background-color: #f5f5f5;
    border-color: #b0b0b0;
}

.board-pagination-button.active {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    font-weight: 500;
}

.board-pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   게시판 뷰 스타일
   ============================================ */
.board-view-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.board-view-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.board-view-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.board-view-meta {
    font-size: 0.875rem;
    color: #666666;
}

.view-header-util {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 1rem;
}

.view-header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem;
}

.view-header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem;
    margin-left: auto !important;
}

.view-header-icon {
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle;
    flex-shrink: 0;
}

.view-header-nick {
    color: #000000;
    font-weight: 500;
}

.view-header-date {
    color: #666666;
}

.view-header-date em {
    font-style: normal;
    color: #999999;
}

.view-header-right span {
    color: #666666;
}

.view-header-right span em {
    font-style: normal;
    color: #000000;
    font-weight: 500;
}

.board-view-content {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #000000;
    padding: 1rem 0;
    word-wrap: break-word;
    min-height: 600px;
}

.board-view-content img {
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
    display: block;
}

/* ============================================
   댓글 영역 스타일
   ============================================ */
.board-comment-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.board-comment-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.board-comment-form {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.board-comment-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    color: #000000;
}

.board-comment-textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.board-comment-button {

    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    float: right;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;

}

.board-comment-button:hover {
    background-color: #f5f5f5;
    border-color: #b0b0b0;
}

.board-comment-submit {
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    float: right;
}

.board-comment-submit:hover {
    background-color: #0052a3;
}

.board-comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.board-comment-item:last-child {
    border-bottom: none;
}

.board-comment-author {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
    margin-right: 0.5rem;
}

.board-comment-date {
    font-size: 0.75rem;
    color: #999999;
}

.board-comment-content {
    font-size: 0.875rem;
    color: #000000;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.board-comment-actions {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #999999;
    margin-top: 0.5rem;
}

.board-comment-action {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    transition: color 0.15s ease-in-out;
}

.board-comment-action:hover {
    color: #0066cc;
}

/* ============================================
   게시판 버튼 스타일
   ============================================ */
.board-button {
    padding: 0.5rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.board-button:hover {
    background-color: #f5f5f5;
    border-color: #b0b0b0;
}

.board-button-primary {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.board-button-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.board-button-danger {
    background-color: #cc0000;
    color: #ffffff;
    border-color: #cc0000;
}

.board-button-danger:hover {
    background-color: #aa0000;
    border-color: #aa0000;
}

/* ============================================
   반응형 스타일
   ============================================ */
@media (max-width: 768px) {
    .board-table {
        font-size: 0.75rem;
    }

    .board-table th,
    .board-table td {
        padding: 0.5rem 0.375rem;
    }

    .col-no {
        width: auto;
        min-width: 50px;
    }

    .badge-current {
        font-size: 10px;
        padding: 2px 5px;
        margin-left: 0;
        white-space: nowrap;
    }

    .board-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .board-search-input {
        min-width: 100%;
    }

    .board-pagination {
        gap: 0.125rem;
    }

    .board-pagination-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .board-view-container {
        padding: 1rem;
    }

    .board-view-title {
        font-size: 1.125rem;
    }

    .board-comment-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .badge-current {
        font-size: 9px;
        padding: 1px 4px;
    }

    .col-no {
        min-width: 45px;
    }
}

@media (max-width: 768px) {
    .gnb-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gnb-menu::-webkit-scrollbar {
        display: none;
    }
}

/* ============================================
   푸터 메뉴 스타일
   ============================================ */
.footer-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-menu-item {
    text-decoration: none;
    font-weight: 400;
    padding: 0 0.5rem;
    transition: color 0.15s ease-in-out;
}

.footer-menu-item:hover {
    color: #333333;
    text-decoration: none;
}

.footer-menu-divider {
    color: #cccccc;
    font-size: 0.75rem;
    padding: 0 0.25rem;
}

/* ============================================
   네비게이션 메뉴 활성화 스타일
   ============================================ */
.nav-menu-item {
    position: relative;
    display: inline-block;
}

.nav-menu-item.nav-active::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background: #0096ff;
}

/* ============================================
   게시판 리스트 레이아웃
   ============================================ */
.board-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 0 2rem;
}

.board-container-inner {
    display: flex;
    align-items: stretch;
}

.board-main {
    width: 850px;
    flex-shrink: 0;
    background-color: #ffffff;
    padding: 0 1rem;
    min-height: 1000px;
    border-right: 1px solid #e8e8e8;
}

.board-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

@media (max-width: 1200px) {
    .board-container-inner {
        flex-direction: column;
    }
    .board-main {
        width: 100%;
    }
    .board-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e8e8e8;
    }
}

@media (max-width: 768px) {
    .board-container {
        padding: 5rem 0 1.5rem;
    }
    .board-main {
        padding: 0 0.75rem;
    }
}

/* ============================================
   게시판 헤더
   ============================================ */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 1rem;
    margin-bottom: 20px;
    margin-top: 0;
}

.board-header-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ============================================
   게시판 리스트 컬럼 스타일
   ============================================ */
.col-no {
    width: 70px;
    text-align: left;
    color: #888;
}

.col-title {
    text-align: left;
}

.col-author {
    width: 140px;
    min-width: 140px;
    text-align: left;
    padding-right: 20px !important;
}

.col-date {
    width: 100px;
    text-align: left;
    color: #888;
    padding-left: 20px !important;
}

.col-views {
    width: 50px;
    text-align: left;
    color: #888;
}

.col-likes {
    width: 50px;
    text-align: left;
    color: #888;
}

/* ============================================
   작성자 랩핑
   ============================================ */
.board-author-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.board-author-wrap img {
    width: 18px;
    height: 18px;
}

.board-author-wrap span {
    color: #333;
    white-space: nowrap;
    display: inline-block;
    max-width: 10ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   댓글 수 표시
   ============================================ */
.board-comment-cnt {
    color: #ff6600;
    font-weight: 400;
    margin-left: 4px;
}

/* ============================================
   게시판 액션 버튼
   ============================================ */
.board-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 0;
}

/* ============================================
   새글 배지
   ============================================ */
.badge-new-today {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

.badge-new-today img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   게시판 서브메뉴 (history)
   ======================================== */
.board-submenu {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 16px;
}

.submenu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.submenu-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 5px 12px;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.submenu-item:hover {
    background: #e9ecef;
    color: #212529;
}

.submenu-item.active {
    background: #0096ff;
    color: #fff;
    font-weight: 500;
}

.submenu-item.active:hover {
    background: #0077cc;
}

.submenu-count {
    font-size: 11px;
    color: #868e96;
}

.submenu-item.active .submenu-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .board-submenu {
        padding: 10px;
    }

    .submenu-items {
        gap: 4px;
    }

    .submenu-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* ========================================
   아이콘 모음
   ======================================== */
.ico-pc {
    background: url("../img/common/icon_common.png");
    display: inline-block;
    overflow: hidden;
    text-indent: -3000px;
}

/*신고 아이콘*/
.report {
    width: 12px;
    height: 12px;
    background-position: -149px -176px;
}

.report:hover {
    background-position: -167px -176px;
}
