body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}
main{
  padding: 12px;
}
.container {
  margin-top: 12px;
  margin-bottom: 12px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
  text-align: center;
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.filter-bar select, .filter-bar input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
.filter-bar button {
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.news-list {
  list-style: none;
  padding: 0;
}
.news-item {
  display: flex;
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.news-item img {
  width: 150px;
  height: 100px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 15px;
}
.news-item h3 {
  margin: 0;
  font-size: 18px;
}
.news-item p {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}
.ellipsis-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loading Spinner Styles */
#loadingSpinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
