/* Layout 4 FAQ Timeline Accordion Styles */
.faq-layout4 {
  padding: 100px 0;
}
.faq-layout4 .container {
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.faq-layout4 .container .row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-left: 15px;
  padding-right: 15px;
  margin-right: -15px;
  margin-left: -15px;
}
.faq-layout4 .faq-wrapper .faqwrap-title {
  margin-bottom: 30px;
  color: #000;
  text-align: center;
}
.faq-layout4 .faq-wrapper .faqwrap-title h2 {
  margin-bottom: 20px;
  font-size: 48px;
  line-height: normal;
  text-transform: capitalize;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
}
.faq-layout4 .faq-wrapper .faqwrap-title p {
  font-size: 20px;
  line-height: normal;
  margin-bottom: 10px;
  font-weight: 500;
}
.faq-layout4 .faq-wrapper .faqwrap-title p:last-child {
  margin-bottom: 0;
}

.faq-layout4 .faq-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0px;
  padding-bottom: 35px;
  position: relative;
  transition: padding-bottom 0.3s ease;
}
.faq-layout4 .faq-item.active {
  padding-bottom: 0;
}
.faq-layout4 .faq-item .faq-number {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 2px solid #005bc5;
  color: #005bc5;
  font-weight: bold;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: #fff;
  transition: 0.3s ease;
  cursor: pointer;
}
.faq-layout4 .faq-item.active .faq-number {
  background: #005bc5;
  color: #fff;
}
.faq-layout4 .faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  width: 1px;
  height: calc(100% + 10px);
  background: #005bc5;
  z-index: -1;
  transition: 0.3s ease;
}
.faq-layout4 .faq-item:last-child::before {
  display: none;
}
.faq-layout4 .faq-item .faq-content {
  flex: 1;
  margin-left: 15px;
}
.faq-layout4 .faq-item .faq-content .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19.5px 0 19.5px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0;
  transition: margin-bottom 0.3s ease;
}
.faq-layout4 .faq-item.active .faq-content .faq-question {
  margin-bottom: 25px;
}
.faq-layout4 .faq-item .faq-content .faq-question h4 {
  color: #000;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px;
}
.faq-layout4 .faq-item.active .faq-content .faq-question h4,
.faq-layout4 .faq-item.active .faq-content .faq-question .faq-toggle {
  color: #005bc5;
}
.faq-layout4 .faq-item .faq-content .faq-question .faq-toggle {
  width: 25.42px;
  height: 25.46px;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  right: 52px;
  transition: 0.3s ease;
}
.faq-layout4 .faq-item.active .faq-content .faq-question .faq-toggle.has-default-icon {
  width: 25.42px;
  height: 3px;
}
.faq-layout4 .faq-answer {
  background: #ecf5ff;
  padding: 0 10px;
  overflow: hidden;
  opacity: 0;
  position: relative;
  margin-bottom: 0;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}
.faq-layout4 .faq-item.active .faq-answer {
  padding: 20px;
  opacity: 1;
  margin-bottom: 25px;
}
.faq-layout4 .faq-answer p {
  color: #323232;
  font-size: 20px;
  line-height: normal;
  font-weight: 500;
  margin: 0 0 10px;
}
.faq-layout4 .faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-layout4 .faq-answer::before {
  content: "";
  position: absolute;
  width: 4.85px;
  height: calc(100% - 44px);
  top: 0;
  margin: 22px 0;
  left: -2px;
  background-color: #005bc5;
}

