@charset "utf-8";

/* 게시판 목록 */
#bo_list .list-box {
}
#bo_list .list-box .empty_table {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30vh;
}

#bo_list .list-box .tiles {
  display: flex;
  flex-wrap: wrap;
}
#bo_list .list-box .a::before,
#bo_list .list-box .a::after {
  display: none;
}

#bo_list .list-box .li_ck {
  position: absolute;
  z-index: 9;
  left: 10px;
  top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#bo_list .list-box .li_ck input {
  margin: 0;
}
#bo_list .list-box .li_num {
  position: absolute;
  z-index: 3;
  right: 5px;
  top: 5px;
}

#bo_list .list-box .li_ca {
  color: var(--main-color1);
  margin-bottom: 5px;
  font-size: 0.875rem;
}
#bo_list .list-box .li_thumb .img {
  transition: transform 700ms;
}
#bo_list .list-box .li_thumb:not(.noimg) img.img {
  max-width: 100px;
  padding-bottom: 0 !important;
}

#bo_list .list-box .li_thumb:before {
  display: none;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--main-color4, var(--main-color2));
  width: 0;
  opacity: 0.8;
  transition-duration: 500ms;
  z-index: 2;
}
#bo_list .list-box .li_thumb:after {
  display: none;
  content: "자세히 보기";
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  border-radius: 99px;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 25px;
  font-size: 0.75rem;
  opacity: 0;
  transition-duration: 500ms;
  z-index: 3;
}

#bo_list .list-box .a:hover .li_thumb:before {
  width: 100%;
}
#bo_list .list-box .a:hover .li_thumb:after {
  opacity: 1;
}

#bo_list .list-box .li_thumb.noimg .img {
  transform: scale(1);
}
#bo_list .list-box .li_thumb.noimg:before {
  content: "이미지 없음";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #f8f8f8;
  border: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bo_list .list-box .content {
  margin-bottom: 0;
}
#bo_list .list-box .li_subject {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#bo_list .list-box .donor_info {
  width: 100%;
  text-align: center;
}

#bo_list .list-box .donor_info * {
  font-family: "NanumSquareNeo";
}

.tiles .tile > .a {
  border-radius: 6px 6px 0 0;
  border-bottom: 0;
}

#bo_list .list-box .donor_info .donor_name {
  font-size: 1rem;
  font-weight: 600;
}

#bo_list .list-box .donor_info .day {
  font-size: 0.875rem;
  color: #999;
}

#bo_list .list-box .link {
  /* margin-top: 14px; */
  visibility: visible;
  border: 1px solid #ddd;
  border-top: 1px dashed #ddd;
  border-radius: 0 0 6px 6px;
}

#bo_list .list-box .link button {
  width: 100%;
  padding: 6px 0;
  font-size: 14px;
}

#bo_list .list-box .link button:hover {
  color: var(--main-color2);
}

#bo_list .list-box .li_subject .subject {
  width: 100%;
  font-size: 1rem;
  color: #111;
  font-weight: 600;
  margin-right: 5px;
  word-break: normal;
}

#bo_list .list-box ul {
  display: flex;
  font-size: 0.875rem;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}
#bo_list .list-box li:not(:last-child) {
  position: relative;
  margin-right: 10px;
  padding-right: 10px;
}
#bo_list .list-box li:not(:last-child):before {
  content: "";
  position: absolute;
  right: 0;
  top: calc(50% - 6px);
  width: 1px;
  height: 12px;
  background: #ddd;
}

#bo_list .list-box .notice-icon {
  width: 30px;
  height: 30px;
  font-size: 0.875rem;
  padding-top: 2px;
  padding-right: 1px;
  background: var(--main-color3);
  color: #fff;
  border-radius: 99px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
#bo_list .list-box .notice-icon i {
  transform: rotate(25deg);
}

#bo_list .wrap-loading {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  justify-content: center;
  align-items: center;
  color: #888;
  z-index: 9999;
}
#bo_list .wrap-loading > * {
  position: absolute;
}
#bo_list .wrap-loading span,
#bo_list .wrap-loading.finish i {
  display: none;
}

#bo_list .wrap-loading.on,
#bo_list .wrap-loading.finish {
  display: flex;
}
#bo_list .wrap-loading.on i,
#bo_list .wrap-loading.finish span {
  display: block;
}

#bo_list .wrap-loading.on i {
  font-size: 60px;
  animation: loading_spin 2s linear infinite;
}
#bo_list .wrap-loading.finish span {
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 10px;
  animation: finish_text 600ms linear 1.5s forwards;
  white-space: nowrap;
}

@keyframes loading_spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

@keyframes finish_text {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 1024px) {
}

@media (max-width: 767px) {
  #bo_list .list-box .li_ca {
    margin-bottom: 3px;
  }

  #bo_list .list-box .content {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  #bo_list .list-box .li_subject .subject {
    font-size: 1.125rem;
  }

  #bo_list .list-box ul {
    margin-top: 10px;
    padding-top: 10px;
  }
}

