/* FAQ page styles (scoped) */
/*
  IMPORTANT: This page is standalone. We add both the "cb-*" classes and alias classes
  (faq-page / faq-wrap / faq-hero) so tweaks are easy without touching other pages.
*/

/* Push content below the top navbar */
body.faq-page{
  padding-top: 120px !important;
}

main.cb-faq-page,
main.faq-wrap{
  padding-top: 40px !important; /* extra breathing room under the navbar */
}

.cb-faq-hero,
.faq-hero{
  padding: 50px 8% 20px 8%;
  margin-top: 20px; /* additional spacing, safe */
}

.cb-faq-hero__inner{
  max-width: 1100px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 0 30px rgba(0,242,255,0.06);
}

.cb-faq-hero h1{
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1.15;
}

.cb-faq-lead{
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 18px;
}

.cb-faq-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px 0;
}

.cb-faq-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
  letter-spacing: .3px;
}

[data-theme="light"] .cb-faq-badge{
  background: rgba(0,0,0,0.04);
}

.cb-faq-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 8px;
}

.cb-faq-section{
  padding: 20px 8% 60px 8%;
}

.cb-faq-container{
  max-width: 1100px;
  margin: 0 auto;
}

.cb-faq-tip{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(112,0,255,0.10);
  border: 1px solid rgba(112,0,255,0.35);
  margin-bottom: 18px;
}

[data-theme="light"] .cb-faq-tip{
  background: rgba(112,0,255,0.06);
}

.cb-faq-tip i{
  font-size: 1.25rem;
  margin-top: 2px;
  color: var(--primary);
}

.cb-faq-tip__title{
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .95rem;
  margin-bottom: 2px;
}

.cb-faq-tip__text{
  opacity: .95;
  line-height: 1.35;
}

/* Close button for TIP */
.tip-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(112,0,255,0.35);
  background: rgba(255,255,255,0.06);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.tip-close:hover{
  background: rgba(0,242,255,0.08);
  border-color: rgba(0,242,255,0.35);
}

.tip-close:active{
  transform: scale(0.98);
}

.cb-faq-accordion{
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.cb-faq-group{
  padding: 10px 0 0 0;
}

.cb-faq-group__title{
  font-size: 1.25rem;
  padding: 18px 18px 6px 18px;
  opacity: .95;
}

.cb-faq-item{
  border-top: 1px solid var(--border);
}

.cb-faq-radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.cb-faq-q{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.cb-faq-q:hover{
  background: rgba(255,255,255,0.03);
}

[data-theme="light"] .cb-faq-q:hover{
  background: rgba(0,0,0,0.03);
}

.cb-faq-q__text{
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .3px;
}

.cb-faq-q__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.cb-faq-a{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 18px;
}

.cb-faq-a__inner{
  padding: 0 0 16px 0;
  line-height: 1.55;
  font-size: 1.05rem;
  opacity: .95;
}

.cb-faq-item .cb-faq-radio:checked ~ .cb-faq-q{
  background: rgba(0,242,255,0.06);
}

.cb-faq-item .cb-faq-radio:checked ~ .cb-faq-a{
  max-height: 900px;
  opacity: 1;
  padding: 0 18px;
}

.cb-faq-item .cb-faq-radio:checked ~ .cb-faq-q .cb-faq-q__icon{
  border-color: rgba(0,242,255,0.45);
  transform: rotate(45deg);
}

.cb-faq-footer-note{
  margin-top: 18px;
  opacity: .9;
  text-align:center;
  padding: 10px 8px 0 8px;
}

@media (max-width: 900px){
  nav{ padding: 16px 5%; }
  body.faq-page{ padding-top: 115px !important; }
  main.cb-faq-page, main.faq-wrap{ padding-top: 22px !important; }
  .cb-faq-hero, .faq-hero{ padding: 42px 5% 16px 5%; }
  .cb-faq-section{ padding: 16px 5% 52px 5%; }
}

@media (max-width: 520px){
  .cb-faq-hero h1{ font-size: 1.75rem; }
  .cb-faq-q__text{ font-size: 1.05rem; }
}
