@charset "utf-8";

#bo_v_con a {overflow-wrap:anywhere;}

.sound_only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.casebook-list,
.casebook-view,
#bo_w {
  color: #4b535d;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.casebook-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(18, 28, 39, .12);
}

.casebook-eyebrow {
  margin: 0 0 10px;
  color: #a77a3e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.casebook-list__head h2 {
  margin: 0 0 10px;
  color: #121c27;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -.055em;
}

.casebook-list__head p:last-child {
  margin: 0;
  font-size: 16px;
}

.casebook-btn {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(18, 28, 39, .2);
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #121c27;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: .25s ease;
}

.casebook-btn:hover {
  border-color: #121c27;
  color: #fff;
  background: #121c27;
}

.casebook-btn--primary {
  border-color: #121c27;
  color: #fff;
  background: #121c27;
}

.casebook-btn--primary:hover {
  border-color: #a77a3e;
  background: #a77a3e;
}

.casebook-categories {
  margin: 34px 0 22px;
}

.casebook-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.casebook-categories a {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid rgba(18, 28, 39, .12);
  border-radius: 99px;
  color: #4b535d;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.casebook-categories a#bo_cate_on,
.casebook-categories a:hover {
  border-color: #121c27;
  color: #fff;
  background: #121c27;
}

.casebook-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
}

.casebook-search {
  display: flex;
  width: min(100%, 470px);
  height: 48px;
  border: 1px solid rgba(18, 28, 39, .14);
  background: #fff;
}

.casebook-search select,
.casebook-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  color: #4b535d;
  background: transparent;
  font-family: inherit;
}

.casebook-search select {
  width: 110px;
  padding: 0 12px;
  border-right: 1px solid rgba(18, 28, 39, .1);
}

.casebook-search input {
  flex: 1;
  padding: 0 15px;
}

.casebook-search button {
  width: 50px;
  border: 0;
  color: #fff;
  background: #121c27;
}

.casebook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.casebook-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 28, 39, .1);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.casebook-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(18, 28, 39, .12);
}

.casebook-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e9edf0;
}

.casebook-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(18, 28, 39, .32));
}

.casebook-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.casebook-card:hover .casebook-card__image img {
  transform: scale(1.045);
}

.casebook-card__notice {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  color: #fff;
  background: #a77a3e;
  font-size: 12px;
  font-weight: 800;
}

.casebook-card__body {
  padding: 27px 27px 25px;
}

.casebook-card__topline,
.casebook-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.casebook-card__topline time {
  color: #8a9096;
  font-size: 12px;
}

.casebook-card__category {
  color: #a77a3e;
  font-size: 12px;
  font-weight: 800;
}

.casebook-card h3 {
  min-height: 58px;
  margin: 15px 0 10px;
  color: #121c27;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.casebook-card h3 a {
  color: inherit;
}

.casebook-card__body > p {
  min-height: 72px;
  margin: 0 0 22px;
  color: #6a7179;
  font-size: 14px;
  line-height: 1.7;
}

.casebook-card__foot {
  padding-top: 18px;
  border-top: 1px solid rgba(18, 28, 39, .09);
  font-size: 13px;
}

.casebook-card__foot a {
  color: #121c27;
  font-weight: 800;
}

.casebook-card__foot span {
  color: #8a9096;
}

.casebook-empty {
  grid-column: 1 / -1;
  padding: 90px 30px;
  text-align: center;
  background: #f5f6f7;
}

.casebook-empty i {
  margin-bottom: 20px;
  color: #a77a3e;
  font-size: 42px;
}

.casebook-empty h3 {
  color: #121c27;
}

.casebook-pagination {
  margin-top: 48px;
  text-align: center;
}

.casebook-pagination .pg_wrap {
  display: inline-block;
}

.casebook-pagination .pg_page,
.casebook-pagination .pg_current {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin: 0 3px;
  border: 1px solid rgba(18, 28, 39, .12);
  align-items: center;
  justify-content: center;
  color: #121c27;
  background: #fff;
}

.casebook-pagination .pg_current,
.casebook-pagination .pg_page:hover {
  border-color: #121c27;
  color: #fff;
  background: #121c27;
}

.casebook-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 32px;
}

.casebook-view {
  max-width: 1040px;
  margin: 0 auto;
}

