/* Pazhoohan blog - original grid with custom posters */

.topics-section .topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.topics-section .topics-grid > .topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  margin: 0;
  grid-column: auto;
  grid-row: auto;
}

.topics-section .topic-card .topic-art {
  position: relative;
  display: block;
  width: 100%;
  height: 165px;
  min-height: 165px;
  overflow: hidden;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.topics-section .topic-card .topic-art::before,
.topics-section .topic-card .topic-art::after {
  content: none;
  display: none;
}

.topics-section .topic-art .art-index,
.topics-section .topic-art .art-symbol,
.topics-section .topic-art .art-ai-symbol {
  display: none;
}

/* Individual card posters */

.topics-section .topic-card:nth-child(1) .topic-art {
  background-color: #e9bb72;
  background-image: url("/assets/blog/topics/ai-science.webp");
}

.topics-section .topic-card:nth-child(2) .topic-art {
  background-color: #087577;
  background-image: url("/assets/blog/topics/geoai.webp");
}

.topics-section .topic-card:nth-child(3) .topic-art {
  background-color: #244668;
  background-image: url("/assets/blog/topics/opentools.png");
}

.topics-section .topic-card:nth-child(4) .topic-art {
  background-color: #654563;
  background-image: url("/assets/blog/topics/evidence01.png");
}

.topics-section .topic-card:nth-child(5) .topic-art {
  background-color: #4e697b;
  background-image: url("/assets/blog/topics/cause-effect.png");
}

.topics-section .topic-card:nth-child(6) .topic-art {
  background-color: #205b57;
  background-image: url("/assets/blog/topics/datalab.png");
}

.topics-section .topic-card .topic-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 20px 22px;
}

.topics-section .topic-card .topic-body h3 {
  min-height: 0;
  margin: 9px 0;
}

.topics-section .topic-card .topic-body p {
  min-height: 0;
  margin: 0 0 18px;
}

.topics-section .topic-card .topic-status {
  align-self: flex-start;
  margin-top: auto;
}

/* Tablet */

@media (max-width: 1050px) {
  .topics-section .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .topics-section .topics-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .topics-section .topic-card .topic-art {
    height: 160px;
    min-height: 160px;
  }

  .topics-section .topic-card .topic-body {
    padding: 18px;
  }
}

/* Published article links */
.topics-section .topic-card .article-card-link {
  color: inherit;
  text-decoration: none;
}

.topics-section .topic-card .article-card-link:hover {
  color: #23699c;
  text-decoration: underline;
  text-underline-offset: 4px;
}
