/* R365-BOARD: 리딩365 g5 게시판(Miso-Basic 스킨: 목록·보기·쓰기·댓글)과 g5 안쪽 페이지 제목 띠·왼쪽 메뉴를 새 디자인으로.
   스킨 파일은 건드리지 않고 이 CSS 로만 덮는다(마크업·기능 그대로). 색·모양은 소개 페이지(css/style.css)와 같다:
   남색 #2b3387 / #1d2361 · 코랄 #ff6f6f · 선 #e7e9f2 · 바탕 #f7f8fc · 글자 #1f2333 / #4d5166 / #767b91 · Pretendard. px 단위.
   thema/Miso-Simple/head.php 가 r365-header.php 를 통해 불러온다. */

/* ---- 페이지 제목 띠 (사진 → 남색 띠) ---------------------------------------- */
.is-page .page-title { background-image: none !important; background: linear-gradient(135deg, #1d2361, #2b3387) !important; min-height: 0 !important; height: auto !important; }
.is-page .page-title .at-cover, .is-page .page-title .at-raster, .is-page .page-title .miso-mask, .is-page .page-title .mask-zone { display: none !important; }
/* 제목 글자가 없는 페이지(게시판 등)는 얇은 띠만 남고, 제목이 있는 페이지(나의 강의실 등)는 제목이 들어간 띠가 된다 */
.is-page .page-title::before { content: ''; display: block; height: 6px; }
.is-page .page-title .at-boxed { padding-top: 0; padding-bottom: 0; }
.is-page .page-title .at-tbl { display: block !important; height: auto !important; min-height: 0 !important; }
.is-page .page-title .at-title { display: block !important; padding: 0 !important; width: auto !important; height: auto !important; }
.is-page .page-title .at-title h2 { margin: 0; padding: 26px 0 24px; font-family: 'Pretendard', 'Malgun Gothic', sans-serif !important; font-size: 26px; font-weight: 800; color: #fff !important; }
.is-page .page-title .at-title p { margin: 0; padding: 34px 0 0; font-family: 'Pretendard', 'Malgun Gothic', sans-serif !important; font-size: 14px; color: #c7cbef !important; }
.is-page .at-body { padding-top: 6px; }

/* 표준 분양 게시판 스킨(elamp: notice · writingclass)은 자체 제목·툴바를 가진 넓은 화면이라 제목 띠를 쓰지 않는다(핑거스·크리에잇과 같은 모양) */
body:has(.elamp-toolbar) .page-title, body:has(.elamp-view-header) .page-title { display: none !important; }
/* 표준 로그인·회원가입 스킨(op30-auth)도 자체 제목이 있어 띠를 쓰지 않는다 */
body:has(.op30-auth) .page-title { display: none !important; }

/* ---- 왼쪽 메뉴(page-sidemenu) ---------------------------------------------- */
.is-page .page-sidemenu { border: 1px solid #e7e9f2; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(31, 35, 51, 0.06); }
.is-page .page-sidemenu .psm-head { background: #2b3387 !important; color: #fff !important; font-family: 'Pretendard', 'Malgun Gothic', sans-serif !important; font-weight: 800; font-size: 17px; letter-spacing: 0; padding: 16px 18px; text-align: center; }
.is-page .page-sidemenu .psm-body a { font-family: 'Pretendard', 'Malgun Gothic', sans-serif !important; font-size: 14px; font-weight: 600; color: #4d5166 !important; padding: 11px 18px; border-color: #e7e9f2; }
.is-page .page-sidemenu .psm-body .on > a, .is-page .page-sidemenu .psm-body a:hover { color: #2b3387 !important; background: #eef0fb !important; font-weight: 800; }

/* ---- 게시판 공통 ------------------------------------------------------------ */
.list-wrap, .view-wrap, .write-wrap, .amina-header { font-family: 'Pretendard', 'Malgun Gothic', sans-serif; color: #1f2333; word-break: keep-all; }

/* 제목줄(“공지사항” + 위치 표시) */
.amina-header { margin-bottom: 20px !important; }
.amina-header .div-title-underbar { border-bottom: 0 !important; }
.amina-header .div-title-underbar .div-title-underbar-bold { border: 0 !important; font-size: 24px; font-weight: 800; color: #1d2361; padding: 0; }
.amina-header .div-title-underbar b { font-weight: 800; }
.amina-header .header-breadcrumb { color: #767b91 !important; font-size: 13px; }

/* ---- 목록 ------------------------------------------------------------------- */
.list-board { margin-bottom: 18px; border: 1px solid #e7e9f2; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(31, 35, 51, 0.06); }
.list-board .list-head { background: #f7f8fc !important; border: 0 !important; border-bottom: 1px solid #e7e9f2 !important; }
.list-board .list-head > span, .list-board .list-head > span a { font-size: 13px; font-weight: 700; color: #767b91 !important; text-align: center; padding-top: 12px; padding-bottom: 12px; }
.list-board .list-head .wr-subject { text-align: left; padding-left: 18px; }
.list-board .list-body li { border-bottom: 1px solid #f0f1f7 !important; }
.list-board .list-body li:last-child { border-bottom: 0 !important; }
.list-board .list-body li:hover { background: #f7f8fc !important; color: #1f2333; }
.list-board .list-body li.bg-light { background: #fbfbfe !important; }
.list-board .list-body li > div { color: #767b91; font-size: 13px; height: 48px; padding: 10px 0; }
.list-board .list-body .wr-subject { padding-left: 18px; }
.list-board .list-body .wr-subject .item-subject { color: #1f2333 !important; font-size: 15px; font-weight: 600; }
.list-board .list-body .wr-subject .item-subject b { font-weight: 600; }
.list-board .list-body li.bg-light .wr-subject .item-subject, .list-board .list-body li.bg-light .wr-subject .item-subject b { font-weight: 800; }
.list-board .list-body li:hover .item-subject { color: #2b3387 !important; }
.list-board .list-body .wr-name { font-weight: 600; padding-left: 0; text-align: center; }
.list-board .wr-comment { color: #ff6f6f; font-weight: 700; }

/* 공지 아이콘(옛 빨간 알림 gif) → 코랄 알약 */
.list-board .wr-notice { width: auto !important; height: auto !important; background: #fff0f0 !important; color: #ef4f4f; border: 1px solid #ffd0d0; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; line-height: 18px; text-indent: 0; overflow: visible; }
.list-board .wr-notice::before { content: '공지'; }

/* 글 없음 */
.list-board .wr-none { color: #767b91; padding: 56px 0; }

/* 목록 아래 버튼(검색·정렬·글쓰기) */
.list-btn .btn, .view-btn .btn, .write-wrap .btn, .list-wrap .btn-gray, .list-wrap .btn-black, .list-wrap .btn-color { border-radius: 999px !important; font-family: 'Pretendard', 'Malgun Gothic', sans-serif; font-weight: 700; font-size: 13px; padding: 8px 18px; border: 1.5px solid #e7e9f2 !important; background: #fff !important; color: #2b3387 !important; box-shadow: none !important; }
.list-btn .btn:hover, .view-btn .btn:hover, .write-wrap .btn:hover { border-color: #2b3387 !important; background: #fff !important; }
.list-btn .btn-color, .view-btn .btn-color, .write-wrap .btn-color, .write-wrap .btn-submit, .write-wrap .btn-primary, .list-btn .btn-primary { background: #2b3387 !important; border-color: #2b3387 !important; color: #fff !important; }
.list-btn .btn-color:hover, .write-wrap .btn-color:hover, .write-wrap .btn-primary:hover { background: #1d2361 !important; border-color: #1d2361 !important; }
.list-btn .sort-drop { border: 1px solid #e7e9f2; border-radius: 14px; box-shadow: 0 16px 40px rgba(31, 35, 51, 0.12); padding: 6px; }
.list-btn .sort-drop a { border-radius: 10px; font-size: 13px; font-weight: 600; color: #4d5166 !important; }
.list-btn .sort-drop a:hover { background: #eef0fb !important; color: #2b3387 !important; }

/* 페이지 번호 */
.pagination > li > a, .pagination > li > span { border: 1px solid #e7e9f2 !important; margin: 0 3px; border-radius: 10px !important; color: #4d5166 !important; font-weight: 600; min-width: 36px; text-align: center; background: #fff !important; }
.pagination > li > a:hover { background: #eef0fb !important; color: #2b3387 !important; border-color: #2b3387 !important; }
.list-wrap .pagination .active a, .view-wrap .pagination .active a, .pagination > .active > a, .pagination > .active > span { background: #2b3387 !important; border-color: #2b3387 !important; color: #fff !important; }

/* 검색 모달 · 입력 */
.list-wrap .form-control, .view-wrap .form-control, .write-wrap .form-control { border: 1px solid #e7e9f2; border-radius: 10px; box-shadow: none; font-family: 'Pretendard', 'Malgun Gothic', sans-serif; color: #1f2333; }
.list-wrap .form-control:focus, .view-wrap .form-control:focus, .write-wrap .form-control:focus { border-color: #2b3387; box-shadow: 0 0 0 3px rgba(43, 51, 135, 0.12); }
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 16px 40px rgba(31, 35, 51, 0.12); }

/* ---- 보기 ------------------------------------------------------------------- */
.view-wrap h1 { color: #1d2361 !important; font-weight: 800 !important; padding: 0 !important; }
.view-wrap .panel, .view-wrap .panel-default { border: 1px solid #e7e9f2; border-radius: 18px; box-shadow: none; overflow: hidden; }
.view-wrap .view-head { background: #f7f8fc; }
.view-wrap .view-head .list-group-item { background: transparent; border-color: #e7e9f2; color: #767b91; font-size: 13px; }
.view-wrap .view-content { color: #1f2333; line-height: 1.85; font-size: 15px; padding-bottom: 28px; }
.view-wrap .div-title-underbar { border-bottom: 0; }
.view-wrap .comment-box { border: 1px solid #e7e9f2; border-radius: 14px; background: #f7f8fc; }
.view-wrap .comment-content .comment-cell.comment-submit { background: #2b3387; color: #fff; border: 0; border-radius: 0 10px 10px 0; font-weight: 700; }
.view-wrap .comment-media .media { border-top-color: #f0f1f7; }

/* ---- 쓰기 ------------------------------------------------------------------- */
.write-wrap label { color: #4d5166; font-weight: 700; }
.write-wrap h2 { color: #1d2361; font-size: 16px; font-weight: 800; }

/* ---- 모바일 ----------------------------------------------------------------- */
@media (max-width: 768px) {
  .list-board { border-radius: 14px; }
  .list-board .list-body li > div { height: auto; padding: 12px 0; }
  .list-board .list-body .wr-subject { padding: 0 14px; }
  .list-board .list-body .item-details { color: #767b91; }
  .amina-header .div-title-underbar .div-title-underbar-bold { font-size: 20px; }
  .is-page .page-title::after { height: 12px; }
}

/* ---- 회원정보 수정 전 비밀번호 확인(member_confirm) — 표준 로그인 카드(op30-auth) 모양 ------------------ */
/* 표준 스킨도 이 화면은 옛 모양 그대로라(member_confirm.skin.php 는 표준과 같은 파일) 스킨은 두고 CSS 로만 맞춘다. 값은 표준 style.css 의 .op30-auth 와 같다. */
body:has(form[name="fmemberconfirm"]) .page-title { display: none !important; }
.form-box:has(form[name="fmemberconfirm"]) { background: #fff; border: 1.5px solid #E2E8F0; border-radius: 24px; box-shadow: 0 20px 50px -32px rgba(15, 23, 42, .25); overflow: hidden; margin: 56px 0 20px; }
.form-box:has(form[name="fmemberconfirm"]) .form-header { background: linear-gradient(135deg, #F0FDFA, #ECFEFF); border-bottom: 1px solid #CCFBF1; padding: 20px 24px; text-align: center; }
.form-box:has(form[name="fmemberconfirm"]) .form-header h2 { font-family: 'Jua', 'Pretendard Variable', Pretendard, sans-serif; font-weight: 400; font-size: 20px; color: #0F766E; margin: 0; }
.form-box:has(form[name="fmemberconfirm"]) .form-header h2 i { color: #14B8A6; }
.form-box:has(form[name="fmemberconfirm"]) .form-body { padding: 26px 24px; }
.form-box:has(form[name="fmemberconfirm"]) .form-body p { font-size: 14px; line-height: 1.7; color: #475569; }
.form-box:has(form[name="fmemberconfirm"]) .form-body p strong { color: #1E293B; }
.form-box:has(form[name="fmemberconfirm"]) .form-body label { color: #1E293B; font-weight: 700; }
.form-box:has(form[name="fmemberconfirm"]) .form-control { border-radius: 12px !important; border: 1.5px solid #CBD5E1 !important; padding: 9px 14px !important; height: auto !important; box-shadow: none !important; transition: border-color .2s, box-shadow .2s; }
.form-box:has(form[name="fmemberconfirm"]) .form-control:focus { border-color: #14B8A6 !important; box-shadow: 0 0 0 3px rgba(20, 184, 166, .15) !important; }
.form-box:has(form[name="fmemberconfirm"]) .btn-color { background: linear-gradient(135deg, #14B8A6, #84CC16) !important; border: none !important; color: #fff !important; border-radius: 14px !important; padding: 12px 44px !important; font-weight: 800; width: 100% !important; margin-top: 10px; transition: transform .2s, box-shadow .2s; }
.form-box:has(form[name="fmemberconfirm"]) .btn-color:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(20, 184, 166, .7); }
.row:has(form[name="fmemberconfirm"]) + .text-center .btn-black { background: #E2E8F0 !important; color: #475569 !important; border: none !important; border-radius: 10px !important; padding: 8px 16px !important; }
.row:has(form[name="fmemberconfirm"]) + .text-center .btn-black:hover { background: #CBD5E1 !important; color: #1E293B !important; }
