<style>
  #newsApp {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
  }

  #newsApp h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  }

  .news-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
  }

  .news-card small {
    color: #777;
    display: block;
  }

  .news-card a {
    text-decoration: none;
  }

  /* Pagination */
  button {
    padding: 10px 18px;
    margin: 12px 6px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  button:hover {
    background: #f5f5f5;
  }

  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* Responsive */
  @media (max-width: 900px) {
    .news-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .news-grid {
      grid-template-columns: 1fr;
    }
  }
</style>