/* ==========================================================================
   ABOUT PAGE COLLAPSIBLE SECTIONS ("Read More / Read Less" Narrative Flow)
   Matching Flagship Journeys Collapse Pattern
   ========================================================================== */

/* Collapsible Narrative Container */
.about-collapse-wrap {
  position: relative;
  overflow: hidden;
  max-height: 220px;
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Specific heights tuned for balanced visual rhythm */
.about-section .about-collapse-wrap {
  max-height: 210px;
}

.began-section .about-collapse-wrap {
  max-height: 330px;
}

.story-section .about-collapse-wrap {
  max-height: 210px;
}

.outer-journey-section .about-collapse-wrap {
  max-height: 330px;
}

/* Gradient Fade Overlay on Collapsed Bottom */
.about-collapse-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85px;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

/* Default / White Background Fade (e.g. began-section, outer-journey-section) */
.about-collapse-wrap::after,
.about-collapse-wrap--white::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* Cream Background Fade (What Bhumivox Really Is section - #FFF6E7) */
.about-collapse-wrap--cream::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 246, 231, 0) 0%,
    rgba(255, 246, 231, 0.85) 55%,
    rgba(255, 246, 231, 1) 100%
  );
}

/* Dark Background Fade (A Story That Stayed With Me section) */
.about-collapse-wrap--dark::after {
  background: linear-gradient(
    to bottom,
    rgba(23, 12, 7, 0) 0%,
    rgba(23, 12, 7, 0.85) 55%,
    rgba(23, 12, 7, 1) 100%
  );
}

/* Expanded State */
.about-collapse-wrap.is-expanded {
  max-height: 3500px;
}

.about-collapse-wrap.is-expanded::after {
  opacity: 0;
  pointer-events: none;
}

/* Read More / Read Less Pill Button */
.about-collapse__toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin-top: 0.85rem;
  padding: 0.45rem 1.2rem;
  font-family: var(--font-heading, 'Hanken Grotesk', sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--clr-primary, #803425);
  background: #FAF0E6;
  border: 1.5px solid #F0DFCE;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 8px rgba(128, 52, 37, 0.06);
  width: fit-content;
  position: relative;
  z-index: 3;
}

.about-collapse__toggle-btn:hover,
.about-collapse__toggle-btn:focus-visible {
  background: var(--clr-primary, #803425);
  color: #ffffff;
  border-color: var(--clr-primary, #803425);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(128, 52, 37, 0.22);
}

/* Center alignment helper */
.about-collapse__toggle-btn--center {
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

/* Dark mode button for Story section */
.about-collapse__toggle-btn--dark {
  background: rgba(247, 212, 146, 0.12);
  border-color: rgba(247, 212, 146, 0.4);
  color: #F7D492;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-collapse__toggle-btn--dark:hover,
.about-collapse__toggle-btn--dark:focus-visible {
  background: #F7D492;
  color: #23120A;
  border-color: #F7D492;
  box-shadow: 0 4px 16px rgba(247, 212, 146, 0.35);
}

/* Rotating SVG Chevron Icon */
.about-collapse__toggle-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  flex-shrink: 0;
}

.about-collapse__toggle-btn[aria-expanded="true"] .about-collapse__toggle-icon {
  transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .began-section .about-collapse-wrap {
    max-height: 280px;
  }

  .outer-journey-section .about-collapse-wrap {
    max-height: 280px;
  }

  .about-section .about-collapse-wrap {
    max-height: 190px;
  }

  .story-section .about-collapse-wrap {
    max-height: 190px;
  }
}
