/* News List Page Modern Design */

.newslist-section {
  padding: 60px 0;
  background: #f8f9fa;
}

/* News Grid Layout */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-image {
  flex: 0 0 300px;
  position: relative;
  overflow: hidden;
}

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

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

.news-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-header {
  margin-bottom: 20px;
}

.news-category {
  display: inline-block;
  background: linear-gradient(45deg, #007cba, #0056b3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.news-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
  color: #fff;
  text-decoration: none;
}

.news-title {
  margin: 0 0 15px;
}

.news-title a {
  color: #2c3e50;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-title a:hover {
  color: #007cba;
  text-decoration: none;
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.meta-item i {
  margin-right: 6px;
  color: #007cba;
  font-size: 12px;
}

.news-excerpt {
  color: #495057;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.news-excerpt p {
  margin: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #007cba;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
  text-decoration: none;
  transform: translateX(5px);
}

.read-more i {
  margin-left: 8px;
  transition: all 0.3s ease;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Pagination Styles */
.pagebar {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-item.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 8px 12px;
  background: #fff;
  color: #495057;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-item.page-link:hover {
  background: #007cba;
  color: #fff;
  border-color: #007cba;
  transform: translateY(-2px);
  text-decoration: none;
}

.page-item.page-link.st {
  font-weight: 700;
}

/* No Data Message */
.no-data {
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
  font-size: 18px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .news-item {
    flex-direction: column;
  }
  
  .news-image {
    flex: none;
    height: 250px;
  }
  
  .news-content {
    padding: 30px;
  }
  
  .news-title a {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .newslist-section {
    padding: 40px 0;
  }
  
  .news-grid {
    gap: 20px;
  }
  
  .news-content {
    padding: 25px 20px;
  }
  
  .news-title a {
    font-size: 20px;
  }
  
  .news-meta {
    gap: 15px;
  }
  
  .meta-item {
    font-size: 13px;
  }
  
  .news-excerpt {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .news-image {
    height: 200px;
  }
  
  .news-content {
    padding: 20px 15px;
  }
  
  .news-title a {
    font-size: 18px;
  }
  
  .news-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 3px;
  }
  
  .page-item.page-link {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .page-item.page-link.hidden-sm {
    display: none;
  }
}