/* 25.10.02 김성원 추가 작업 */
/* 25.11.19 모바일 환경 디자인 다 깨져서 수정 작업 진행 - 김결휘*/
/* 목록 */
.api_list {
  width: 100%;
  border-collapse: collapse;
}

.api_list th,
.api_list td {
  text-align: center;
  height: 70px;
}

.api_list th {
  font-size: 14px;
  font-weight: 700;
  background-color: #EEEFF2;
  border-top: 2px solid #444547;
  border-bottom: 1px solid #bbb;
}

.api_list td {
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid #bbb;
  cursor: pointer;
}

.api_list tbody tr:hover td {
  background-color: #f5f5f5;
}

.api_list th.no { width: 10%; }
.api_list th.date { width: 20%; }
.api_list th.title { width: 70%; }
.api_list td.no { 
  font-size: 14px; 
  font-weight: 700;
}
.api_list td.date { color: #666; }
.api_list td.title { 
  font-weight: 700;
  text-align: left;
  padding: 0 10px;
  word-break: break-word;
}

/* 상세보기 */
#itemView {
  display: none;
  margin-bottom: 30px;
}

.item_view_header {
  border-top: 2px solid #333;
  border-bottom: 1px solid #d7d5d5;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item_view_date {
  color: #333;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  width: 100px;
  border-right: 1px solid #d7d5d5;
}

.item_view_date_d {
  font-size: 34px;
}

.item_view_date_ym {
  font-size: 15px;
  font-weight: 500;
}

.item_view_title {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  width: calc(100% - 120px);
}

.item_content {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.5px;
  padding: 20px 10px;
  word-break: keep-all;
}

.content_text {
  word-break: keep-all;
}

.content_img {
  max-width: 80%;
  height: auto;
  margin: 0 auto 30px;
}

.month_worship .item_view_title {
  width: 100%;
}

.list-btn {
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 6px 13px;
  float: right;
  transition: all 0.3s;
}

.list-btn:hover {
  background-color: #f5f5f5;
  border: 1px solid #bbb;
  cursor: pointer;
}

/* 페이지 네이션 */
#apiListWrap {
  display: none;
}

#apiListWrap .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

#apiListWrap .pager .page_info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

#apiListWrap .pager button {
  font-size: 14px;
  font-weight: 700;
  background-color: #fff;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#apiListWrap .pager button:hover {
  color: #0B5DA9;
  border: 1px solid #0B5DA9;
}

#apiListWrap .pager button:hover path {
  stroke: #0B5DA9;
}

#apiListWrap .pager button.active {
  color: #fff;
  background-color: #0B5DA9;
}

/* 미션지 */
.love_mission_card_box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 60px 16px;
}

.love_mission_card {
  width: 280px;
  padding: 20px 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.love_mission_card_img {
  width: 95%;
}

.love_mission_card_title {
  font-size: 22px;
}

.love_mission_card:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .api_list {
    display: block;
  }
  .api_list thead {
    display: none;
  }
  .api_list tbody {
    display: block;
  }
  .api_list tbody tr {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2px;
    gap: 4px;
  }
  .api_list tbody tr td {
    display: block;
    border-bottom: none;
    padding: 0;
    text-align: left;
    width: 100%;
    height: auto;
  }
  .api_list tbody tr td.no {
    display: none;
  }
  .api_list tbody tr td.date {
    font-size: 12px;
    color: #999;
    order: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }
  .api_list tbody tr td.title {
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    order: 0;
    line-height: 1.3;
  }
  .item_view_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 0;
  }
  .item_view_title {
    font-size: 16px;
    width: 100%;
    text-align: left;
    padding: 0;
    order: 0;
    margin-bottom: 0;
    line-height: 1.3;
  }
  .item_view_date {
    width: 100%;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid #d7d5d5;
    padding-top: 2px;
    padding-bottom: 0;
    text-align: left;
    order: 1;
    margin-top: 0;
  }
  .item_view_date_d {
    font-size: 24px;
  }
  .item_view_date_ym {
    font-size: 12px;
  }
  .item_content {
    font-size: 14px;
    line-height: 1.8;
    padding: 15px 5px;
  }
}

@media screen and (max-width: 480px) {
  .list-btn {
    width: 100%;
    padding: 10px 20px;
  }
}