.container-articles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
  background-color: #fff;
  min-height: 80vh;
}

.container-articles.dark {
  background-color: #1c1c1c;
  color: #fff;
}

#main-articles.dark {
  background-color: #1c1c1c;
}

.container-articles h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #1c1c1c;
}

.container-articles.dark h1 {
  color: #fff;
}

.intro-text {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 2em;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.container-articles.dark .intro-text {
  color: #b2b2b2;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2em;
  margin-bottom: 3em;
}

.article-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.container-articles.dark .article-card {
  background: #2a2a2a;
  border: 1px solid #404040;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.container-articles.dark .article-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.article-header {
  margin-bottom: 1em;
}

.article-header h2 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  color: #1c1c1c;
  line-height: 1.3;
}

.container-articles.dark .article-header h2 {
  color: #fff;
}

.article-date {
  font-size: 0.9em;
  color: #888;
  font-style: italic;
}

.container-articles.dark .article-date {
  color: #aaa;
}

.article-content {
  margin-bottom: 1.5em;
}

.article-content p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 1em;
}

.container-articles.dark .article-content p {
  color: #ccc;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1em;
}

.tag {
  background: #007bff;
  color: white;
  padding: 0.3em 0.8em;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 500;
}

.container-articles.dark .tag {
  background: #0056b3;
}

.article-footer {
  text-align: right;
}

.read-more {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #0056b3;
  text-decoration: underline;
}

.container-articles.dark .read-more {
  color: #4dabf7;
}

.container-articles.dark .read-more:hover {
  color: #74c0fc;
}

.newsletter-section {
  background: #f8f9fa;
  padding: 2em;
  border-radius: 10px;
  text-align: center;
  margin-top: 3em;
  border: 1px solid #e9ecef;
}

.container-articles.dark .newsletter-section {
  background: #2a2a2a;
  border: 1px solid #404040;
}

.newsletter-section h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #1c1c1c;
}

.container-articles.dark .newsletter-section h3 {
  color: #fff;
}

.newsletter-section p {
  color: #666;
  margin-bottom: 1.5em;
}

.container-articles.dark .newsletter-section p {
  color: #b2b2b2;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1em;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.container-articles.dark .newsletter-form input {
  background: #404040;
  border: 1px solid #555;
  color: #fff;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #007bff;
}

.newsletter-form button {
  padding: 0.8em 1.5em;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #0056b3;
}

/* Mobile Responsive Styles for Articles Page */
@media screen and (max-width: 768px) {
  .container-articles {
    padding: 1.5em;
  }

  .container-articles h1 {
    font-size: 2em;
  }

  .intro-text {
    font-size: 1.1em;
    margin-bottom: 1.5em;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
    margin-bottom: 2em;
  }

  .article-card {
    padding: 1.2em;
  }

  .article-header h2 {
    font-size: 1.2em;
  }

  .newsletter-section {
    padding: 1.5em;
    margin-top: 2em;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.8em;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .container-articles {
    padding: 1em;
  }

  .container-articles h1 {
    font-size: 1.8em;
  }

  .intro-text {
    font-size: 1em;
  }

  .article-card {
    padding: 1em;
  }

  .article-header h2 {
    font-size: 1.1em;
  }

  .article-content p {
    font-size: 0.95em;
  }

  .article-tags {
    gap: 0.3em;
  }

  .tag {
    font-size: 0.75em;
    padding: 0.25em 0.6em;
  }

  .newsletter-section {
    padding: 1.2em;
  }

  .newsletter-section h3 {
    font-size: 1.3em;
  }
}
