/* General wrapper -  */
.EOFY-FAQ-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  padding: 40px 20px;
  margin: 0 auto;
  max-width:1280px;
  /* background-color: #ffffff;  */
}

/* Container for the FAQ list -  */
.EOFY-FAQ-container {
  /* max-width: 900px; */
  margin: 0 auto;
}

/* Main heading style */
.EOFY-FAQ-h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  padding: 0;
  margin-bottom: 30px;
  border-bottom: none; /* 移除原来的下边框 */
}

/* Unordered list reset */
.EOFY-FAQ-faq {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual FAQ item (list item) - 核心样式改动 */
.EOFY-FAQ-faq li {
  background-color: #f7f7f7; /* 设置每个QA块的浅灰色背景 */
  margin-bottom: 10px;      /* 在每个QA块之间创建垂直间距 */
  border: none;             /* 移除所有边框 */
  transition: background-color 0.3s ease;
}

/* 最后一个项目不需要底部间距 */
.EOFY-FAQ-faq li:last-child {
  margin-bottom: 0;
}

/* Question button styling */
.EOFY-FAQ-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 25px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase; /* 将问题文本转换为大写以匹配图片 */
  cursor: pointer;
  background-color: transparent;
  border: none;
  text-align: left;
  position: relative;
  box-sizing: border-box;
}

.EOFY-FAQ-question:hover {
  background-color: #f0f0f0; /* 一个更细微的悬停效果 */
}

/* 使用 ::after 伪元素来创建 '+' 图标 */
.EOFY-FAQ-question::after {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  color: #555;
  transition: transform 0.3s ease-in-out;
}

/* 激活时旋转 '+' 形成 'x' */
.EOFY-FAQ-faq li.active .EOFY-FAQ-question::after {
  transform: rotate(45deg);
}

/* Answer panel styling */
.EOFY-FAQ-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  background-color: transparent;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

/* 激活时展开答案 */
.EOFY-FAQ-faq li.active .EOFY-FAQ-answer {
  max-height: 500px;
  padding: 0 25px 20px 25px;
}


.EOFY-FAQ-faq li:before {
  display: none;
  background: none !important;
  padding-left: 0px !important;
  margin-bottom: 0px !important;
}