:root {
  --primary-color: #01049e;
  --secondary-color: #ffffff;
  --accent-color: #ffcc00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--secondary-color);
  color: #333;
  line-height: 1.6;
}

header {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 2;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  z-index: 1;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
}

.programacao {
  background-color: #f9f9f9;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 500;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e9e9e9;
}

.deep-dive {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.deep-dive .section-title {
  color: var(--secondary-color);
}

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background-color: var(--secondary-color);
  color: #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.resource-image {
  height: 160px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.resource-image1 {
  height: 260px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
}

.resource-content {
  padding: 1.5rem;
}

.resource-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.resource-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 2px;
}

.mural-container {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mural-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

textarea {
  min-height: 100px;
  resize: none;
}

.mural-messages {
  max-height: 400px; /* você pode ajustar a altura como preferir */
  overflow-y: auto;
  padding-right: 10px;
  display: grid;
  gap: 1.5rem;
}
/* Estilo opcional para barra de rolagem mais suave */
.mural-messages::-webkit-scrollbar {
  width: 8px;
}
.mural-messages::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 4px;
}
.message-card {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent-color);
}

.message-author {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.message-text {
  font-style: italic;
}

footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.highlight {
  color: var(--accent-color);
  font-weight: bold;
}

.message-card {
  position: relative;
  padding-bottom: 2rem;
}

.message-date {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .resources {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }
  section {
    padding: 3rem 0;
  }
  .resources {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .container {
    padding: 0 0.5rem;
  }
  .resources {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .resource-image,
  .resource-image1 {
    height: 140px;
  }
  .mural-container {
    padding: 1rem;
  }
  .mural-messages {
    max-height: 250px;
  }
  table,
  th,
  td {
    font-size: 0.95rem;
    padding: 0.5rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 0;
  }
  h1 {
    font-size: 1.3rem;
  }
  .cta-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .resource-content {
    padding: 1rem;
  }
  .message-card {
    padding: 1rem;
    font-size: 0.95rem;
  }
  .mural-messages {
    max-height: 180px;
    padding-right: 5px;
  }
  table,
  th,
  td {
    font-size: 0.85rem;
    padding: 0.3rem;
  }
}

/* Tabelas responsivas */
@media (max-width: 600px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }
  thead tr {
    display: none;
  }
  tr {
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  td {
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #eee;
  }
  td:before {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: var(--primary-color);
    content: attr(data-label);
  }
}
