/* 📌 인기 글 위젯 전체 스타일 */
.popular-posts-widget {
    list-style: none;
    padding: 0;
    margin: 0;
	margin-left: 15px;
	margin-bottom: 30px;
}

.popular-posts-widget li {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
    font-size: 16px;
	padding-top: 25px; /* 위쪽 간격 */
    padding-bottom: 25px; /* 아래쪽 간격 */
}

.popular-posts-widget li:hover {
    background: #f8f9fa;
}

/* 📌 인기 글 리스트 순차적으로 색상을 연하게 */
.popular-posts-widget .rank {
    font-size: 30px; /* 숫자 크기 */
    font-weight: bold;
    background-color: transparent;
    color: rgba(0, 0, 0, 1); /* 첫 번째 숫자는 완전 검은색 */
    text-align: center;
    margin-right: 15px;
    width: auto;
    height: auto;
}

/* 📌 두 번째 숫자 색상 */
.popular-posts-widget li:nth-child(2) .rank {
    color: rgba(0, 0, 0, 0.8); /* 두 번째 숫자는 약간 연한 검정 */
}

/* 📌 세 번째 숫자 색상 */
.popular-posts-widget li:nth-child(3) .rank {
    color: rgba(0, 0, 0, 0.6); /* 세 번째 숫자는 더 연한 검정 */
}

/* 📌 네 번째 숫자 색상 */
.popular-posts-widget li:nth-child(4) .rank {
    color: rgba(0, 0, 0, 0.4); /* 네 번째 숫자는 더 연한 검정 */
}

/* 📌 다섯 번째 숫자 색상 */
.popular-posts-widget li:nth-child(5) .rank {
    color: rgba(0, 0, 0, 0.2); /* 다섯 번째 숫자는 가장 연한 검정 */
}
/* 링크 스타일 */
.popular-posts-widget a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.popular-posts-widget a:hover {
    color: #0073aa;
}

/* 📌 "많이 본 뉴스" 제목 스타일 */
.popular-posts-title {
    font-size: 20px; /* 제목 폰트 크기 */
    font-weight: bold; /* 굵은 글씨 */
    padding-top: 15px; /* 선과 텍스트 간 간격 */
	padding-left: 10px; /* 📌 텍스트만 오른쪽으로 20px 옮기기 */
    border-top: 3px solid #222; /* 📌 검은색 선을 위로 이동 */
	border-bottom: 1px solid #eee; /* 📌 하단 검은색 선 추가 */
	padding-bottom: 15px; /* 📌 선을 더 아래로 내리기 위한 패딩 */
	margin-bottom: 1px; /* 📌 "많이 본 뉴스"와 리스트 간 간격 줄이기 */
	margin-left: 15px; /* 제목에 마진 추가 */
	  display: -webkit-box;
    -webkit-line-clamp: 2; /* 두 줄로 제한 */
    -webkit-box-orient: vertical; /* 세로 방향 */
    overflow: hidden; /* 넘치는 텍스트 숨기기 */
    text-overflow: ellipsis; /* 길어지면 ... 처리 */
}

@media screen and (max-width: 768px) {
    .popular-posts-widget {
        margin-left: 0 !important; /* 강제로 좌측 여백 제거 */
    }

    .popular-posts-title {
        margin-left: 0 !important; /* 제목에도 강제로 좌측 여백 제거 */
    }
}

/* 📌 첫 번째 리스트 항목 자동 호버 색상 적용 */
.popular-posts-widget li:first-child {
    background-color: #f8f9fa; /* 📌 첫 번째 리스트 항목 배경 색상 */
}