@media (min-width: 1366px) {
  .faq-layout4 .container {
    max-width: 1398px;
  }
}
@media (max-width: 1599px) {
  .faq-layout4 .faq-wrapper {
    padding: 60px 15px 0;
  }
  .faq-layout4 .faq-item .faq-content .faq-question .faq-toggle {
    margin-top: 0;
  }
  .faq-layout4 .faq-answer {
    font-size: 20px;
    line-height: 28px;
  }
}
@media (max-width: 1199px) {
  .faq-layout4 .faq-wrapper {
    padding: 40px 15px;
    margin: 0px;
  }
  .faq-layout4 .faq-wrapper .faq-item .faq-question {
    padding: 20px 0 15px;
    font-size: 22px;
  }
  .faq-layout4 .faq-wrapper .faq-item .faq-answer {
    padding: 0 0 25px;
    font-size: 18px;
  }
  .faq-layout4 .faq-wrapper .faq-item .faq-question .icon {
    font-size: 24px;
  }
  .faq-layout4 .faq-item .faq-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  .faq-layout4 .faq-item::before {
    left: 30px;
  }
  .faq-layout4 .faq-item.active .faq-content .faq-question,
  .faq-layout4 .faq-item.active .faq-content .faq-answer {
    margin-bottom: 15px;
  }
}
@media (max-width: 1024px) {
  .faq-layout4 .faq-wrapper .faqwrap-title h2 {
    font-size: 40px;
  }
  .faq-layout4 .faq-item .faq-content .faq-question h4 {
    font-size: 22px;
  }
  .faq-layout4 .faq-wrapper .faqwrap-title p,
  .faq-layout4 .faq-answer p,
  .faq-layout4 .faq-answer {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .faq-layout4 .faq-wrapper .faq-item .faq-question {
    align-items: flex-start;
  }
  .faq-layout4 .faq-wrapper {
    padding: 30px 0 0 0;
  }
  .faq-layout4 .faq-item.active .faq-content .faq-question,
  .faq-layout4 .faq-item.active .faq-content .faq-answer {
    margin-bottom: 10px;
  }
  .faq-layout4 .faq-wrapper .faqwrap-title h2 {
    font-size: 30px;
  }
  .faq-layout4 .faq-wrapper .faqwrap-title p,
  .faq-layout4 .faq-answer {
    font-size: 16px;
  }
  .faq-layout4 .faq-item .faq-content .faq-question {
    padding: 0 10px 0;
  }
  .faq-layout4 .faq-item .faq-content .faq-question h4 {
    font-size: 20px;
    max-width: 80%;
  }
  .faq-layout4 .faq-answer p {
    font-size: 16px;
  }
  .faq-layout4 .faq-item .faq-number {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
  .faq-layout4 .faq-item .faq-content .faq-question .faq-toggle {
    width: 19.42px;
    height: 19.46px;
    position: unset;
  }
  .faq-layout4 .faq-item.active .faq-content .faq-question .faq-toggle {
    width: 19.42px;
  }
  .faq-layout4 .faq-item::before {
    left: 21px;
  }
}
@media (max-width: 575px) {
  .faq-layout4 .faq-wrapper .faq-item .faq-question {
    gap: 10px;
  }
}

/* Custom Icon support */
.faq-layout4 .faq-toggle {
  background-image: none !important;
}
.faq-layout4 .faq-toggle.has-custom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-layout4 .faq-toggle.has-custom-icon .faq-collapse-icon,
.faq-layout4 .faq-toggle.has-custom-icon .faq-expand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.faq-layout4 .faq-toggle .faq-collapse-icon {
  display: none !important;
}
.faq-layout4 .faq-toggle .faq-expand-icon {
  display: inline-block !important;
}
.faq-layout4 .faq-item.active .faq-toggle .faq-collapse-icon {
  display: inline-block !important;
}
.faq-layout4 .faq-item.active .faq-toggle .faq-expand-icon {
  display: none !important;
}
.faq-layout4 .faq-toggle.has-custom-icon .faq-collapse-icon {
  display: none !important;
}
.faq-layout4 .faq-toggle.has-custom-icon .faq-expand-icon {
  display: flex !important;
}
.faq-layout4 .faq-item.active .faq-toggle.has-custom-icon .faq-collapse-icon {
  display: flex !important;
}
.faq-layout4 .faq-item.active .faq-toggle.has-custom-icon .faq-expand-icon {
  display: none !important;
}
.faq-layout4 .faq-toggle.has-custom-icon i {
  font-size: inherit;
  line-height: 1;
}
.faq-layout4 .faq-toggle.has-custom-icon svg {
  width: 100% !important;
  height: 100% !important;
}
