* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #111;
  color: #eee;
  width: 100%;
  overflow-x: hidden;
}

.container,
.news-container {
  padding: 0 10px;
  width: 100%;
  margin: 0 auto;
}

h1 {
  color: #0af;
  text-align: center;
  margin: 20px 0;
  scroll-margin-top: 80px;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  min-height: 300px;
}

.news-card {
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.news-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.news-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #58a6ff;
}

.news-excerpt {
  font-size: 0.85rem;
  color: #ccc;
  flex-grow: 1;
}

.news-footer {
  margin-top: 12px;
  text-align: right;
}

.news-footer a {
  font-size: 0.8rem;
  padding: 6px 12px;
  background-color: #007acc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.news-footer a:hover {
  background-color: #005fa3;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination button {
  background-color: #222;
  color: #eee;
  border: 1px solid #444;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button.active {
  background-color: #007acc;
  color: #fff;
  font-weight: bold;
}

.pagination button:hover {
  background-color: #005fa3;
}

#loadingScreen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #0af;
  border-radius: 50%;
  animation: lds-ring 1.2s linear infinite;
  border-color: #0af transparent transparent transparent;
}

@keyframes lds-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }
  .news-container {
    padding: 10px;
  }
  .news-card {
    max-width: 100%;
  }
  .news-title {
    font-size: 0.95rem;
  }
}
.news-loading-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0 60px;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
