/* =================================================================
   Mobile Health Providers — Education catalog styles
   Shared by the Education hub and the /education/patients and
   /education/providers audience pages. Builds on assets/styles.css.
   ================================================================= */

/* Breadcrumb on the navy page hero ----------------------------- */
.edu-crumbs { font-family: var(--font-sans); font-size: 0.85rem; margin-bottom: 18px; color: rgba(255,255,255,0.72); }
.edu-crumbs a { color: rgba(255,255,255,0.88); text-decoration: none; }
.edu-crumbs a:hover { color: #fff; text-decoration: underline; }
.edu-crumbs .sep { margin: 0 8px; opacity: 0.45; }

/* Indexable editorial intro ------------------------------------ */
.edu-intro {
  max-width: 760px;
  margin: 0 auto var(--s-7);
  text-align: center;
}
.edu-intro p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.edu-intro p:last-child { margin-bottom: 0; }
.edu-intro a { color: var(--brand); font-weight: 500; }
.edu-intro__byline {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: var(--s-5);
  padding: 8px 16px 8px 8px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--slate);
  text-decoration: none;
}
.edu-intro__byline:hover { border-color: var(--gold); }
.edu-intro__byline img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.edu-intro__byline strong { color: var(--ink); font-weight: 600; }

/* Topic filter chips ------------------------------------------- */
.topics-label {
  display: block; text-align: center;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 14px;
}
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; justify-content: center; }
.topics button {
  padding: 8px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--slate); font-size: 0.92rem; font-weight: 500; cursor: pointer;
}
.topics button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.topics button:hover { border-color: var(--gold); }

/* Search ------------------------------------------------------- */
.article-search { max-width: 560px; margin: 0 auto 28px; position: relative; }
.article-search__field {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 18px; background: #fff;
  border: 1.5px solid var(--line-cool); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.article-search__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(67,56,202,0.15); }
.article-search__field svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.article-search__field input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 1rem; padding: 12px 0; color: var(--slate); min-width: 0;
}
.article-search__field input::placeholder { color: var(--muted); }
.article-search__clear {
  background: var(--cream-2); color: var(--muted); border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1; flex-shrink: 0;
}
.article-search__clear:hover { color: var(--ink); background: var(--line); }
.article-search.has-value .article-search__clear { display: inline-flex; }
.article-search__hint { text-align: center; margin-top: 12px; font-size: 0.88rem; color: var(--muted); min-height: 1.2em; }
.article-search__hint strong { color: var(--ink); }
.articles-empty {
  display: none; max-width: 520px; margin: 48px auto; text-align: center;
  padding: 32px; background: var(--cream-2); border-radius: var(--r-lg);
}
.articles-empty h3 { margin-bottom: 8px; }
.articles-empty p { color: var(--muted); margin: 0 0 16px; }
.articles-empty.show { display: block; }

/* Featured article --------------------------------------------- */
.featured {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6);
  margin-bottom: var(--s-7); background: var(--paper);
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
}
@media (max-width: 980px) { .featured { grid-template-columns: 1fr; } }
.featured .img-ph { border-radius: 0; min-height: 320px; }
.featured__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.featured__tag {
  display: inline-block; padding: 4px 12px;
  background: var(--gold-tint); color: var(--gold);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; font-weight: 600; align-self: flex-start; margin-bottom: 14px;
}
.featured.provider .featured__tag { background: rgba(67,56,202,0.1); color: var(--brand); }
.featured__body h2 { font-size: clamp(1.8rem, 2.4vw + 0.4rem, 2.4rem); }
.featured__meta { margin-top: 20px; display: flex; gap: 16px; align-items: center; font-size: 0.88rem; color: var(--muted); }

/* Provider tag accent colors ----------------------------------- */
.article-card[data-topic="science"] .article-card__tag,
.article-card[data-topic="ccm-rpm"] .article-card__tag,
.article-card[data-topic="diseases"] .article-card__tag,
.article-card[data-topic="operations"] .article-card__tag { color: var(--brand); }

.cme-note {
  max-width: 760px; margin: 32px auto 0; padding: 18px 22px;
  background: var(--cream-2); border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 0.92rem; color: var(--body);
}
.cme-note strong { color: var(--ink); }

