@font-face {
    font-family: 'NEXON Lv1 Gothic OTF';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* 메인 컨테이너 */
.news-container {
    font-family: 'NEXON Lv1 Gothic OTF', sans-serif;
    max-width: 1110px;
    margin: 0 auto;
}

/* 헤더 스타일 */
.news-header {
    margin-bottom: 20px;
}

/* 상단 네비게이션 */
.navigation-buttons {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 12px 20px;
    background-color: #fff;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-btn:hover, .nav-btn.active {
    color: #2d62ea;
    border-bottom: 2px solid #2d62ea;
    background-color: #fff;
}

.news-title {
    margin: 0 0 20px 0;
    padding: 0 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* 목록 스타일 */
.list-container {
    margin-bottom: 0;
}

.list-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  border-bottom: 1px solid #eee;
  gap: 10px;
}

.list-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.item-info {
    flex: 1;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-info a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-height: 2.8em;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
}

.item-info a:hover {
    text-decoration: underline;
}

.item-details {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
    align-items: center;
}

.rank-number {
    color: #2d62ea;
    font-weight: bold;
    margin-right: 5px;
}

.view-count {
    background-color: #dae7ff;
    padding: 2px 5px;
    border-radius: 2px;
}

/* 데이터 없음 표시 */
.no-data {
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: 1.1em;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .news-container {
        max-width: none;
        padding: 0 10px;
    }

    .news-header {
        padding: 10px 0;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .list-item {
        padding: 15px 0;
    }

@media (max-width: 768px) {
    .item-info a {
        font-size: 15px;
    }
    .title-content .subject-link {
        font-size: 15px;
    }
    .board-name {
        font-size: 15px;
    }
}

    .item-info a {
        font-size: 15px;
    }

    .item-details {
        font-size: 15px;
    }

    .rank-number {
        font-size: 13px;
    }
}