@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;
}

/* 반응형 제목 길이 조정 */
.lt_title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.lt_title a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

/* 데스크톱 (1200px 이상) */
@media (min-width: 1200px) {
  .lt_title a {
    max-width: 350px; /* 약 25-30자 정도 */
  }
}

/* 태블릿 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .lt_title a {
    max-width: 300px; /* 약 20-25자 정도 */
  }
}

/* 모바일 (767px 이하) */
@media (max-width: 767px) {
  .lt_title a {
    max-width: 250px; /* 약 15-20자 정도 */
  }

  .lt_row {
    padding: 12px 15px;
  }

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

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
  .lt_title a {
    max-width: 180px; /* 약 12-15자 정도 */
  }

  .lt_title {
    flex-wrap: nowrap; /* 아이콘 줄바꿈 방지 */
    gap: 3px; /* 간격 줄임 */
  }

  .lt_row {
    padding: 10px 12px;
  }

  .lt_date {
    margin-top: 5px;
    font-size: 0.8em;
  }
}
/* 아이콘들이 제목과 같은 줄에 잘 배치되도록 조정 */
.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 (max-width: 480px) {
  .lt_title .new_icon,
  .lt_title .hot_icon {
    width: 16px;
    height: 14px;
    line-height: 14px;
    font-size: 0.7em;
  }

  .lt_title .lt_cmt {
    font-size: 0.7em;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
  }

  .lt_title .fa-download,
  .lt_title .fa-link,
  .lt_title .fa-lock {
    width: 16px;
    height: 14px;
    line-height: 14px;
    font-size: 0.7em;
  }
}
/* 레이아웃 클래스 정의 */
.lt_wr {
  width: 49%; /* 2단 레이아웃 */
}

.lt_wr_3col {
  width: 32%; /* 3단 레이아웃 */
}

/* basic2 스킨은 3단 레이아웃용이므로 제목 길이 제한 유지 */

/* 3단 레이아웃에서는 여백 추가 */
.lt_title {
  margin-right: 15px; /* 제목 영역 전체에 오른쪽 여백 */
}

/* 데스크톱에서 3단 레이아웃 제목 길이 조정 */
@media (min-width: 1200px) {
  .lt_title a {
    max-width: 200px; /* 3단에서 날짜 영역 보호 */
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .lt_title a {
    max-width: 180px; /* 태블릿에서 더 짧게 */
  }
}

/* 모바일에서는 모든 레이아웃이 1단으로 */
@media (max-width: 767px) {
  .lt_wr,
  .lt_wr_3col {
    width: 100%;
    margin-left: 0 !important;
    margin-bottom: 20px;
  }
}
/* 날짜 영역 보호 */
.lt_date {
  flex-shrink: 0; /* 날짜 영역 크기 고정 */
  min-width: 50px; /* 최소 너비 줄임 */
  text-align: right; /* 오른쪽 정렬 */
}
