:root {
  --bg: #0f1115;
  --fg: #eaeef7;
  --muted: #a9b3c7;
  --brand: #36c;
  --brand-2: #7aa2ff;
  --card: #171a21;
  --line: #232838;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --max: 1080px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
}

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
}

img {
  border-radius: 8%;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg) !important;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

nav a.active {
  background: var(--brand);
  color: var(--fg);
}

nav a:hover:not(.active) {
  background: var(--card);
  color: var(--fg);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  font-size: 1rem;
}

/* Hero Section (Home) */
.hero {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0;
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.hero-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  height: auto;
  justify-self: end;
}

#imagem-circular {
  border-radius: 50%;
  height: 100px;
  width: 100px;
}
.Publica {
  display: flex;
  gap: 1rem;
  margin: 20px 0 8px;
}

.info {
  align-self: center;
  color: rgb(149, 151, 156);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--fg);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--brand-2);
}

.page-section {
  padding: 40px 0;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  padding-bottom: 8px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  display: block;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: all 0.2s;
  height: 100%; /* Garante altura uniforme se a grade não fizer isso */
}

.post-card:hover {
  border-color: var(--brand-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* INÍCIO DA CORREÇÃO DE IMAGENS */
.post-card img {
  width: 100%;
  /* height: 100%; -- ORIGINAL */
  /* CORREÇÃO: Define altura fixa e usa object-fit: cover para manter proporção e evitar distorção */
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
/* FIM DA CORREÇÃO DE IMAGENS */

.post-card-content {
  padding: 20px;
}

.post-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--fg);
}

.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--brand-2);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Post Content Page */
.post-page {
  padding: 40px 0 60px 0;
  max-width: 800px; /* Limita a largura do conteúdo para melhor leitura */
}

.post-page h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.post-page .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* INÍCIO DA CORREÇÃO DE IMAGEM PRINCIPAL */
.post-img {
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--line);
  /* CORRIGIDO: Removida a largura fixa que quebrava a responsividade (max-width: 500px) */
  width: 100%;
  height: 300px;
  object-fit: cover; /* ESSENCIAL: Garante que a imagem preencha o espaço sem distorcer */
}
/* FIM DA CORREÇÃO DE IMAGEM PRINCIPAL */

.post-page h2,
.post-page h3,
.post-page h4 {
  margin-top: 1.5em;
  line-height: 1.4;
}

.post-page p {
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

.post-page ul {
  padding-left: 25px;
}

.post-page li {
  margin-bottom: 10px;
}

.ad-horizontal {
  text-align: center;
  margin: 30px 0;
  padding: 15px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* About, Privacy, Terms, Contact Pages */
.content-page {
  padding: 40px 0 40px 0;
  max-width: 800px;
  line-height: 1.7;
}

.content-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 20px;
}

.content-page h2 {
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: none;
  padding-bottom: 0;
}

.content-page h3 {
  font-size: 1rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.hero-page .card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.form {
  display: grid;
  gap: 12px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1320;
  color: var(--fg);
}

.form button {
  border: 0;
}

.email-contato {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Footer */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #0c0e12;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px;
  justify-content: space-evenly;
}

.footer-legal {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 14px 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 10px;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner li {
  margin-bottom: 6px;
}

.footer-inner a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner a:hover {
  color: var(--brand-2);
}

/* Media Queries (Responsividade) */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }

  .hero-img {
    order: -1;
    margin: 0 auto 20px auto;
  }

  .nav {
    padding: 10px 20px;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 52px;
    left: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  nav.is-open {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    border-radius: 0;
    padding: 10px 20px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}
