.recent-posts-card {
  width: 100%;
}

button.lifelearn-eddie-chat-launch-btn {
  z-index: 101 !important;
}

aside .sticky-lg-top {
  z-index: 1;
}

a.feed-icon {
  display: none;
}

/* ==========================================================================
   Admin inline CSS migrated to code (D8-3394 audit)
   ========================================================================== */

/* Homepage welcome hero — #qcah-welcome (bg + overlay + logo grid) */
#qcah-welcome .vb-inner {
  padding: 2.5rem 3rem;
  background-image: url("/sites/default/files/2026-05/slogan-background.jpg");
  background-position: center;
  background-size: cover;
}

#qcah-welcome .vb-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(26, 79, 92, 0.75);
  pointer-events: none;
}

#qcah-welcome .vb-text {
  z-index: 1;
  margin-bottom: 2rem;
}

#qcah-welcome .vb-location {
  gap: 7px;
  margin: 0 0 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

#qcah-welcome .vb-location::before,
#qcah-welcome .vb-location::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--secondary);
  flex-shrink: 0;
}

#qcah-welcome .vb-headline {
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

#qcah-welcome .vb-body {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
}

#qcah-welcome .vb-body a {
  color: var(--tertiary);
  border-bottom: 1px solid rgba(232, 146, 58, 0.5);
  transition:
    color 0.15s,
    border-color 0.15s;
}

#qcah-welcome .vb-body a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

#qcah-welcome .vb-bottom {
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

#qcah-welcome .vb-logo-col {
  gap: 12px;
  padding: 1.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.18s;
}

#qcah-welcome .vb-logo-col:hover {
  background: rgba(0, 0, 0, 0.35);
}

#qcah-welcome .vb-logo-col img {
  max-width: 160px;
  height: 90px;
}

#qcah-welcome .vb-logo-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 600px) {
  #qcah-welcome .vb-inner {
    padding: 2rem 1.5rem;
  }

  #qcah-welcome .vb-bottom {
    grid-template-columns: 1fr;
  }

  #qcah-welcome .vb-logo-col {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
  }

  #qcah-welcome .vb-logo-col img {
    max-width: 100px;
    height: 56px;
  }
}

/* Why-us icons — brand-color SVG recolor filter */
.why-us-icon {
  filter: brightness(0) saturate(100%) invert(32%) sepia(28%) saturate(1075%) hue-rotate(145deg) brightness(90%) contrast(90%);
}

/* Team member card image height override */
.team-member-card .card-img-top {
  height: auto !important;
}

/* Badge wrapper wrap-on-overflow */
.badge-wrapper.d-flex.justify-content-center.gap-2.mt-auto.mb-3 {
  flex-wrap: wrap;
}

/* Team member node — image max-height inside content */
.page-node-type-team-member img.mb-3.me-3.max-w-250 {
  max-height: 120px;
}

/* Posts-grid mobile responsive (see D8-3371 for platform fix) */
@media (max-width: 575px) {
  .posts-grid .views-row {
    width: 100% !important;
  }

  .recent-posts-card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .recent-posts-card .card {
    width: 100%;
  }
}

/* Body copy — bump paragraphs and lists to 18px (preserve hero subtitles, small print, dates, footer links) */
main p:not(.fs-5):not(.fs-x-small):not(.small):not(.footer-link),
.page-content li:not(.fs-5):not(.fs-x-small):not(.small):not(.footer-link) {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Header background scroll transition — white → cream over first 100px of scroll */
@keyframes navbar-scroll-bg {
  from { background-color: #ffffff; }
  to   { background-color: #f5f1ea; }
}

.header.navbar {
  animation: navbar-scroll-bg 1ms linear both;
  animation-timeline: scroll(root block);
  animation-range: 0 100px;
}
