@charset "UTF-8";

#defpage {
	width: 100%;
}

/* News List Styles */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.news-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
}

.news-item:first-child {
    padding-top: 0;
}

/* Badge */
.news-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #2196F3;
    background: #E3F2FD;
    border-radius: 20px;
    max-width: 60px;
    text-align: center;
}

/* Header with image */
.news-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-header .news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Body with image */
.news-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.news-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title large (no image) */
.news-title-large {
    margin: 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Description */
.news-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Link button */
.news-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #FF7043;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    max-width: 100px;

.news-link-btn:hover {
    background: #F4511E;
}

.news-link-btn span {
    font-size: 12px;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.news-pagination a {
    color: #555;
    background: #f5f5f5;
}

.news-pagination a:hover {
    background: #e0e0e0;
    color: #333;
}

.news-pagination span.current {
    background: #333;
    color: #fff;
}

.news-pagination .prev,
.news-pagination .next {
    font-size: 13px;
}

/* Empty State */
.news-list > p {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

.news-list .error {
    color: #c00;
}

/* Responsive */
@media (max-width: 600px) {
    .news-list {
        padding: 16px;
    }

    .news-item {
        padding: 20px 0;
    }

    .news-body {
        flex-direction: column;
        gap: 12px;
    }

    .news-image {
        width: 100%;
        height: 180px;
    }

    .news-title-large {
        font-size: 16px;
    }

    .news-description {
        font-size: 13px;
    }
}