.casebook-view__header {
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(18, 28, 39, .12);
  text-align: center;
}

.casebook-view__category {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 99px;
  color: #855d2d;
  background: #f3ece2;
  font-size: 12px;
  font-weight: 800;
}

.casebook-view__header h2 {
  max-width: 900px;
  margin: 0 auto 22px;
  color: #121c27;
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.055em;
}

.casebook-view__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: #7b828a;
  font-size: 13px;
}

.casebook-view__images {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.casebook-view__images img,
.casebook-view__content img {
  max-width: 100%;
  height: auto;
}

.casebook-view__content {
  min-height: 280px;
  padding: 48px 5% 64px;
  color: #3f474f;
  font-size: 17px;
  line-height: 1.9;
}

.casebook-view__content h2,
.casebook-view__content h3,
.casebook-view__content h4 {
  margin: 1.6em 0 .65em;
  color: #121c27;
}

.casebook-view__content p {
  margin-bottom: 1.25em;
}

.casebook-files {
  padding: 24px 28px;
  background: #f5f6f7;
}

.casebook-files h3 {
  margin-bottom: 12px;
  color: #121c27;
  font-size: 16px;
}

.casebook-files li + li {
  margin-top: 8px;
}

.casebook-siblings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: rgba(18, 28, 39, .12);
}

.casebook-siblings a {
  display: flex;
  min-height: 110px;
  padding: 25px 28px;
  flex-direction: column;
  justify-content: center;
  color: #121c27;
  background: #f7f8f9;
}

.casebook-siblings span {
  margin-bottom: 6px;
  color: #a77a3e;
  font-size: 12px;
  font-weight: 800;
}

.casebook-actions--view {
  justify-content: space-between;
}

.casebook-actions--view > div {
  display: flex;
  gap: 8px;
}

/* 그누보드 기본 글쓰기 마크업을 Stratify 톤으로 정리합니다. */
#bo_w {
  max-width: 1040px;
  margin: 0 auto;
  padding: 45px;
  border: 1px solid rgba(18, 28, 39, .1);
  background: #fff;
  box-shadow: 0 25px 70px rgba(18, 28, 39, .08);
}

#bo_w .write_div {
  position: relative;
  margin-bottom: 18px;
}

#bo_w .frm_input,
#bo_w select,
#bo_w textarea,
#bo_w .frm_file {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(18, 28, 39, .16);
  color: #121c27;
  background: #fff;
  font-family: inherit;
}

#bo_w textarea {
  min-height: 360px;
  line-height: 1.75;
}

#bo_w .half_input {
  width: calc(50% - 5px);
}

#bo_w .bo_w_info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#bo_w .bo_v_option {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 15px 18px;
  background: #f5f6f7;
  list-style: none;
}

#bo_w .bo_w_link,
#bo_w .file_wr {
  display: flex;
  align-items: center;
  gap: 10px;
}

#bo_w .lb_icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #121c27;
}

#bo_w .btn_confirm {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

#bo_w .btn_confirm .btn {
  display: inline-flex;
  min-width: 130px;
  min-height: 50px;
  border: 1px solid #121c27;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

#bo_w .btn_cancel {
  color: #121c27;
  background: #fff;
}

#bo_w .btn_submit {
  color: #fff;
  background: #121c27;
}

#bo_w #btn_autosave {
  margin-top: 8px;
  border: 0;
  color: #855d2d;
  background: transparent;
  font-size: 12px;
}

#bo_w #autosave_pop {
  display: none;
  padding: 20px;
  border: 1px solid rgba(18, 28, 39, .15);
  background: #fff;
}

@media (max-width: 991px) {
  .casebook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .casebook-list__head,
  .casebook-meta-row { align-items: stretch; flex-direction: column; }
  .casebook-search { width: 100%; }
  .casebook-grid { grid-template-columns: 1fr; }
  .casebook-card h3,
  .casebook-card__body > p { min-height: 0; }
  .casebook-siblings { grid-template-columns: 1fr; }
  .casebook-actions--view { align-items: stretch; flex-direction: column; }
  .casebook-actions--view > div { flex-wrap: wrap; }
  #bo_w { padding: 25px 18px; }
  #bo_w .half_input { width: 100%; }
}
