.bbs-content-card {
  background: #fff;
}

.bbs-content-card .board > h1 {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.bbs-content-card .btn-primary {
  border-color: #177848;
  background: #177848;
}

.bbs-content-card .btn-primary:hover,
.bbs-content-card .btn-primary:focus {
  border-color: #0f5f38;
  background: #0f5f38;
}

.bbs-content-card .search_box {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #dbe8e1;
  border-radius: 8px;
  background: #f8fbf9;
}

.bbs-content-card .search_box ul {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbs-content-card .search_box .form-control {
  height: 40px;
  width: 100%;
  border-radius: 8px;
  border-color: #c9d9d1;
  font-size: 14px;
}

.bbs-content-card .search_box input[name="searchWrd"] {
  min-width: 0;
}

@media (max-width: 768px) {
  .bbs-content-card .search_box {
    padding: 12px;
  }

  .bbs-content-card .search_box ul {
    display: grid;
    grid-template-columns: minmax(74px, 0.8fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 6px;
  }

  .bbs-content-card .search_box li,
  .bbs-content-card .search_box li:first-child,
  .bbs-content-card .search_box li:last-child {
    width: auto;
    min-width: 0;
  }

  .bbs-content-card .search_box li:last-child {
    display: grid;
    grid-template-columns: minmax(68px, 1fr) auto auto;
    gap: 6px;
  }

  .bbs-content-card .search_box select,
  .bbs-content-card .search_box input[type="text"] {
    min-width: 0;
    width: 100%;
  }

  .bbs-content-card .search_box input.btn,
  .bbs-content-card .search_box a.btn {
    width: auto;
    min-width: 52px;
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
  }
}

.bbs-content-card input.btn,
.bbs-content-card a.btn {
  height: 40px;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.bbs-normal-card .board_list {
  overflow: hidden;
  border: 0;
  border-top: 2px solid #177848;
  border-bottom: 1px solid #dbe8e1;
  font-size: 15px;
}

.bbs-normal-card .board_list.table > thead > tr > th {
  padding: 16px 10px;
  border-right: 0;
  border-left: 0;
  background: #f3f8f5;
  color: #173f2c;
  font-size: 14px;
  letter-spacing: 0;
}

.bbs-normal-card .board_list.table > thead > tr > th.board_th_link {
  font-weight: 400;
  text-align: left;
}

.bbs-normal-card .board_list.table > tbody > tr > td {
  padding: 15px 10px;
  border-right: 0;
  border-left: 0;
  border-color: #e6eee9;
  color: #253b32;
  text-align: center;
}

.bbs-normal-card .board_list.table > tbody > tr:hover > td {
  background: #fbfdfb;
}

.bbs-normal-card .board_list .left,
.bbs-normal-card .board_list .bold {
  text-align: left;
  font-weight: 400;
}

.bbs-normal-card .board_list td > form {
  min-width: 0;
  margin: 0;
}

.bbs-normal-card .board_list input[type="submit"] {
  min-width: 0;
  padding: 0;
  border: 0 !important;
  background: transparent;
  color: #12251f;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.bbs-normal-card .board_list input[type="submit"]:hover,
.bbs-normal-card .board_list input[type="submit"]:focus {
  color: #177848;
  text-decoration: underline;
}

.bbs-attach-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #177848;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.bbs-normal-card .board_list .link.has-attach input[type="submit"] {
  max-width: calc(100% - 24px);
}

.bbs-gallery-title .bbs-attach-icon {
  margin-right: 0;
}

.bbs-notice-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.bbs-notice-item {
  margin: 0;
}

.bbs-notice-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d9e8df;
  border-radius: 8px;
  background: #f8fcfa;
  color: #18362a;
  text-align: left;
}

.bbs-notice-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  text-align: left;
}

.bbs-notice-link span:last-child {
  color: #6a7a72;
  font-size: 13px;
}

.bbs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #177848;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.bbs-gallery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bbs-gallery-item form {
  height: 100%;
  margin: 0;
}

.bbs-gallery-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe8e1;
  border-radius: 8px;
  background: #fff;
  color: #1b332a;
  text-align: left;
  box-shadow: 0 10px 24px rgba(24, 61, 45, 0.07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bbs-gallery-link:hover,
.bbs-gallery-link:focus {
  border-color: #177848;
  box-shadow: 0 16px 30px rgba(24, 61, 45, 0.12);
  transform: translateY(-2px);
}

.bbs-gallery-link.is-disabled,
.bbs-gallery-link:disabled {
  cursor: default;
  transform: none;
}

.bbs-gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #edf5f1;
}

.bbs-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bbs-gallery-noimg {
  color: #7e948a;
  font-size: 42px;
}

.bbs-gallery-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 18px 18px;
}

