/* =============================================
   Beltrán Accordion Block — beltran-accordion-block.css
   ============================================= */

/* Google Fonts – Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

/* ---- Wrapper ---- */
.bab-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

/* ---- Item shell ---- */
.bab-item {
  width: 576px;
  max-width: 100%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Trigger (collapsed state) ---- */
.bab-trigger {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 576px;
  max-width: 100%;
  height: 60px;
  padding: 0 22px 0 18px;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    border-radius 0.3s,
    height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.bab-trigger:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

/* ---- Number badge ---- */
.bab-number {
  color: #FFF;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 100%;
  letter-spacing: -1.25px;
  min-width: 20px;
  flex-shrink: 0;
}

/* ---- Question text ---- */
.bab-question {
  flex: 1;
  color: #FFF;
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -1.25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Arrow icon ---- */
/* The source image points RIGHT → rotate 90° so it points DOWN at rest */
.bab-arrow {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* ---- Panel (collapsed) ---- */
.bab-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Panel inner ---- */
/* No border here — the border lives on .bab-item when open */
.bab-panel-inner {
  width: 100%;
  min-height: 650px;
  box-sizing: border-box;
  padding: 28px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

/* ---- Content text ---- */
.bab-content {
  color: #FFF;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -1px;
}

.bab-content p {
  margin: 0 0 14px;
}

.bab-content p:last-child {
  margin-bottom: 0;
}

.bab-content ol,
.bab-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.bab-content li {
  margin-bottom: 8px;
}

.bab-content strong {
  font-weight: 500;
}

/* ---- CTA Button ---- */
.bab-button {
  display: block;
  width: 419px;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  background: transparent;
  color: #FFF;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 100%;
  letter-spacing: -1.25px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  flex-shrink: 0;
}

.bab-button:hover,
.bab-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
  text-decoration: none;
}

/* =============================================
   OPEN STATE
   ============================================= */

/* When open, the whole item gets a unified border + rounded box */
.bab-item.is-open {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

/* Trigger loses its own border/shape when item is open */
.bab-item.is-open .bab-trigger {
  border: none;
  border-radius: 10px 10px 0 0;
  background: transparent;
  width: 100%;
}

/* Arrow points UP when open */
.bab-item.is-open .bab-arrow {
  transform: rotate(-90deg);
}

.bab-item.is-open .bab-panel {
  max-height: 900px;
}

/* =============================================
   MOBILE  ≤ 600 px
   ============================================= */
@media (max-width: 600px) {

  .bab-item {
    width: 383.778px;
    max-width: 100%;
  }

  /* Trigger */
  .bab-trigger {
    width: 383.778px;
    max-width: 100%;
    height: 50.806px;
    /* slight rotation as per spec */
    transform: rotate(-0.029deg);
    gap: 12px;
    padding: 0 16px 0 14px;
  }

  /* Number */
  .bab-number {
    font-size: 18px;
    letter-spacing: -0.9px;
  }

  /* Question */
  .bab-question {
    font-size: 20px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -1px;
  }

  /* Arrow */
  .bab-arrow {
    width: 20px;
    height: 20px;
  }

  /* Panel inner */
  .bab-panel-inner {
    width: 100%;
    min-height: auto;
    padding: 20px 20px 28px;
    gap: 20px;
  }

  /* Content */
  .bab-content {
    font-size: 16px;
    line-height: 145%;
    letter-spacing: -0.5px;
  }

  .bab-content p {
    margin-bottom: 12px;
  }

  /* Button */
  .bab-button {
    font-size: 18px;
    letter-spacing: -0.9px;
    padding: 13px 16px;
    width: 100%;
    border-radius: 8px;
  }

  .bab-item.is-open .bab-panel {
    max-height: 1200px;
  }

  .bab-item.is-open {
    border-radius: 8px;
  }

  .bab-item.is-open .bab-trigger {
    border-radius: 8px 8px 0 0;
  }
}