/* ========================================
   FAQ SECTION - ACCORDION
   ======================================== */

#faq {
  position: relative;
  padding: 88px 0;
  background: linear-gradient(180deg, #E1E9F5 0%, #DCE4F2 50%, #D8E0EF 100%);
  overflow: hidden;
}

/* Premium Top Separator */
#faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(46, 91, 174, 0.25) 5%, 
    rgba(46, 91, 174, 0.5) 25%, 
    rgba(139, 63, 168, 0.4) 50%, 
    rgba(46, 91, 174, 0.5) 75%, 
    rgba(46, 91, 174, 0.25) 95%, 
    transparent 100%);
  box-shadow: 
    0 8px 32px rgba(46, 91, 174, 0.25),
    0 4px 16px rgba(139, 63, 168, 0.2),
    0 2px 8px rgba(46, 91, 174, 0.15);
  filter: blur(0.5px);
}

/* Wave Divider */
#faq .wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 140px;
  z-index: 10;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

#faq .wave-bottom {
  bottom: -2px;
  z-index: 10;
}

#faq .wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Eyebrow */
.faq-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2E5BAE;
  text-align: center;
  margin-bottom: 16px;
}

/* Title */
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #14213D;
  text-align: center;
  margin-bottom: 64px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Shimmer Text */
.shimmer-text {
  background: linear-gradient(
    90deg,
    #7B4BC8 0%,
    #7B4BC8 40%,
    #F4762A 50%,
    #7B4BC8 60%,
    #7B4BC8 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

/* Accordion Container */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Item */
.faq-item {
  background: #ffffff;
  border: 0.5px solid rgba(46, 91, 174, 0.12);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq-item.active {
  border-color: rgba(46, 91, 174, 0.3);
  box-shadow: 
    0 8px 32px rgba(46, 91, 174, 0.08),
    inset 3px 0 0 #2E5BAE;
}

/* Question */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: #1A1A2E;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question,
.faq-question:hover {
  color: #2E5BAE;
}

/* Plus/Minus Icon */
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon-bar-horizontal,
.faq-icon-bar-vertical {
  position: absolute;
  background: #2E5BAE;
  transition: all 0.3s ease;
}

.faq-icon-bar-horizontal {
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon-bar-vertical {
  top: 0;
  left: 50%;
  width: 2px;
  height: 20px;
  transform: translateX(-50%);
  opacity: 1;
}

.faq-item.active .faq-icon-bar-vertical {
  opacity: 0;
  transform: translateX(-50%) rotate(90deg);
}

.faq-item.active .faq-icon-bar-horizontal {
  background: #F4762A;
}

/* Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  padding-top: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #6B7280;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  #faq {
    padding: 110px 0;
  }
  
  .faq-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 56px;
  }
  
  .faq-accordion {
    margin-bottom: 60px;
  }
  
  .faq-question {
    padding: 20px 24px;
    font-size: 16px;
  }
  
  .faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  #faq {
    padding: 72px 0;
  }
  
  .faq-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 48px;
  }
  
  .faq-accordion {
    margin-bottom: 0;
  }
  
  .faq-item {
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 16px 18px;
  }
  
  .faq-question {
    padding: 0;
    font-size: 14px;
    gap: 16px;
  }
  
  .faq-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .faq-icon-bar-horizontal {
    width: 20px;
    height: 3px;
  }
  
  .faq-icon-bar-vertical {
    width: 3px;
    height: 20px;
  }
  
  .faq-answer p {
    padding-top: 14px;
    font-size: 13px;
    line-height: 1.6;
  }
}
