/*
 * bbs.css
 * 게시판 공용 스타일 (목록/상세/FAQ/자료실 등)
 *
 * - 전역 레이아웃/타이포: default.css, responsive.css
 * - 게시판 전용 공통 패턴:
 *   - 상단 타이틀/서브타이틀 영역(.bbs-header)
 *   - 히어로 섹션 이미지(.bbs-hero)
 *   - 하단 버튼 영역(.bbs-actions)
 *   - 페이지네이션(.bbs-pagination)
 *
 * 개별 게시판 전용 스타일은 각 스킨/페이지 CSS에서 정의하고,
 * 이 파일은 공통 구조/간격/타이포만 담당한다.
 */

.bbs-list {
    width: calc(100% - 30px);
    max-width: 1600px;
    margin: 0 auto 110px;
    color: #333;
}

.bbs-header {
    margin-top: 30px;
    margin-bottom: 60px;
}

.bbs-header__title {
    margin: 0;
    font-size: 55px;
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.bbs-hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 70px;
}

.bbs-hero__image {
    display: block;
    width: 100%;
    aspect-ratio: 1660 / 380;
    object-fit: cover;
}

.bbs-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.bbs-list .bbs-table-wrap {
    border-top: 2px solid #333;
}

.bbs-list table {
    width: 100%;
    border-collapse: collapse;
}

.bbs-list th,
.bbs-list td {
    border-bottom: 1px solid #939393;
    height: 60px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.bbs-list th {
    font-weight: 700;
    text-align: center;
    background: #fff;
}

.bbs-list .td_subject {
    font-size: 18px;
}

.bbs-list .td_subject .bo_tit {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bbs-list .bo_notice td {
    background: #e6f8ff !important;
}

.bbs-list .bo_notice .notice_icon {
    background: #333;
    color: #fff;
    padding: 3px 8px;
    border-radius: 0;
    line-height: 1.2;
}

.bbs-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    float: none;
    width: 100%;
    clear: both;
}

.bbs-actions .btn {
    min-width: 80px;
    height: 35px;
    line-height: 35px;
    border: 0;
    border-radius: 0;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.bbs-actions__secondary .btn {
    background: #939393;
    color: #fff;
}

.bbs-actions__primary .btn {
    background: #333;
    color: #fff;
}

.bbs-actions__secondary {
    display: flex;
    justify-content: flex-start;
}

.bbs-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 3px;
}

.bbs-pagination .pg_page,
.bbs-pagination .pg_current {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #bbbcc3;
    margin: 0;
    font-size: 12px;
    background: #fff;
    color: #939393;
    border-radius: 0;
    padding: 0;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
}

.bbs-pagination .pg_current {
    background: #4c4f6f;
    color: #fff;
    font-weight: 700;
    border-color: #bbbcc3;
}

.bbs-pagination .pg_start,
.bbs-pagination .pg_prev,
.bbs-pagination .pg_next,
.bbs-pagination .pg_end {
    background-color: #fff;
    border-color: #bbbcc3;
    position: relative;
    font-size: 0 !important;
    color: transparent !important;
}

/* default.css의 .pg_* 스타일 충돌 방지용 강제 초기화 */
.bbs-pagination .pg_page,
.bbs-pagination .pg_current,
.bbs-pagination .pg_start,
.bbs-pagination .pg_prev,
.bbs-pagination .pg_next,
.bbs-pagination .pg_end {
    background-image: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.bbs-pagination .pg_current {
    font-weight: 700 !important;
}

.bbs-pagination .pg_start::before,
.bbs-pagination .pg_prev::before,
.bbs-pagination .pg_next::before,
.bbs-pagination .pg_end::before {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 8px;
}

.bbs-pagination .pg_start::before {
    background-image: url("../img/bbs-pg-first.svg");
}

.bbs-pagination .pg_prev::before {
    background-image: url("../img/bbs-pg-next.svg");
    transform: rotate(180deg);
}

.bbs-pagination .pg_next::before {
    background-image: url("../img/bbs-pg-next.svg");
}

.bbs-pagination .pg_end::before {
    background-image: url("../img/bbs-pg-last-base.svg");
    transform: rotate(180deg);
}

#bo_list.bbs-list .td_chk,
#bo_list.bbs-list th:first-child {
    width: 50px;
    text-align: center;
}

#bo_list.bbs-list .td_chk,
#bo_list.bbs-list .all_chk {
    border-bottom: 1px solid #939393 !important;
}

