{% import "../variable/_variables.css" %}

/* ==========================================================================
   Ruleguard FAQ
   ========================================================================== */

.rg-faq {
  position: relative;

  padding: 120px 0;

  background: #F5F3EE;
}

.rg-faq .page-center {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* INNER */

.rg-faq__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: flex-start;
}

/* LEFT COLUMN */

.rg-faq__content {
  position: sticky;
  top: 120px;
}

/* EYEBROW */

.rg-faq__eyebrow {
  margin-bottom: 18px;

  color: #F26C0C;

  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* TITLE */

.rg-faq__title {
  margin: 0 0 24px;

  color: #F26C0C;

  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 52px;
  line-height: 55.12px;
  font-weight: 400;
}

/* DESCRIPTION */

.rg-faq__description {
  color: #1D2433;

  font-family: 'Gabarito', sans-serif;
  font-size: 16px;
  line-height: 26.4px;
  font-weight: 400;
}

.rg-faq__description p:last-child {
  margin-bottom: 0;
}

/* RIGHT COLUMN */

.rg-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ITEM */

.rg-faq__item {
  overflow: hidden;

  background: #F5F3EE;

  border: 1px solid rgba(29, 36, 51, .35);
  border-radius: 10px;

  box-shadow:
    0 2px 4px rgba(0,0,0,.04),
    0 8px 20px rgba(0,0,0,.05);

  transition:
    border-color .3s ease,
    box-shadow .3s ease;
}

.rg-faq__item:hover {
  border-color: #1D2433;

  box-shadow:
    0 4px 10px rgba(0,0,0,.06),
    0 12px 28px rgba(0,0,0,.08);
}

/* BUTTON */

.rg-faq__trigger {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 24px;

  padding: 18px 20px;

  border: 0;
  background: transparent;

  text-align: left;
  cursor: pointer;
}

.rg-faq__trigger:focus,
.rg-faq__trigger:focus-visible {
  outline: none;
}

/* QUESTION */

.rg-faq__question {
  color: #1D2433;

  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
}

/* ICON */

.rg-faq__icon {
  position: relative;

  flex-shrink: 0;

  width: 18px;
  height: 18px;
}

.rg-faq__icon::before,
.rg-faq__icon::after {
  content: '';

  position: absolute;

  left: 50%;
  top: 50%;

  width: 14px;
  height: 2px;

  background: #1D2433;

  transform: translate(-50%, -50%);

  transition: transform .25s ease;
}

.rg-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.rg-faq__item.is-open .rg-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg) scaleY(0);
}

/* ANSWER */

.rg-faq__content-wrap {
  overflow: hidden;

  max-height: 0;

  transition: max-height .35s ease;
}

.rg-faq__answer {
  padding: 0 20px 20px;
}

.rg-faq__answer,
.rg-faq__answer p,
.rg-faq__answer li {
  color: #1D2433;

  font-family: 'Gabarito', sans-serif;
  font-size: 16px;
  line-height: 26.4px;
  font-weight: 400;
}

.rg-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {

  .rg-faq {
    padding: 90px 0;
  }

  .rg-faq__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .rg-faq__content {
    position: static;
  }

  .rg-faq__title {
    font-size: 46px;
  }

}

@media (max-width: 767px) {

  .rg-faq {
    padding: 70px 0;
  }

  .rg-faq__title {
    font-size: 38px;
  }

  .rg-faq__trigger {
    padding: 16px;
  }

  .rg-faq__answer {
    padding: 0 16px 16px;
  }

  .rg-faq__question {
    font-size: 17px;
  }

}