:root {
  --bg: #0f172a;
  --fg: #e2e8f0;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji','Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  background: radial-gradient(1200px 800px at 50% 30%, #1e293b 0%, #0b1220 60%, #070b15 100%);
  color: var(--fg);
  overflow-x: hidden;
  overflow-y: auto; /* permite rolagem */
}

/* Só centraliza no index */
body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Conteúdo das outras páginas (top-page) */
main.top-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
  text-align: center;
}

main.top-page h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 6vw, 3rem);
}

main.top-page > p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Cabeçalhos e textos padrão */
h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0 0 .75rem 0;
  letter-spacing: .02em;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
  color: var(--muted);
}

/* Botão padrão */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #2563eb;
}

/* Menu em grade (cards profissionais) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.card {
  background: #1e293b;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-5px);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card:hover p {
  color: #e2e8f0;
}

/* Área de postagens */
.posts {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.post-card {
  background: #1e293b;
  padding: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.post-card:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-4px);
}

.post-card h2 {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
}

.post-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.post-card:hover p {
  color: #e2e8f0;
}

/* Accordion Menu */
.accordion {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #2563eb;
  color: #fff;
}

.accordion-body {
  display: none;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header .arrow {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg); /* seta para baixo */
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.accordion-item:not(.active) .accordion-header .arrow {
  transform: rotate(-45deg); /* seta para direita (fechado) */
}


/* Blocos de conteúdo em páginas explicativas */
.content-block {
  text-align: left;
  max-width: 750px;
  margin: 2rem auto;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--fg);
}

.content-block p {
  margin-bottom: 1.5rem;
}

/* Placeholder para imagens */
.img-placeholder {
  background: #1e293b;
  border-radius: 8px;
  text-align: center;
  padding: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

/* Todas as imagens dentro do content-block e placeholders */
.content-block img,
.img-placeholder img {
  max-width: 100%;   /* nunca ultrapassa o tamanho do container */
  height: auto;      /* mantém a proporção original */
  border-radius: 6px; /* opcional, arredonda um pouco */
}

/* Navegação inferior */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;         /* espaço entre os botões */
  margin: 2rem 0.5rem;
}

.nav-buttons .btn {
  flex: 1;             /* cada botão ocupa o mesmo espaço */
  text-align: center;  /* centraliza o texto */
  margin: 0;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-buttons .btn:nth-child(2) {
  padding: 0.8rem 1.6rem; /* aumenta só o botão central */
}


/* Seção de compartilhamento */
.share-section {
  text-align: center;
  margin: 2rem 0;
}

.share-section h3 {
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-buttons a {
  background: #1e293b;
  color: var(--fg);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 0.9rem;
}

.share-buttons a:hover {
  background: #2563eb;
  color: #fff;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .65rem;
    text-align: center;
}

a {
  color: white;
}