/* Índice de programas v2 (prefixo pv2-). Tokens do theme medix (tokens.css). */

/* faixa de título (estrutura da faixa do catálogo EILM, em azul MedixMentor) */
.pv2-band {
  background:
    radial-gradient(520px 360px at 90% -20%, rgba(63,169,245,.35), transparent 70%),
    var(--accent);
  color: #fff; text-align: center; padding: 72px 0 64px;
}
.pv2-band-label { font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bfe3fb; margin: 0 0 14px; }
.pv2-band-title { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0 auto 16px; max-width: 24ch; color: #fff; }
.pv2-band-sub { font-size: 18px; color: #dce6f5; max-width: 56ch; margin: 0 auto; }

/* faixa de benefícios */
.pv2-benefits { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 36px 0; }
.pv2-benefits-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pv2-benefit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.pv2-benefit-icon { color: var(--accent); margin-bottom: 6px; }
.pv2-benefit-title { font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--ink); }
.pv2-benefit-text { font-size: 14px; color: var(--muted); max-width: 26ch; }

/* seções e título com filete */
.pv2-section { padding: 72px 0; }
.pv2-heading {
  font-family: var(--serif); font-size: 20px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 40px; border-bottom: 1px solid var(--line);
}
.pv2-heading span { display: inline-block; padding-bottom: 12px; margin-bottom: -1px; border-bottom: 3px solid var(--accent-2); }

/* grelha de cards (mesmo estilo da secao Areas de formacao da home v2) */
.pv2-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.pv2-card { display: flex; flex-direction: column; align-items: center; padding-bottom: 72px; color: inherit; text-decoration: none; }
.pv2-card:hover { text-decoration: none; }
.pv2-card-media { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #0B3D91; border-bottom: 6px solid var(--accent-2); border-radius: 18px; transition: box-shadow .2s; }
.pv2-card-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pv2-card-media::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: linear-gradient(180deg, rgba(11,62,145,.12) 0%, rgba(8,48,110,.28) 100%); transition: opacity .2s; }
.pv2-card:hover .pv2-card-media { box-shadow: 0 10px 24px rgba(8,48,110,.22); }
.pv2-card:hover .pv2-card-media::before { opacity: .6; }
.pv2-card-label { position: absolute; left: 8%; right: 8%; bottom: 0; transform: translateY(50%); z-index: 2; background: rgba(255,255,255,.95); box-shadow: 0 4px 14px rgba(8,48,110,.12); padding: 14px 10px 16px; text-align: center; border-radius: 12px; }
.pv2-card-tag { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pv2-card-title { font-family: var(--serif); font-size: 15px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: #08306E; margin: 6px 0 0; }
.pv2-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #179062; font-size: 13px; font-weight: 700; transition: gap .2s, color .2s; }
.pv2-card:hover .pv2-card-more { gap: 10px; color: var(--accent-2-strong); }

/* foto de cada programa (o campo cover do conteudo e a capa ilustrada, usada nas outras paginas) */
.pv2-card[href*="lideranca-clinica"] .pv2-card-media { background: #0B3D91 url(assets/programas/lideranca.webp) center / cover no-repeat; }
.pv2-card[href*="comunicacao-estrategica"] .pv2-card-media { background: #0B3D91 url(assets/programas/comunicacao.webp) center / cover no-repeat; }
.pv2-card[href*="apresentacoes-cientificas"] .pv2-card-media { background: #0B3D91 url(assets/programas/apresentacoes.webp) center / cover no-repeat; }
.pv2-card[href*="financas-na-saude"] .pv2-card-media { background: #0B3D91 url(assets/programas/financas.webp) center / cover no-repeat; }
.pv2-card[href*="ia-aplicada"] .pv2-card-media { background: #0B3D91 url(assets/programas/ia.webp) center / cover no-repeat; }
.pv2-card .pv2-card-cover { visibility: hidden; }

/* bloco lateral de orientação (intro à esquerda, lista à direita) */
.pv2-guide { background: var(--bg-alt); }
.pv2-guide-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.pv2-guide-title { font-family: var(--serif); font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--accent); margin: 0 0 16px; }
.pv2-guide-intro p { font-size: 16px; color: var(--muted); margin: 0 0 24px; }
.pv2-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pv2-guide-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
  text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.pv2-guide-list a:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(11,61,145,.10); text-decoration: none; }
.pv2-guide-need { font-size: 16px; color: var(--ink); font-weight: 500; }
.pv2-guide-prog { font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.pv2-guide-prog::after { content: " \2192"; }

@media (max-width: 980px) {
  .pv2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv2-benefits-list { grid-template-columns: repeat(2, 1fr); }
  .pv2-guide-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 479px) {
  .pv2-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pv2-band { padding: 56px 0 48px; }
  .pv2-section { padding: 52px 0; }
  .pv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv2-benefits-list { gap: 20px 12px; }
  .pv2-guide-list a { padding: 16px; }
  .pv2-guide-prog { white-space: normal; }
}
