/**
 * OHI RC7.2 — structural support for the approved Elementor Homepage.
 *
 * Content, colors, typography, buttons, images, borders and backgrounds are
 * stored in Elementor widget/section settings. This file handles only layout
 * relationships and responsive behavior that Hub's legacy section renderer
 * cannot reliably express from imported Elementor data.
 */

.ohi-approved-home-hero,
.ohi-approved-home-partners,
.ohi-approved-home-principles,
.ohi-approved-home-helps,
.ohi-approved-home-network,
.ohi-approved-home-journal,
.ohi-approved-home-support-shell {
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.ohi-approved-home-hero > .elementor-container,
.ohi-approved-home-principles > .elementor-container,
.ohi-approved-home-helps > .elementor-container,
.ohi-approved-home-network > .elementor-container,
.ohi-approved-home-journal > .elementor-container,
.ohi-approved-home-support-shell > .elementor-container {
  width: min(1420px, calc(100% - 48px));
  max-width: 1420px;
  margin-inline: auto;
}

.ohi-approved-home-partners > .elementor-container {
  width: min(1100px, calc(100% - 48px));
  max-width: 1100px;
  margin-inline: auto;
}

.ohi-approved-home-hero {
  position: relative;
  overflow: hidden;
}
.ohi-approved-home-hero::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -180px;
  top: -235px;
  border-radius: 50%;
  background: rgba(221,38,69,.24);
  pointer-events: none;
}
.ohi-approved-home-hero > .elementor-container {
  min-height: 430px;
  align-items: stretch;
}
.ohi-approved-home-hero .elementor-column {
  position: relative;
  z-index: 1;
}
.ohi-approved-home-hero-actions {
  margin-top: 32px;
}
.ohi-approved-home-hero-actions > .elementor-container {
  width: auto;
  margin: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.ohi-approved-home-hero-actions .elementor-column {
  width: auto !important;
  flex: 0 0 auto;
}
.ohi-approved-home-hero-figure {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ohi-approved-home-hero-figure img {
  display: block;
  width: auto;
  height: auto;
  max-height: 410px;
  max-width: 100%;
  object-fit: contain;
}

.ohi-approved-home-partner-logos img {
  display: block;
  width: min(860px, 100%);
  height: auto;
  margin: 10px auto 0;
}

.ohi-approved-home-section-heading {
  margin-bottom: 38px;
}

.ohi-approved-principle-grid > .elementor-container {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.ohi-approved-principle-card {
  min-height: 372px;
  border-radius: 0 !important;
  border-right-width: 0 !important;
}
.ohi-approved-principle-card:first-child {
  border-radius: 12px 0 0 12px !important;
}
.ohi-approved-principle-card:last-child {
  border-right-width: 1px !important;
  border-radius: 0 12px 12px 0 !important;
}
.ohi-approved-principle-copy {
  margin-top: 96px;
}
.ohi-approved-principle-arrow {
  margin-top: 126px;
}

.ohi-approved-home-center-button {
  margin-top: 32px;
}

.ohi-approved-home-help-grid > .elementor-container {
  gap: 24px;
  align-items: stretch;
}
.ohi-approved-home-help-grid .ohi-approved-help-card {
  overflow: hidden;
}
.ohi-approved-help-image {
  margin: 0 0 24px !important;
}
.ohi-approved-help-image img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.ohi-approved-help-title,
.ohi-approved-help-copy,
.ohi-approved-home-tertiary-button {
  margin-left: 28px;
  margin-right: 28px;
}

.ohi-approved-home-network > .elementor-container {
  align-items: center;
}
.ohi-approved-home-network > .elementor-container > .elementor-column:first-child {
  position: relative;
}
.ohi-approved-home-network > .elementor-container > .elementor-column:first-child::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 84%;
  aspect-ratio: 1;
  left: -3%;
  top: 50%;
  transform: translateY(-50%);
  border: 22px solid #F05024;
  border-right-color: transparent;
  border-radius: 50%;
  pointer-events: none;
}
.ohi-approved-network-image {
  position: relative;
  z-index: 1;
}
.ohi-approved-network-image img {
  display: block;
  width: 84%;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  object-fit: cover;
}
.ohi-approved-home-network .lqd-counter-element {
  margin-bottom: 22px;
}
.ohi-approved-network-actions {
  margin-top: 30px;
}
.ohi-approved-network-actions > .elementor-container {
  width: auto;
  margin: 0;
  align-items: center;
  gap: 14px;
}
.ohi-approved-network-actions .elementor-column {
  width: auto !important;
  flex: 0 0 auto;
}

.ohi-approved-home-journal .lqd-lp-grid {
  margin-top: 8px;
}

.ohi-approved-home-support-card {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .ohi-approved-home-hero > .elementor-container {
    min-height: 390px;
  }
  .ohi-approved-home-hero-figure img {
    max-height: 350px;
  }
  .ohi-approved-principle-grid > .elementor-container {
    flex-wrap: wrap;
  }
  .ohi-approved-principle-card {
    width: 50% !important;
    border-right-width: 1px !important;
    border-radius: 0 !important;
  }
  .ohi-approved-principle-card:nth-child(1) {
    border-radius: 12px 0 0 0 !important;
  }
  .ohi-approved-principle-card:nth-child(2) {
    border-radius: 0 12px 0 0 !important;
  }
  .ohi-approved-principle-card:nth-child(3) {
    border-radius: 0 0 0 12px !important;
  }
  .ohi-approved-principle-card:nth-child(4) {
    border-radius: 0 0 12px 0 !important;
  }
  .ohi-approved-home-network > .elementor-container > .elementor-column:last-child {
    padding-left: 24px !important;
  }
}

@media (max-width: 767px) {
  .ohi-approved-home-hero > .elementor-container,
  .ohi-approved-home-network > .elementor-container {
    flex-direction: column;
  }
  .ohi-approved-home-hero > .elementor-container > .elementor-column,
  .ohi-approved-home-network > .elementor-container > .elementor-column {
    width: 100% !important;
  }
  .ohi-approved-home-hero > .elementor-container {
    min-height: auto;
  }
  .ohi-approved-home-hero .elementor-column:first-child {
    padding: 48px 0 24px !important;
  }
  .ohi-approved-home-hero-actions > .elementor-container,
  .ohi-approved-network-actions > .elementor-container {
    flex-direction: column;
    align-items: stretch;
  }
  .ohi-approved-home-hero-actions .elementor-column,
  .ohi-approved-network-actions .elementor-column {
    width: 100% !important;
  }
  .ohi-approved-home-hero-figure img {
    max-height: 310px;
  }
  .ohi-approved-principle-card {
    width: 100% !important;
    min-height: auto;
    border-right-width: 1px !important;
    border-radius: 0 !important;
  }
  .ohi-approved-principle-card:first-child {
    border-radius: 12px 12px 0 0 !important;
  }
  .ohi-approved-principle-card:last-child {
    border-radius: 0 0 12px 12px !important;
  }
  .ohi-approved-principle-copy,
  .ohi-approved-principle-arrow {
    margin-top: 30px;
  }
  .ohi-approved-home-help-grid > .elementor-container {
    flex-direction: column;
  }
  .ohi-approved-home-help-grid .elementor-column {
    width: 100% !important;
  }
  .ohi-approved-help-image img {
    height: 230px;
  }
  .ohi-approved-home-network > .elementor-container > .elementor-column:last-child {
    padding: 54px 0 0 !important;
  }
  .ohi-approved-home-network > .elementor-container > .elementor-column:first-child::before {
    width: 76%;
    left: 2%;
    border-width: 16px;
  }
  .ohi-approved-network-image img {
    width: 76%;
  }
}
