/* Homepage Gutenberg helpers */
.hp-section { padding: 0; margin: 0; }
.hp-section.is-alt { background: #f3f4f6; }
.hp-section .wp-block-buttons { justify-content: center; }
.hp-section .wp-block-button__link { border-radius: 999px; padding: 14px 28px; }

.hp-title {
  text-align: center;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

/* grid helpers */
.hp-grid { display: grid; gap: 1.25rem; }

@media (min-width: 768px) {
  .hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hp-card {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
}

.hp-card--disclaimer p.has-small-font-size {
  margin-top: .75rem;
  opacity: .85;
}

/* FAQ styling */
.hp-faq details {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}
.hp-faq details + details { margin-top: .75rem; }
.hp-faq summary { cursor: pointer; font-weight: 600; }
.hp-faq details p { margin-top: .75rem; }

/* ===== "Feature grid" section (the one with icons + two columns) ===== */
.hp-feature {
  background: #fff;
}

/* Blue header bar */
.hp-feature__header {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-radius: 0;
  text-align: center;
  background-color: #EAEBEC;
}

.hp-feature__title {
  margin: 0;
  font-weight: 700;
  font-size: 3rem;
}

.hp-feature__subtitle {
  font-size: 1.65rem;
  opacity: .95;
}

/* Body */
.hp-feature__body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 0 0;
}

.hp-feature-item {
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hp-feature-item__content h3,
.hp-feature-item__content p {
  margin: 0;
}

.hp-feature-item__text { margin-top: 8px; }
.hp-feature-item__link { margin-top: 10px; }

.hp-feature-item__icon {
  flex: 0 0 100px;     /* pick the size of icon */
  width: 100px;
}

.hp-feature-item__icon img {
  width: 100px;
  height: auto;
  display: block;
  border-radius: 999px;
  background: #e9eef5;
  padding: .75rem;
}

.hp-feature-item__title {
  margin: 0 0 0.75rem !important;
  font-size: 1.65rem;
  font-weight: 700;
}

.hp-feature-item__text {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
  line-height: 1.65rem;
}

.hp-feature-item__link a {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.hp-feature-item__link a:hover {
  text-decoration: underline;
}

/* Make columns align nicely */
.hp-feature__columns {
  gap: 2.5rem;
}

@media (max-width: 781px) {
  .hp-feature__header { border-radius: 0; }
  .hp-feature__title {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 1rem;
  }
  .hp-feature__subtitle { font-size: 1.25rem; }
  .hp-feature-item { 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem; 
  }
  .hp-feature-item__icon img {
    width: 80px;
  }
  .hp-feature-item__content {
    margin: 1rem auto;
    padding: 0 0.85rem;
  }
  .hp-feature-item__title {
    text-align: center;
    line-height: 2rem;
  }
}
/* =========================
   Explore section  
========================= */

/* =========================
    Safeguards teaser section  
========================= */
.hp-safeguards-teaser {
    padding: 2.5rem;
    background-color: #F4F4F4;
}

.hp-safeguards-teaser__icon {
  float: right;
}

.hp-safeguards-teaser__cols {
    gap: 0;
    margin: 0 auto;
}

.hp-safeguards-teaser__title {
    font-weight: 700;
    font-size: 1.5rem;
}

.hp-safeguards-teaser__text {
    font-size: 1.25rem;
}

.hp-safeguards-teaser__link a {
    font-weight: 700;
    font-size: 1.25rem;
}

@media (max-width: 781px) {
  .hp-safeguards-teaser__cols {
    flex-basis: unset;
  }
  .hp-safeguards-teaser__icon {
    float: unset;
  }
  .hp-safeguards-teaser__icon img {
    margin: 0 auto;
    width: 80px;
  }
}

/* =========================
   Truspilot section
========================= */
.hp-trustpilot-section {
    background-color: rgb(243 244 246);
}

/* =========================
   What is a Reverse Mortgage section
========================= */
.hp-about-section {
    padding: 2.5rem 0;
}

.hp-about-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.hp-about-text {
    margin-bottom: 1.25rem;
    font-weight: 300;
    font-size: 1.25rem;
}

.hp-qualify__cta a {
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.hp-about-cards {
  margin-top: 2.25rem;
  display: grid;
  gap: 2rem;
  max-width: 900px;
}

/* Card wrapper */
.hp-about-card {
  position: relative;
  border: 2px solid rgba(0, 0, 0, .18);
  border-radius: 12px;
  background: #fff;
  padding: 3rem;
  margin-bottom: 2rem;
}

/* Icon bubble */
.hp-about-card__icon {
  position: absolute;
  top: -1.85rem;
  left: 1rem;
  width: 60px;
  height: 60px;
  margin: 0 1rem 0 1rem;
  border-radius: 999px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-about-card__icon img {
  width: 50px;
  height: auto;
  display: block;
}

/* Title row: text + horizontal line */
.hp-about-card__title {
  position: absolute;
  top: -1rem;
  left: 5.65rem;
  background-color: #fff;
  padding: 0 1rem;
  margin: 0 0 0.75rem !important;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Body text */
.hp-about-card__text {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Mobile tightening */
@media (max-width: 720px) {
  .hp-about-section {
    padding: 2rem;
  }

  .hp-about-title {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .hp-about-card {
    padding: 1.5rem 2rem;
  }

  .hp-about-card .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hp-about-card__icon {
    position: relative;
    top: unset;
    left: unset;
  }

  .hp-about-card::before {
    display: none;
  }

  .hp-about-card__title {
    position: relative;
    margin-top: 1rem !important;
    top: unset;
    left: unset;
    line-height: 1.5rem;
    text-align: center;
    flex-wrap: wrap;
  }

  .hp-about-card__title::after {
    display: none;
  }
}

/* =========================
   Qualify section
========================= */
.hp-qualify {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
  background-color: #EAEBEC;
}

.hp-qualify__header {
    margin-bottom: 1.5rem;
}

.hp-qualify__title {
    font-weight: 700;
    font-size: 2.5rem;
}

.hp-qualify__intro {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.hp-qualify__list {
    font-size: 1.25rem;
}

.hp-qualify__outro {
    font-size: 1.25rem;
    margin: 1rem auto 1.5rem;
}

.hp-qualify__cta a {
    padding: 0.5rem 1.5rem !important;
    background-color: #123b6e;
    border-radius: 0 !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.hp-qualify__intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 2.5rem;
}

.hp-qualify-cards {
  max-width: 760px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.25rem;
}

.hp-qualify-cards .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Each white rounded card */
.hp-qualify-card {
  position: relative; /* anchor badge */
  display: flex;
  justify-content: center;
  width: 700px;
  background: #fff;
  border-radius: 12px;
  padding: 2.25rem 3rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.hp-qualify-card__badge {
  position: absolute;
  left: 50%;
  top: -22px; /* pulls it above the card */
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Outer ring */
.hp-qualify-card__badge {
  border: 1px solid rgba(0,0,0,.75);
}

/* Inner ring */
.hp-qualify-card__badge::before {
  content: "";
  position: absolute;
  inset: 5px;               /* creates the inner circle */
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.75);
}

.hp-qualify-card__badge span {
  position: relative; /* above rings */
  font-size: 1.25rem;
  line-height: 1;
  color: #000;
}

/* Centered title + text like screenshot */
.hp-qualify-card__title {
  margin: 0 0 .25rem !important;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.hp-qualify-card__text {
  margin: 0;
  max-width: 500px;
  text-align: center;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Outro sits below cards, left-aligned in screenshot */
.hp-qualify__outro {
  max-width: 900px;
  margin: 2rem auto 1.75rem;
}

/* Mobile spacing */
@media (max-width: 720px) {
  .hp-qualify {
    padding: 2.5rem;
  }
  .hp-qualify-cards {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hp-qualify-card {
    max-width: 90vw;
  }
  .hp-qualify__outro {
    padding: 0 2rem;
  }
}

/* =========================
   Process section (oval + overlap + centered number badge)
========================= */
.hp-process {
    padding: 2rem 1rem;
}

.hp-process__title {
    margin: 0 0 2.5rem;
    font-weight: 800;
    font-size: 2.5rem;
}

.hp-process-step {
    margin-bottom: 1rem;
}

/* list wrapper */
.hp-process__list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

/* ✅ Gutenberg Group blocks wrap content in an inner container.
   The flex must be on the inner container, not only the outer group. */
.hp-process-step > .wp-block-group__inner-container{
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

/* Each row */
.hp-process-step {
  position: relative;
  /* display: flex;
  align-items: center;
  gap: 0; important: we handle spacing via overlap */
}

/* Badge needs to position relative to the flex container */
.hp-process-step > .wp-block-group__inner-container{
  position: relative;
}


/* Optional: prevent Gutenberg default margins from pushing things */
.hp-process-step__left,
.hp-process-step__right,
.hp-process-step__badge{
  margin: 0 !important;
}

/* Left oval */
.hp-process-step__left {
  flex: 0 0 30%;
  height: 120px;
  border-radius: 999px;
  background: #eef2f5;
  border: 2px solid rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  z-index: 1;
}

.hp-process-step__icon img {
  width: 100px;
  height: auto;
  display: block;
}

/* Right rectangle (overlaps the oval) */
.hp-process-step__right {
    flex: 1 1 auto;
    min-height: 120px;
    text-align: center;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(0,0,0,.18);
    padding: 1.1rem 3rem 1.1rem 3.5rem; /* make room for badge */
    margin-left: -60px !important; /* the overlap */
    box-shadow: 0 2px 0 rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hp-process-step__heading {
    font-weight: 600;
    font-size: 1.5rem;
}

.hp-process-step__text {
  margin: 0;
  line-height: 1.4;
  color: rgba(0,0,0,.75);
}

/* Number badge centered on the overlap */
.hp-process-step__badge {
    position: absolute;
    left: 23%;                 /* width of oval */
    transform: translateX(-50%); /* center badge on seam */
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #163a63;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hp-process-step__badgeText {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1;
}

/* Responsive: stack on small screens */
@media (max-width: 720px) {
  .hp-process__title {
    line-height: 2.5rem;
  }
  .hp-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, .18);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
    padding: 2rem 3rem;
  }

  .hp-process-step > .wp-block-group__inner-container {
    flex-direction: column;
    left: auto;
    width: 80%;
  }

  .hp-process-step__left {
    /* width: 100%;
    flex: 0 0 auto; */
    justify-content: center;
    height: auto;
    padding-bottom: 2rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
  }

  .hp-process-step__right {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-left: 0 !important;
    padding: 1rem 0;
  }

  .hp-process-step__badge {
    position: relative;
    left: auto;
    transform: none;
  }

  .hp-process-step__text {
    text-align: left;
  }

  .hp-process-step__heading {
    margin-bottom: 1rem;
  }
}

/* =========================
   Disbursement section
========================= */
.hp-disbursement__title {
    margin: 2.5rem auto;
    font-weight: 700;
    font-size: 2.5rem;
}

.hp-disbursement__col {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hp-disbursement__h {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .hp-disbursement {
    padding: 2rem;
  }
  .hp-disbursement__title {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  .hp-disbursement__icon img {
    width: 80px;
  }
}

/* =========================
   Safeguards (2nd section grid)
========================= */
.hp-safeguards-section {
  padding: 2.5rem 0;    
  background: #EAEBEC;
}

.hp-safeguards-grid__header {
    justify-content: center;
    align-items: center !important;
}

.hp-safeguards-grid__img {
    flex: 1 !important;
}

.hp-safeguards-grid__img img {
    max-width: 120px;
    float: right;
}

.hp-safeguards-grid__heading {
    flex: 1.5 !important;
}

.hp-safeguards-grid__title {
    margin: 0;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: left;
}

.hp-safeguards-grid__intro {
    font-size: 1.25rem;
}

.hp-safeguards-grid__cardTitle {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
  .hp-safeguards-section {
    padding: 2.5rem;
  }
  .hp-safeguards-grid__header {
    flex-direction: column;
  }
  .hp-safeguards-grid__headerIcon img {
    float: unset;
    margin:0 auto;
  }
  .hp-safeguards-grid__title {
    font-size: 2rem;
    line-height:2.5rem;
  }
}

/* =========================
   FAQ Section
========================= */
.hp-faq-section__title {
    padding: 2rem 0;
    max-width: 100%;
    margin: 0;
    font-weight: 700;
    font-size: 2.5rem;
}

.hp-faq-grid {
    width: 100%;
    margin: 0;
    padding: 0 0 2.5rem;
    gap: 2rem;
}

.hp-faq-grid div {
  background-color: #F4F4F4;
  padding: 2rem 2.5rem;
}

.hp-faq-grid details {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hp-faq-grid summary::marker {
    display: none;
}

.hp-faq-grid p {
    font-weight: 300;
    font-size: 1.25rem;
}

@media (max-width: 720px) {
  .hp-faq-section__title {
    font-size: 2rem;
    line-height: 2.5rem;;
  }
  .hp-faq-grid div {
    padding: 2rem;
  }
  .hp-faq-grid summary {
    font-size: 1.5rem;
    line-height: 1.85rem;
    margin-bottom: 1rem;
  }
}

/* editor-only patch */
.editor-styles-wrapper .hp-feature__body {
  padding-left: 0;
  padding-right: 0;
}