.bbs-gallery-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: #10251e;
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bbs-gallery-title i {
  margin-right: 4px;
  color: #177848;
}

.bbs-gallery-meta {
  color: #6a7a72;
  font-size: 13px;
  line-height: 1.45;
}

.bbs-empty {
  grid-column: 1 / -1;
  padding: 44px 20px;
  border: 1px solid #dbe8e1;
  border-radius: 8px;
  background: #f8fbf9;
  color: #566a60;
  text-align: center;
  font-weight: 800;
}

.bbs-content-card .pagination {
  margin: 28px 0 0;
}

.bbs-content-card .pagination ul {
  gap: 6px;
}

.bbs-content-card .pagination a,
.bbs-content-card .pagination strong,
.bbs-content-card .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d3e0d9;
  border-radius: 8px;
  background: #fff;
  color: #33453d;
  font-weight: 800;
  text-decoration: none;
}

.bbs-content-card .pagination strong,
.bbs-content-card .pagination .active,
.bbs-content-card .pagination .current a {
  border-color: #177848;
  background: #177848;
  color: #fff;
}

.bbs-content-card .pagination li.first a,
.bbs-content-card .pagination li.first span,
.bbs-content-card .pagination li.prev a,
.bbs-content-card .pagination li.prev span,
.bbs-content-card .pagination li.next a,
.bbs-content-card .pagination li.next span,
.bbs-content-card .pagination li.last a,
.bbs-content-card .pagination li.last span {
  position: relative;
  width: 38px;
  min-width: 38px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.bbs-content-card .pagination li.first a::before,
.bbs-content-card .pagination li.first span::before,
.bbs-content-card .pagination li.prev a::before,
.bbs-content-card .pagination li.prev span::before,
.bbs-content-card .pagination li.next a::before,
.bbs-content-card .pagination li.next span::before,
.bbs-content-card .pagination li.last a::before,
.bbs-content-card .pagination li.last span::before {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #33453d;
  font-family: "Font Awesome 6 Free";
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.bbs-content-card .pagination li.first a::before,
.bbs-content-card .pagination li.first span::before {
  content: "\f100";
}

.bbs-content-card .pagination li.prev a::before,
.bbs-content-card .pagination li.prev span::before {
  content: "\f104";
}

.bbs-content-card .pagination li.next a::before,
.bbs-content-card .pagination li.next span::before {
  content: "\f105";
}

.bbs-content-card .pagination li.last a::before,
.bbs-content-card .pagination li.last span::before {
  content: "\f101";
}

.bbs-content-card .pagination .is-mobile-hidden {
  display: none !important;
}

.bbs-content-card .bbs-mobile-page-state {
  display: none;
}

@media (max-width: 1100px) {
  .bbs-gallery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .bbs-content-card .search_box ul {
    grid-template-columns: minmax(74px, 0.8fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 6px;
  }

  .bbs-content-card .search_box li,
  .bbs-content-card .search_box li:first-child,
  .bbs-content-card .search_box li:last-child {
    width: auto;
    min-width: 0;
  }

  .bbs-content-card .search_box li:last-child {
    display: grid;
    grid-template-columns: minmax(68px, 1fr) auto auto;
    gap: 6px;
  }

  .bbs-content-card .search_box li,
  .bbs-content-card .search_box select,
  .bbs-content-card .search_box input[name="searchWrd"] {
    width: 100%;
    min-width: 0;
  }

  .bbs-content-card .search_box input.btn,
  .bbs-content-card .search_box a.btn {
    width: auto;
    min-width: 52px;
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
  }

  .bbs-content-card .search_box a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bbs-content-card .search_box li {
    min-width: 0;
  }

  .bbs-normal-card .board {
    overflow-x: auto;
  }

  .bbs-normal-card .board_list {
    min-width: 720px;
  }

  .bbs-notice-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .bbs-notice-link span:last-child {
    grid-column: 2;
  }
}

@media (max-width: 340px) {
  .bbs-content-card .search_box ul {
    grid-template-columns: 1fr;
  }

  .bbs-content-card .search_box li:last-child {
    grid-template-columns: minmax(80px, 1fr) auto auto;
  }

  .bbs-content-card .search_box select {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .bbs-gallery-list {
    grid-template-columns: 1fr;
  }

  .bbs-content-card .pagination ul {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .bbs-content-card .pagination a,
  .bbs-content-card .pagination strong,
  .bbs-content-card .pagination span {
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1;
  }

  .bbs-content-card .pagination li:not(.first):not(.prev):not(.next):not(.last):not(.bbs-mobile-page-state) {
    display: none;
  }

  .bbs-content-card .pagination li.first {
    order: 1;
  }

  .bbs-content-card .pagination li.prev {
    order: 2;
  }

  .bbs-content-card .pagination .bbs-mobile-page-state {
    display: flex;
    order: 3;
  }

  .bbs-content-card .pagination li.next {
    order: 4;
  }

  .bbs-content-card .pagination li.last {
    order: 5;
  }

  .bbs-content-card .pagination .bbs-mobile-page-state span {
    min-width: 60px;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-color: #177848;
    background: #177848;
    color: #fff;
    font-weight: 900;
  }

  .bbs-content-card .pagination li.first a,
  .bbs-content-card .pagination li.prev a,
  .bbs-content-card .pagination li.next a,
  .bbs-content-card .pagination li.last a {
    position: relative;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .bbs-content-card .pagination li.first a::before,
  .bbs-content-card .pagination li.prev a::before,
  .bbs-content-card .pagination li.next a::before,
  .bbs-content-card .pagination li.last a::before {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #33453d;
    font-family: "Font Awesome 6 Free";
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  .bbs-content-card .pagination li.first a::before {
    content: "\f100";
  }

  .bbs-content-card .pagination li.prev a::before {
    content: "\f104";
  }

  .bbs-content-card .pagination li.next a::before {
    content: "\f105";
  }

  .bbs-content-card .pagination li.last a::before {
    content: "\f101";
  }
}

/* 2026 board skin refresh */
.bbs-content-card,
#content_area.bbs-legacy-write .content {
  color: #253b32;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

.bbs-content-card *,
#content_area.bbs-legacy-write * {
  box-sizing: border-box;
}

#content_area.bbs-legacy-write .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbs-content-card .search_box li {
  display: grid;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bbs-content-card .search_box li:first-child {
  width: 88px;
}

.bbs-content-card .search_box li:last-child {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  width: 100%;
}

.bbs-content-card .board_list.table,
.bbs-content-card .wTable.table,
#content_area.bbs-legacy-write .wTable.table {
  width: 100%;
  overflow: hidden;
  border: 0;
  border-top: 2px solid #177848;
  border-bottom: 1px solid #dbe8e1;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.bbs-content-card caption,
#content_area.bbs-legacy-write caption {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.bbs-content-card .wTable.table > tbody > tr > th,
#content_area.bbs-legacy-write .wTable.table > tbody > tr > th {
  width: 160px;
  padding: 16px 14px;
  border: 0;
  border-bottom: 1px solid #e3ece7;
  background: #f3f8f5;
  color: #173f2c;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
  word-break: keep-all;
}

.bbs-content-card .wTable.table > tbody > tr > td,
#content_area.bbs-legacy-write .wTable.table > tbody > tr > td {
  padding: 16px 16px;
  border: 0;
  border-bottom: 1px solid #e6eee9;
  color: #253b32;
  font-size: 15px;
  vertical-align: middle;
}

.bbs-content-card .wTable.table .cnt {
  min-height: 180px;
  padding: 24px 18px;
  color: #2b3f36;
  line-height: 1.8;
}

.bbs-content-card .wTableFrm > h2,
#content_area.bbs-legacy-write .wTableFrm > h2 {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

#content_area.bbs-legacy-write .wTableFrm {
  padding: 24px;
  border: 1px solid #dbe8e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 61, 45, 0.08);
}

#content_area.bbs-legacy-write input[type="text"],
#content_area.bbs-legacy-write input[type="file"],
#content_area.bbs-legacy-write textarea,
#content_area.bbs-legacy-write select,
.bbs-content-card .wTable input[type="text"],
.bbs-content-card .wTable input[type="file"],
.bbs-content-card .wTable textarea,
.bbs-content-card .wTable select {
  max-width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c9d9d1;
  border-radius: 8px;
  background: #fff;
  color: #263a33;
  font-size: 14px;
  box-shadow: none;
}

#content_area.bbs-legacy-write input[type="text"],
.bbs-content-card .wTable input[type="text"] {
  width: min(100%, 520px);
}

#content_area.bbs-legacy-write textarea,
.bbs-content-card .wTable textarea {
  width: 100%;
  min-height: 260px;
  line-height: 1.7;
  resize: vertical;
}

#content_area.bbs-legacy-write input[type="checkbox"],
.bbs-content-card .wTable input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0 6px 0 0;
  vertical-align: middle;
  accent-color: #177848;
}

.bbs-content-card .error,
#content_area.bbs-legacy-write .error {
  display: block;
  margin-top: 6px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
}

.bbs-content-card .bbs-form-actions,
#content_area.bbs-legacy-write .bbs-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 22px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#content_area.bbs-legacy-write .bbs-form-actions .btn,
.bbs-content-card .bbs-form-actions .btn,
.bbs-content-card .btn_s a,
.bbs-content-card .btn_b a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1;
}

