{% scope_css %}

.toggles .toggles__entry {
  border: 2px solid #fff;
  border-radius: 10px; 
  align-items: center; /* vertical centering */
  display: flex;
  padding: 20px 24px;   /* explicit inner card padding */
  margin-bottom: 10px; /* spacing between cards */

}



/* HEADER */
.toggles .toggles__header {
  font: "degular-display";
  display: flex;
  font-weight: 500;
  font-size: 40px !important;
  color: #fff;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  line-height: inherit;
  letter-spacing: inherit;
  flex: 1;

}
.toggles .toggles__header h3 {
  margin: 0;
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 40px !important;
  
}


.toggles .toggles__header span {
  margin-bottom: 0;
}

/* ACCORDION (LEFT AS-IS, EVEN IF UNUSED) */
.toggles .toggles__description {
  height: 0;
  transition: height .4s ease-out;
  overflow: hidden;
}

.toggles .toggles__inner {
  
}

/* Target all immediate children of the inner wrapper that are NOT the new toggles__row */
.toggles .toggles__inner > *:not(.toggles__row) {
  padding-right: 80px;
}

/* Specific targeting for the HubSpot rich text wrapper classes */
.toggles .toggles__inner .hs-richtext,
.toggles .toggles__inner p {
  padding-right: 80px;
}

/* TOGGLE ICON (LEFT AS-IS, EVEN IF UNUSED) */
.toggles .toggles__icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-left: 32px;
  transition: transform .2s ease-out;
}

.toggles .toggles__icon:before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity .2s ease-out;
}

.toggles .toggles__icon:after {
  content: '';
  display: block;
  height: 100%;
  width: 2px;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.toggles .toggles__entry--active .toggles__icon {
  transform: rotate(90deg);
}

.toggles .toggles__entry--active .toggles__icon:before {
  opacity: 0;
}

/* COLOR VARIANT */
.toggles.toggles-color-light .toggles__entry {
  border: 2px solid rgba(255,255,255,0.9);
}

.toggles.toggles-color-light * {
  color: #fff;
}

.toggles.toggles-color-light .toggles__icon:after,
.toggles.toggles-color-light .toggles__icon:before {
  background-color: #fff;
}

/* ROW LAYOUT */
.toggles .toggles__row {
  display: flex;
  justify-content: space-between;
  gap: 0px;
  margin-top: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.toggles .toggles__column {
  flex-basis: 100%; 
  width: 100%;
}

.toggles .toggles__richtext-wrapper > * {
  margin-bottom: 15px;
  padding-right: 25px;
}

.toggles .toggles__richtext-wrapper > *:last-child {
  margin-bottom: 0;
}

.toggles .toggles__richtext-wrapper {
  display: flex;
  width: 100%;
}

/* DESKTOP 70 / 30 SPLIT */
@media (min-width: 999px) {
  .toggles .toggles__column--70 {
    flex-basis: 70%;
    width: 70%;
  }

  .toggles .toggles__column--30 { 
    flex-basis: 30%;
    width: 30%;
    align-self: flex-end;
    text-align: right;
  }
}

/* BUTTON */
.toggles .toggles__button-link {
  display: inline-block;
  padding: 0px 10px;
  background-color: transparent; 
  border: 1px solid #fff;
  color: white;
  text-decoration: none; 
  text-align: center;
  border-radius: 4px; 
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.toggles .toggles__button-link p {
  font-size: 16px; 
  margin: 0; 
  padding: 0;
  color: inherit;
}

.toggles .toggles__button-link:hover {
  background-color: #fff;
  color: black;
}

.toggles .toggles__button-link:hover p {
  color: inherit;
}
@media (max-width: 999px) {
  /* 1. Allow the header to wrap its children */
  .toggles .toggles__header {
    flex-wrap: wrap !important;
    flex-direction: column; /* Explicitly set vertical stacking */
    align-items: flex-start; /* Keeps the button from stretching to full width */
    gap: 10px; 
  }

  /* 2. Force Title to 100% width to push button to next line */
  .toggles .toggles__header h3 {
    flex: 1 1 100% !important;
    width: 100% !important;
    font-size: 30px !important;
    padding-bottom: 5px; /* Adjust spacing */
  }

  /* 3. Keep Button at its original size */
  .toggles .toggles__header .toggles__button-link {
    flex: 0 0 auto !important; /* Prevents stretching */
    width: auto !important;   /* Only as wide as the text */
    text-align: center;
    padding: 0px 10px; /* Ensure padding is maintained */
  }

  .toggles .toggles__button-link p {

  }
}


{% end_scope_css %}
