/**
 * 2007-2024 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 *
 * @author    Régis Daum
 * @copyright 2007-2024
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
.johnsteel-faq-container {
  display: flex;
  gap: 50px;
}
.johnsteel-faq-text {
  max-width: 100%;
}
.johnsteel-pastille {
  background-color: var(--primary);
  color: #fff;
  padding: 4px 18px;
  border-radius: 100vw;
  font-weight: 600;
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.johnsteel-pastille-white {
  background-color: #fff;
  color: var(--primary);
}
.johnsteel-pastille span {
  font-size: 1.2rem;
}
.accordion {
  flex-grow: 1;
}
.johnsteel-faq-container .faq-card {
  border: 1px solid #ebebeb;
  margin-bottom: 10px;
  overflow: hidden;
  background-color: #fcfcfc;
  border-radius: 10px;
}

.johnsteel-faq-container .faq-card-header {
  padding: 0;
  border-bottom: 1px solid #dee2e6;
}

.johnsteel-faq-container .faq-card-header .btn-link {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.johnsteel-faq-container .faq-card-header .btn-link:hover {
  color: var(--primary);
  border-radius: 0 !important;
}

.johnsteel-faq-container .faq-card-header .btn-link:focus {
  box-shadow: none;
  outline: none;
}

.johnsteel-faq-container .faq-question-icon {
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.johnsteel-faq-container .faq-question-icon i {
  transition: transform 0.3s ease;
}

.johnsteel-faq-container
  .faq-card-header
  .btn-link[aria-expanded="true"]
  .faq-question-icon
  i {
  transform: rotate(45deg);
}

.johnsteel-faq-container .faq-question-text {
  flex: 1;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: break-spaces;
}

.johnsteel-faq-container .collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease-in-out 0.1s;
  opacity: 0;
  overflow: hidden;
}

.johnsteel-faq-container .collapse.show {
  grid-template-rows: 1fr;
  opacity: 1;
}

.johnsteel-faq-container .card-body {
  min-height: 0;
  padding: 0 20px;
  background-color: #fff;
  overflow: hidden;
  transition: padding-top 0.4s ease-in-out, padding-bottom 0.4s ease-in-out;
}

.johnsteel-faq-container .collapse.show .card-body {
  padding-top: 20px;
  padding-bottom: 20px;
}

.johnsteel-faq-container .faq-answer {
  line-height: 1.6;
  color: #555;
}

.johnsteel-faq-container .faq-answer p {
  margin-bottom: 10px;
}

.johnsteel-faq-container .faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .johnsteel-faq-container {
    flex-direction: column;
  }

  .johnsteel-faq-container .faq-card-header .btn-link {
    padding: 12px 15px;
    font-size: 14px;
  }

  .johnsteel-faq-container .card-body {
    padding: 15px;
  }
}
