/* Education page and Voices of Recovery (tools/wix/education.js). Builds on mor-directory.css and
   mor-projects.css; MOR palette: blue #353876, navy #292c64, orange #ff8b00, red-orange #ff4e27, black. */
html:is([data-mor-page^="education"]) header { z-index: 50 !important; }

/* "Here you'll find": three cards with an icon */
.mor-edu-find { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.mor-edu-card { background: var(--mor-grey); border-radius: 16px; padding: 34px 28px 30px; display: flex; flex-direction: column; }
.mor-edu-card__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--mor-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin: 0 0 22px; }
.mor-edu-card__title { font: 700 20px/1.25 var(--head); margin: 0 0 12px; }
.mor-edu-card__title a { color: #000; text-decoration: none; }
.mor-edu-card__title a:hover { color: var(--mor-blue); text-decoration: underline; text-underline-offset: 3px; }
.mor-edu-card__text { font: 13px/1.75 var(--text); color: #333; margin: 0 0 20px; }
.mor-edu-goal { font: 700 clamp(22px, 2.8vw, 36px)/1.3 var(--head); color: #fff; max-width: 900px; margin: 0 auto; }
.mor-edu .mor-proj-feature .mor-dir-btn { text-decoration: none; }

/* Voices of Recovery */
.mor-edu-intro { max-width: 760px; text-align: center; }
.mor-edu-intro p { font: 700 clamp(18px, 2vw, 24px)/1.5 var(--head); color: #000; margin: 0 0 18px; }
.mor-edu-intro p:last-child { color: var(--mor-blue); margin: 0; }
.mor-edu-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.mor-edu-story { background: #fff; border: 1px solid var(--mor-blue); border-radius: 16px; padding: 34px 30px 28px; display: flex; flex-direction: column; }
.mor-edu-story__name { font: 700 clamp(26px, 2.6vw, 36px)/1.1 var(--head); text-align: center; margin: 0 0 18px; }
.mor-edu-story__video { margin-top: auto; padding-top: 8px; }
.mor-edu-story__video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; }
.mor-edu-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.mor-edu-quote { margin: 0; background: var(--mor-blue); color: #fff; border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; }
.mor-edu-quote blockquote { margin: 0 0 20px; font: 13px/1.8 var(--text); }
.mor-edu-quote figcaption { margin-top: auto; font: 700 13px/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--mor-orange); }
.mor-edu-more .mor-proj-actions { justify-content: center; margin-top: 28px; }
.mor-edu-more .mor-dir-btn { text-decoration: none; }
.mor-edu-back { color: #fff; margin-top: 0; }
.mor-edu-back:hover { color: var(--mor-orange); }

@media (max-width: 1000px) {
  .mor-edu-find, .mor-edu-quotes { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
  .mor-edu-stories { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mor-edu-card { text-align: center; align-items: center; }
  .mor-edu-story { padding: 26px 20px 22px; }
  .mor-edu-story .mor-proj-text { text-align: center; }
  .mor-edu-quote { text-align: center; }
}
