/* News Page Styles */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.news-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.news-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-card-header time {
    color: #6c757d;
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #667eea;
}

.news-summary {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.news-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.news-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: #764ba2;
    text-decoration: none;
}

.news-read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(4px);
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.news-empty i {
    margin-bottom: 1.5rem;
    color: #dee2e6;
}

/* Pagination */
.news-pagination {
    margin-top: 3rem;
}

.news-pagination .pagination {
    gap: 0.5rem;
}

.news-pagination .page-link {
    border-radius: 8px;
    color: #667eea;
    border: 1px solid #dee2e6;
}

.news-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* News Detail Page */
.news-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.news-detail-header {
    margin-bottom: 2rem;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.news-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.news-breadcrumb a:hover {
    text-decoration: underline;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.news-detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.news-detail-meta i {
    margin-right: 0.5rem;
}

.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.news-detail-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.news-detail-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.news-detail-content p {
    margin-bottom: 1.2rem;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-content li {
    margin-bottom: 0.5rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.news-detail-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #495057;
}

/* Source Section */
.news-detail-source {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.source-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.source-label i {
    color: #667eea;
}

.source-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.source-info a:hover {
    text-decoration: underline;
}

.source-info i {
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.source-disclaimer {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #6c757d;
}

/* Share Section */
.news-detail-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.share-label {
    font-weight: 600;
    color: #2c3e50;
}

.news-detail-share .social-links {
    display: flex;
    gap: 1rem;
}

.news-detail-share .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-detail-share .social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.news-detail-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

/* Admin Page Styles */
.news-admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.news-admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-admin-header h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.news-admin-header h1 i {
    color: #667eea;
}

.news-form .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-form .card-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.content-preview h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-preview h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.content-preview p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 180px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-header h1 {
        font-size: 2rem;
    }

    .news-detail-title {
        font-size: 2rem;
    }

    .news-detail-meta {
        gap: 1rem;
    }

    .news-detail-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