/* 게시판 쓰기 */
#bo_w {
  border-top: 1px solid #666;
}
#bo_w .write-box {
  --odd-width: 180px;
}
#bo_w .write-box > ul {
  display: flex;
  flex-wrap: wrap;
}
#bo_w .write-box > ul > li {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}
#bo_w .write-box > ul > li:nth-child(odd) {
  width: var(--odd-width);
  background: #f8f8f8;
}
#bo_w .write-box > ul > li:nth-child(odd).required:after {
  content: "*";
  color: #f50000;
  display: inline-block;
}
#bo_w .write-box > ul > li:nth-child(even) {
  width: calc(100% - var(--odd-width));
}
#bo_w .write-box > ul > li.noflex {
  display: block;
}
#bo_w .write-box > ul > li.full {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#bo_w .write-box label {
  position: relative;
  padding: 5px 0;
  margin-right: 5px;
}
#bo_w .write-box label ~ label {
  margin-left: 10px;
}
#bo_w .write-box textarea {
  resize: none;
}

#bo_w .write-box i {
  font-size: 1.25rem;
  margin-right: 3px;
}
#bo_w .write-box i.link {
  transform: rotate(-45deg);
}
#bo_w .write-box .w_link span {
  display: inline-block;
  width: 50px;
}
#bo_w .write-box .w_link ~ .w_link,
#bo_w .write-box .w_file ~ .w_file {
  margin-top: 5px;
}

#bo_w .write-box .file_del {
  display: inline-block;
  margin-left: 10px;
}

@media (max-width: 1024px) {
  #bo_w .write-box {
    --odd-width: 130px;
  }
}

@media (max-width: 767px) {
  #bo_w .write-box > ul > li {
    padding: 10px 15px;
    width: 100% !important;
  }
  #bo_w .write-box > ul > li:nth-child(even) {
    padding: 10px 0;
  }

  #bo_w .write-box .w_link {
    display: flex;
    align-items: center;
  }

  #bo_w .write-box input[type="file"] + input[type="text"] {
    margin-top: 5px;
  }

  #bo_w .write-box .file_del {
    margin-left: 0;
  }
}

/* 댓글 */
/*#bo_comment .pf_img { display:none; }*/

/* 게시판 읽기 */
#bo_v {
  --view-row-padding: 30px;
  --view-col-padding: 10px;
}
#bo_v .view-head {
  border-top: 1px solid #666;
  border-bottom: 1px solid #ddd;
  padding: var(--view-row-padding) 0;
}
#bo_v .view-head .ctg {
  display: inline-block;
  border-radius: 99px;
  padding: 5px 20px;
  border: 1px solid var(--main-color1);
  color: var(--main-color1);
  margin-bottom: 10px;
}
#bo_v .view-head .subject {
  font-size: 2rem;
  font-weight: 600;
}
#bo_v .view-head .desc {
  display: flex;
  margin-top: 20px;
}
#bo_v .view-head .desc li:not(:last-child) {
  margin-right: 30px;
}
#bo_v .view-head .desc li b {
  margin-right: 5px;
}

#bo_v .video-box {
  max-width: 1000px;
}
#bo_v .video-box .video {
  position: relative;
  padding-bottom: 60%;
}
#bo_v .video-box .video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

#bo_v .view-file {
  padding: var(--view-col-padding) var(--view-row-padding);
  background: #fcfcfc;
  border-bottom: 1px solid #ddd;
}
#bo_v .view-file li {
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
#bo_v .view-file li b {
  display: flex;
  align-items: center;
}
#bo_v .view-file li img {
  width: 20px;
  margin-right: 5px;
}
#bo_v .view-file li .small {
  margin-left: 5px;
  color: #888;
  font-weight: 400;
}
#bo_v .view-file li .btn {
  border-radius: 99px;
  padding: 5px 15px;
  border: 1px solid #666;
  margin-left: auto;
}
#bo_v .view-file li .btn:hover {
  background: #333;
  color: #fff;
}
#bo_v .view-file li .btn i {
  font-size: 0.875rem;
}

#bo_v .view-link {
  padding: var(--view-col-padding) var(--view-row-padding);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -5px;
}
#bo_v .view-link li {
  margin: 5px;
}
#bo_v .view-link li a {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid #ddd;
  border-radius: 99px;
}
#bo_v .view-link li a:hover {
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
}
#bo_v .view-link li a i {
  font-size: 0.875rem;
}

#bo_v .view-box {
  padding: var(--view-row-padding) 0 calc(var(--view-row-padding) + 20px);
}
#bo_v .view-box .view-editor {
  margin-top: 20px;
}

#bo_v .view-btn-box {
  border-top: 1px solid #ddd;
  padding-top: 40px;
}
#bo_v .view-another ~ .view-btn-box {
  border-top: none;
  padding-top: 0px;
}

@media (max-width: 1024px) {
  #bo_v {
    --view-row-padding: 20px;
  }
  #bo_v .view-head .subject {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  #bo_v {
    --view-row-padding: 15px;
    --view-col-padding: 5px;
  }
  #bo_v .view-head .ctg {
    padding: 5px 15px;
    margin-bottom: 5px;
  }
  #bo_v .view-head .desc {
    margin-top: 15px;
  }

  #bo_v .view-link li {
    margin: 2.5px;
  }
  #bo_v .view-link li a {
    padding: 5px 15px;
  }
}

