/* ==========================================================================
   ASSET POOLS LLC — ULTRA-PREMIUM CORPORATE FAQ ACCORDION SYSTEM
   Luxurious glassmorphism styling, glowing gradient accents, smooth CSS height
   transitions, numbered badges, active spotlight, and responsive layout.
   ========================================================================== */

/* ── FAQ Container ── */
.premium-faq,
.mini-faq,
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ── Individual FAQ Card ── */
.premium-faq-item,
.faq-item,
.mini-faq-item,
.faq-card-item {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(0, 136, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 80, 200, 0.05);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0;
}

.premium-faq-item:hover,
.faq-item:hover,
.mini-faq-item:hover,
.faq-card-item:hover {
  border-color: rgba(0, 136, 255, 0.35);
  box-shadow: 0 14px 40px rgba(0, 80, 200, 0.10);
  transform: translateY(-2px);
}

/* Left accent glow bar on open/hover */
.premium-faq-item::before,
.faq-item::before,
.mini-faq-item::before,
.faq-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #0088ff 0%, #00d2ff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.premium-faq-item.open::before,
.faq-item.open::before,
.mini-faq-item.open::before,
.faq-card-item.open::before {
  opacity: 1;
}

.premium-faq-item.open,
.faq-item.open,
.mini-faq-item.open,
.faq-card-item.open {
  background: #ffffff;
  border-color: rgba(0, 136, 255, 0.4);
  box-shadow: 0 16px 45px rgba(0, 80, 200, 0.12);
}

/* ── FAQ Header / Question Button ── */
.premium-faq-q,
.faq-question,
.mini-faq-q,
.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #0a2540;
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  transition: color 0.25s ease;
  user-select: none;
}

.premium-faq-item.open .premium-faq-q,
.faq-item.open .faq-question,
.mini-faq-item.open .mini-faq-q,
.faq-card-item.open .faq-question-btn {
  color: #0066cc;
}

.faq-q-left,
.faq-question-text {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

/* ── Number Badge (e.g. 01, 02) & Icon ── */
.premium-faq-num,
.faq-num-badge,
.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 136, 255, 0.08);
  border: 1px solid rgba(0, 136, 255, 0.18);
  color: #0066cc;
  font-family: 'Outfit', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.premium-faq-item.open .premium-faq-num,
.faq-item.open .faq-q-icon,
.faq-card-item.open .faq-num-badge {
  background: linear-gradient(135deg, #0088ff 0%, #0066cc 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 136, 255, 0.35);
}

/* ── FAQ Icon / Chevron ── */
.premium-faq-icon,
.faq-chevron,
.mf-icon,
.faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 136, 255, 0.06);
  border: 1px solid rgba(0, 136, 255, 0.15);
  color: #0088ff;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-faq-item:hover .premium-faq-icon,
.faq-item:hover .faq-chevron,
.mini-faq-item:hover .mf-icon,
.faq-card-item:hover .faq-toggle-icon {
  background: rgba(0, 136, 255, 0.12);
  color: #0066cc;
}

.premium-faq-item.open .premium-faq-icon,
.faq-item.open .faq-chevron,
.mini-faq-item.open .mf-icon,
.faq-card-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: #0088ff;
  color: #ffffff;
  border-color: #0088ff;
  box-shadow: 0 4px 14px rgba(0, 136, 255, 0.35);
}

/* ── FAQ Answer Accordion Body (COLLAPSED BY DEFAULT) ── */
.premium-faq-a,
.faq-answer,
.mini-faq-a,
.faq-answer-content {
  display: grid !important;
  grid-template-rows: 0fr !important;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.35s !important;
  padding: 0 28px !important;
  overflow: hidden !important;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.94rem;
  line-height: 1.75;
  height: auto !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ── OPEN STATE (EXPANDS ROW TO 1fr AND REVEALS CONTENT) ── */
.premium-faq-item.open .premium-faq-a,
.faq-item.open .faq-answer,
.mini-faq-item.open .mini-faq-a,
.faq-card-item.open .faq-answer-content {
  grid-template-rows: 1fr !important;
  padding: 0 28px 24px 28px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* CRITICAL FOR CSS GRID 0fr COLLAPSING: Direct children must have min-height: 0 */
.premium-faq-a > *,
.faq-answer > *,
.mini-faq-a > *,
.faq-answer-content > * {
  min-height: 0 !important;
  overflow: hidden !important;
}

.faq-answer-inner,
.premium-faq-a > p:first-child,
.faq-answer > p:first-child {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 136, 255, 0.1);
  margin-top: 0;
  margin-bottom: 0;
}

.premium-faq-a strong,
.faq-answer strong,
.mini-faq-a strong,
.faq-answer-inner strong {
  color: #0a2540;
  font-weight: 700;
}

.premium-faq-a a,
.faq-answer a,
.mini-faq-a a,
.faq-answer-inner a {
  color: #0088ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.premium-faq-a a:hover,
.faq-answer a:hover,
.mini-faq-a a:hover,
.faq-answer-inner a:hover {
  color: #005bb5;
}

.faq-answer-inner ul,
.faq-answer ul,
.premium-faq-a ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.faq-answer-inner ul li,
.faq-answer ul li,
.premium-faq-a ul li {
  margin-bottom: 6px;
  position: relative;
}

/* ── Responsive Refinements ── */
@media (max-width: 767px) {
  .premium-faq-q,
  .faq-question,
  .mini-faq-q,
  .faq-question-btn {
    padding: 16px 18px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .premium-faq-num,
  .faq-num-badge,
  .faq-q-icon {
    min-width: 30px;
    height: 30px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .premium-faq-icon,
  .faq-chevron,
  .mf-icon,
  .faq-toggle-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .premium-faq-a,
  .faq-answer,
  .mini-faq-a,
  .faq-answer-content {
    padding: 0 18px !important;
    font-size: 0.88rem;
  }

  .premium-faq-item.open .premium-faq-a,
  .faq-item.open .faq-answer,
  .mini-faq-item.open .mini-faq-a,
  .faq-card-item.open .faq-answer-content {
    padding: 0 18px 18px 18px !important;
  }
}
