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

/* 📌 리스트 아이템 정렬 (이미지를 오른쪽으로) */
.widget-side-image li {
    display: flex;
    flex-direction: row-reverse; /* 이미지와 글 위치 변경 */
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* 📌 백그라운드 호버 효과 */
.widget-side-image li:hover {
    background: #f8f9fa;
}

/* 📌 이미지 스타일 (90x60 고정, 우측 정렬) */
.widget-side-image img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    margin-left: 10px; /* 기존 margin-right → margin-left로 변경 */
    border-radius: 2px;
}

/* 📌 글 스타일 (왼쪽 배치) */
.widget-side-image .content {
    width: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 링크 스타일 */
.widget-side-image a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget-side-image a:hover {
    color: #0073aa;
}

/* 📌 "함께보면좋은콘텐츠" 제목 스타일 */
.widget-side-image-title {
    font-size: 20px;
    font-weight: bold;
    padding-top: 15px;
    padding-left: 10px;
    border-top: 3px solid #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 1px;
    margin-left: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 📌 개별 게시글 제목 스타일 (최대 2줄 제한) */
.widget-side-image .content a {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 최대 2줄 제한 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}



@media screen and (max-width: 768px) {
    .widget-side-image {
        margin-left: 0 !important;
    }

    .widget-side-image-title {
        margin-left: 0 !important;
    }
}
