.faq-accordion {
  max-width: 900px;
  margin: auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 20px;
  background: #535353;
  color: #ffffff;
  transition: background 0.5s;
}

.faq-header:hover {
  background: #337ab7;
}

/* Icon styling */
.faq-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}

/* Rotate icon when opened */
input:checked+.faq-header .faq-icon {
  transform: rotate(180deg);
}

/* Smooth accordion content */
.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #f5f5f5;
  transition: max-height 0.5s ease;
}

.faq-content p {
  font-size: 18px;
  margin: 15px 0;
}

/* Expand when selected */
input:checked~.faq-content {
  max-height: 1200px;
}

input:checked~.faq-header {
  background-color: #337ab7;
}