.faq-item {
    position: relative;
}

.faq-toggle {
    cursor: pointer;
}

.faq-question {
    line-height: 1.3;
}

.faq-icon {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.faq-answer {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* number of visible lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.faq-item.is-open .faq-answer {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg); /* turns + into x style */
}

.rb-faq-title {
    font-size: clamp(18px, 4vw, 30px);
    font-weight: 500;
    color: #213c55;
    margin-bottom: 28px;
}

.rb-faq-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e7eaee;
    box-shadow: 0 2px 8px rgba(20, 45, 70, 0.04);
    padding: 14px 18px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #667887;
    font-size: 15px;
    transition: all .2s ease;
}

.rb-faq-item:hover {
    border-color: #bcd8d7;
    transform: translateX(3px);
    color: #213c55;
}

.rb-faq-dot {
    width: 10px;
    height: 10px;
    background: #11aaa4;
    display: inline-block;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    flex: 0 0 auto;
}

.rb-faq-question {
    flex: 1;
}

.rb-faq-arrow {
    font-size: 24px;
    line-height: 1;
    color: #173f59;
}

.rb-faq-details {
    display: block;
    cursor: pointer;
}

.rb-faq-details summary {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.rb-faq-details summary::-webkit-details-marker {
    display: none;
}

.rb-faq-answer {
    padding: 12px 0 4px 22px;
    color: #60717e;
    font-size: 14px;
}

/* FAQ page specific styles */
.rb-faq-page {
  padding: 80px 0;
  background:
    radial-gradient(circle at top left, rgba(19, 168, 162, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfaf7 0%, #f2f0ec 100%);
}

.rb-faq-page-hero {
  max-width: 820px;
  margin-bottom: 44px;
}

.rb-faq-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--c-teal, #13A8A2);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.rb-faq-page-hero h1 {
  margin: 0 0 16px;
  color: var(--c-charcoal, #1D2430);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  font-weight: 800;
}

.rb-faq-page-hero p {
  max-width: 680px;
  color: var(--c-slate, #66707A);
  font-size: 18px;
  line-height: 1.7;
}

.rb-faq-page-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.rb-faq-sidebar {
  position: sticky;
  top: 110px;
}

.rb-faq-sidebar-card {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--c-border, #D9D4CC);
  box-shadow: 0 18px 50px rgba(29, 36, 48, .08);
}

.rb-faq-sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  color: var(--c-charcoal, #1D2430);
}

.rb-faq-tag-nav {
  display: grid;
  gap: 8px;
}

.rb-faq-tag-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--c-charcoal, #1D2430);
  text-decoration: none;
  font-weight: 700;
  background: #fbfaf7;
  border: 1px solid transparent;
  transition: all .22s ease;
}

.rb-faq-tag-nav a:hover,
.rb-faq-tag-nav a.active {
  color: #fff;
  background: var(--c-teal, #13A8A2);
  transform: translateX(4px);
}

.rb-faq-tag-nav small {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(29, 36, 48, .08);
  font-size: 12px;
}

.rb-faq-tag-nav a:hover small,
.rb-faq-tag-nav a.active small {
  background: rgba(255,255,255,.22);
}

.rb-faq-content {
  display: grid;
  gap: 26px;
}

.rb-faq-group {
  scroll-margin-top: 120px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--c-border, #D9D4CC);
  box-shadow: 0 18px 55px rgba(29, 36, 48, .07);
}

.rb-faq-group-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.rb-faq-group-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--c-teal, #13A8A2);
  font-size: 22px;
}

.rb-faq-group-header h2 {
  margin: 0;
  color: var(--c-charcoal, #1D2430);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.rb-faq-group-header p {
  margin: 8px 0 0;
  color: var(--c-slate, #66707A);
}

.rb-faq-list {
  display: grid;
  gap: 12px;
}

.rb-faq-item summary::-webkit-details-marker {
  display: none;
}

.rb-faq-group {
  display: none;
}

.rb-faq-group.active {
  display: block;
}
.rb-faq-mobile-dropdown {
  display: none;
}

@media (max-width: 991px) {
  .rb-faq-page {
    padding: 56px 0;
  }

  .rb-faq-page-layout {
    grid-template-columns: 1fr;
  }

  .rb-faq-sidebar {
    position: static;
  }

  .rb-faq-tag-nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .rb-faq-tag-nav a {
    white-space: nowrap;
  }

  .rb-faq-group {
    padding: 22px;
    border-radius: 26px;
  }

  .rb-faq-mobile-dropdown {
    display: block;
    position: relative;
  }

  .rb-faq-tag-nav {
    display: none;
  }

  .rb-faq-mobile-toggle {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--c-border, #D9D4CC);
    background: #fbfaf7;
    color: var(--c-charcoal, #1D2430);
    font-weight: 800;
    text-align: left;
  }

  .rb-faq-mobile-label {
    flex: 1;
  }

  .rb-faq-mobile-count,
  .rb-faq-mobile-option small {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgb(19 168 162 / 10%);
    font-size: 13px;
    font-weight: 700;
  }

  .rb-faq-mobile-chevron {
    font-size: 20px;
    line-height: 1;
    color: var(--c-teal);
    transition: transform .2s ease;
  }

  .rb-faq-mobile-dropdown.open .rb-faq-mobile-chevron {
    transform: rotate(180deg);
  }

  .rb-faq-mobile-menu {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--c-border, #D9D4CC);
    box-shadow: 0 18px 45px rgba(29, 36, 48, .16);
  }

  .rb-faq-mobile-dropdown.open .rb-faq-mobile-menu {
    display: grid;
    gap: 8px;
  }

  .rb-faq-mobile-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 0;
    border-radius: 14px;
    background: #fbfaf7;
    color: var(--c-charcoal, #1D2430);
    font-weight: 800;
    text-align: left;
  }

  .rb-faq-mobile-option.active,
  .rb-faq-mobile-option:hover {
    color: #fff;
    background: var(--c-teal, #13A8A2);
  }

  .rb-faq-mobile-option.active small,
  .rb-faq-mobile-option:hover small {
    background: rgba(255,255,255,.22);
  }

  .rb-faq-tag-nav {
    display: none;
  }
}

@media (max-width: 575px) {
  .rb-faq-page-hero h1 {
    font-size: 42px;
  }

  .rb-faq-answer {
    padding-left: 20px;
  }
}