/* नौकरी रिजल्ट — layout no modelo Sarkari Result: caixas por tipo, tudo acima
   da dobra, link direto. As animações são as que o original consagrou (selo
   "नया" piscando e faixa de destaques rolando), refeitas em CSS moderno e
   sempre respeitando prefers-reduced-motion — quem pede menos movimento vê a
   mesma página parada, sem perder informação. */

:root {
  --vermelho: #c1121f;
  --vermelho-esc: #8d0c17;
  --azul: #1a4fa0;
  --azul-link: #0b47b8;
  --azul-visitado: #6b2fa0;
  --verde: #0a7d2e;
  --tinta: #16181d;
  --cinza: #5b6472;
  --linha: #c9ced7;
  --linha-suave: #e3e7ec;
  --fundo: #eceff4;
  --caixa: #fff;
  --amarelo: #fff6d6;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  /* Pilha começa nas fontes devanágari de sistema (Noto no Linux/Android,
     Nirmala no Windows, Kohinoor no iOS); sem elas o fallback corta matras. */
  font: 15.5px/1.65 "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari",
        "Mangal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--azul-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.env { max-width: 1200px; margin: 0 auto; padding: 0 10px; }

/* ------------------------------- Cabeçalho -------------------------------- */
.topo {
  background: linear-gradient(180deg, #d21725 0%, var(--vermelho) 45%, var(--vermelho-esc) 100%);
  color: #fff; text-align: center; padding: 15px 10px 13px;
  border-bottom: 4px solid #f2b705;
}
.topo .marca {
  margin: 0; font-size: clamp(27px, 6.2vw, 46px); font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.15; text-shadow: 0 2px 4px rgba(0, 0, 0, .22);
}
.topo .marca a { color: #fff; }
.topo .marca a:hover { text-decoration: none; }
.topo .tagline { margin: 5px 0 0; font-size: clamp(12.5px, 2.6vw, 15.5px); opacity: .96; }
.topo .dominio { font-size: 12px; opacity: .82; margin: 3px 0 0; }

/* --------------------------------- Menu ----------------------------------- */
.menu { background: #1f2430; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.menu ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; justify-content: center; }
.menu a {
  display: block; color: #e8ecf3; padding: 11px 14px; font-size: 14px; font-weight: 600;
  letter-spacing: .2px; border-bottom: 3px solid transparent; transition: background .15s, border-color .15s;
  /* uppercase não existe em devanágari e quebraria as ligaduras. */
}
.menu a:hover { background: #2c3446; text-decoration: none; }
.menu a[aria-current="page"] { background: var(--azul); border-bottom-color: #f2b705; }

/* --------------------------- Faixa de destaques --------------------------- */
/* O "scrolling" do original. Duas cópias da lista correm lado a lado e a
   animação desloca exatamente 50% — assim o laço fecha sem salto visível. */
.destaques {
  background: #111827; color: #fff; overflow: hidden; white-space: nowrap;
  display: flex; align-items: center; border-bottom: 2px solid #f2b705;
}
.destaques .rotulo {
  flex: 0 0 auto; background: #f2b705; color: #3a2c00; font-weight: 800; font-size: 13px;
  padding: 8px 12px; letter-spacing: .3px;
}
.destaques .trilho { overflow: hidden; flex: 1 1 auto; }
.destaques .fita { display: inline-flex; animation: correr 55s linear infinite; }
.destaques:hover .fita, .destaques:focus-within .fita { animation-play-state: paused; }
.destaques .fita a { color: #fff; padding: 8px 18px; font-size: 14px; display: inline-block; }
.destaques .fita a::before { content: "◆"; color: #f2b705; margin-right: 8px; font-size: 10px; vertical-align: middle; }
@keyframes correr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------- Busca ---------------------------------- */
.barra-busca { background: #fff; border-bottom: 1px solid var(--linha); padding: 10px 0; }
.barra-busca form { display: flex; gap: 6px; max-width: 640px; margin: 0 auto; }
.barra-busca input {
  flex: 1; min-width: 0; padding: 10px 13px; font: inherit; font-size: 15px;
  border: 1px solid var(--linha); border-radius: 5px; transition: border-color .15s, box-shadow .15s;
}
.barra-busca input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(26, 79, 160, .15); }
.barra-busca button {
  padding: 10px 20px; font: inherit; font-weight: 700; color: #fff;
  background: var(--azul); border: 0; border-radius: 5px; cursor: pointer; transition: background .15s;
}
.barra-busca button:hover { background: #143d7d; }

/* --------------------------------- Aviso ---------------------------------- */
.faixa {
  background: var(--amarelo); border-bottom: 1px solid #e8d9a0; padding: 8px 0;
  font-size: 13px; text-align: center; color: #4a3b00; margin: 0;
}
.faixa strong { color: var(--vermelho); }

/* -------------------------------- Caixas ---------------------------------- */
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 13px 0; align-items: start; }
.caixa {
  background: var(--caixa); border: 1px solid var(--linha); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra);
  /* Sem animação de entrada: com `both` o conteúdo fica invisível até a
     animação rodar, e numa página densa como esta isso já apareceu como caixa
     desbotada em captura/renderização lenta. Conteúdo nunca depende de
     animação para existir — o movimento fica na faixa e no selo "नया". */
}
.caixa > h2 {
  margin: 0; padding: 11px 10px; font-size: 16px; font-weight: 700; color: #fff;
  text-align: center; letter-spacing: .2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.caixa > h2 a { color: #fff; }
.caixa ul { list-style: none; margin: 0; padding: 4px 0; flex: 1; }
.caixa li { border-bottom: 1px dotted var(--linha-suave); }
.caixa li:last-child { border-bottom: 0; }
.caixa li a {
  display: block; padding: 9px 12px; font-size: 14.5px; line-height: 1.55;
  border-left: 3px solid transparent; transition: background .14s, border-color .14s, padding-left .14s;
}
.caixa li a:hover { background: #f3f7fd; border-left-color: var(--azul); padding-left: 15px; text-decoration: none; }
.caixa li a:visited .titulo-li { color: var(--azul-visitado); }
.caixa .rodape-caixa { padding: 9px; text-align: center; background: #f7f9fc; border-top: 1px solid var(--linha-suave); }
.caixa .rodape-caixa a { font-weight: 700; font-size: 13.5px; }
.caixa .vazio { padding: 15px 12px; color: var(--cinza); font-size: 13.5px; }
.meta-li { display: block; color: var(--cinza); font-size: 12px; margin-top: 2px; }
.meta-li b { color: var(--verde); font-weight: 700; }

/* Selo "नया": o pisca-pisca do original, em opacidade (nunca em display, que
   causaria reflow a cada quadro). */
.novo {
  color: var(--vermelho); font-weight: 800; font-size: 10.5px; vertical-align: super;
  white-space: nowrap; animation: piscar 1.15s steps(1, end) infinite;
}
@keyframes piscar { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .12; } }

/* -------------------------------- Conteúdo -------------------------------- */
.painel {
  background: #fff; border: 1px solid var(--linha); border-radius: 6px;
  padding: 17px 19px; margin: 13px 0; box-shadow: var(--sombra);
}
.painel h1 { font-size: clamp(21px, 3.6vw, 28px); line-height: 1.3; margin: 0 0 10px; }
.painel h2 {
  font-size: 19px; margin: 0 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--vermelho);
}
.painel p { margin: 10px 0; }
.trilha { font-size: 12.5px; color: var(--cinza); margin: 11px 0 0; }
.trilha a { color: var(--cinza); }
.assinatura { font-size: 12.5px; color: var(--cinza); margin: 6px 0 14px; }

.tabela { width: 100%; border-collapse: collapse; margin: 13px 0; font-size: 14.5px; }
.tabela caption {
  caption-side: top; background: var(--vermelho); color: #fff; font-weight: 700;
  padding: 9px; border-radius: 5px 5px 0 0;
}
.tabela th, .tabela td { border: 1px solid var(--linha); padding: 10px; text-align: left; vertical-align: top; }
.tabela th { background: #f4f7fb; width: 42%; font-weight: 600; }
.tabela tr:nth-child(even) td { background: #fbfcfe; }

.btn-oficial {
  display: inline-block; background: var(--verde); color: #fff; font-weight: 700;
  padding: 12px 24px; border-radius: 5px; margin: 4px 6px 4px 0; font-size: 15px;
  box-shadow: var(--sombra); transition: transform .12s, background .15s;
}
.btn-oficial:hover { background: #086322; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-oficial.azul { background: var(--azul); }
.btn-oficial.azul:hover { background: #143d7d; }

.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.etiqueta {
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 4px;
  background: #eef2f8; color: var(--azul);
}
a.etiqueta:hover { background: #dde6f4; text-decoration: none; }
.etiqueta.cat { color: #fff; }

/* -------------------------------- Listagem -------------------------------- */
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { border-bottom: 1px solid #eceff3; padding: 12px 2px; }
.lista li:last-child { border-bottom: 0; }
.lista .titulo-item { font-size: 15.5px; font-weight: 600; }
.lista .meta-item { font-size: 12.5px; color: var(--cinza); margin-top: 4px; }
.lista .meta-item span + span::before { content: " · "; }

.paginacao { display: flex; gap: 8px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.paginacao a, .paginacao span {
  padding: 9px 16px; border: 1px solid var(--linha); border-radius: 5px;
  background: #fff; font-size: 14px;
}
.paginacao a:hover { background: #f3f7fd; text-decoration: none; }
.paginacao span { color: var(--cinza); background: #f4f7fb; }

.nuvem { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.nuvem a {
  border: 1px solid var(--linha); background: #fff; border-radius: 5px;
  padding: 7px 12px; font-size: 13.5px; transition: background .14s, border-color .14s;
}
.nuvem a:hover { background: #f3f7fd; border-color: var(--azul); text-decoration: none; }
.nuvem a b { color: var(--cinza); font-weight: 600; font-size: 12px; }

/* --------------------------------- Anúncio -------------------------------- */
.anuncio { margin: 13px 0; text-align: center; min-height: 90px; }

/* --------------------------------- Rodapé --------------------------------- */
.rodape { background: #1f2430; color: #b9c2d0; margin-top: 20px; padding: 22px 0 26px; font-size: 13.5px; }
.rodape a { color: #dbe3ef; }
.rodape .links { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 13px; }
.rodape .legal { text-align: center; line-height: 1.7; max-width: 780px; margin: 0 auto; color: #97a1b2; }
.trocar-edicao { text-align: center; margin-top: 12px; font-size: 13px; }
.rodape .creditos {
  text-align: center; margin: 12px auto 0; padding-top: 12px; font-size: 12.5px;
  color: #8b95a6; border-top: 1px solid #2c3446; max-width: 780px;
}
.rodape .creditos strong { color: #dbe3ef; font-weight: 700; }

/* ------------------------------- Responsivo ------------------------------- */
@media (max-width: 920px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grade { grid-template-columns: 1fr; gap: 11px; }
  .menu ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; padding: 12px 13px; }
  .caixa li a { padding: 11px 12px; }
  .painel { padding: 15px 14px; }
  .destaques .rotulo { font-size: 12px; padding: 8px 9px; }
}

/* Movimento é decoração aqui: quem pede menos movimento vê a mesma página,
   com a faixa de destaques legível e parada. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .destaques .fita { animation: none; }
  .destaques .trilho { overflow-x: auto; }
  .novo { animation: none; }
  * { transition-duration: .01ms !important; }
}

@media print {
  .menu, .barra-busca, .anuncio, .rodape, .faixa, .destaques { display: none; }
  body { background: #fff; }
}