#bo_list.bbs-list .td_num2,
#bo_list.bbs-list th:nth-child(2) {
    width: 100px;
    text-align: center;
}

#bo_list.bbs-list .td_subject {
    width: auto;
    padding: 0 30px;
}

#bo_list.bbs-list .td_name,
#bo_list.bbs-list th.bbs-col-author {
    width: 140px;
    text-align: center;
}

#bo_list.bbs-list .td_datetime,
#bo_list.bbs-list th.bbs-col-date {
    width: 140px;
    text-align: center;
}

#bo_list.bbs-list .td_num,
#bo_list.bbs-list th.bbs-col-hit {
    width: 100px;
    text-align: center;
}

/* online inquiry list */
.bbs-online-inquiry .bbs-hero {
    margin-bottom: 30px;
}

.bbs-online-inquiry__contact {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.bbs-online-inquiry__contact-icon {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background: #599034;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bbs-online-inquiry__contact-icon img {
    width: 54px;
    height: 54px;
}

.bbs-online-inquiry__contact-title {
    margin: 0 0 10px;
    font-size: 35px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.bbs-online-inquiry__contact-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.bbs-online-inquiry .bbs-table-wrap {
    border-top: 2px solid #333;
}

.bbs-online-inquiry .td_subject .bo_tit > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#bo_list.bbs-list .all_chk,
#bo_list.bbs-list .td_chk {
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

#bo_list.bbs-list .all_chk label,
#bo_list.bbs-list .td_chk label {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#bo_list.bbs-list .all_chk label span,
#bo_list.bbs-list .td_chk label span {
    float: none;
    width: 15px;
    height: 15px;
    margin: 0;
    border: 1px solid #939393;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
}

#bo_list.bbs-list .all_chk input[type="checkbox"]:checked + label span,
#bo_list.bbs-list .td_chk input[type="checkbox"]:checked + label span {
    background: url("../skin/board/basic/img/chk.png") no-repeat 50% 50% #333;
    border-color: #333;
}

.bbs-online-inquiry__meta {
    display: none;
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.4;
}

.bbs-online-inquiry__meta span {
    margin-left: 10px;
}

.bbs-online-inquiry__lock {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* community gallery list */
.bbs-gallery-list .bbs-hero {
    margin-bottom: 50px;
}

.bbs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 50px 30px;
}

.bbs-gallery-card {
    position: relative;
}

.bbs-gallery-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 297 / 223;
    background: #d9d9d9;
}

.bbs-gallery-card__thumb img {
    display: block;
}

.bbs-gallery-card__thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbs-gallery-card__noimg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bbs-gallery-card__noimg-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.bbs-gallery-card__noimg-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: block;
}

.bbs-gallery-card__title {
    display: block;
    margin-top: 20px;
    padding: 0 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbs-gallery-card__date {
    margin: 15px 0 0;
    padding: 0 10px;
    font-size: 16px;
    line-height: 1;
    color: #939393;
}

.bbs-gallery-card__check {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.bbs-gallery-card__check-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 15px;
    height: 15px;
}

.bbs-gallery-card__check-input {
    position: absolute;
    opacity: 0;
    width: 15px;
    height: 15px;
    margin: 0;
}

.bbs-gallery-card__check-wrap label {
    display: inline-flex;
    width: 15px;
    height: 15px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.bbs-gallery-card__check-wrap label span {
    width: 15px;
    height: 15px;
    border: 1px solid #939393;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
    float: none;
}

.bbs-gallery-card__check-input:checked + label span {
    background: url("../skin/board/basic/img/chk.png") no-repeat 50% 50% #333;
    border-color: #333;
}

/* write skin */
#bo_w.bbs-write {
    max-width: 1600px;
    margin: 0 auto 110px;
}

#bo_w.bbs-write .bbs-header {
    margin-top: 30px;
    margin-bottom: 60px;
}

