/* Modern font stack */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Dark mode styles */
body.dark {
  --tw-bg-opacity: 1;
  background-color: rgb(24 53 110 / var(--tw-bg-opacity));
}

body.dark .bg-white\/95 {
  background-color: rgba(24, 53, 110, 0.9);
}

body.dark .text-brosephBlue,
body.dark .text-brosephBlue\/80 {
  color: white;
}

body.dark .faq-answer {
  background-color: rgba(24, 53, 110, 0.8);
  color: white;
}

body.dark .bg-brosephBlue {
  background-color: #F5821F;
}

body.dark .hover\:bg-brosephOrange:hover {
  background-color: #18356E;
}

body.dark select,
body.dark input[type="text"] {
  background-color: rgba(24, 53, 110, 0.8);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Transition effects */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* FAQ item styles */
.faq-item {
  margin-bottom: 0.5rem;
}

.faq-question {
  background: linear-gradient(to right, #F5821F, #FF9F43);
  border: 1px solid rgba(245, 130, 31, 0.3);
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(to right, #FF9F43, #F5821F);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.dark .faq-question {
  background: linear-gradient(to right, #18356E, #2B4A8A);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark .faq-question:hover {
  background: linear-gradient(to right, #2B4A8A, #18356E);
}

/* Animation for FAQ answers */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
  opacity: 0;
  padding: 0 1rem;
}

.faq-item.open .faq-answer {
  max-height: 800px;
  opacity: 1;
  padding: 1rem;
  border-top: 1px solid rgba(245, 130, 31, 0.2);
}

body.dark .faq-item.open .faq-answer {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* Highlight search results */
.highlight {
  background-color: rgba(245, 130, 31, 0.3);
  padding: 0 2px;
  border-radius: 2px;
}

body.dark .highlight {
  background-color: rgba(245, 130, 31, 0.5);
  color: white;
}

/* Category heading styles */
.category-heading {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(4px);
  border-bottom: 2px solid #F5821F;
  padding-bottom: 0.5rem;
}

body.dark .category-heading {
  background: linear-gradient(to bottom, rgba(24, 53, 110, 0.95), rgba(24, 53, 110, 0.8));
  border-bottom-color: #18356E;
}

.category-heading h2 {
  font-weight: 600;
}

/* Paragraph spacing */
.faq-answer p {
  margin-bottom: 1rem;
}

/* WhatsApp button styles */
.whatsapp-button {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark .whatsapp-button {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .faq-question {
    font-size: 0.9rem;
  }

  .category-heading h2 {
    font-size: 1.25rem;
  }

  .faq-answer {
    font-size: 0.875rem;
  }

  .whatsapp-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}