/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
  padding: 0 20px;
}

/* Header */
.header-image {
  width: 100%;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  margin: 0 0 20px 0;
  display: block;
  text-align: left;
}

header {
  background: linear-gradient(90deg, #0073e6, #005bb5);
  color: white;
  padding: 40px 20px;
  text-align: left;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  margin: 0 auto 30px auto;
}

header h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
}

/* Navegação */
nav {
  background-color: #ffffff;
  padding: 12px;
  margin: 20px auto;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #0073e6;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover,
nav a:focus {
  color: #003f7d;
  text-decoration: underline;
}

nav a.active {
  border-bottom: 3px solid #0073e6;
  color: #003f7d;
}

/* Main content */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.card h2 {
  margin-bottom: 15px;
  color: #0073e6;
}

ul {
  list-style: disc;
  padding-left: 25px;
  margin-top: 10px;
  line-height: 1.8;
}

ul li + li {
  margin-top: 8px;
}

.category-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  font-weight: 600;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

a {
  color: #0073e6;
  transition: color 0.2s;
}

a:hover {
  color: #004e9e;
}

/* Tabelas comparativas */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95em;
}

main > table {
  overflow-x: auto;
  display: table;
}

.links {
  margin-top: 20px;
  margin-bottom: 40px;
}

.links table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: table;
}

th, td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #0073e6;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9em;
  margin-bottom: 20px;
  color: #6c757d;
}

.breadcrumb a {
  color: #0073e6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Botão Voltar ao Topo */
#toTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#toTopBtn:hover {
  background-color: #005bb5;
}

/* Rodapé */
footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  background-color: #e9ecef;
  color: #6c757d;
  font-size: 0.9em;
  border-radius: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
  nav a {
    display: block;
    margin: 10px 0;
  }

  header {
    text-align: center;
  }

  .header-image {
    text-align: center;
    margin: 0 auto 20px auto;
  }

  header h1 {
    font-size: 2em;
  }

  table, thead, tbody, th, td, tr {
    font-size: 0.9em;
  }

  .card {
    padding: 20px;
  }

  .category-card {
    text-align: center;
  }
}
