/* Todo o CSS do seu HTML original */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
}

.header {
  background-color: #1a1a1a;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: white;
}

.logo i {
  margin-right: 8px;
}

.search-container {
  flex-grow: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-bar {
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  background-color: #333;
  color: white;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.user-actions {
  display: flex;
  align-items: center;
}

.user-actions i {
  margin-left: 15px;
  color: #ccc;
  cursor: pointer;
}

.main-content {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.section-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background-color: #ff9800;
  margin-top: 5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.news-card {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
}

.news-meta {
  font-size: 12px;
  color: #aaa;
}

.news-source {
  display: inline-block;
  background-color: #333;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 8px;
}

.weather-widget {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.weather-info {
  display: flex;
  align-items: center;
}

.weather-icon {
  font-size: 24px;
  margin-right: 10px;
}

.temperature {
  font-size: 24px;
  font-weight: bold;
}

.categories-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.category-card {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 15px;
}

.category-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.category-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.category-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.sources-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.source-card {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.source-logo {
  font-size: 24px;
  margin-bottom: 10px;
  color: #ff9800;
}

.source-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.source-desc {
  font-size: 12px;
  color: #aaa;
}

.footer {
  background-color: #1a1a1a;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    margin: 15px 0;
  }

  .nav-menu {
    justify-content: center;
    margin: 15px 0;
  }

  .nav-menu li {
    margin: 0 10px;
  }

  .main-content {
    padding: 10px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .categories-section,
  .sources-section {
    grid-template-columns: 1fr;
  }
}

/* ... restante do CSS ... */