.board-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.board-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,6 C10,6 4,0 0,6 C0,12 10,18 10,18 C10,18 20,12 20,6 C16,0 10,6 10,6 Z" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>')
    repeat;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
}

.ribbon-icon {
  width: 80px;
  position: relative;
  margin-bottom: 15px;
}

.ribbon {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.ribbon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.logo-text {
  text-align: center;
}

.organization {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 400;
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.content-section {
  flex: 1;
}

.main-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.4;
}

.description-list {
  list-style: none;
}

.description-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3px;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.description-item::before {
  content: "—";
  color: #999;
  margin-right: 12px;
  font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .board-header {
    padding: 40px 15px;
  }

  .container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .logo-section {
    min-width: auto;
  }

  .ribbon-icon {
    width: 70px;
  }

  .title {
    font-size: 20px;
  }

  .main-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .description-item {
    font-size: 15px;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .board-header {
    padding: 30px 15px;
  }

  .ribbon-icon {
    width: 60px;
  }

  .title {
    font-size: 18px;
  }

  .main-title {
    font-size: 20px;
  }

  .description-item {
    font-size: 14px;
  }
}

input[type="date"].form-tag {
  line-height: inherit;
}

.memorial-wrapper {
  overflow: hidden;
}

.memorial-wrapper * {
  font-family: "Noto Sans KR", sans-serif;
}

/* 상단 파란색 라인 */
.header-line {
  height: 4px;
  background: #906039;
}

/* 메인 컨텐츠 영역 */
.content-wrapper {
  display: flex;
  min-height: 300px;
}

/* 왼쪽 정보 영역 */
.left-panel {
  width: 300px;
  padding: 30px 25px;
  border-right: 1px solid #eee;
  background: #fafafa;
}

.memorial-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #333;
}

.info-section {
  margin-bottom: 25px;
}

.info-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.life-period {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.memorial-count {
  font-size: 14px;
  color: #555;
}

.memorial-location {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* 오른쪽 컨텐츠 영역 */
.right-panel {
  flex: 1;
  padding: 30px;
  position: relative;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.author-info {
  font-size: 14px;
  color: #666;
}

.author-name {
  font-weight: 500;
  color: #333;
}

.post-date {
  margin-left: 10px;
  font-weight: 400;
  color: #999;
}

.memorial-link {
  font-size: 13px;
  color: #fff !important;
  background: #906039;
  text-decoration: none;
  border: 1px solid #906039;
  padding: 6px 12px;
  border-radius: 3px;
  transition: all 0.2s;
}

/* .memorial-link:hover {
      background: #906039;
      color: #fff;
  } */

.content-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  padding: 20px 0;
}

/* 페이지네이션 */
.pagination-wrapper {
  padding: 0 30px 30px;
  border-top: 1px solid #eee;
  text-align: center;
}

.pagination {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.page-item:hover {
  background: #f0f0f0;
  border-color: #999;
}

.page-item.active {
  background: #906039;
  color: #fff;
  border-color: #906039;
}

.page-item.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.page-item.disabled:hover {
  background: #fff;
  border-color: #ddd;
}

/* 반응형 */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .right-panel {
    padding: 20px;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 3px;
  }

  .page-item {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* 버튼 스타일 */
.btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s;
}

.btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.btn-primary {
  background: #333;
  color: #fff;
  border-color: #333;
}

.btn-primary:hover {
  background: #555;
}

/* 모달 오버레이 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* 모달 컨테이너 */
.donor-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  border-radius: 24px;
  overflow: hidden;
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 모달 헤더 */
.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f8f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

/* 모달 바디 */
.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

/* 검색 폼 */
.search-form {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 13px;
  outline: none;
  border-radius: 4px;
}

.search-input:focus {
  border-color: #999;
}

.search-select {
  padding: 8px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  min-width: 100px;
}

/* 검색 결과 */
.search-results {
  margin-top: 15px;
}

.results-header {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.donor-list {
  list-style: none;
}

.donor-item {
  padding: 12px;
  border: 1px solid #eee;
  margin-bottom: 5px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.donor-item:hover {
  background: #f8f8f8;
}

.donor-item.selected {
  background: #e8f4fd;
  border-color: #b3d9f2;
}

.donor-info {
  flex: 1;
}

.donor-name {
  font-weight: 500;
  margin-bottom: 3px;
}

.donor-details {
  font-size: 12px;
  color: #666;
}

.donor-select-btn {
  padding: 4px 8px;
  font-size: 11px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
}

.donor-select-btn:hover {
  background: #e0e0e0;
}

/* 로딩 상태 */
.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* 빈 결과 */
.no-results {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 13px;
}

/* 선택된 기증자 표시 */
.selected-donor {
  padding: 8px 12px;
  background: #f0f8ff;
  border: 1px solid #d0e8ff;
  margin-left: 10px;
  font-size: 13px;
  color: #333;
}

/* 반응형 */
@media (max-width: 768px) {
  .modal {
    width: 95vw;
    margin: 20px;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-select {
    min-width: auto;
  }
}
