/* Reset padrão */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f9fafb;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container centralizado */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #004e92;
  color: white;
  padding: 40px 15px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 7px 20px rgba(0, 78, 146, 0.25);
}

header h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.main-nav ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 1.2rem;
}

.main-nav li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a:focus {
  background-color: #0277bd;
  outline: none;
}

/* Layout principal */
.main-content {
  display: flex;
  gap: 35px;
  padding: 50px 0;
}

/* Conteúdo principal */
main {
  flex: 3;
}

.card {
  background-color: white;
  border-radius: 20px;
  padding: 28px 35px;
  margin-bottom: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h2 {
  font-size: 2.5rem;
  color: #004e92;
  margin-bottom: 22px;
  border-bottom: 4px solid #0277bd;
  padding-bottom: 12px;
}

/* Paragraph, lists, blockquote */
p {
  font-size: 1.16rem;
  margin-bottom: 20px;
  color: #444;
}

ul, ol {
  margin-left: 25px;
  margin-bottom: 20px;
  color: #555;
  font-size: 1.1rem;
}

li {
  margin-bottom: 10px;
}

blockquote {
  font-style: italic;
  background-color: #e3f2fd;
  border-left: 7px solid #0277bd;
  padding: 18px 22px;
  color: #01579b;
  margin: 25px 0;
  border-radius: 15px;
}

/* Imagem responsiva */
.responsive-img {
  max-width: 100%;
  border-radius: 18px;
  margin-top: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  display: block;
  height: auto;
}

/* Sidebar */
aside {
  flex: 1;
}

.sidebar {
  background-color: #fff;
  padding: 22px 28px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
}

.sidebar h3 {
  font-size: 1.7rem;
  color: #004e92;
  margin-bottom: 16px;
  border-bottom: 3px solid #0277bd;
  padding-bottom: 8px;
}

/* Sidebar lists & paragraphs */
.sidebar ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 25px;
}

.sidebar ul li a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a:focus {
  text-decoration: underline;
  color: #034a8e;
}

.sidebar p {
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: #e7f0fb;
  color: #666;
  text-align: center;
  font-size: 0.95rem;
  padding: 24px 15px;
  border-radius: 18px 18px 0 0;
  margin-top: auto;
  box-shadow: 0 -7px 22px rgba(0, 78, 146, 0.15);
}

/* Responsividade */
@media (max-width: 1024px) {
  header h1 {
    font-size: 2.6rem;
  }
  .main-content {
    flex-direction: column;
    padding: 30px 0;
  }
  aside {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 18px;
  }
  .card h2 {
    font-size: 1.9rem;
  }
  p, ul, ol, blockquote {
    font-size: 1rem;
  }
}
