/* =========================================================
   GNUBOARD THEME - BOARD COMMON
========================================================= */
/* 그누보드 기본 게시판 제목 숨김 */
#container_title {
    display: none !important;
}

.board-wrap {padding:50px !important;}
.board-wrap {
    width: 100%;
    margin: 0 auto;
    color: #222;
    font-size: 14px;
}

.board-title {
    margin-bottom: 25px;
}

.board-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.board-title p {
    margin: 8px 0 0;
    color: #777;
    font-size: 14px;
}

/* ---------------------------------------------------------
   BOARD TOP
--------------------------------------------------------- */

.board-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.board-count {
    color: #777;
}

.board-count strong {
    color: #222;
}

/* ---------------------------------------------------------
   SEARCH
--------------------------------------------------------- */

.board-search {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 15px;
}

.board-search select,
.board-search input {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 12px;
    box-sizing: border-box;
}

.board-search input {
    width: 220px;
}

.board-search button {
    width: 42px;
    height: 40px;
    border: 0;
    border-radius: 5px;
    background: #145dcc;
    color: #fff;
    cursor: pointer;
}

/* ---------------------------------------------------------
   BUTTON
--------------------------------------------------------- */

.board-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    padding: 0 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.board-btn.primary {
    border-color: #145dcc;
    background: #145dcc;
    color: #fff;
}

.board-btn:hover {
    opacity: .85;
}

/* ---------------------------------------------------------
   TABLE
--------------------------------------------------------- */

.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #222;
}

.board-table th {
    height: 52px;
    background: #f8f9fb;
    border-bottom: 1px solid #ddd;
    color: #444;
    font-weight: 600;
}

.board-table td {
    height: 55px;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #666;
}

.board-table td.subject {
    text-align: left;
}

.board-table td.subject a {
    color: #222;
    text-decoration: none;
}

.board-table td.subject a:hover {
    color: #145dcc;
}

/* ---------------------------------------------------------
   NOTICE
--------------------------------------------------------- */

.board-table tr.notice {
    background: #fafcff;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
    background: #145dcc;
    color: #fff;
    font-size: 11px;
}

/* ---------------------------------------------------------
   GALLERY
--------------------------------------------------------- */

.board-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.board-gallery-item {
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.board-gallery-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f2f3f5;
}

.board-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.board-gallery-item:hover .board-gallery-thumb img {
    transform: scale(1.04);
}

.board-gallery-content {
    padding: 18px;
}

.board-gallery-content h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.board-gallery-content p {
    margin: 0;
    color: #777;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   WEBZINE
--------------------------------------------------------- */

.board-webzine {
    display: flex;
    flex-direction: column;
}

.board-webzine-item {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.board-webzine-thumb {
    width: 220px;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 7px;
    background: #f3f3f3;
}

.board-webzine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-webzine-content {
    flex: 1;
}

.board-webzine-content h3 {
    margin: 5px 0 10px;
    font-size: 18px;
}

.board-webzine-content p {
    margin: 0;
    color: #777;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   VIEW
--------------------------------------------------------- */

.board-view {
    border-top: 2px solid #222;
}

.board-view-head {
    padding: 25px 20px;
    border-bottom: 1px solid #ddd;
}

.board-view-head h2 {
    margin: 0 0 15px;
    font-size: 24px;
}

.board-view-info {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 13px;
}

.board-view-content {
    min-height: 300px;
    padding: 40px 20px;
    line-height: 1.8;
}

/* ---------------------------------------------------------
   WRITE
--------------------------------------------------------- */

.board-write {
    border-top: 2px solid #222;
}

.board-write-row {
    display: flex;
    min-height: 55px;
    border-bottom: 1px solid #eee;
}

.board-write-label {
    width: 140px;
    padding: 17px 15px;
    background: #f8f9fb;
    font-weight: 600;
    box-sizing: border-box;
}

.board-write-field {
    flex: 1;
    padding: 8px;
}

.board-write-field input,
.board-write-field select,
.board-write-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.board-write-field textarea {
    min-height: 300px;
    resize: vertical;
}

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */

.board-faq-item {
    border-bottom: 1px solid #ddd;
}

.board-faq-question {
    position: relative;
    padding: 20px 45px 20px 20px;
    cursor: pointer;
    font-weight: 600;
}

.board-faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.board-faq-answer {
    display: none;
    padding: 20px;
    background: #f8f9fb;
    color: #666;
    line-height: 1.7;
}

.board-faq-item.active .board-faq-answer {
    display: block;
}

.board-faq-item.active .board-faq-question::after {
    content: "-";
}

/* ---------------------------------------------------------
   PAGINATION
--------------------------------------------------------- */

.board-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.board-pagination a,
.board-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    box-sizing: border-box;
}

.board-pagination .active {
    border-color: #145dcc;
    background: #145dcc;
    color: #fff;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 768px) {

    .board-title h2 {
        font-size: 22px;
    }

    .board-search {
        justify-content: stretch;
    }

    .board-search input {
        flex: 1;
        width: auto;
    }

    .board-table th:nth-child(1),
    .board-table td:nth-child(1),
    .board-table th:nth-child(4),
    .board-table td:nth-child(4) {
        display: none;
    }

    .board-table th:nth-child(5),
    .board-table td:nth-child(5) {
        display: none;
    }

    .board-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .board-gallery-content {
        padding: 13px;
    }

    .board-webzine-item {
        gap: 12px;
    }

    .board-webzine-thumb {
        width: 120px;
        height: 80px;
    }

    .board-webzine-content h3 {
        margin-top: 0;
        font-size: 15px;
    }

    .board-webzine-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .board-write-row {
        display: block;
    }

    .board-write-label {
        width: 100%;
        padding: 10px 12px;
    }

    .board-write-field {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {

    .board-gallery {
        grid-template-columns: 1fr;
    }

    .board-search select {
        display: none;
    }

    .board-table {
        font-size: 13px;
    }

    .board-table td {
        height: 48px;
        padding: 0 5px;
    }
}