/* Qonto-style Cards Section */

.section_qonto-cards {
  padding: 7rem 0;
}
.qc-container {
  max-width: 1307px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header */
.qc-header {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.qc-header h2 {
  font-size: 38px;
  font-weight: 500;
  line-height: 43px;
  color: #171717;
  margin: 0;
  max-width: 600px;
}
.qc-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #171717;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.qc-header-cta:hover {
  background-color: #333;
}

/* Carousel wrapper */
.qc-carousel {
  overflow: hidden;
  position: relative;
}
.qc-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.qc-track::-webkit-scrollbar {
  display: none;
}

/* Card */
.qc-card {
  flex: 0 0 calc(30% - 1rem);
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #E0E0E0;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: all 0.333s ease-in-out;
}
.qc-card:hover {
  border-color: #bbb;
}

/* Card content */
.qc-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.qc-card-content h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  color: #171717;
  margin: 0 0 0.75rem;
}
.qc-card-content p {
  font-size: 15px;
  line-height: 23px;
  color: #686868;
  margin: 0;
}

/* Card tag */
.qc-card-tag {
  font-size: 13px;
  font-weight: 500;
  color: #72E3AD;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Card features */
.qc-card-features {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F0F0F0;
}
.qc-card-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.qc-card-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.qc-card-feature div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.qc-card-feature strong {
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  line-height: 20px;
}
.qc-card-feature span {
  font-size: 13px;
  line-height: 19px;
  color: #999;
}

/* Card button */
.qc-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 15px;
  font-weight: 500;
  color: #171717;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.qc-card-btn:hover {
  gap: 0.75rem;
}
.qc-card-btn svg {
  transition: transform 0.2s ease;
}
.qc-card-btn:hover svg {
  transform: translateX(2px);
}

/* Scroll indicator */
.qc-scroll-indicator {
  margin-top: 2rem;
  width: 100%;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.qc-scroll-bar {
  height: 100%;
  background-color: #171717;
  border-radius: 2px;
  width: 33%;
  transition: transform 0.15s ease-out;
}

/* Responsive */
@media screen and (max-width: 991px) {
  .section_qonto-cards {
    padding: 5rem 0;
  }
  .qc-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .qc-header h2 {
    font-size: 32px;
    line-height: 38px;
  }
  .qc-card {
    flex: 0 0 calc(45% - 0.75rem);
  }
}
@media screen and (max-width: 767px) {
  .section_qonto-cards {
    padding: 4rem 0;
  }
  .qc-container {
    padding: 0 1rem;
  }
  .qc-header h2 {
    font-size: 28px;
    line-height: 34px;
  }
  .qc-card {
    flex: 0 0 85%;
  }
  .qc-card-content {
    padding: 1.25rem;
  }
}
