@charset "utf-8";

/* ==========================================================================
   공통 레이아웃 및 카드 스타일 (Common Card UI)
   ========================================================================== */

/* 기본 컨테이너 (가로 배열) */

.latest-group:first-child {
  margin-top: 0px;
}

.popular-container {
  margin-bottom: 20px;
}

.popular-posts-container,
.latest-group {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* 개별 카드 공통 스타일 */
.bbs_main {
  flex: 1;
  min-width: 0;
  background-color: var(--rd-bg-card, #ffffff);
  border: 1px solid var(--rd-border-second, #eee);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* 카드 제목 스타일 */
.title-text {
  color: var(--rd-text-primary);
  font-size: 20px;
  font-weight: bolder;
  margin-bottom: 16px;
}

.title-text a {
  color: inherit;
  text-decoration: none;
}

/* 말줄임 및 유틸리티 */
.cut {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cut2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.no_data {
  padding: 40px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
  width: 100%;
}

/* ==========================================================================
   best.php (썸네일 리스트형) 스타일
   ========================================================================== */
.bbs_main_wrap_thumb_left_con {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bbs_item_row {
  margin-bottom: 15px;
  list-style: none;
}
.bbs_item_row:last-child {
  margin-bottom: 0;
}
.bbs_item_flex {
  display: flex;
  gap: 15px;
}
.bbs_thumb_ul {
  flex-shrink: 0;
}
.bbs_thumb_ul img {
  width: 115px;
  height: 95px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.bbs_info_ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.bbs_info_ul .bbs_subject {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.bbs_info_ul .bbs_content {
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
  color: var(--rd-text-second);
}
.bbs_info_ul .bbs_meta {
  font-size: 12px;
  color: var(--rd-text-third);
}
.bbs_info_ul .bbs_meta span {
  margin-right: 10px;
}

/* ==========================================================================
   event.php (갤러리 카드형) 스타일
   ========================================================================== */
.event_card_container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.event_card_item {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 10px;
  box-sizing: border-box;
}
.event_card_item .img_box {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f8f8;
}
.event_card_item .img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.event_card_item:hover .img_box img {
  transform: scale(1.05);
}
.card_text_box {
  padding: 12px 2px;
}
.card_subject {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.card_info {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   popular.php (인기글 리스트) 스타일
   ========================================================================== */
.bbs_maon_popular_con {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bbs_maon_popular_con .point_list_name {
  width: 100%;
  display: flex;
  gap: 4px;
}
.bbs_maon_popular_con .point_list_name a {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 90%;
  color: inherit;
  text-decoration: none;
}

/* 리스트 컨테이너 내의 dd 태그 정렬 */
.bbs_maon_popular_con dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.bbs_maon_popular_con dd:last-child {
  border-bottom: none;
}

/* 숫자 아이콘 스타일 */
.point_list_num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background: #eee;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 10px;
  flex-shrink: 0;
}

.point_list_num.top1_bg {
  background: #ff4d4f; /* 1등 강조 색상 */
  color: #fff;
}

/* 게시글 제목 */
.point_list_name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.point_list_name a {
  text-decoration: none;
  color: var(--rd-text-primary, #333);
}

/* 날짜/시간 표시 */
.point_list_point {
  font-size: 11px;
  color: #999;
  margin-left: 10px;
  white-space: nowrap;
}

/* ==========================================================================
   반응형 (Mobile/Tablet)
   ========================================================================== */
@media (max-width: 991px) {
  .popular-posts-container,
  .latest-group {
    flex-direction: column;
    gap: 15px;
  }
  .event_card_item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 640px) {
  .event_card_item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .latest-group .bbs_main_wrap_thumb_left_con li.bbs_item_row:nth-child(n + 3) {
    display: none !important;
  }
}
