/* ===========================
   Article Pages Styles
   Replaces content.css + sustainabilityBanner.css for articles
   Design tokens aligned with historia.css
   =========================== */

/* --- Article Hero Banner --- */
.article-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
  margin-top: 114px;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.article-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 2rem;
}

.article-hero__content h1 {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
  max-width: 900px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- Article Sections --- */
.article-section {
  padding: 4rem 1.5rem;
}

.article-section--white {
  background-color: #fff;
}

.article-section--gray {
  background-color: #f8f9fa;
}

.article-section__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.article-section__inner--img-left {
  flex-direction: row;
}

.article-section__inner--img-right {
  flex-direction: row-reverse;
}

.article-section__inner--text-only {
  display: block;
  max-width: 900px;
}

.article-section__image {
  flex: 0 0 40%;
  max-width: 420px;
}

.article-section__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-section__text {
  flex: 1;
}

.article-section__text h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 1rem;
  color: #1a5276;
}

.article-section__text p {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.9;
  color: #333;
  margin: 0;
}

/* --- Responsive: Tablet (768px) --- */
@media only screen and (max-width: 768px) {
  .article-hero {
    height: 40vh;
    margin-top: 80px;
  }

  .article-hero__content h1 {
    font-size: 2rem;
  }

  .article-section {
    padding: 3rem 1.25rem;
  }

  .article-section__inner,
  .article-section__inner--img-left,
  .article-section__inner--img-right {
    flex-direction: column;
    gap: 1.5rem;
  }

  .article-section__image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .article-section__text h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .article-section__text p {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* --- Responsive: Mobile (480px) --- */
@media only screen and (max-width: 480px) {
  .article-hero {
    height: 35vh;
    min-height: 240px;
    margin-top: 60px;
  }

  .article-hero__content h1 {
    font-size: 1.5rem;
  }

  .article-section {
    padding: 2rem 1rem;
  }

  .article-section__text h2 {
    font-size: 1.4rem;
  }

  .article-section__text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}