#content_area.bbs-write-card .wTableFrm {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#content_area.bbs-write-card .wTable.table {
  border-top: 2px solid #177848;
  border-right: 0;
  border-left: 0;
}

#content_area.bbs-write-card .wTable.table > tbody > tr > th {
  width: 150px;
  padding: 18px 16px;
  border-right: 0;
  background: #f3faf7;
  color: #173f2c;
  font-weight: 900;
  text-align: center;
}

#content_area.bbs-write-card .wTable.table > tbody > tr > td {
  padding: 16px;
}

#content_area.bbs-write-card .wTable.table > tbody > tr > td.nopd {
  padding: 18px 16px;
}

#content_area.bbs-write-card input[type="text"] {
  width: min(100%, 640px);
  height: 42px;
}

#content_area.bbs-write-card .bbs-title-filler {
  background: #fff;
}

#content_area.bbs-write-card .bbs-option-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}

#content_area.bbs-write-card .bbs-option-line label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  color: #253b32;
  font-weight: 800;
  white-space: nowrap;
}

#content_area.bbs-write-card .cke {
  max-width: 100%;
  border-color: #cbdcd4;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

#content_area.bbs-write-card #cke_nttCn {
  width: 100% !important;
}

#content_area.bbs-write-card .cke_top {
  padding: 6px;
  background: #f8fbf9;
}

