/**
 * FAQ by Lopez - Frontend Styles
 * Simple design: Click title to show/hide all Q&A
 */

.faq-lopez-block {
  margin: 0;
  padding: 0;
}

.faq-lopez-container {
  border: 1px solid white;
  border-style: solid;
}

/* Header styling */
.faq-lopez-header {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-lopez-header:hover {
  background-color: #D4AF37 !important;
  border-color: #D4AF37 !important;
  color: #ffffff !important;
}

.faq-lopez-header:hover h2 {
  color: #ffffff !important;
}

.faq-lopez-header h2 {
  margin: 0;
}

.faq-header-icon {
  transition: transform 0.3s ease;
}

/* Content section - all Q&A displayed at once */
.faq-lopez-content {
  /* padding and border classes added in PHP */
}

.faq-lopez-item h3 {
  margin: 0;
}

.faq-lopez-item p {
  margin: 0;
  color: #000000;
  line-height: 1.7;
}

/* Rich text formatting in FAQ answers */
.faq-answer-content,
.faq-answer-content p {
  color: inherit;
  margin-bottom: 10px;
}

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

.faq-answer-content ul,
.faq-answer-content ol {
  margin: 10px 0;
  padding-left: 30px;
  color: inherit;
}

.faq-answer-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: inherit;
}

.faq-answer-content ul {
  list-style-type: disc;
}

.faq-answer-content ol {
  list-style-type: decimal;
}

.faq-answer-content ul ul {
  list-style-type: circle;
  margin-top: 5px;
}

.faq-answer-content strong,
.faq-answer-content b {
  font-weight: 700;
  color: #000000;
}

.faq-answer-content em,
.faq-answer-content i {
  font-style: italic;
}

.faq-answer-content u {
  text-decoration: underline;
}

.faq-answer-content a {
  color: #0066cc;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.faq-answer-content a:hover {
  opacity: 0.7;
}

.faq-answer-content h4,
.faq-answer-content h5,
.faq-answer-content h6 {
  margin: 15px 0 10px 0;
  color: #000000;
  font-weight: 600;
}

.faq-answer-content h4 {
  font-size: 1.1rem;
}

.faq-answer-content h5 {
  font-size: 1rem;
}

.faq-answer-content h6 {
  font-size: 0.9rem;
}

.faq-answer-content blockquote {
  margin: 15px 0;
  padding: 10px 20px;
  border-left: 3px solid #cccccc;
  background: rgba(0, 0, 0, 0.05);
  color: #333333;
  font-style: italic;
}

.faq-answer-content code {
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
  color: #000000;
}

.faq-answer-content pre {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow-x: auto;
}

.faq-answer-content pre code {
  padding: 0;
  background: none;
}

/* List decimal styling */
.faq-lopez-block ol.list-decimal {
  color: #ffffff;
}

.faq-lopez-block ol.list-decimal li {
  color: #ffffff;
}

.faq-lopez-block ol.list-decimal li::marker {
  color: #ffffff;
}

/* Responsive font sizes handled by Tailwind classes */
@media (min-width: 768px) {
  .faq-lopez-item h3 {
    font-size: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .faq-header-icon,
  .faq-lopez-header {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .faq-lopez-content {
    display: block !important;
  }

  .faq-header-icon {
    display: none;
  }
}
