/* =========================
   VARIÁVEIS GLOBAIS
========================= */
:root {
   --primary: #2348d9;
  --primary-light: #e6ecff;
  --bg: #f5f7fb;
  --text: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border-soft: #e5e7eb;
  --radius: 18px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 16px 45px rgba(15, 23, 42, 0.15);
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Source Sans Pro", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   CABEÇALHO PADRÃO (INDEX + POPs)
========================= */
.page-header {
  background: white;
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 0;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-img {
  height: 64px;
}
.logo-index {
  height: 64px;
}
.header-text h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
}
.header-text p {
  color: var(--text-muted);
}

/* =========================
   MENU PILLS (POP Estrangeiro)
========================= */
.menu-pills {
  background: white;
  border-bottom: 1px solid var(--border-soft);
}
.menu-pills ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  margin: 0;
}
.menu-pills a {
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.menu-pills a.active,
.menu-pills a:hover {
  background: var(--primary);
  color: white;
}

/* =========================
   CONTEÚDO DE POPs (leitura)
========================= */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
section {
  margin-bottom: 32px;
}
section h2 {
  font-family: Montserrat, sans-serif;
  margin-bottom: 12px;
}
section img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* =========================
   INDEX DE POPs
========================= */
.pop-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
}
.pop-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}
.pop-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* =========================
   RODAPÉ (todas)
========================= */
footer {
  text-align: center;
  padding: 20px;
  background: white;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
}

/* =========================
   COPOM
========================= */
.topbar-sisp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding-left: 24px;
  z-index: 1000;
}

#sidebar {
  width: 280px;
  background: var(--primary);
  height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  padding: 16px 12px;
  border-radius: 18px;
  margin: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  color: white;
}

.sidebar-body {
  padding: 16px;
}

#main-menu .nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,.85);
}

#main-menu .nav-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

#main-menu .nav-link.active {
  background: rgba(255,255,255,0.25);
  color: white;
  font-weight: 700;
}

#main-content {
  padding-top: 94px; /* 70px da topbar + 24px de respiro */
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

/* utilitário */
.div-invisivel {
  display: none !important;
}

/* Divisão visual entre itens do menu lateral */
#main-menu .nav-link {
  position: relative;
}

/* linha divisória */
#main-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

/* remove linha do último item */
#main-menu .nav-link:last-child::after {
  display: none;
}

