/* =========================================
   FAQ — DESKTOP FIRST
========================================= */

.faq {
  padding: 100px 0 110px;
  background: #f7fbfe;
}

.faq-heading {
  margin-bottom: 42px;
}

.faq-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #176B9B;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  align-items: start;
  gap: 36px;
}

/* FAQ ACCORDION */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.faq-item {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce9f2;
  border-radius: 13px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item:hover {
  border-color: #8dbbd7;
  box-shadow: 0 7px 22px rgba(23, 107, 155, .07);
}

.faq-item.is-open {
  border-color: #176B9B;
  box-shadow: 0 9px 26px rgba(23, 107, 155, .10);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 76px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: #173D5D;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.faq-question:hover {
  background: #F0F7FC;
  color: #176B9B;
}

.faq-item.is-open .faq-question {
  color: #176B9B;
  background: #F0F7FC;
}

.faq-icon {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1.5px solid #8CB7D1;
  border-radius: 50%;
  background: #ffffff;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #176B9B;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .25s ease;
}

.faq-item.is-open .faq-icon {
  background: #176B9B;
  border-color: #176B9B;
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: #ffffff;
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

/* OPEN DOWN ANIMATION */

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  margin: 0;
  padding: 0 24px 23px;
  color: #657789;
  font-size: 14px;
  line-height: 1.85;
}

/* CTA RIGHT */

.faq-cta {
  position: sticky;
  top: 110px;
  padding: 35px 32px 29px;
  overflow: hidden;
  background: #EAF5FC;
  border: 1px solid #D6EAF6;
  border-radius: 24px;
}

.faq-cta-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}

.faq-cta-illustration svg {
  display: block;
  width: 112px;
  height: 112px;
  color: #176B9B;
}

.faq-cta-label {
  display: block;
  margin-bottom: 12px;
  color: #176B9B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.faq-cta-copy h3 {
  margin: 0 0 15px;
  color: #103D65;
  font-family: inherit;
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 700;
  line-height: 1.35;
}

.faq-cta-copy p {
  margin: 0;
  color: #425D73;
  font-size: 14px;
  line-height: 1.85;
}

.faq-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 62px;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 40px;
  background: linear-gradient(110deg, #176B9B, #0D477E);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(13, 71, 126, .18);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.faq-cta-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: 0 12px 25px rgba(13, 71, 126, .25);
}

.faq-cta-button > svg:first-child {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}

.faq-cta-arrow {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.faq-cta-note {
  margin: 17px 0 0;
  color: #71899B;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

/* TABLET */

@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 22px;
  }

  .faq-cta {
    padding: 28px 24px;
  }
}

/* MOBILE ADAPTATION */

@media (max-width: 767px) {
  .faq {
    padding: 65px 0 75px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-question {
    min-height: 66px;
    padding: 17px;
    font-size: 14px;
  }

  .faq-answer-inner p {
    padding: 0 17px 20px;
    font-size: 13px;
  }

  .faq-cta {
    position: static;
    padding: 27px 22px;
  }

  .faq-cta-illustration svg {
    width: 90px;
    height: 90px;
  }

  .faq-cta-copy h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq *,
  .faq *::before,
  .faq *::after {
    transition: none !important;
  }
}


/* =========================================
   FAQ — VISUAL REFINEMENT
========================================= */

/* Kurangi jarak dari artikel */
.faq {
  padding-top: 48px;
}

/* Selected accordion lebih tegas */
.faq-item.is-open {
  border: 1.5px solid #0D477E;
  box-shadow: 0 8px 24px rgba(13, 71, 126, .13);
}

.faq-item.is-open .faq-question {
  background: #DCECF7;
  color: #0D477E;
  font-weight: 700;
}

.faq-item.is-open .faq-icon {
  background: #0D477E;
  border-color: #0D477E;
}

/* CTA solid navy */
.faq-cta {
  padding: 0 0 30px;
  overflow: hidden;
  background: #123F63;
  border: 1px solid #123F63;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(13, 71, 126, .15);
}

/* Image at top of CTA card */
.faq-cta-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.faq-cta-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.faq-cta:hover .faq-cta-image img {
  transform: scale(1.035);
}

/* Clipboard illustration */
.faq-cta-illustration {
  margin: 25px auto 18px;
}

.faq-cta-illustration svg {
  color: #FFFFFF;
}

/* White CTA typography */
.faq-cta-copy {
  padding: 0 30px;
}

.faq-cta-label {
  color: #B4D9EF;
}

.faq-cta-copy h3 {
  color: #FFFFFF;
}

.faq-cta-copy p {
  color: #D7E6F0;
}

/* CTA button */
.faq-cta-button {
  width: calc(100% - 60px);
  margin: 27px auto 0;
  background: #FFFFFF;
  color: #123F63;
  box-shadow: none;
}

.faq-cta-button > svg {
  color: #176B9B;
}

.faq-cta-button:hover {
  background: #EAF5FC;
  color: #0D477E;
}

.faq-cta-note {
  padding: 0 25px;
  color: #C1D5E4;
}

@media (max-width: 767px) {
  .faq {
    padding-top: 35px;
  }

  .faq-cta-image {
    height: 190px;
  }

  .faq-cta-copy {
    padding: 0 22px;
  }

  .faq-cta-button {
    width: calc(100% - 44px);
  }
}

/* CTA: SVG illustration removed */
.faq-cta-illustration {
  display: none !important;
}


/* CTA — spacing below image */
.faq-cta-copy {
  padding-top: 30px;
}

.faq-cta-label {
  margin-bottom: 14px;
}

@media (max-width: 767px) {
  .faq-cta-copy {
    padding-top: 24px;
  }
}
