/* News List Page Styles */


/* News List Layout */
.news-list-container {
    padding-bottom: 60px;
}

.news-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* News Item Styles */
.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.news-thumbnail {
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-dates {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.news-dates {
    color: #999;
   
}

.news-dates i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-nav, .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.page-number.active, 
.page-number:hover,
.page-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-nav.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
    }

    .news-thumbnail {
        height: 200px;
    }

  
}

@media (max-width: 576px) {
    .news-thumbnail {
        height: 150px;
    }
}

/* News Detail Page Styles */
.news-detail-container {
    padding-bottom: 60px;
}

.news-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.news-detail-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.news-detail-content h1,
.news-detail-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 4px;
    display: block;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.news-date, .news-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-date {
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 8px;
    color: var(--primary-color);
}

.news-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.tag:active {
    transform: translateY(0);
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-prev, .news-next {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.news-prev:hover, .news-next:hover {
    background: var(--primary-color);
    color: white;
}

.news-prev i {
    margin-right: 8px;
}

.news-next i {
    margin-left: 8px;
}

/* Responsive Styles for News Detail */
@media (max-width: 992px) {
    .news-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-prev, .news-next {
        width: 100%;
        justify-content: center;
    }
}