/* BCom Clean Accordion v2.4 — two-line preview when closed */

/* Item box */
.bcom-acc24-item {
  border: 1px solid #77AEDB;
  background: #FFFFFF;
  padding: 45px 30px;
  margin: 0 0 45px 0;
  transition: background 220ms ease;
}
/* Optional subtle gradient on hover */
.bcom-acc24-item:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

/* Title row */
.bcom-acc24-trigger {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent !important;
}
.bcom-acc24-trigger:hover { background: transparent !important; }

.bcom-acc24-title {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 31px;
  color: #003F5F;
  transition: color .2s ease;
}
.bcom-acc24-trigger:hover .bcom-acc24-title { color: #00A6FF; }

/* Icons (use provided SVGs; color via currentColor) */
.bcom-acc24-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #77AEDB;
  flex: 0 0 auto;
  width: 28px; height: 28px;
  transition: color .2s ease;
}
.bcom-acc24-trigger:hover .bcom-acc24-icon { color: #79C3FF; }
.bcom-acc24-icon svg { width: 20px; height: 20px; display: block; }

.bcom-acc24-icon-down { display: none; }
.bcom-acc24-item.is-open .bcom-acc24-icon-right { display: none; }
.bcom-acc24-item.is-open .bcom-acc24-icon-down { display: inline-block; }

/* Panel — always in flow for preview */
.bcom-acc24-panel { margin-top: 30px; }
.bcom-acc24-panel-inner {
  min-height: 0;
  overflow: hidden;
  max-height: calc(32px * 2 + 6px); /* two lines */
  transition: max-height 420ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease;
  opacity: .98;
}

/* Closed: clamp first child to 2 lines; hide rest */
.bcom-acc24-item:not(.is-open) .bcom-acc24-panel-inner > :not(:first-child) { display: none; }
.bcom-acc24-item:not(.is-open) .bcom-acc24-panel-inner > :first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Open: show all, remove clamp */
.bcom-acc24-item.is-open .bcom-acc24-panel-inner { max-height: 9999px; }
.bcom-acc24-item.is-open .bcom-acc24-panel-inner > :not(:first-child) { display: block; }
.bcom-acc24-item.is-open .bcom-acc24-panel-inner > :first-child { display: block; }

/* Body typography */
.bcom-acc24-panel-inner, .bcom-acc24-panel-inner p, .bcom-acc24-panel-inner li {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
  color: #003F5F;
}
.bcom-acc24-panel-inner p { margin: 0 0 16px; }
.bcom-acc24-panel-inner ul { margin: 0 0 16px 18px; padding: 0; }

/* CTA */
.bcom-acc24-cta-wrap { margin-top: 30px; }
.bcom-acc24-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 31.5px;
  color: #1288C8;
  transition: color .2s ease, transform .2s ease;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.bcom-acc24-cta:hover { color: #00A6FF; }
.bcom-acc24-cta .bcom-acc24-cta-icon { display: inline-flex; align-items: center; }
.bcom-acc24-cta:hover .bcom-acc24-cta-icon { transform: translateX(2px); }

/* Focus */
.bcom-acc24-trigger:focus-visible, .bcom-acc24-cta:focus-visible {
  outline: 2px solid #77AEDB;
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .bcom-acc24-title { font-size: 22px; line-height: 28px; }
}
