/* ===== ms_faq 스킨 스타일 ===== */

#bo_list {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: 'KoPubWorldDotum', sans-serif;
}

.cs-breadcrumbs {
    font-size: 13px;
    color: #888888;
    padding: 20px 0 16px;
}
.cs-breadcrumbs a { color: #888888; text-decoration: none; }
.cs-breadcrumbs a:hover { color: #7F6A60; }
.cs-breadcrumbs span { margin: 0 6px; }

.cs-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    border-bottom: 2px solid #7F6A60;
    margin-bottom: 20px;
}
.cs-board-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

/* 카테고리 탭 */
.faq-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.faq-cat-tab {
    padding: 7px 16px;
    border: 1px solid #DDDDDD;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    background: #fff;
    text-decoration: none;
    transition: all 0.15s;
}
.faq-cat-tab:hover,
.faq-cat-tab.active {
    background: #7F6A60;
    border-color: #7F6A60;
    color: #fff;
}

/* 아코디언 FAQ */
.faq-list {
    border-top: 1px solid #DDDDDD;
}
.faq-item {
    border-bottom: 1px solid #DDDDDD;
    overflow: hidden;
}
.faq-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    cursor: pointer;
    background: #fff;
    transition: background 0.15s;
    user-select: none;
}
.faq-item-header:hover { background: #faf8f7; }
.faq-item.open .faq-item-header { background: #fdf9f8; }

.faq-q-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #7F6A60;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.faq-q-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}
.faq-item.open .faq-q-text { color: #7F6A60; }
.faq-cat-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    background: #F3EEEC;
    color: #7F6A60;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
    margin-top: 3px;
}
.faq-toggle-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #888;
    transition: transform 0.25s;
    margin-top: 2px;
}
.faq-item.open .faq-toggle-icon { transform: rotate(45deg); color: #7F6A60; }

.faq-item-body {
    display: none;
    padding: 0 16px 20px 52px;
    background: #fdf9f8;
}
.faq-item.open .faq-item-body { display: block; }
.faq-a-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #C3ACA2;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 24px;
    margin-right: 8px;
    vertical-align: top;
    flex-shrink: 0;
}
.faq-a-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.faq-a-content p { margin: 0; }

.faq-empty {
    padding: 60px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #DDDDDD;
}

/* 검색 */
.cs-search-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.cs-search-wrap select,
.cs-search-wrap input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
}
.cs-search-wrap input[type="text"] { width: 220px; }
.cs-search-btn {
    padding: 8px 16px;
    background: #7F6A60;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.cs-search-btn:hover { background: #6a574e; }

/* 보기 */
#bo_v {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: 'KoPubWorldDotum', sans-serif;
}
.cs-v-breadcrumbs {
    font-size: 13px;
    color: #888;
    padding: 20px 0 14px;
}
.cs-v-breadcrumbs a { color: #888; text-decoration: none; }
.cs-v-breadcrumbs a:hover { color: #7F6A60; }
.cs-v-breadcrumbs span { margin: 0 6px; }
.cs-v-header {
    border-bottom: 2px solid #7F6A60;
    padding-bottom: 16px;
}
.cs-v-title { font-size: 20px; font-weight: 700; color: #333; line-height: 1.5; }
.cs-v-content {
    padding: 30px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    border-bottom: 1px solid #DDDDDD;
    min-height: 150px;
}
.cs-v-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.cs-btn-list {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: #fff;
}
.cs-btn-list:hover { border-color: #7F6A60; color: #7F6A60; }

/* ===== 글쓰기 폼 (write.skin.php) ===== */
#bo_w {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: 'KoPubWorldDotum', sans-serif;
}
.cs-write-breadcrumbs {
    font-size: 13px;
    color: #888888;
    padding: 20px 0 16px;
}
.cs-write-breadcrumbs a { color: #888; text-decoration: none; }
.cs-write-breadcrumbs a:hover { color: #7F6A60; }
.cs-write-breadcrumbs span { margin: 0 6px; }
.cs-write-header {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    padding-bottom: 16px;
    border-bottom: 2px solid #7F6A60;
    margin-bottom: 24px;
}
.cs-form-row { margin-bottom: 18px; }
.cs-form-label { display: block; font-size: 13px; font-weight: 700; color: #555; margin-bottom: 7px; }
.cs-required { color: #DE5757; }
.cs-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.cs-input:focus { outline: none; border-color: #7F6A60; }
.cs-input::placeholder { color: #BBBBBB; }
.cs-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}
.cs-select.cs-select-sm { max-width: 300px; }
.cs-select:focus { outline: none; border-color: #7F6A60; }
.cs-options-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: #FAFAFA;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
}
.cs-opt-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}
.cs-opt-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #7F6A60; margin: 0; }
.cs-editor-wrap {
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    overflow: hidden;
    min-height: 300px;
}
.cs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #DDDDDD;
}
.cs-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 42px;
    background: #fff;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.cs-btn-cancel:hover { border-color: #7F6A60; color: #7F6A60; }
.cs-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 42px;
    background: #7F6A60;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.cs-btn-submit:hover { background: #6a574e; }
.cs-btn-submit:disabled { background: #C3ACA2; cursor: not-allowed; }
