/* Site público EDULOG: estilo comum a todas as páginas. */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --navy: #0d2b4e;
  --navy-2: #133a66;
  --navy-3: #1d4c80;
  --blue: #2b86d9;
  --blue-soft: #e8f2fc;
  --ink: #14233a;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --bg: #f4f6fa;
  --white: #fff;

  /* As secções (paleta EDUSTAT) */
  --foco: #e3892c;
  --inv: #2b86d9;
  --estudos: #159d97;
  --rec: #46a35a;
  --pub: #7651c4;
  --debate: #d24a88;
  --fact: #d2553f;
  --pod: #33404f;
  --express: #1d4c80;

  --grad-edulog: linear-gradient(120deg, #f6b92f 0%, #f37a3a 45%, #e8467c 100%);
  --stripe: linear-gradient(90deg, #4aa3df 0 16.66%, #159d97 16.66% 33.33%, #d24a88 33.33% 50%, #3d6fb8 50% 66.66%, #e3992e 66.66% 83.33%, #7651c4 83.33% 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 43, 78, .08);
  --shadow-lg: 0 24px 60px rgba(13, 43, 78, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #fff; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .rubik { font-family: 'Rubik', 'Inter', sans-serif; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* O conteúdo acompanha a largura do ecrã: 1200 px num portátil, mais num monitor grande (até 1600 px). */
.container { width: 100%; max-width: 1232px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 1600px) { .container { max-width: 1472px; padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1880px) { .container { max-width: 1648px; } }
button { font: inherit; }
:focus-visible { outline: 3px solid #f6b92f; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ── Barra do topo (Universo EDULOG) ───────────────────────── */
.topbar { background: #0a1f39; color: #c9d6e6; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar .universo { display: flex; gap: 22px; align-items: center; text-transform: uppercase; font-weight: 600; }
.topbar .universo span.lbl { color: #7f93ad; font-weight: 500; }
.topbar .right { display: flex; gap: 20px; align-items: center; text-transform: uppercase; font-weight: 600; }
.topbar .sep { width: 1px; height: 16px; background: #3a516e; }
.topbar .lang b { color: #fff; }
.topbar .login { background: var(--blue); color: #fff; padding: 5px 14px; border-radius: 999px; }
/* Quem tem conta: o primeiro nome e «Sair» (um botão do formulário de sair, com o aspeto de «Entrar»). */
.conta-topo { display: flex; align-items: center; gap: 10px; margin: 0; }
.conta-topo__nome { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-transform: none; letter-spacing: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.conta-topo__nome svg { width: 14px; height: 14px; flex: none; stroke: #8cc6f5; fill: none; stroke-width: 2; }
/* O aviso para confirmar o email, logo abaixo do cabeçalho. */
.conta-aviso { background: #fff7e8; border-bottom: 1px solid #f3dfb8; color: #6b4a12; font-size: 14px; }
.conta-aviso .container { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.conta-aviso svg { width: 20px; height: 20px; flex: none; stroke: #c98a1b; fill: none; }
.conta-aviso p { flex: 1; margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.conta-aviso b { color: #4f360a; }
.conta-aviso form { margin: 0; flex: none; }
.conta-aviso button { border: 1.5px solid #c98a1b; background: #fff; color: #6b4a12; font: inherit; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.conta-aviso button:hover { background: #fdecc8; }
.conta-aviso .conta-aviso__fechar { flex: none; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; }
.conta-aviso .conta-aviso__fechar:hover { background: #fdecc8; }
.conta-aviso .conta-aviso__fechar:focus-visible { outline: 2px solid #c98a1b; outline-offset: 2px; }
.conta-aviso .conta-aviso__fechar svg { width: 18px; height: 18px; stroke: #6b4a12; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.conta-aviso .conta-aviso__fechar[hidden] { display: none; }
.conta-topo button.login { border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: 600; cursor: pointer; }

/* ── Cabeçalho ─────────────────────────────────────────────── */
.header { background: #fff; position: relative; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { width: 46px; height: 46px; border-radius: 12px; background: conic-gradient(from 210deg, #4aa3df, #159d97, #46a35a, #e3992e, #e8467c, #7651c4, #4aa3df); display: grid; place-items: center; }
.logo .mark::after { content: ''; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 6px var(--navy); }
.logo .word { font-family: 'Rubik'; font-weight: 800; font-size: 30px; color: var(--navy); letter-spacing: .02em; line-height: 1; }
.logo .word small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-top: 5px; }
/* Logótipo verdadeiro (ficheiro do site atual, sem alterações) */
.logo-img { height: 54px; width: auto; }
.logo-plate { display: inline-flex; background: #fff; border-radius: 14px; padding: 12px 16px; }
.logo-plate img { height: 46px; width: auto; }
.fba-img { height: 46px; width: auto; }
/* Todas as secções à vista, sem «Mais» (pedido do cliente). */
/* O menu encosta-se à lupa (à direita), seja qual for a largura da janela; o espaço livre fica junto ao logótipo. */
.nav { margin-left: auto; margin-right: 24px; display: flex; gap: 20px; font-family: 'Rubik'; font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: #4a5a70; white-space: nowrap; }
.nav a:hover { color: var(--navy); }
.nav a.on { color: var(--navy); }
.nav a.on::after { content: ''; display: block; height: 3px; border-radius: 3px; background: var(--inv); margin-top: 6px; }
.topbar a:hover { color: #fff; }
.topbar .container { gap: 32px; }
.topbar .universo { gap: 18px; min-width: 0; }
/* O rótulo «Universo EDULOG» só aparece quando há espaço para ele e para todos os links. */
@media (max-width: 1879px) {
    .topbar .universo .lbl { display: none; }
}
@media (max-width: 1480px) {
    .topbar .universo, .topbar .right { gap: 16px; }
}
.head-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(43, 134, 217, .35); }
.icon-btn svg { width: 20px; height: 20px; stroke: #fff; }
.stripe { height: 4px; background: var(--stripe); }

/* ── Botões e etiquetas ────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Rubik'; font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 999px; background: var(--blue); color: #fff; letter-spacing: .02em; }
.btn.light { background: #fff; color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn.outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: 'Rubik'; font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.tag { display: inline-flex; font-family: 'Rubik'; font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); background: #fff; padding: 9px 16px; border-radius: 999px; box-shadow: 0 2px 8px rgba(13, 43, 78, .08); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: 'Rubik'; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-head h2 { font-size: 34px; font-weight: 700; color: var(--navy); margin-top: 8px; }
.section-head .all { font-family: 'Rubik'; font-weight: 600; color: var(--blue); display: flex; gap: 6px; align-items: center; font-size: 14px; }
.section-head .all svg { width: 16px; height: 16px; stroke: currentColor; }

/* ── Cartões ───────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card .media { aspect-ratio: 16 / 9; background: #dbe4ee center / cover no-repeat; position: relative; }
.card .body { padding: 20px 22px 22px; }
.card h3 { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; stroke: currentColor; }

/* Anel de progresso (estado de desenvolvimento) */
/* flex: none — ao lado de um título comprido, o círculo encolhia e ficava oval (e de tamanho diferente dos outros). */
.ring { --p: 50; --c: var(--inv); flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e6edf5 0); }
.ring::before { content: attr(data-v); width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: 'Rubik'; font-weight: 700; font-size: 14px; color: var(--navy); }
.ring.lg { width: 116px; height: 116px; }
.ring.lg::before { width: 94px; height: 94px; font-size: 26px; }

/* ── Rodapé ────────────────────────────────────────────────── */
.footer { background: var(--navy); color: #c3d0e0; margin-top: 0; }
.footer .container { padding: 64px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 40px; }
.footer .brand .word { color: #fff; }
.footer .brand .word small { color: #8ea4c0; }
.footer .brand p { margin-top: 18px; font-size: 14px; line-height: 1.65; max-width: 300px; }
.footer h4, .footer .h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer .social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-family: 'Rubik'; font-weight: 700; font-size: 12px; color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 13px; color: #8ea4c0; }
.footer .bottom .links { display: flex; gap: 22px; }
.fba { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Rubik'; font-weight: 700; font-size: 11px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.footer a:hover { color: #fff; }
.footer .bottom { align-items: center; gap: 20px; }

/* ── Ecrãs mais pequenos ─────────────────────────────────────── */
@media (max-width: 1200px) {
    .topbar .universo .lbl { display: none; }
    .nav { gap: 14px; font-size: 12px; margin-right: 16px; }
}

@media (max-width: 1100px) {
    .topbar .universo { display: none; }
    .topbar .container { justify-content: flex-end; }
    .header .container { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
    .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 6px; margin: 0; }
    .footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    html, body { overflow-x: clip; }
    .topbar .right > a:not(.login), .topbar .sep { display: none; }
    .logo-img { height: 44px; }
    .footer .cols { grid-template-columns: 1fr; }
    .footer .bottom { flex-direction: column; align-items: flex-start; }
    .footer .bottom .links { flex-wrap: wrap; }
}

/* ── Partilhar (igual em todas as páginas: _Partilhar) ─────── */
.partilhar-caixa { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.partilhar-caixa h2 { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.partilhar-caixa p { font-size: 13.5px; color: var(--muted); margin: -6px 0 14px; }
.partilhar-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.partilhar-lista a, .partilhar-lista button { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--bg); color: var(--navy); font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.partilhar-lista a:hover, .partilhar-lista button:hover { background: #e9eef5; }
.partilhar-lista button.ok { background: var(--rec); color: #fff; }

/* ── Tags (igual em todas as páginas de conteúdo: _Tags) ───────
   O card toma a forma dos cards da página (a classe vem do modelo); --tag-cor é a cor da secção. */
.tags-caixa { --tag-cor: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.tags-caixa.box, .tags-caixa.caixa { border: 0; }
.tags-caixa h2 { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tags-caixa__lista { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags-caixa__lista a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tag-cor) 12%, #fff); color: var(--tag-cor); font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.tags-caixa__lista a:hover, .tags-caixa__lista a:focus-visible { background: var(--tag-cor); color: #fff; }

/* ── EDULOG express: a faixa de subscrição (página inicial e página EDULOG Express) ── */
.express { background: linear-gradient(110deg, #6eb0ef, #3b7dd8 55%, #2c64c4); color: #fff; }
.express .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.express .container > * { min-width: 0; }
.express .ttl { font-family: 'Rubik'; font-size: 40px; font-weight: 800; letter-spacing: .02em; }
.express .ttl i { font-weight: 400; font-style: italic; }
.express p { font-size: 20px; color: #eaf3fd; margin-top: 10px; max-width: 620px; }
.express .express__arquivo { font-size: 15px; margin-top: 18px; }
.express__arquivo a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.express__arquivo svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.express__escondido { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sub { background: rgba(255, 255, 255, .16); border-radius: 18px; padding: 24px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sub label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #e1eefc; }
.sub .f { display: flex; background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px; margin-top: 12px; align-items: center; gap: 8px; }
.sub .f input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; }
.sub .f .btn { border: 0; cursor: pointer; }
.sub small { display: block; margin-top: 10px; color: #dbeafb; font-size: 12px; }
.sub small a { text-decoration: underline; }
.express .express__aviso { font-size: 14px; margin-top: 12px; background: #fff; color: #1f6b3a; border-radius: 12px; padding: 10px 14px; }
.express .express__aviso--erro { color: #9c3324; }
@media (max-width: 900px) {
    .express .container { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
    .express .ttl { font-size: 30px; }
    .express p { font-size: 17px; }
}
