/* css/components/article-cards-container.css and the cards part of css/pages/resources/case-studies.css */

/* The light page of the Django /customer-stories/ */
body:has(.cases-cards-section) {
  background-color: var(--grayscale-color-1);
  color: var(--grayscale-color-10);
}

body:has(.cases-cards-section) .footer-form-container {
  background: linear-gradient(8.28deg, rgba(0, 0, 0, 1) 23.47%, #ff7527 132.87%);
}

body:has(.cases-cards-section) .footer-form-description {
  color: var(--grayscale-color-1);
}

.cases-cards-section .section-text {
  text-align: left;
  margin-bottom: 2.5rem;
}

/* The intro of the content sheet above the cases (869d5bcxm) */
.cases-cards-section .cases-intro {
  margin-bottom: 4rem;
}

.cases-cards-section .cases-intro .description {
  max-width: 900px;
  margin-top: 1rem;
  color: var(--grayscale-color-7);
}

@media screen and (max-width: 768px) {
  .cases-cards-section .cases-intro {
    margin-bottom: 2.5rem;
  }
}

.article-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(30%, 350px), 1fr));
  gap: 2rem;
}

.article-cards-container .article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;

  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f3f3f3;
  background: var(--grayscale-color-1);
  box-shadow: 0 8px 29px 0 rgba(154, 154, 166, 0.08);
  text-decoration: none;
  color: var(--grayscale-color-10);
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out,
    rotate 0.3s ease-in-out;

  z-index: 1;
  position: relative;
}

.article-cards-container .article-card:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 29px 0 rgba(255, 132, 63, 0.1);
}

.article-cards-container .article-card h4 {
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  margin-bottom: 0.875rem;
}

.article-cards-container .article-card .info {
  padding: 0 1.75rem 1.75rem;
}

.article-cards-container .article-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-bottom: 1px solid #f3f3f3;
}

.article-cards-container .article-card .article-info {
  margin-bottom: 1.125rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-cards-container .article-card .article-info .tag {
  border-radius: 100px;
  background: #fffaf8;
  color: #ff7322;
  font-size: var(--font-size-sm-1);
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  padding: 0.5rem 1rem;
}

.article-cards-container .article-card .article-info .date {
  color: var(--grayscale-color-6);
  font-size: var(--font-size-sm-1);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

@media screen and (max-width: 768px) {
  .cases-cards-section .section-text {
    margin-bottom: 1.75rem;
  }
}

@media screen and (max-width: 576px) {
  .article-cards-container {
    grid-template-columns: 1fr;
  }
}

/* Problem / Solution / Result under the card description (the content sheet, 869d5bcxm) */
.article-cards-container .article-card .summary {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f3f3;
  color: var(--grayscale-color-7);
  font-size: var(--font-size-sm-1);
  line-height: 150%;
}

.article-cards-container .article-card .summary p + p {
  margin-top: 0.5rem;
}
