/**
 * FAQ by Lopez - Frontend Styles
 * Customized for Juara Production theme
 * Uses Juara Production color palette and design system
 */

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

.faq-lopez-block section {
  background: transparent;
}

/* Container */
.faq-lopez-block .faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Title */
.faq-lopez-block h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #57DFE7 0%, #B964FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .faq-lopez-block h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* FAQ Items Container */
.faq-lopez-block .faq-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* FAQ Item */
.faq-lopez-block .faq-item {
  border: 1px solid #57DFE7;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(13, 150, 190, 0.05);
  transition: all 0.3s ease;
}

.faq-lopez-block .faq-item:hover {
  border-color: #B964FF;
  box-shadow: 0 4px 16px rgba(185, 100, 255, 0.15);
}

/* FAQ Button */
.faq-lopez-block .faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Be Vietnam Pro", sans-serif;
  text-align: left;
}

.faq-lopez-block .faq-button:hover {
  background: rgba(87, 223, 231, 0.1);
}



/* FAQ Question */
.faq-lopez-block .faq-button span:first-child {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
  padding-right: 1.5rem;
}

/* FAQ Icon */
.faq-lopez-block .faq-icon {
  width: 24px;
  height: 24px;
  color: #57DFE7;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-lopez-block .faq-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.faq-lopez-block .faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #B964FF;
}

/* FAQ Content */
.faq-lopez-block .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-lopez-block .faq-content.active {
  max-height: 1000px;
}

.faq-lopez-block .faq-content-inner {
  padding: 1.5rem;
  color: #DFDFDF;
  font-family: "Open Sans", sans-serif;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Rich text formatting in FAQ answers */
.faq-lopez-block .faq-content p {
  color: #DFDFDF;
  margin-bottom: 1rem;
}

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

.faq-lopez-block .faq-content ul,
.faq-lopez-block .faq-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: #DFDFDF;
}

.faq-lopez-block .faq-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: #DFDFDF;
}

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

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

.faq-lopez-block .faq-content ul ul {
  list-style-type: circle;
  margin-top: 0.5rem;
}

.faq-lopez-block .faq-content strong,
.faq-lopez-block .faq-content b {
  font-weight: 700;
  color: #57DFE7;
}

.faq-lopez-block .faq-content em,
.faq-lopez-block .faq-content i {
  font-style: italic;
  color: #B964FF;
}

.faq-lopez-block .faq-content u {
  text-decoration: underline;
  text-decoration-color: #57DFE7;
  text-underline-offset: 3px;
}

.faq-lopez-block .faq-content a {
  color: #57DFE7;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.faq-lopez-block .faq-content a:hover {
  color: #B964FF;
  text-decoration-thickness: 2px;
}

.faq-lopez-block .faq-content h4,
.faq-lopez-block .faq-content h5,
.faq-lopez-block .faq-content h6 {
  margin: 1rem 0 0.75rem 0;
  font-weight: 600;
  color: #57DFE7;
}

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

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

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

.faq-lopez-block .faq-content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #57DFE7;
  background: rgba(87, 223, 231, 0.1);
  font-style: italic;
  color: #DFDFDF;
}

.faq-lopez-block .faq-content code {
  padding: 0.25rem 0.5rem;
  background: rgba(185, 100, 255, 0.1);
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
  color: #A5EB17;
}

.faq-lopez-block .faq-content pre {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(9, 33, 79, 0.5);
  border-radius: 5px;
  overflow-x: auto;
  border: 1px solid #57DFE7;
}

.faq-lopez-block .faq-content pre code {
  padding: 0;
  background: none;
  color: #A5EB17;
}

/* FAQ Line indicator */
.faq-lopez-block .faq-line {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #57DFE7 0%, #B964FF 100%);
  transition: width 0.3s ease;
}

.faq-lopez-block .faq-item.active .faq-line {
  width: 100%;
}

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

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

  .faq-lopez-block .faq-icon {
    display: none;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .faq-lopez-block .faq-button {
    padding: 1rem 1.25rem;
  }

  .faq-lopez-block .faq-button span:first-child {
    font-size: 1rem;
    padding-right: 1rem;
  }

  .faq-lopez-block .faq-content-inner {
    padding: 1.25rem;
    font-size: 0.9rem;
  }

  .faq-lopez-block .faq-icon {
    width: 20px;
    height: 20px;
  }
}