/* Provider CTA ------------------------------------------------- */
.provider-cta {
  background: linear-gradient(135deg, var(--ink) 0%, #1A2C5E 100%);
  color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-6);
  align-items: center; position: relative; overflow: hidden;
}
.provider-cta::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(67,56,202,0.4) 0%, transparent 70%);
}
.provider-cta h2 { color: #fff; max-width: 16ch; margin-bottom: 8px; }
.provider-cta p { color: #C5CFE8; margin: 0; }
.provider-cta__actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
@media (max-width: 780px) { .provider-cta { grid-template-columns: 1fr; } }

/* Hub: audience entry cards ------------------------------------ */
.edu-entries { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-7); }
@media (max-width: 820px) { .edu-entries { grid-template-columns: 1fr; } }
.edu-entry {
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.edu-entry:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.edu-entry--provider:hover { border-color: var(--brand); }
.edu-entry__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold); margin-bottom: 20px;
}
.edu-entry--provider .edu-entry__icon { background: rgba(67,56,202,0.1); color: var(--brand); }
.edu-entry__icon svg { width: 26px; height: 26px; }
.edu-entry__eyebrow {
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; color: var(--gold-text); margin-bottom: 8px;
}
.edu-entry--provider .edu-entry__eyebrow { color: var(--brand); }
.edu-entry h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 1.9rem); margin: 0 0 10px; }
.edu-entry p { color: var(--body); margin: 0 0 20px; font-size: 1.02rem; line-height: 1.6; }
.edu-entry__topics { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.edu-entry__topics span {
  font-size: 0.8rem; padding: 4px 11px; border-radius: 999px;
  background: var(--cream-2); color: var(--slate); border: 1px solid var(--line);
}
.edu-entry__cta {
  margin-top: auto; font-family: var(--font-sans); font-weight: 600;
  color: var(--gold-text); display: inline-flex; align-items: center; gap: 6px;
}
.edu-entry--provider .edu-entry__cta { color: var(--brand); }
.edu-entry:hover .edu-entry__cta { gap: 10px; }

/* Subscribe ---------------------------------------------------- */
.subscribe {
  background: linear-gradient(135deg, var(--cream-2) 0%, var(--gold-tint) 100%);
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7);
  align-items: center; border: 1px solid var(--gold-soft);
}
.subscribe h2 { margin-bottom: 12px; color: var(--ink); }
.subscribe p { margin: 0; color: var(--body); font-size: 1.05rem; }
.subscribe__form { display: flex; flex-direction: column; gap: 12px; }
.subscribe__field {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 18px; background: #fff;
  border: 1.5px solid var(--line-cool); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.subscribe__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(67,56,202,0.15); }
.subscribe__field input { flex: 1; border: none; outline: none; background: transparent; font: inherit; font-size: 1rem; padding: 12px 0; color: var(--slate); min-width: 0; }
.subscribe__field button {
  background: var(--ink); color: #fff; border: none; padding: 12px 22px;
  border-radius: 999px; font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: background .15s ease;
}
.subscribe__field button:hover { background: var(--brand); }
.subscribe__opts { display: flex; gap: 10px; padding-top: 4px; }
.subscribe__opts label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: #fff; font-size: 0.92rem; font-weight: 500; color: var(--slate); cursor: pointer;
}
.subscribe__opts input { display: none; }
.subscribe__opts label:has(input:checked) { border-color: var(--brand); background: rgba(67,56,202,0.06); color: var(--brand); }
.subscribe__note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.subscribe__success {
  display: none; padding: 16px 20px; background: var(--teal-tint);
  border: 1px solid var(--teal-soft); color: var(--teal); border-radius: var(--r-md); font-weight: 500;
}
.subscribe.subscribed .subscribe__form { display: none; }
.subscribe.subscribed .subscribe__success { display: block; }
@media (max-width: 780px) {
  .subscribe { grid-template-columns: 1fr; padding: 32px 24px; }
  .subscribe__field { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; border-radius: var(--r-md); }
  .subscribe__field button { width: 100%; }
  .subscribe__opts { flex-direction: column; }
}

/* Suggest a topic ---------------------------------------------- */
.suggest {
  background: linear-gradient(135deg, #F1F3FA 0%, #E5EAF6 100%);
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7);
  align-items: center; border: 1px solid var(--line-cool); margin-top: var(--s-6);
}
.suggest h2 { margin-bottom: 12px; color: var(--ink); }
.suggest p { margin: 0; color: var(--body); font-size: 1.05rem; }
.suggest__form { display: flex; flex-direction: column; gap: 14px; }
.suggest__textarea {
  background: #fff; border: 1.5px solid var(--line-cool); border-radius: var(--r-md);
  padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--slate);
  resize: vertical; min-height: 110px; transition: border-color .15s ease, box-shadow .15s ease;
}
.suggest__textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(67,56,202,0.15); }
.suggest__row { display: flex; gap: 10px; align-items: stretch; }
.suggest__email {
  flex: 1; background: #fff; border: 1.5px solid var(--line-cool); border-radius: var(--r-md);
  padding: 12px 16px; font: inherit; font-size: 1rem; color: var(--slate); min-width: 0;
}
.suggest__email:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(67,56,202,0.15); }
.suggest__submit {
  background: var(--ink); color: #fff; border: none; padding: 12px 24px;
  border-radius: var(--r-md); font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: background .15s ease; white-space: nowrap;
}
.suggest__submit:hover { background: var(--brand); }
.suggest__note { font-size: 0.82rem; color: var(--muted); margin: 0; }
.suggest__success {
  display: none; padding: 16px 20px; background: var(--teal-tint);
  border: 1px solid var(--teal-soft); color: var(--teal); border-radius: var(--r-md); font-weight: 500;
}
.suggest.submitted .suggest__form { display: none; }
.suggest.submitted .suggest__success { display: block; }
@media (max-width: 780px) {
  .suggest { grid-template-columns: 1fr; padding: 32px 24px; }
  .suggest__row { flex-direction: column; }
  .suggest__submit { width: 100%; }
}
