/* ===== Homepage and general styles ===== */
body {
  background-image: url('images/emotion-coded-web-page.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Navigation */
nav {
  background-color: #222;
  padding: 1em;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff6f61;
  text-decoration: underline;
}

/* Header */
header {
  padding: 2em;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  max-width: 900px;
  margin: 30px auto;
  color: white;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Hero images side by side */
.hero-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-pair .hero-img {
  width: 350px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Main container */
main {
  max-width: 1200px;
  margin: 2em auto;
  padding: 2em;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  color: white;
  line-height: 1.8;
  font-size: 1.2rem;
}

/* Article images side by side */
.article-images-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-images-row img {
  width: 350px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Bottom images side by side */
.bottom-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.bottom-images img {
  width: 350px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Article pages */
article img {
  width: 80%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 15px;
  object-fit: cover;
}

/* Footer */
footer {
  text-align: center;
  padding: 1em;
  margin-top: 2em;
  font-size: 0.9em;
  background-color: #222;
  color: white;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-pair .hero-img,
  .article-images-row img,
  .bottom-images img {
    width: 45%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .hero-pair .hero-img,
  .article-images-row img,
  .bottom-images img {
    width: 100%;
    height: auto;
  }
}