#content_area.bbs-write-card .cke_toolgroup {
  margin-right: 4px;
  margin-bottom: 4px;
}

.bbs-editor-upload-drop,
.bbs-file-drop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px dashed #9fc8b3;
  border-radius: 0 0 8px 8px;
  background: #f8fbf9;
  color: #33453d;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.bbs-editor-upload-drop.is-dragover,
.bbs-file-drop.is-dragover {
  border-color: #177848;
  background: #eef8f2;
  box-shadow: inset 0 0 0 1px rgba(23, 120, 72, 0.2);
}

.bbs-editor-upload-drop input[type="file"] {
  display: none;
}

.bbs-editor-upload-drop span,
.bbs-file-drop-text span {
  color: #62766c;
  font-size: 13px;
}

.bbs-editor-upload-drop button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #177848;
  border-radius: 6px;
  background: #fff;
  color: #177848;
  font-weight: 850;
}

.bbs-file-drop {
  position: relative;
  border-radius: 8px;
  cursor: pointer;
}

.bbs-file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.bbs-file-drop-text {
  display: grid;
  gap: 4px;
  pointer-events: none;
}

.bbs-file-drop-text strong {
  color: #173f2c;
  font-size: 14px;
}

.bbs-file-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.bbs-file-list div {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #e0ebe5;
  border-radius: 6px;
  background: #fff;
  color: #263a33;
  font-size: 13px;
}

