/* Base styles for the AI Tools Hub website */
/* Import modern web fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@400;500;700&display=swap');

body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

header {
  text-align: center;
  padding: 1rem;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
}

header p {
  margin: 0.5rem 0 1rem 0;
  font-size: 1.2rem;
  color: #666;
  font-family: 'Inter', sans-serif;
}

header img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1rem 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.articles article {
  background-color: #fff;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.articles article h3 {
  margin-top: 0;
  font-family: 'Poppins', sans-serif;
}

.articles article a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.articles article a:hover {
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style for images within article cards on the homepage */
.articles article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Style for hero images within individual articles */
.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Override default anchor underline globally */
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f1f1f1;
  color: #666;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Subscription section styles */
.subscribe {
  background-color: #fff;
  padding: 1.5rem;
  margin: 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  text-align: center;
}

.subscribe h3 {
  margin-top: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
}

.subscribe p {
  margin: 0.5rem 0 1rem 0;
  font-size: 1rem;
  color: #555;
}

.subscribe form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.subscribe input[type="email"] {
  flex: 1 1 250px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.subscribe button {
  padding: 0.5rem 1rem;
  background-color: #0077cc;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.subscribe button:hover {
  background-color: #005fa3;
}