/* blox - Feature Accordion */

.blox-fa-body,
.blox-fa-body *,
.blox-fa-body *::before,
.blox-fa-body *::after {
  box-sizing: border-box;
}

.blox-fa-container {
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.blox-fa-heading {
  margin-bottom: 48px;
}

.blox-fa-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.blox-fa-accordion {
  width: 100%;
}

/* List mode: divider style */
.blox-fa-item {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

/* Card mode: remove divider */
.blox-fa-accordion--card .blox-fa-item {
  border-bottom: none;
}

/* Card mode: flex column for proper grid alignment */
.blox-fa-accordion--card {
  display: flex;
  flex-direction: column;
}

/* +/- icon toggle for card mode */
.blox-fa-icon-minus {
  display: none;
}

.blox-fa-item[data-active="true"] .blox-fa-icon-plus {
  display: none;
}

.blox-fa-item[data-active="true"] .blox-fa-icon-minus {
  display: block;
}

.blox-fa-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.blox-fa-trigger:hover {
  opacity: 0.8;
}

.blox-fa-trigger-title {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blox-fa-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s ease;
}

/* List mode: rotate chevron when active */
.blox-fa-item[data-active="true"] .blox-fa-chevron {
  transform: rotate(180deg);
}

/* Card mode: no rotation (uses +/- toggle) */
.blox-fa-accordion--card .blox-fa-item[data-active="true"] .blox-fa-chevron {
  transform: none;
}

.blox-fa-panel {
  overflow: hidden;
}

.blox-fa-panel[hidden] {
  display: none;
}

.blox-fa-description {
  padding-bottom: 20px;
  line-height: 1.6;
}

.blox-fa-mobile-image {
  margin-top: 8px;
  margin-bottom: 16px;
}

.blox-fa-mobile-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: cover;
}

.blox-fa-image-panel {
  display: none;
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.blox-fa-image-stack {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.blox-fa-stack-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.blox-fa-stack-image-active {
  opacity: 1;
}

/* Reduced motion - browser preference */
@media (prefers-reduced-motion: reduce) {
  .blox-fa-trigger-title,
  .blox-fa-chevron,
  .blox-fa-stack-image,
  .blox-fa-trigger {
    transition: none;
  }
}

/* Reduced motion - theme setting */
.blox-fa-no-motion .blox-fa-panel {
  transition: none;
}

.blox-fa-no-motion .blox-fa-chevron {
  transition: none;
}

.blox-fa-no-motion .blox-fa-stack-image {
  transition: none;
}

.blox-fa-no-motion .blox-fa-trigger-title {
  transition: none;
}

.blox-fa-no-motion .blox-fa-trigger {
  transition: none;
}

/* Desktop */
@media (min-width: 993px) {
  .blox-fa-accordion {
    width: 50%;
  }

  .blox-fa-image-panel {
    display: block;
    width: 50%;
  }

  .blox-fa-mobile-image {
    display: none;
  }
}

/* Tablet & Mobile */
@media (max-width: 992px) {
  .blox-fa-layout {
    flex-direction: column;
    gap: 0;
  }

  .blox-fa-heading {
    margin-bottom: 24px;
  }

  .blox-fa-trigger-title {
    font-size: 1rem;
  }
}

/* Section Dividers */
.blox-fa-divider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.blox-fa-divider-top {
  bottom: 100%;
}

.blox-fa-divider-bottom {
  top: 100%;
}

.blox-fa-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
}
