/* ==========================================================================
   I/* ── Card footer: Read More link + accordion ── */
.ipb-ws__card-footer {
  margin-top: 12px;
  padding-right: 50px;
}hilo Box - WS Module
   ========================================================================== */

.ipb-ws {
  padding: var(--spacing-xl, 64px) 0;
  box-sizing: border-box;
}

.ipb-ws__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px 40px;
  box-sizing: border-box;
}

/* Title */
.ipb-ws__title {
  color: #101D43;
  text-align: center;
  margin: 0 0 56px;
}

/* --------------------------------------------------------------------------
   Two Column Layout
   -------------------------------------------------------------------------- */
.ipb-ws__columns {
  display: grid;
  grid-template-columns: 50fr 50fr;
  align-items: center;
  position: relative;
}

/* Bottom Button */
.ipb-ws__btn-wrap {
  display: flex;
  justify-content: center;
}

/* Brown — same as Sub Page Hero 2's CTA button, light hover */
.ipb-ws__btn--brown {
  background-color: #AB8F47;
  border-color: #AB8F47;
  color: #ffffff;
}

.ipb-ws__btn--brown:hover {
  background-color: #FAF4E1;
  border-color: #96793a;
  color: #96793a;
}

/* Blue */
.ipb-ws__btn--blue {
  background-color: #1e4277;
  border-color: #1e4277;
  color: #fff;
}

.ipb-ws__btn--blue:hover {
  background-color: #2a5499;
  border-color: #2a5499;
  color: #fff;
}

.ipb-ws__btn-chevron {
  font-size: 15px !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  position: relative;
  top: -1px;
  margin-left: 8px;
}

/* Left: Cards */
.ipb-ws__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  width: 109%;
}

.ipb-ws__card {
  background: linear-gradient(86.26deg, #fffdf5 21.39%, #fff 87.71%);
  box-shadow: 1px 1px 4px 0px #00000040;
  border-radius: 10px;
  padding: 37px 35px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* Number stays left, text+footer stack in a column to its right */
.ipb-ws__card-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.ipb-ws__card-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  font-family: 'General Sans', sans-serif;
  font-weight: 400;
  font-size: 55px;
  line-height: 0.7;
  color: #AB8F47;
  min-width: 1ch;
  text-align: left;
}

/* Card text (non-accordion cards) */
.ipb-ws__card-text {
  font-family: 'General Sans', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 29px;
  color: #1e1e1e;
  text-align: left;
  margin: 0;
  padding-right: 30px;
}

/* Card trigger — full text as clickable button with inline chevron */
.ipb-ws__card-trigger {
  display: block;
  font-family: 'General Sans', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 24px;
  color: #1e1e1e;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  padding-right: 30px;
  cursor: pointer;
  width: 100%;
}

.ipb-ws__card-trigger:hover {
  color: #1e4277;
}

/* Text span flows inline so chevron trails end of last line */
.ipb-ws__card-trigger .ipb-ws__card-text {
  display: inline;
  padding-right: 0;
  margin: 0;
}

.ipb-ws__card-chevron {
  display: inline;
  margin-left: 6px;
  font-size: 21px;
  color: #AB8F47;
  transition: transform 0.25s ease;
  transform-origin: center;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -3px;
}

/* Rotate chevron when open */
.ipb-ws__card-trigger[aria-expanded="true"] .ipb-ws__card-chevron {
  transform: rotate(90deg);
}

/* Accordion body */
.ipb-ws__accordion {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

.ipb-ws__accordion.ipb-ws__accordion--open {
  opacity: 1;
}

.ipb-ws__accordion[hidden] {
  display: block; /* override hidden so CSS transition works; JS removes hidden attr */
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.ipb-ws__accordion-inner {
  padding-top: 14px;
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #3c3c3c;
}

.ipb-ws__accordion-inner p {
  margin: 0 0 12px;
  color: inherit;
  font-size: 16px;
  line-height: 24px;
  max-width: 90%;
}

.ipb-ws__accordion-inner p:last-child {
  margin-bottom: 0;
}

/* Right: Dark Principles Panel */
.ipb-ws__panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #101D43 0%, #1E4277 100%);
  box-shadow: 1px 1px 4px 0px #00000040;
  border-radius: 10px;
  padding: 45px 50px 50px 50px;
  box-sizing: border-box;
}

.ipb-ws__panel-intro {
  font-family: 'General Sans', sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 35px;
  color: #ffffff;
  margin: 0 0 24px;
}

.ipb-ws__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ipb-ws__panel-list li {
  position: relative;
  padding-left: 21px;
  font-family: 'General Sans', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 27px;
  color: #ffffff;
}

.ipb-ws__panel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1399px) {
  .ipb-ws__panel-intro { font-size: 24px; line-height: 31px; }
  .ipb-ws__card-text { font-size: 19px; line-height: 25px; }
}

@media (max-width: 1024px) {
  .ipb-ws__columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ipb-ws__cards {
    width: 100%;
    z-index: 1;
  }

  .ipb-ws__panel {
    padding: 48px 40px;
  }
}

@media (max-width: 768px) {
  .ipb-ws__inner { padding-bottom: 20px; }
  .ipb-ws__card-trigger{padding-right: 10px !important;}
  .ipb-ws__card {
    padding: 24px 28px;
  }

  .ipb-ws__card-number {
    font-size: 44px;
  }

  .ipb-ws__card-text {
    font-size: 17px !important;
    line-height: 30px;
    padding-right: 0 !important;
  }

  .ipb-ws__panel {
    padding: 36px 28px;
  }

  .ipb-ws__panel-intro {
    font-size: 20px;
    line-height: 30px;
  }

  .ipb-ws__panel-list li {
    font-size: 17px;
    line-height: 26px;
  }
}