.bbs-existing-files {
  overflow-x: auto;
}

.bbs-existing-files #egov_file_view_table {
  width: 100%;
  margin: 0;
  border: 1px solid #dbe8e1;
  border-radius: 8px;
  background: #fff;
}

.bbs-existing-files #egov_file_view_table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef4f1;
  color: #263a33;
}

.bbs-existing-files #egov_file_view_table tr:last-child td {
  border-bottom: 0;
}

#content_area.bbs-write-card .bbs-list-return-btn {
  border: 1px solid #cbdad2;
  background: #fff;
  color: #33453d;
}

@media (max-width: 991px) {
  #content_area.bbs-write-card .wTable.table,
  #content_area.bbs-write-card .wTable.table tbody,
  #content_area.bbs-write-card .wTable.table tr,
  #content_area.bbs-write-card .wTable.table th,
  #content_area.bbs-write-card .wTable.table td {
    display: block;
    width: 100%;
  }

  #content_area.bbs-write-card .wTable.table > tbody > tr > th {
    padding: 14px 12px 6px;
    text-align: left;
  }

  #content_area.bbs-write-card .wTable.table > tbody > tr > td,
  #content_area.bbs-write-card .wTable.table > tbody > tr > td.nopd {
    padding: 6px 12px 14px;
  }

  #content_area.bbs-write-card .bbs-title-filler {
    display: none;
  }

  .bbs-editor-upload-drop,
  .bbs-file-drop {
    align-items: stretch;
    flex-direction: column;
  }

  .bbs-editor-upload-drop button {
    width: 100%;
  }
}

.bbs-gallery-card .search_box {
  background: linear-gradient(135deg, #f8fbf9 0%, #fff 100%);
}

.bbs-gallery-list {
  align-items: stretch;
}

.bbs-gallery-link {
  min-height: 100%;
}

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

.bbs-gallery-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 51, 38, 0.18) 100%);
  pointer-events: none;
}

.bbs-gallery-noimg::after {
  content: none;
}

