.faq {
  margin: 0;
  padding: 22px 16px;
  border-bottom: 1px solid #e2e8f0; 
  box-shadow: none !important;
  border-radius: 8px; 
  direction: rtl;
  background-color: transparent;
  transition: background-color 0.25s ease, border-color 0.2s ease;
}

.faq:last-child {
  border-bottom: 1px solid #e2e8f0;
}

.faq.opened {
  background-color: #f8fafc; 
}

.faq > a {
  text-decoration: none !important;
  display: block;
  outline: none;
}

.faq-h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  border: 0 !important;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-bottom: 0 !important;
}

.faq:hover .faq-h3 {
  color: #1e3a8a !important;
}

.faq-h3::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-image 0.2s ease;
}

.faq-h3 i, .fa-plus-circle {
  display: none !important;
}

.faq:hover .faq-h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.75' stroke='%2316a34a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
}

.faq.opened .faq-h3::before {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%231e3a8a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
}

.faq .answer {
  display: none;
  margin-top: 10px;
  padding-right: 32px; 
  line-height: 1.7;
  animation: fadeIn 0.25s ease-out;
}

.faq.opened .answer {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}