﻿/* ==============================================    
   Module D: FAQ FX – True Slate Blue Variant (Exact #5c6e8d)
   ============================================== */

.faq-section {
  margin: 5rem auto; /* top, right, bottom, left */
  padding: 4rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #f6f7f9, #ffffff);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(12px);
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1280px;
  border: 1px solid rgba(200, 210, 220, 0.14);
}

.faq-title {
  width: 100%;
  font-family: var(--brand-font-3);
  font-size: 2.5rem;
  color: #384050;
  margin-top: 1rem !important;
  margin-bottom: 2.5rem !important;
  text-align: center;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.faq-column {
  flex: 1 1 45%;
  min-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(190, 195, 205, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  will-change: transform, opacity;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.06);
}

.faq-item.open {
  background: linear-gradient(135deg, #fdfdff, #edf1f7);
  transition: all 0.4s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.8rem 2.2rem 1.8rem 3rem;
  background: transparent;
  border-radius: 0;
  position: relative;
  z-index: 0;
  font-size: 1.65rem;
}

.faq-question::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  height: calc(100% - 2px);
  width: 0.6rem;
  background-color: #5c6e8d; /* Accurate */
  border-radius: 0.6rem 0 0 0.6rem;
  z-index: 1;
}

.faq-item:hover .faq-question::before {
  opacity: 1;
}

.faq-question:hover {
  background: linear-gradient(90deg, rgba(248, 250, 255, 0.94), rgba(230, 236, 245, 0.6));
  color: #5c6e8d;
  box-shadow: inset 0 0 1rem rgba(140, 160, 180, 0.08);
  z-index: 1;
}

.faq-item.open .faq-question {
  color: #ffffff;
  font-weight: 600;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(30, 40, 60, 0.3);
  background: #5c6e8d; /* True background */
}

.faq-arrow {
  font-size: 2.2rem;
  color: #5c6e8d;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 1.5rem;
  color: #2f2f2f;
  background: rgba(255, 255, 255, 0.94);
  line-height: 1.65;
  padding: 0 2.2rem; /* Only side padding when closed */
  border-top: 0 solid transparent;
  border-bottom: 0 solid transparent;
  transition: opacity 0.3s ease, transform 0.3s ease;
  }

.faq-item.open .faq-answer {
  max-height: 100rem;
  opacity: 1;
  padding: 1.4rem 2.2rem 2rem;
  border-top: 1px solid rgba(190, 195, 205, 0.15);
  border-bottom: 1px solid rgba(190, 195, 205, 0.1);
}