#bo_w.bbs-write .bbs-header__title {
    margin: 0;
    font-size: 55px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #333;
}

#bo_w.bbs-write .bbs-write__form {
    width: 100% !important;
}

#bo_w.bbs-write .bbs-write__row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #939393;
}

#bo_w.bbs-write .bbs-write__row:first-of-type {
    border-top: 2px solid #333;
}

#bo_w.bbs-write .bbs-write__row--option {
    border-top: 2px solid #333;
}

#bo_w.bbs-write .bbs-write__label {
    width: 220px;
    padding: 29px 40px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    box-sizing: border-box;
}

#bo_w.bbs-write .bbs-write__field {
    flex: 1;
    padding: 15px 25px;
    box-sizing: border-box;
}

#bo_w.bbs-write .bo_v_option {
    margin: 0;
    padding: 0;
}

#bo_w.bbs-write .bo_v_option li {
    margin: 0;
    float: none;
    display: flex;
    align-items: center;
    min-height: 50px;
}

#bo_w.bbs-write .bo_v_option .chk_box input[type="checkbox"] + label span {
    margin-right: 0;
    float: none;
}

#bo_w.bbs-write .bo_v_option .chk_box input[type="checkbox"] + label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 24px;
    line-height: 1;
}

#bo_w.bbs-write .bbs-write__input {
    width: 100%;
    height: 50px;
    border: 1px solid #939393;
    border-radius: 0;
    background: #fff;
    padding: 0 12px;
}

#bo_w.bbs-write .bo_w_tit .frm_input {
    padding-right: 12px;
}

#bo_w.bbs-write .bbs-write__editor-wrap {
    border: 1px solid #939393;
    margin-top: 10px;
    min-height: 324px;
}

#bo_w.bbs-write .bbs-write__editor {
    min-height: 324px;
    margin: 0;
}

#bo_w.bbs-write .bbs-write__editor .frm_textarea,
#bo_w.bbs-write .bbs-write__editor textarea {
    border: 0;
    min-height: 324px;
}

#bo_w.bbs-write .bbs-write__file {
    border: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 50px;
    width: 350px;
    position: relative;
}

#bo_w.bbs-write .bo_w_flie .lb_icon {
    display: none;
}

#bo_w.bbs-write .bbs-write__file-name {
    width: 250px;
    height: 50px;
    border: 1px solid #939393;
    border-right: 0;
    background: #fff;
    padding: 0 10px;
    font-size: 18px;
    color: #333;
    border-radius: 0;
}

#bo_w.bbs-write .bbs-write__file-button {
    width: 100px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #939393;
    background: #c9c9c9;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
}

#bo_w.bbs-write .bo_w_flie .bbs-write__file-input-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 350px;
    height: 50px;
    cursor: pointer;
}

#bo_w.bbs-write .bbs-write__actions {
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

#bo_w.bbs-write .bbs-write__actions .btn {
    min-width: 110px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    border-radius: 0;
}

#bo_w.bbs-write .btn_cancel {
    background: #939393;
    color: #fff;
}

#bo_w.bbs-write .btn_submit {
    background: #333;
    color: #fff;
}

/* online inquiry write */
#bo_w.bbs-write--online .bbs-header {
    margin-top: 130px;
    margin-bottom: 60px;
}

#bo_w.bbs-write--online .bbs-header__title {
    font-size: 55px;
}

#bo_w.bbs-write--online .bbs-write__row:first-of-type {
    border-top: 2px solid #333;
}

#bo_w.bbs-write--online .bbs-online__input {
    width: 400px;
}

#bo_w.bbs-write--online .bbs-online__editor-wrap {
    margin-top: 10px;
}

