/* ===== ACCORDION ===== */

.indicator-card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  overflow: hidden;
  transition: all .3s ease;
}

.accordion-header {
  /* width: 100%; */
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.accordion-header h3 {
  flex: 1;
  margin: 0;
}

.accordion-header .arrow {
  font-size: 18px;
  transition: transform .3s ease;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: all .35s ease;
}

.indicator-card.active .accordion-body {
  max-height: 300px;
  padding: 0 18px 18px 18px;
}

.indicator-card.active .arrow {
  transform: rotate(45deg);
}

.accordion-header:hover {
  background: #f4f7ff;
}

/* ===== SECTION ACCORDION ===== */

.accordion-section {
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: all .25s ease;
}

.section-title:hover {
  background: #f4f7ff;
}

.section-title h3 {
  margin: 0;
}

.section-title .arrow {
  font-size: 18px;
  transition: transform .3s ease;
}

.indicator-list {
  overflow: hidden;
  max-height: 0;
  transition: all .35s ease;
  padding: 0 4px;
}

.accordion-section.active .indicator-list {
  max-height: 2000px; /* พอสำหรับหลาย card */
  margin-top: 12px;
}

.accordion-section.active .arrow {
  transform: rotate(45deg);
}