/* ==========================================================================
   "Give Your Child a Brighter Tomorrow." (academics.html, .brighter only).
   "Tomorrow." uses the orange .hp-script from shared-chrome.css (as index.html).
   Buttons are index.html's .hp-pill--solid and .hp-pill--line, side by side on
   desktop and stacked full-width on phones. Hover effects come from .hp-pill.
   ========================================================================== */

.brighter {
  height: auto;
  min-height: 413px;
}

.brighter .h2 .hp-script {
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
}

/* the copy column is wide enough for both buttons on one line */
.brighter .copy {
  width: min(640px, 100%);
}

/* side by side on desktop and tablet, same gap as index.html's hero buttons */
.brighter .btn-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0;
}

.brighter .btn-row .hp-pill {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 0 22px;
  white-space: nowrap;
}

/* tablet: keep the row, tighten the buttons */
@media (max-width: 1024px) {
  .brighter .btn-row {
    gap: 14px;
  }
  .brighter .btn-row .hp-pill {
    padding: 0 16px;
    font-size: 16px;
  }
}

/* phone: stacked, full width, neatly aligned, no overflow */
@media (max-width: 560px) {
  .brighter .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }
  .brighter .btn-row .hp-pill {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .brighter .btn-row .hp-pill {
    font-size: 15px;
    padding: 0 16px;
  }
}