#bo_w.bbs-write--online .bbs-write__editor-textarea {
    width: 100%;
    min-height: 324px;
    border: 0;
    resize: vertical;
    padding: 20px;
    font-size: 18px;
    line-height: 1.5;
    border-radius: 0;
    box-shadow: none;
}

#bo_w.bbs-write--online .bbs-online__privacy {
    margin-top: 15px;
}

#bo_w.bbs-write--online .bbs-online__privacy-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

#bo_w.bbs-write--online .bbs-online__privacy-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#bo_w.bbs-write--online .bbs-online__privacy-table th,
#bo_w.bbs-write--online .bbs-online__privacy-table td {
    border: 1px solid #939393;
    padding: 8px 10px;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
}

#bo_w.bbs-write--online .bbs-online__privacy-table th {
    background: #f5f5f5;
    font-weight: 700;
}

#bo_w.bbs-write--online .bbs-online__privacy-table td {
    font-weight: 500;
}

#bo_w.bbs-write--online .bbs-online__privacy-desc {
    border: 1px solid #939393;
    padding: 20px;
    margin-top: 10px;
}

#bo_w.bbs-write--online .bbs-online__privacy-desc p {
    font-size: 18px;
    line-height: 1.4;
}

#bo_w.bbs-write--online .bbs-online__privacy-desc p:first-child {
    font-weight: 700;
}

#bo_w.bbs-write--online .bbs-online__agree {
    margin-top: 10px;
}

#bo_w.bbs-write--online .bbs-online__agree label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    padding-left: 0;
}

#bo_w.bbs-write--online .bbs-online__agree .chk_box input[type="checkbox"] + label span,
#bo_w.bbs-write--online .bbs-online__agree input[type="checkbox"] + label span {
    margin: 0;
    float: none;
    position: static;
    top: auto;
    left: auto;
}

.bbs-view {
    max-width: 1600px;
    margin: 0 auto 110px;
    color: #333;
}

.bbs-view-header {
    margin-bottom: 30px;
}

.bbs-view-card {
    border-top: 2px solid #333;
}

.bbs-view-titlebox {
    border-bottom: 1px solid #939393;
    padding: 35px 40px;
    text-align: center;
}

.bbs-view-title {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.bbs-view-meta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
}

.bbs-view-content {
    min-height: 300px;
    padding: 20px;
    border-bottom: 1px solid #b9b9b9;
}

.bbs-view-share {
    display: none;
}

.bbs-view-body {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
}

.bbs-inquiry-fields {
    border-bottom: 1px solid #b9b9b9;
    padding: 20px;
}

.bbs-inquiry-fields__row {
    display: flex;
    align-items: center;
    margin: 0 0 10px;
}

.bbs-inquiry-fields__row:last-child {
    margin-bottom: 0;
}

.bbs-inquiry-fields__row dt {
    width: 140px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.bbs-inquiry-fields__row dd {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.bbs-view-nav {
    /* margin-top: 80px; */
    /* border-top: 1px solid #b9b9b9; */
    border-bottom: 1px solid #b9b9b9;
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
}

.bbs-view-nav__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 45%;
}

.bbs-view-nav__item strong {
    font-size: 18px;
    font-weight: 500;
}

.bbs-view-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bbs-view-nav__label svg {
    flex: 0 0 auto;
}

.bbs-view-nav__item span,
.bbs-view-nav__item a {
    color: #939393;
    font-size: 18px;
    text-decoration: none;
}

.bbs-view-nav__item--next {
    text-align: right;
    align-items: flex-end;
}

.bbs-view-actions {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 10px;
}

.bbs-view-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 110px;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #939393;
}

.bbs-view-actions__left {
    display: flex;
    gap: 4px;
}

.bbs-view-actions__left .btn {
    background: #939393;
}

.bbs-view-actions__center {
    justify-self: center;
}

.bbs-view-actions__center .btn {
    min-width: 200px;
    border-radius: 999px;
    background: #333;
}

.bbs-view-actions__right {
    justify-self: end;
}

.bbs-view-actions__right .btn {
    background: #333;
}

