/* News Page Styles */
.news-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Banner Section */
.news-hero-banner {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.news-hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* News Header */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.news-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 0px solid #ddd;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.news-search-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    text-decoration: none;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.news-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.news-card-date {
    color: #666;
}

.news-card-category {
    color: #7c3aed;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Detail Page */
.news-detail-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-detail-banner {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.news-detail-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.news-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3 {
    font-weight: 700;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-detail-content h1 {
    font-size: 28px;
}

.news-detail-content h2 {
    font-size: 24px;
}

.news-detail-content h3 {
    font-size: 20px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news-detail-content li {
    margin-bottom: 10px;
}

/* Related News Section */
.related-news-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-news-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-news-item:hover {
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
    text-decoration: none;
    color: inherit;
}

.related-news-image {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-content {
    flex: 1;
}

.related-news-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-date {
    font-size: 13px;
    color: #999;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.news-pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.news-pagination-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    text-decoration: none;
}

.news-pagination-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border-color: #7c3aed;
}

.news-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.news-empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.news-empty-state h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.news-empty-state p {
    color: #999;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-container {
        padding: 15px;
    }

    .news-title {
        font-size: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-detail-title {
        font-size: 28px;
    }

    .news-detail-content {
        font-size: 15px;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-search-btn {
        width: 100%;
        justify-content: center;
    }
}
