/* Shared accordion (accordion.js) — used by Partners and Safe Sport templates */

.accordion-container {
  margin: 20px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.accordion {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #ddd;
  margin-top: 10px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s;
}

.accordion:hover {
  background-color: #f0f0f0;
}

.accordion-image {
  width: 150px;
  height: 100%;
  max-height: 112px;
  margin-right: 15px;
  object-fit: contain;
  border-radius: 4px;
}

.accordion-content {
  flex-grow: 1;
}

.accordion-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 20px;
}

.accordion-text {
  color: #666;
  line-height: 1.4;
}

.accordion-toggle {
  font-size: 40px;
  width: 40px;
  height: 40px;
  text-align: center;
  margin-left: 10px;
  transition: transform 0.3s ease;
  display: grid;
  align-content: center;
}

.accordion-panel {
  padding: 0px;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel.active {
  max-height: 500px;
}

.accordion-content {
  padding: 15px;
}

.accordion-content p {
  margin-bottom: 0px;
}

/* For smooth rotation of toggle button */
.accordion-panel.active ~ .accordion-toggle {
  transform: rotate(180deg);
}
