/* POSM Central Help landing page */

.posm-help-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.4rem;
  border-radius: 14px;
  background: #53565a;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.posm-help-hero img {
  width: 100%;
  height: auto;
  margin: 0 !important;
  border-radius: 0 !important;
  display: block;
}

.posm-help-hero__overlay {
  padding: 1rem 1.2rem 1.05rem;
  background: linear-gradient(90deg, #53565a 0%, #641e1a 100%);
}

.posm-help-hero__overlay h1 {
  margin: 0 0 .25rem !important;
  color: #fff !important;
  font-size: 1.85rem;
}

.posm-help-hero__overlay p {
  margin: 0;
  color: #fff !important;
  font-size: .96rem;
}

.posm-home-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.posm-home-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.posm-home-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.posm-home-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(83,86,90,.26);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.posm-home-card > img {
  width: 100%;
  height: 185px;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
}

.posm-home-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.posm-home-card__body h3 {
  margin: 0 0 .45rem;
  color: var(--posm-maroon, #641e1a);
  font-size: 1.05rem;
}

.posm-home-card__body p {
  margin: 0 0 .8rem;
}

.posm-home-card__body .md-button {
  align-self: flex-start;
  margin-top: auto;
}

.posm-direction {
  padding: .55rem .65rem;
  background: var(--posm-pale-gray, #dfe0de);
  border-radius: 7px;
}

.posm-section-banner {
  overflow: hidden;
  margin: .7rem 0 1rem;
  border-radius: 12px;
}

.posm-section-banner img {
  width: 100%;
  max-height: 280px;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
}

.posm-support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  background: #fff;
  border: 1px solid rgba(83,86,90,.26);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.posm-support-panel > img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 0 !important;
}

.posm-support-panel__body {
  padding: 1.1rem;
}

.posm-support-panel__body h3 {
  margin-top: 0;
  color: var(--posm-maroon, #641e1a);
}

.posm-find-help {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: stretch;
  margin: 1rem 0;
}

.posm-find-help > img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 12px !important;
}

.posm-find-help__links {
  display: grid;
  gap: .7rem;
}

.posm-find-help__links > a,
.posm-find-help__links > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .75rem .85rem;
  background: #fff;
  border-left: 4px solid var(--posm-orange, #f47e28);
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(0,0,0,.06);
  color: var(--posm-text, #2a2a2a);
  text-decoration: none;
}

.posm-find-help__links > a:hover {
  border-left-color: var(--posm-maroon, #641e1a);
  transform: translateY(-1px);
}

.posm-find-help__links strong {
  color: var(--posm-maroon, #641e1a);
}

.posm-find-help__links span {
  margin-top: .12rem;
  color: var(--posm-muted-text, #3b3f44);
}

@media screen and (max-width: 900px) {
  .posm-home-grid--3 {
    grid-template-columns: 1fr;
  }

  .posm-home-grid--2 {
    grid-template-columns: 1fr;
  }

  .posm-support-panel,
  .posm-find-help {
    grid-template-columns: 1fr;
  }

  .posm-home-card > img {
    height: auto;
  }

  .posm-support-panel > img,
  .posm-find-help > img {
    min-height: 0;
    height: auto;
  }
}
