/* Blog, paginas de conteudo e formulario de contato. */

/* --- Paginas internas (conteudo, lista do blog, post): cabecalho em destaque + coluna de leitura + lateral --- */
.inner { padding-top: clamp(16px, 2.4vw, 28px); padding-bottom: clamp(64px, 8vw, 104px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }

/* Mesmo desenho do quadro "Metodo" da home: bloco marinho de cantos largos, com um brilho dourado no canto. */
.inner-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; background: var(--navy); color: #FFFFFF; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.inner-hero::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 182, 45, .26), rgba(240, 182, 45, 0) 68%); pointer-events: none; }
.inner-hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), rgba(240, 182, 45, 0) 60%); }
.inner-hero__crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; max-width: 100%; min-width: 0; font-size: 14px; color: var(--on-navy-muted); }
/* Passo comprido da trilha (nome de curso; vem com a dica "title"): cortado com reticencias, para a trilha ocupar no
   maximo duas linhas no celular. O texto inteiro fica na dica e no titulo da pagina. */
.inner-hero__crumbs [title] { min-width: 0; max-width: min(100%, 34ch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  /* No celular o passo comprido divide a segunda linha com o que vem depois dele ("› Matrícula"). */
  .inner-hero__crumbs [title] { max-width: min(100%, 20ch); }
}
.inner-hero__crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.inner-hero__crumbs a:hover { color: #FFFFFF; text-decoration: underline; }
.inner-hero__eyebrow { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.inner-hero__pill { margin-top: 8px; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.inner-hero__pill:hover { background: #FFFFFF; color: var(--navy); }
.inner-hero__title { margin: 0; max-width: 920px; font-family: var(--font-title); font-weight: 800; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: anywhere; }
/* Titulo com mais de 60 letras (nome de curso com turno e modalidade): letra menor, para o cabecalho nao ficar alto no celular. */
.inner-hero__title--long { font-size: clamp(23px, 3vw, 38px); line-height: 1.14; letter-spacing: -0.02em; }
.inner-hero--compact .inner-hero__title--long { font-size: clamp(20px, 2.4vw, 28px); }
/* Categoria e subcategoria do curso, em destaque logo abaixo do titulo. */
.inner-hero__tags { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.inner-hero__tag { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 1.5px solid var(--gold); background: rgba(240, 182, 45, .14); color: var(--gold); font-family: var(--font-title); font-weight: 700; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.25; letter-spacing: -0.01em; text-decoration: none; }
a.inner-hero__tag:hover { background: var(--gold); color: var(--navy); }
.inner-hero__tag--sub { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.inner-hero__lead { margin: 0; max-width: 720px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: var(--on-navy-muted); }
.inner-hero__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--on-navy-muted); }
.inner-hero .chips { margin-top: 12px; }
.inner-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
/* O selo "Tutor" e marinho: dentro do cabecalho marinho ele inverte, senao so o texto apareceria. */
.inner-hero .badge--tutor { background: #FFFFFF; color: var(--navy); }
/* Versao baixa, para as paginas da loja (carrinho, checkout, matricula, pedido): so trilha e titulo, sem empurrar o formulario. */
.inner-hero--compact { border-radius: 24px; padding: clamp(20px, 3vw, 32px) clamp(22px, 4vw, 40px); gap: 10px; }
.inner-hero--compact::before { right: -200px; top: -260px; }
.inner-hero--compact .inner-hero__title { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
/* Cabecalho de uma pagina cujo conteudo tem a propria secao logo abaixo (a vitrine em /cursos). */
.page-hero { padding-top: clamp(16px, 2.4vw, 28px); }
.page-hero + .catalog { padding-top: clamp(28px, 4vw, 48px); }
/* Em /cursos o cabecalho acima ja diz "Cursos": o sobretitulo da vitrine nao repete. */
.page-hero + .catalog .catalog__eyebrow { display: none; }

.inner__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.inner__main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.inner__layout--pdf .inner__main { max-width: 1040px; width: 100%; margin: 0 auto; }
.inner__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: start; }
@media (min-width: 1040px) {
  .inner__layout--aside { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 5vw, 72px); }
  .inner__layout--aside .inner__main { max-width: 760px; }
  .inner__side { position: sticky; top: 112px; grid-template-columns: minmax(0, 1fr); }
}

/* Texto de leitura: corpo maior, respiro entre paragrafos e titulos com a marca dourada do site. */
.rich-text--reading { font-size: 17px; line-height: 1.8; }
.rich-text--reading > * { margin-bottom: 1.2em; }
.rich-text--reading h2 { margin-top: 44px; font-size: clamp(22px, 2.4vw, 28px); }
.rich-text--reading h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--gold); margin-bottom: 14px; }
.rich-text--reading h3 { margin-top: 32px; font-size: 21px; }
.rich-text--reading strong { font-weight: 700; }
.rich-text--reading blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; background: var(--bg-soft); }
.rich-text--reading img { display: block; max-height: 520px; width: auto; border-radius: 24px; }
/* Imagem que abre o texto vira a faixa de abertura da pagina. */
.rich-text--reading > p:first-child > img:only-child { width: 100%; max-height: 380px; object-fit: cover; }
.rich-text--reading iframe:not(.pdf-embed) { max-width: 100%; }

.page__actions { margin: 0; }
.page__button { height: 50px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 600; }
.page__back { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.page__back a { font-weight: 600; color: var(--navy); text-decoration: none; }
.page__back a:hover { text-decoration: underline; }

/* Lateral: quadros de atalho. */
.side-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: #FFFFFF; }
.side-card--gold { border-color: transparent; background: var(--gold); }
.side-card__title { font-family: var(--font-title); font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.side-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.side-card--gold .side-card__text { color: var(--navy); }
.side-card__btn { height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.side-card__list { display: flex; flex-direction: column; }
.side-card__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; }
.side-card__link:first-child { border-top: 0; padding-top: 0; }
.side-card__link:last-child { padding-bottom: 0; }
.side-card__link:hover { color: var(--gold-ink); }
.side-card__link.is-current { color: var(--gold-ink); }
.side-card__count { min-width: 30px; height: 24px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 12px; font-weight: 600; }

/* "Leia tambem", no fim do post. */
.related { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.related__head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-end; justify-content: space-between; }
.related__title { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; }
.related__all { font-weight: 600; color: var(--navy); text-decoration: none; }
.related__all:hover { text-decoration: underline; }

/* --- Card de post (home, lista do blog e "Leia tambem") --- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px; background: #FFFFFF; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.post-card:hover { border-color: var(--line-strong); }
.post-card__top { display: flex; align-items: center; gap: 12px; }
.post-card__icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--gold); }
.post-card__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--muted); }
.post-card__category { font-weight: 700; color: var(--navy); }
.post-card__title { font-family: var(--font-title); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.post-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); }
.post-card:hover .post-card__more { color: var(--gold-ink); }
/* O post mais recente, na abertura do blog: ocupa a linha inteira. */
.post-card--featured { grid-column: 1 / -1; padding: clamp(24px, 4vw, 44px); gap: 18px; border-color: transparent; background: var(--bg-soft); }
.post-card--featured .post-card__icon { width: 52px; height: 52px; border-radius: 16px; }
.post-card--featured .post-card__title { max-width: 860px; font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.03em; }
.post-card--featured .post-card__excerpt { max-width: 760px; font-size: 17px; line-height: 1.65; }
.post-card--featured .post-card__more { align-self: flex-start; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--navy); color: #FFFFFF; }
.post-card--featured:hover .post-card__more { color: var(--gold); }

/* PDF embutido (informativos): ocupa a largura do texto; no celular fica mais baixo. */
.rich-text .pdf-embed { display: block; width: 100%; max-width: none; height: min(82vh, 980px); aspect-ratio: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
@media (max-width: 700px) { .rich-text .pdf-embed { height: 70vh; } }

/* --- Filtros (categorias do blog) e paginacao --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips__item { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.chips__item.is-active { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.chips__count { font-size: 12px; color: var(--muted); }
.chips__item.is-active .chips__count { color: var(--gold); }
/* Dentro do cabecalho marinho. */
.chips--on-navy .chips__item { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.chips--on-navy .chips__item:hover { background: rgba(255, 255, 255, .16); }
.chips--on-navy .chips__count { color: var(--on-navy-muted); }
.chips--on-navy .chips__item.is-active { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.chips--on-navy .chips__item.is-active .chips__count { color: var(--navy); }

.pagination { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; padding-top: 8px; }
.pagination__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination__page { min-width: 44px; height: 44px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--navy); font-weight: 600; text-decoration: none; }
.pagination__page.is-current { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.pagination__step { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 12px; color: var(--navy); font-weight: 600; text-decoration: none; }
.pagination__step:hover, .pagination__page:hover { background: var(--tint); }
.pagination__page.is-current:hover { background: var(--navy); }

/* --- Contato --- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.contact__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: #FFFFFF; }
.contact__label { font-family: var(--font-title); font-size: 17px; }
.contact__value { font-size: 15px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.contact__value--link { text-decoration: none; }
.contact__value--link:hover { color: var(--navy); text-decoration: underline; }
.contact__action { margin-top: auto; height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 600; font-size: 15px; }

/* --- Pagina de divulgacao de cupom (/divulgar/CODIGO) --- */
.share__panel { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; border: 1px solid var(--line); background: #FFFFFF; }
.share__title { margin: 0; font-family: var(--font-title); font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.02em; }
.share__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.share__field { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__input { flex: 1 1 240px; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-soft); font: inherit; font-size: 14px; color: var(--navy); }
.share__input:focus-visible, .share__message:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.share__button { height: 44px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.share__button[hidden] { display: none; }
.share__message { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-soft); font: inherit; font-size: 14px; line-height: 1.6; color: var(--navy); resize: vertical; }
.share__actions, .share__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__tools[hidden] { display: none; }
.share__search { background: #FFFFFF; }
.share__hint, .share__count { margin: 0; font-size: 14px; color: var(--muted); }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.share__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.share__item[hidden] { display: none; }
.share__cover { flex: 0 0 64px; width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--tint); }
.share__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.share__name { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.share__pick { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.share__note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.share__tag { flex-shrink: 0; align-self: center; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 12px; font-weight: 600; }
.share__offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
@media (max-width: 560px) {
  .share__cover { display: none; }
  .share__button { flex: 1 1 auto; }
}

/* Professores: a grade da pagina /professores e o cartao (tambem usado no destaque da pagina inicial). */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(20px, 2.6vw, 32px); align-items: stretch; }
.teacher-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; overflow: hidden; }
.teacher-card__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--tint); }
.teacher-card__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.teacher-card__initials { font-family: var(--font-title); font-weight: 800; font-size: clamp(48px, 7vw, 72px); letter-spacing: .02em; color: var(--navy); opacity: .55; }
.teacher-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.teacher-card__name { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.teacher-card__headline { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--gold-ink); overflow-wrap: anywhere; }
.teacher-card__bio { display: flex; flex-direction: column; gap: 8px; }
.teacher-card__text { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--muted); overflow-wrap: anywhere; }
.teacher-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 10px 0 0; list-style: none; }
.teacher-card__link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--navy); transition: background-color .2s, color .2s, border-color .2s; }
.teacher-card__link:hover, .teacher-card__link:focus-visible { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.teachers-page__empty, .teachers-page__more { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: var(--bg-soft); }
.teachers-page__note { margin: 0; font-size: 17px; line-height: 1.6; color: var(--navy); }
.teachers-page__button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; }
@media (max-width: 560px) {
  .teachers-grid { grid-template-columns: 1fr; }
  .teacher-card__media { aspect-ratio: 1 / 1; }
  /* Na pagina inicial, no celular, o cartao deita: foto a esquerda, texto a direita. */
  .teacher-card--compact { flex-direction: row; }
  .teacher-card--compact .teacher-card__media { flex: 0 0 108px; aspect-ratio: auto; align-self: stretch; }
  .teacher-card--compact .teacher-card__initials { font-size: 34px; }
  .teacher-card--compact .teacher-card__body { padding: 14px 16px 16px; }
}