.bbs-gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.bbs-gallery-meta::before {
  content: "게시글 정보";
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.bbs-badge {
  background: linear-gradient(135deg, #177848 0%, #246f9e 100%);
}

.bbs-normal-card .board_list.table > tbody > tr > td:first-child img {
  display: inline-flex;
  width: 36px;
  height: 24px;
  object-fit: contain;
}

.bbs-normal-card .board_list.table > tbody > tr > td:nth-child(2) {
  color: #10251e;
  font-weight: 400;
  text-align: left;
}

.bbs-normal-card .board_list.table > tbody > tr > td:nth-child(n+3) {
  color: #63756b;
  font-size: 14px;
}

.bbs-normal-card .board_list .link {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  text-align: left;
}

.bbs-normal-card .board_list .link input[type="submit"] {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .bbs-normal-card .board {
    overflow-x: visible;
  }

  .bbs-normal-card .board_list,
  .bbs-normal-card .board_list.table {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .bbs-normal-card .board_list colgroup,
  .bbs-normal-card .board_list thead {
    display: none;
  }

  .bbs-normal-card .board_list tbody,
  .bbs-normal-card .board_list tr,
  .bbs-normal-card .board_list td {
    display: block;
    width: 100%;
  }

  .bbs-normal-card .board_list.table > tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 4px;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #dbe8e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 61, 45, 0.07);
  }

  .bbs-normal-card .board_list.table > tbody > tr > td {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td::before {
    flex: 0 0 auto;
    color: #6a7a72;
    font-size: 13px;
    font-weight: 900;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(1)::before { content: "번호"; }
  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(2)::before { content: "제목"; }
  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(3)::before { content: "작성자"; }
  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(4)::before { content: "작성일"; }
  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(5)::before { content: "조회"; }

  .bbs-normal-card .board_list.table > tbody > tr > td[colspan] {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 24px 0;
    text-align: center;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td[colspan]::before {
    display: none;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(2) {
    display: block;
    grid-column: 1 / -1;
    order: 1;
    padding: 4px 0 12px;
    text-align: left;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(1) {
    grid-column: 1 / 2;
    order: 2;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(5) {
    grid-column: 2 / 3;
    order: 3;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(3) {
    grid-column: 1 / 2;
    order: 4;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(4) {
    grid-column: 2 / 3;
    order: 5;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td[colspan] {
    grid-column: 1 / -1;
    order: 1;
  }

  .bbs-normal-card .board_list.table > tbody > tr > td:nth-child(2)::before {
    display: none;
  }

  .bbs-normal-card .board_list .link,
  .bbs-normal-card .board_list .link input[type="submit"] {
    width: 100%;
  }

  .bbs-normal-card .board_list.table > tbody > tr.bbs-notice-row {
    border-color: #cfe5d8;
    background: #f8fcfa;
  }

  .bbs-normal-card .board_list.table > tbody > tr.bbs-notice-row > td:first-child {
    display: none;
  }

  .bbs-normal-card .board_list.table > tbody > tr.bbs-notice-row > td:nth-child(2) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .bbs-normal-card .board_list.table > tbody > tr.bbs-notice-row > td:nth-child(2)::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 42px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #177848;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    content: "공지";
  }

  .bbs-normal-card .board_list.table > tbody > tr.bbs-notice-row > td:nth-child(2) form {
    flex: 1 1 auto;
  }

  .bbs-content-card .wTable.table,
  #content_area.bbs-legacy-write .wTable.table,
  .bbs-content-card .wTable.table tbody,
  #content_area.bbs-legacy-write .wTable.table tbody,
  .bbs-content-card .wTable.table tr,
  #content_area.bbs-legacy-write .wTable.table tr,
  .bbs-content-card .wTable.table th,
  #content_area.bbs-legacy-write .wTable.table th,
  .bbs-content-card .wTable.table td,
  #content_area.bbs-legacy-write .wTable.table td {
    display: block;
    width: 100%;
  }

  .bbs-content-card .wTable.table > tbody > tr,
  #content_area.bbs-legacy-write .wTable.table > tbody > tr {
    border-bottom: 1px solid #e4ede8;
  }

  .bbs-content-card .wTable.table > tbody > tr > th,
  #content_area.bbs-legacy-write .wTable.table > tbody > tr > th {
    padding: 12px 14px 6px;
    border: 0;
    background: #fff;
    color: #177848;
    text-align: left;
  }

  .bbs-content-card .wTable.table > tbody > tr > td,
  #content_area.bbs-legacy-write .wTable.table > tbody > tr > td {
    padding: 6px 14px 14px;
    border: 0;
  }

  #content_area.bbs-legacy-write .wTableFrm {
    padding: 18px;
  }

  #content_area.bbs-legacy-write .bbs-form-actions .btn,
  .bbs-content-card .bbs-form-actions .btn,
  .bbs-content-card .btn_s,
  .bbs-content-card .btn_s a,
  .bbs-content-card .btn_b,
  .bbs-content-card .btn_b a {
    width: 100%;
  }
}

/* Mobile article detail refresh */
.bbs-content-card .board-detail-table {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 61, 45, 0.06);
}

.bbs-content-card .board-detail-title-row td {
  color: #10251e;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.5;
}

.bbs-content-card .board-detail-meta-row td {
  color: #52675d;
  font-size: 14px;
}

.bbs-content-card .board-detail-content-row td.cnt {
  min-height: 220px;
  background: #fff;
}

@media (max-width: 768px) {
  .bbs-content-card .board-detail-table,
  .bbs-content-card .board-detail-table tbody,
  .bbs-content-card .board-detail-table tr,
  .bbs-content-card .board-detail-table th,
  .bbs-content-card .board-detail-table td {
    display: block;
    width: 100%;
  }

  .bbs-content-card .board-detail-table {
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bbs-content-card .board-detail-table colgroup {
    display: none;
  }

  .bbs-content-card .board-detail-table > tbody {
    display: grid;
    gap: 10px;
  }

  .bbs-content-card .board-detail-table > tbody > tr {
    overflow: hidden;
    border: 1px solid #dbe8e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 61, 45, 0.07);
  }

  .bbs-content-card .board-detail-title-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .bbs-content-card .board-detail-title-row td {
    display: flex !important;
    align-items: center;
    width: auto;
    min-height: 48px;
    border: 0;
  }

  .bbs-content-card .board-detail-title-row th {
    position: absolute;
    display: block !important;
    overflow: hidden;
    width: 1px !important;
    min-height: 0 !important;
    height: 1px;
    margin: -1px;
    padding: 0 !important;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
  }

  .bbs-content-card .board-detail-title-row td {
    grid-column: 1 / -1 !important;
    justify-content: flex-start;
    padding: 14px 16px !important;
    color: #10251e;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
  }

  .bbs-content-card .board-detail-meta-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }

  .bbs-content-card .board-detail-meta-row th {
    position: absolute;
    display: block !important;
    overflow: hidden;
    width: 1px !important;
    min-height: 0 !important;
    height: 1px;
    margin: -1px;
    padding: 0 !important;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
  }

  .bbs-content-card .board-detail-meta-row td {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px !important;
    border: 0;
    color: #2d4339;
    font-size: 14px;
    line-height: 1.45;
  }

  .bbs-content-card .board-detail-meta-row td:nth-child(4),
  .bbs-content-card .board-detail-meta-row td:nth-child(6) {
    border-top: 1px solid #edf4f0;
  }

  .bbs-content-card .board-detail-meta-row td::before {
    flex: 0 0 54px;
    color: #177848;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .bbs-content-card .board-detail-meta-row td:nth-child(2)::before {
    content: "등록자";
  }

  .bbs-content-card .board-detail-meta-row td:nth-child(4)::before {
    content: "등록일";
  }

  .bbs-content-card .board-detail-meta-row td:nth-child(6)::before {
    content: "조회수";
  }

  .bbs-content-card .board-detail-content-row th,
  .bbs-content-card .board-detail-attach-row th {
    padding: 13px 14px 9px !important;
    border: 0;
    background: #f8fbf9;
    color: #177848;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
  }

  .bbs-content-card .board-detail-content-row td,
  .bbs-content-card .board-detail-attach-row td {
    padding: 14px !important;
    border: 0;
  }

  .bbs-content-card .board-detail-content-row td.cnt {
    min-height: 180px;
    color: #22372e;
    font-size: 15px;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {
  .bbs-content-card .search_box {
    padding: 12px;
  }

  .bbs-content-card .search_box ul {
    display: grid;
    grid-template-columns: minmax(74px, 0.8fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 6px;
  }

  .bbs-content-card .search_box li,
  .bbs-content-card .search_box li:first-child,
  .bbs-content-card .search_box li:last-child {
    width: auto;
    min-width: 0;
  }

  .bbs-content-card .search_box li:last-child {
    display: grid;
    grid-template-columns: minmax(68px, 1fr) auto auto;
    gap: 6px;
  }

  .bbs-content-card .search_box select,
  .bbs-content-card .search_box input[type="text"] {
    width: 100%;
    min-width: 0;
  }

  .bbs-content-card .search_box input.btn,
  .bbs-content-card .search_box a.btn {
    width: auto;
    min-width: 52px;
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
  }

  .bbs-content-card .search_box a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  .bbs-content-card .search_box ul {
    grid-template-columns: 1fr;
  }

  .bbs-content-card .search_box li:last-child {
    grid-template-columns: minmax(80px, 1fr) auto auto;
  }
}
