@charset "utf-8";

/* 새글 스킨 (latest) - 고급스러운 한줄 스타일 */
.lat {
  position: relative;
  margin-bottom: 25px;
  background: #fff;
  border: 1px solid #e8eef2;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.lat .lat_title {
  display: block;
  line-height: 50px;
  font-size: 1.3em;
  color: #2c3e50;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 0 20px;
  padding-right: 100px; /* 더보기 버튼 공간 확보 */
  border-bottom: 1px solid #e8eef2;
  font-weight: 600;
}

.lat .lat_title a {
  position: relative;
  color: #2c3e50;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lat .lat_title a:hover {
  color: #3498db;
}

.lat ul {
  padding: 0;
  margin: 0;
}

.lat li {
  position: relative;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.lat li:hover {
  background-color: #f8f9fa;
}

.lat li:last-child {
  border-bottom: none;
}

.lt_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 12px; /* 좌우 패딩 줄임 */
  min-height: 50px;
}

.lt_title {
  flex: 0 1 auto; /* flex-grow: 0으로 변경하여 크기 제한 */
  margin-right: 10px; /* 마진 줄임 */
  min-width: 0; /* flexbox에서 텍스트 오버플로우가 제대로 작동하도록 */
}

.lt_title a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.lt_title a:hover {
  color: #3498db;
}

.lt_date {
  color: #6c757d;
  font-size: 0.9em;
  white-space: nowrap;
  font-weight: 400;
}

/* 아이콘 스타일 */
.lat li .fa-heart {
  color: #e74c3c;
}

.lat li .fa-lock {
  display: inline-block;
  line-height: 16px;
  width: 18px;
  height: 16px;
  font-size: 0.8em;
  color: #6c757d;
  background: #e9ecef;
  text-align: center;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}

.lat li .new_icon {
  display: inline-block;
  width: 18px;
  height: 16px;
  line-height: 16px;
  font-size: 0.75em;
  color: #fff;
  background: #28a745;
  text-align: center;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: bold;
  vertical-align: middle;
}

.lat li .hot_icon {
  display: inline-block;
  width: 18px;
  height: 16px;
  line-height: 16px;
  font-size: 0.8em;
  color: #fff;
  background: #e74c3c;
  text-align: center;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.lat li .fa-caret-right {
  color: #adb5bd;
  margin: 0 3px;
}

.lat li .fa-download {
  display: inline-block;
  width: 18px;
  height: 16px;
  line-height: 16px;
  font-size: 0.8em;
  color: #fff;
  background: #ffc107;
  text-align: center;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.lat li .fa-link {
  display: inline-block;
  width: 18px;
  height: 16px;
  line-height: 16px;
  font-size: 0.8em;
  color: #fff;
  background: #6f42c1;
  text-align: center;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

.lat .empty_li {
  line-height: 80px;
  color: #6c757d;
  text-align: center;
  padding: 40px 20px;
  font-size: 1.1em;
}

.lat .lt_cmt {
  background: #e3f2fd;
  color: #1976d2;
  font-size: 0.8em;
  height: 18px;
  line-height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: 500;
}

.lat .lt_more {
  position: absolute;
  top: 10px;
  right: 15px;
  display: block;
  padding: 6px 12px;
  color: #6c757d;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 15px;
  text-align: center;
  font-size: 0.85em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lat .lt_more:hover {
  color: #fff;
  background: #3498db;
  border-color: #3498db;
}

/* 배대지명 배지 스타일 */
.ca_badge {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 6px;
  font-size: 0.7em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  vertical-align: middle;
  height: 16px;
  line-height: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
/* 공지사항 제목 길이 제한 */
.lt_title a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px; /* 날짜 영역 보호를 위해 더 짧게 */
  line-height: 1.4;
}

.lt_title {
  display: flex;
  align-items: center; /* 중앙 정렬로 복원 */
  flex-wrap: nowrap; /* 줄바꿈 방지 */
  gap: 5px;
}

/* 배지와 아이콘들이 제목과 잘 어울리도록 */
.lt_title .ca_badge,
.lt_title .new_icon,
.lt_title .hot_icon,
.lt_title .lt_cmt,
.lt_title .fa-download,
.lt_title .fa-link,
.lt_title .fa-lock {
  flex-shrink: 0; /* 아이콘 크기 고정 */
}
/* 반응형 제목 길이 조정 */
@media (min-width: 1200px) {
  .lt_title a {
    max-width: 320px; /* 날짜 영역 보호 */
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .lt_title a {
    max-width: 280px; /* 태블릿 */
  }
}

@media (max-width: 767px) {
  .lt_title a {
    max-width: 280px; /* 모바일 */
  }

  .lt_row {
    padding: 12px 15px;
  }

  .lat .lat_title {
    padding: 0 15px;
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .lt_title a {
    max-width: 220px; /* 작은 모바일 */
  }

  .lt_row {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
  }

  .lt_date {
    margin-top: 5px;
    font-size: 0.8em;
  }
}
/* 날짜 영역 보호 */
.lt_date {
  flex-shrink: 0; /* 날짜 영역 크기 고정 */
  min-width: 50px; /* 최소 너비 줄임 */
  text-align: right; /* 오른쪽 정렬 */
}
