/* FAQ Section Styles */

.faq-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

.faq-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .faq-inner {
    grid-template-columns: 1fr 2fr;
    gap: 60px;
  }
}

/* Left Side */
.faq-left {
  padding-right: 0;
}

@media (min-width: 768px) {
  .faq-left {
    padding-right: 20px;
  }
}

.faq-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1a1a;
}

.faq-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.faq-placeholder {
  font-style: italic;
  color: #999;
}

/* Right Side - Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FAQ Items */
.faq-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  background: #3b4a7a; /* Dark blue background like in the screenshot */
  color: #fff;
  border: none;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: #2d3a5f;
}

.faq-question:focus {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.faq-question-text {
  flex: 1;
  margin-right: 12px;
}

.faq-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
}

/* FAQ Answers */
.faq-answer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer-content {
  padding: 20px;
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-answer-content p {
  margin: 0 0 12px;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* Placeholder styling for Customizer preview */
.faq-item--placeholder {
  opacity: 0.8;
}

.faq-item--placeholder .faq-question {
  background: #3b4a7a;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .faq-question {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }
  
  .faq-answer-content {
    padding: 18px;
    font-size: 0.875rem;
  }
}

/* Animation for smooth expand/collapse */
.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer[hidden] {
  max-height: 0;
}

.faq-answer:not([hidden]) {
  max-height: 500px; /* Adjust based on content needs */
}
