/* 기존 bbsPress css 파일을 찾거나 수정하기 어렵기 때문에
여기에 커스텀용 css를 추가하였다.
bbPress 관련 사용되는 css 파일들이 bbPress 업데이트에 따라 자동으로 변동되는 경우가 있어
코드 유지를 위해 따로 css 파일을 작성하였다.
thim-style-inline-css 파일이 가장 마지막에 로드되어 !important를 사용해야할 수 도 있습니다.
*/

/*게시판 공용 파트*/
/*경로 표시 게시판 리스트 링크 제거*/
.bbp-breadcrumb .bbp-breadcrumb-root {display: none !important;}
#main-content > section > div.top_heading_out > div.breadcrumbs-wrapper > div > div > p > span:nth-child(2) {display: none !important;}

/* 게시글 리스트 파트 */
/* 게시글 리스트 출력 */
article.type-forum #bbpress-forums .bbp-topic-num { width: 5% !important; text-align: center; }
article.type-forum #bbpress-forums .bbp-topic-title { width: 55% !important; padding-left: 15px; }
article.type-forum #bbpress-forums .bbp-topic-author { width: 15% !important; text-align: center; }
article.type-forum #bbpress-forums .bbp-topic-freshness { width: 25% !important; text-align: center; }
article.type-forum .bbp-topic-form {display: none;}
/* 비회원 새글 작성 로그인 필요 링크 */
article.type-forum #bbpress-forums .bbp-no-topic { display: none !important; }
/* 검색창 과 글목록 붙이기 */
article.type-forum #bbpress-forums .bbp-topics { margin: 0 0 10px 0 !important; }
/* 게시글 파트 */
/* 게시글 내용 디자인 수정 */
article.type-topic #bbpress-forums .bbp-topic-content { margin-left: 0 !important; }
/* 게시글 에서 비회원일경우 새 댓글 작성 로그인 안내 비활성화 */
article.type-topic #bbpress-forums .bbp-no-reply { display: none; }
/* 영상 관련 길이 처리 */
article.type-topic #bbpress-forums .bbp-topic-content .elementor-open-inline { aspect-ratio: 16 / 9 !important; width: 100% !important; max-width: 1000px; margin: 0 auto; }
article.type-topic #bbpress-forums .bbp-topic-content .elementor-open-inline iframe { width: 100% !important; height: 100% !important; }
/* 게시글 이전 다음 글, 목록 파트 */
article.type-topic .bbp-navigation-wrapper { margin: 40px 0; padding-top: 20px; border-top: 2px solid #eee; }
article.type-topic .bbp-post-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
article.type-topic .nav-item { flex: 1; }
article.type-topic .nav-item a { text-decoration: none; color: #333; font-size: 14px; display: block; transition: 0.2s; }
article.type-topic .nav-item.prev { text-align: left; }
article.type-topic .nav-item.next { text-align: right; }
article.type-topic .nav-item.list { text-align: center; flex: 0 0 auto; }
article.type-topic .nav-label { display: block; font-size: 11px; color: #999; text-transform: uppercase; margin-bottom: 3px; }
article.type-topic .nav-title { font-weight: 600; color: #0073aa; }
article.type-topic .nav-item a:hover .nav-title { text-decoration: underline; color: #005a87; }
article.type-topic .btn-list { display: inline-block; padding: 8px 20px; background-color: #555; color: #fff !important; border-radius: 4px; font-weight: bold; font-size: 13px; white-space: nowrap; }
article.type-topic .btn-list:hover { background-color: #222; }
/*게시글 글자 크기 조정*/
.bbp-topic-content,
.bbp-reply-content {
    font-size: 18px; /* 원하는 크기로 조절 (예: 18px, 1.1rem 등) */
    line-height: 1.6;           /* 가독성을 위한 줄 간격 */
    margin-bottom: 15px;        /* 문단 간의 간격 */
}

/* 모바일 대응 */
@media (max-width: 600px) {
    article.type-topic .nav-title { display: none; }
    article.type-topic .nav-label { font-size: 13px; color: #0073aa; }
}

/* 페이지 미니 게시판 파트 */
/* 공통 display : none 처리 */
/* 검색 폼, 헤더, 푸터, 페이지네이션, 글쓰기 폼 숨기기 */
div[data-elementor-type="wp-page"] .bbp-search-form-container,
div[data-elementor-type="wp-page"] .bbp-header,
div[data-elementor-type="wp-page"] .bbp-footer,
div[data-elementor-type="wp-page"] .bbp-pagination,
div[data-elementor-type="wp-page"] .bbp-topic-form,
div[data-elementor-type="wp-post"] .bbp-search-form-container,
div[data-elementor-type="wp-post"] .bbp-header,
div[data-elementor-type="wp-post"] .bbp-footer,
div[data-elementor-type="wp-post"] .bbp-pagination,
div[data-elementor-type="wp-post"] .bbp-topic-form {display: none;}
/* 숫자 및 작성자 정보 강제 숨기기 */
div[data-elementor-type="wp-page"] .bbp-topic-num,
div[data-elementor-type="wp-page"] .bbp-topic-author,
div[data-elementor-type="wp-post"] .bbp-topic-num,
div[data-elementor-type="wp-post"] .bbp-topic-author {display: none !important;}
/*공통 디자인 처리*/
div[data-elementor-type="wp-post"] .bbp-body li,
div[data-elementor-type="wp-page"] .bbp-body li {float: none !important;width: 100% !important;text-align: left !important;}
div[data-elementor-type="wp-post"] .bbp-body li.bbp-topic-freshness,
div[data-elementor-type="wp-page"] .bbp-body li.bbp-topic-freshness {margin-top: 10px !important;}

