/*==============================================
    Faq One
===============================================*/
.faq-one {
  position: relative;
  display: block;
  padding: 270px 0 120px;
  background: linear-gradient(90deg, #E9EFFD 0%, #F5FDFC 100%);
  overflow: hidden;
  margin-top: -150px;
  z-index: 1;
}

.faq-one__img-1 {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.faq-one__img-1 img {
  width: auto;
}

.faq-one__shape-1 {
  position: absolute;
  top: 100px;
  left: 0;
  z-index: -1;
}

.faq-one__shape-1 img {
  width: auto;
}

/*==============================================
    Faq One Instyle2
===============================================*/

.faq-one--instyle2 {
  margin-top: 0;
  padding: 120px 0px 120px;

  /* FIX: lock the section to a fixed height so the background
     column can never resize, regardless of what the accordion
     content column does. Adjust this number to match your design. */
  height: 700px;
  overflow: hidden;
}

.faq-one--instyle2__bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: calc((100% - 180px) / 2);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  overflow: hidden;
  z-index: -1;
}

.faq-one--instyle2__bg2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: .05;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  mix-blend-mode: multiply;
  z-index: -2;
}

.faq-one--instyle2__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgb(var(--mediplace-black-rgb), .2);
}

/* FIX: the height:100% chain needs every ancestor between the
   fixed-height section and this element to also resolve to a
   real (non-auto) height, otherwise percentages collapse to
   "auto" and the absolutely-positioned call box (bottom:0) below
   ends up drifting when the accordion content grows internally. */
.faq-one--instyle2 > .container {
  height: 100%;
}

.faq-one__right--instyle2 {
  position: relative;
  display: block;
  height: 100%;
  padding-left: 620px;
}

.faq-one__right--instyle2-call {
  position: absolute;
  bottom: 0;
  right: 750px;
  overflow: hidden;
  max-width: 385px;
  text-align: center;
  background-color: var(--mediplace-base-lighter);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  padding: 50px 45px 50px;
}

.faq-one__right--instyle2-call-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: .05;
  mix-blend-mode: multiply;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
}

.faq-one__right--instyle2-question {
  position: relative;
  display: block;
  border-bottom: 1px solid rgb(var(--mediplace-black-rgb), .2);
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.faq-one__right--instyle2-question .icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  background-color: var(--mediplace-black);
  color: var(--mediplace-white);
  font-size: 20px;
  line-height: 20px;
  margin: 0px auto 0px;
}

.faq-one__right--instyle2-question .title {
  position: relative;
  display: block;
  padding-top: 13px;
}

.faq-one__right--instyle2-question .title h4 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  margin-bottom: 2px;
}

.faq-one__right--instyle2-question .title p {
  margin: 0;
  font-weight: 600;
}

.faq-one__right--instyle2-question .title p a {
  color: var(--mediplace-base);
  transition: all 200ms linear;
}

.faq-one__right--instyle2-question .title p a:hover {
  color: var(--mediplace-black);
}

.faq-one__right--instyle2-question .btn {
  position: relative;
  display: block;
  padding-top: 5px;
}

.faq-one__right--instyle2-question .btn a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--mediplace-black);
  font-size: 16px;
  line-height: 25px;
  font-family: var(--mediplace-font);
  font-weight: 500;
  transition: all 200ms linear;
  transition-delay: .1s;
}

.faq-one__right--instyle2-question .btn a:hover {
  color: var(--mediplace-base);
}

.faq-one__right--instyle2-question .btn a span {
  color: var(--mediplace-base);
  font-size: 14px;
  margin-right: 7px;
}

.faq-one__right--instyle2-call-inner {
  position: relative;
  display: block;
}

.faq-one__right--instyle2-call-title {
  position: relative;
  display: block;
}

.faq-one__right--instyle2-call-title h3 {
  font-size: 28px;
  line-height: 1em;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.faq-one__right--instyle2-call-btn {
  position: relative;
  display: block;
  margin-top: 21px;
}

.faq-one__right--instyle2-call-btn .thm-btn {
  text-transform: capitalize;
}

.faq-one--instyle2__btn {
  position: relative;
  display: block;
  margin-top: 30px;
}

.faq-one--instyle2__btn .thm-btn {
  text-transform: capitalize;
}

.faq-one__content-box-outer {
  position: relative;
  display: block;
  height: 100%;
}

/* FIX: this is the column that actually holds the accordion.
   It is capped and scrolls internally — it can grow/shrink
   without ever affecting the section's height. */
.faq-one--instyle2 .faq-one__content-box {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;

  /* hide scrollbar, keep scrolling functional */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/old Edge */
}

.faq-one--instyle2 .faq-one__content-box::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, new Edge */
}

@media (max-width: 991px) {
  .faq-one--instyle2 {
    height: auto;
    overflow: visible;
  }

  .faq-one__right--instyle2 {
    height: auto;
    padding-left: 0;
  }

  .faq-one__content-box-outer,
  .faq-one--instyle2 .faq-one__content-box {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/*==============================================
    Faq Accordion (custom)
===============================================*/
.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid #dbe4e8;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.faq-question {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
}

.faq-question h4 {
  margin: 0;
  color: #0b3442;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.faq-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #022f3d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: block;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 24px 20px;
}

.faq-answer-inner p {
  margin: 0 0 18px;
  color: #6b7b83;
  font-size: 16px;
  line-height: 1.7;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

@media (max-width: 991px) {
  .faq-question {
    padding: 24px;
  }

  .faq-question h4 {
    font-size: 24px;
  }

  .faq-answer-inner {
    padding: 0 24px;
  }

  .faq-answer-inner p {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .faq-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 767px) {
  .faq-question h4 {
    font-size: 20px;
  }

  .faq-answer-inner p {
    font-size: 16px;
  }

  .faq-icon {
    width: 42px;
    height: 42px;
  }
}