/* ==========================================================================
   Radientmax FAQ page — isolated under the "cwfaq" namespace.
   No dependency on Bootstrap's .collapse/.show classes (same fix as the
   nav and the other FAQ section — this markup had the identical
   Tailwind ".collapse { visibility: collapse !important }" collision risk).
   ========================================================================== */

:root {
  --cwfaq-bg: #fefefe;
  --cwfaq-card: #131722;
  --cwfaq-border: rgba(255, 255, 255, 0.08);
  --cwfaq-text: #ffffff;
  --cwfaq-text-muted: #c3c8d4;
  --cwfaq-accent: #7C3AE5;
}

/* ---------- Hero / breadcrumb ---------- */

.cwfaq-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--cwfaq-bg);
  margin-top: 50px;
}

.cwfaq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: radial-gradient(
    ellipse 55% 90% at 50% 0%,
    rgba(56, 167, 255, 0.8) 0%,
    rgba(20, 60, 180, 0.4) 40%,
    rgba(0, 0, 0, 0) 75%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.cwfaq-hero .container {
  position: relative;
  z-index: 1;
}

.cwfaq-hero__title {
  color: var(--cwfaq-text);
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

/* ---------- FAQ section ---------- */

.cwfaq-section {
  position: relative;
  overflow: hidden;
  background-color: var(--cwfaq-bg);
  padding: 80px 0;
}

.cwfaq-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Title area ---------- */

.cwfaq-title-area {
  text-align: center;
  margin-bottom: 48px;
}

.cwfaq-eyebrow {
  display: inline-block;
  color: var(--cwfaq-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cwfaq-title {
  color: var(--cwfaq-text);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.cwfaq-title__sub {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cwfaq-text-muted);
  margin-top: 6px;
}

.cwfaq-accent {
  color: var(--cwfaq-accent);
}

/* ---------- Accordion ---------- */

.cwfaq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cwfaq-item {
  background-color: var(--cwfaq-card);
  border: 1px solid var(--cwfaq-border);
  border-radius: 10px;
  overflow: hidden;
}

.cwfaq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.cwfaq-question:hover,
.cwfaq-question:focus-visible {
  background-color: rgba(255, 255, 255, 0.03);
  outline: none;
}

.cwfaq-num {
  flex-shrink: 0;
  color: var(--cwfaq-accent);
  font-size: 16px;
  font-weight: 700;
}

.cwfaq-question-text {
  flex: 1;
  color: var(--cwfaq-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

/* Chevron built from a single rotating element, no icon font/image needed */
.cwfaq-caret {
  flex-shrink: 0;
  position: relative;
  width: 12px;
  height: 12px;
  margin-right: 4px;
}

.cwfaq-caret::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cwfaq-accent);
  border-bottom: 2px solid var(--cwfaq-accent);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.25s ease;
}

.cwfaq-item.is-open .cwfaq-caret::before {
  transform: translate(-50%, -35%) rotate(225deg);
}

/* ---------- Answer panel ---------- */

.cwfaq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cwfaq-answer-inner {
  padding: 0 24px 22px 54px;
  color: var(--cwfaq-text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.cwfaq-answer-inner a {
  color: var(--cwfaq-accent);
  text-decoration: underline;
}

.cwfaq-answer-inner a:hover {
  color: #ffffff;
}
