/* About page header */
.about-header {
  position: relative;
  display: flex;
  align-items: end;
  padding: 24rem 7.5rem 2.5rem 7.5rem;
  background-color: var(--primary-black);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
}

.about-header__content {
  width: min(100%, 1200px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-header__title,
.about-header__subtitle {
  max-width: 60rem;
}

@media (max-width: 1000px) {
  .about-header {
    min-height: 20rem;
    padding: 16rem 1.5rem 3rem 1.5rem;
  }

  .about-header::before {
    background: rgba(20, 20, 20, 0.58);
  }
}

/* Articles cards section styles (for template-parts/sections/articles.php) */
.articles-cards-sec {
  padding: 7.5rem;
  background-color: var(--dark-grey);
}

.articles-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.articles-desc-wrapper {
  grid-column: span 2;
  padding: 0 2.5rem 0 5rem;
}

.articles-desc-wrapper h3 {
  color: var(--light-green);

  margin: 0 0 8px;
  font-size: 1.5rem;
}

.articles-desc-wrapper p {
  margin: 0 0 16px;
  color: var(--light-green);
}

.article-snippet-wrapper {
  width: 100%;
}

.article-card {
  display: block;
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.article-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: rgba(47, 47, 47, 0.7);
  backdrop-filter: blur(2px);
  align-items: flex-start;
}

.article-card-overlay h4 {
  margin: 0 0 8px;
  color: var(--light-green);
  font-size: 1.05rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.article-card-btn {
  display: inline-block;
  background: var(--light-green);
  color: var(--primary-black);
  padding: 6px 10px;
  font-size: 0.9rem;
  text-transform: capitalize;

  &:hover {
    background: var(--primary-white);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .articles-cards-sec {
    padding: 4rem 2rem;
  }

  .articles-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-desc-wrapper {
    grid-column: span 1;
    padding: 0;
  }

  .articles-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem 0;
    align-items: center;
  }
}

/* About main info sections */
.collectors-sec,
.history-sec,
.certified-sec,
.platforms-sec {
  padding: 7.5rem;
  background-color: var(--primary-black);
  background-size: cover;
}

.history-sec {
  background-color: var(--dark-grey);
  background-size: cover;
}

.section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-image,
.section-content {
  min-width: 0;
}

/* .section-image {
  order: -1;
} */

.section-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-title {
  margin-bottom: 1rem;
}

/* Certification and platform image sets */
.certified-sec .section-image,
.platforms-sec .section-image {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.certified-sec .section-image {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
}

.platforms-sec .section-image {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 0 auto;

  > img {
    width: auto;
  }
}

.platforms-sec .section-content {
  text-align: center;
}

.certified-sec .section-image img,
.platforms-sec .section-image img {
  object-fit: contain;
}

@media (max-width: 1000px) {
  .collectors-sec,
  .history-sec,
  .certified-sec,
  .platforms-sec {
    padding: 6rem 2rem;
  }

  .section-container {
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .section-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .section-image,
  .section-content {
    max-width: none;
    width: 100%;
  }

  .section-content {
    order: 0;
  }

  .certified-sec .section-image {
    gap: 1rem;
  }
}

@media (max-width: 500px) {
  .collectors-sec,
  .history-sec,
  .certified-sec,
  .platforms-sec {
    padding: 3rem 1.5rem;
  }
}

.container-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
