.faq-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.faq-modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 20px;
  border-radius: 6px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.faq-modal-header,
.faq-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-close {
  font-size: 24px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.faq-functions button {
  margin: 4px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid green;
  background: white;
  color: green;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.faq-functions button:hover {
  background-color: green;
  color: white;
}

.faq-content {
  margin-top: 15px;
  max-height: 70vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Thin scrollbar styling for modern look */
#faq-content::-webkit-scrollbar {
  width: 7px;
  /* Adjust width for a thinner scrollbar */
  height: 7px;
  cursor: pointer;
}

/* Styling for the scrollbar track */
#faq-content::-webkit-scrollbar-track {
  /* background: #4CAF50; /* Light background for the scrollbar track */
  border-radius: 7px;
  cursor: pointer;
}

/* Styling for the scrollbar thumb (the draggable part) */
#faq-content::-webkit-scrollbar-thumb {
  background-color: #4CAF50;
  /* Darker color for the thumb */
  border-radius: 7px;
  border: 3px solid #4CAF50;
  /* Add space around the thumb */
  cursor: pointer;
}

.faq-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  margin: 6px;
  border-radius: 4px;
  cursor: pointer;
  width: calc(50% - 12px);
  display: inline-block;
  font-size: 14px;
}

.faq-card:hover {
  background-color: #eef6ff;
}

.faq-role-title {
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.faq-function-btn {
  margin: 4px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid green;
  background: white;
  color: green;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.faq-function-btn:hover {
  background-color: green;
  color: white;
}

.faq-function-btn.selected {
  background-color: green;
  color: white;
}

.faq-close {
  font-size: 24px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  outline: none;
  padding: 0 10px;
  transition: color 0.2s;
}

.faq-close:focus {
  outline: none;
  /*  Remove focus ring */
}

.faq-close:hover {
  color: white;
  /* Hover color white */
}