main {
  background-color: var(--color-tertiary);
  color: var(--color-text-on-light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  border: var(--border-accent);
}

main h1,
main h2,
main h3 {
  color: var(--color-primary);
  margin-bottom: 0.8em;
  border-bottom: 1px dashed var(--color-accent);
  padding-bottom: 0.3em;
}

main p {
  margin-bottom: 1em;
}

main section h2 {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

main section>div>div {
  border: 1px solid var(--color-accent);
  padding: 15px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main section>div>div:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

main section>div>div h3 {
  color: var(--color-secondary);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5em;
}

main a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  transition: text-decoration 0.3s ease;
}

main a:hover {
  text-decoration: underline;
}

aside {
  background-color: var(--color-tertiary);
  color: var(--color-text-on-light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  text-align: center;
  border: var(--border-accent);
}

aside h2 {
  color: var(--color-primary);
  margin-bottom: 1em;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5em;
}

.ad-banner a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--color-text-on-light);
}

.footer-ad-banner a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  font-family: 'Luckiest Guy', cursive, sans-serif;
  color: var(--color-text-on-dark);
  font-size: 2em;
}

.affiliate-banner-container h2 {
  color: var(--color-primary);
  margin-bottom: 1em;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 1.1em;
  text-align: center;
}

.affiliate-banner {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito de hover */
.affiliate-banner:hover {
  transform: translateY(-5px);
  /* Levanta o banner */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Estilo para a imagem centralizada */
.affiliate-banner-image-container {
  width: 100%;
  text-align: center;
  /* CENTRALIZA A IMAGEM AQUI */
  padding: 10px 0;
  background-color: var(--color-tertiary);
  /* Fundo bege para a imagem */
}

.affiliate-banner-image {
  max-width: 90%;
  /* Garante que a imagem se ajuste ao container */
  height: auto;
  border-radius: 8px;
  /* Bordas curvas para a imagem */
  display: block;
  /* Para o margin auto funcionar */
  margin: 0 auto;
  /* CENTRALIZA A IMAGEM */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilo para o conteúdo de texto */
.affiliate-banner-content {
  padding: 15px;
  text-align: center;
}

/* Estilo para o título do produto */
.affiliate-banner-label {
  /* font-family: 'Luckiest Guy', cursive, sans-serif; */
  /* FONTE CUSTOMIZADA AQUI */
  color: var(--color-secondary);
  /* Cor do texto em azul marinho */
  font-size: 1em;
  margin-bottom: 6px;
}

/* Estilo para o botão/CTA */
.affiliate-banner-cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.affiliate-banner-cta:hover {
  background-color: #A02222;
  /* Cor mais escura no hover */
}

aside .ad-banner {
  width: 100%;
  max-width: 300px;
  height: auto;
  background-color: #eee;
  margin: 0px auto 10px auto;
  border: var(--border-primary);
  color: var(--color-text-on-light);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

footer {
  background-color: var(--color-secondary);
  color: var(--color-text-on-dark);
  padding: 20px;
  text-align: center;
  margin-top: auto;
  border-top: 2px solid var(--color-primary);
  box-shadow: var(--shadow-dark);
}

footer .footer-ad-banner {
  width: 100%;
  height: auto;
  background-color: #eee;
  padding: 50px 0;
  margin: 20px auto;
  border: var(--border-primary);
  color: var(--color-text-on-light);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

footer a {
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--color-primary);
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.news-card {
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.news-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-accent);
}

.news-card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-category {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  font-size: 0.8em;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.news-card-title {
  color: var(--color-secondary);
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card-description {
  color: var(--color-text-on-light);
  font-size: 0.9em;
  line-height: 1.5;
  flex-grow: 1;
}

.news-card-meta {
  font-size: 0.8em;
  color: #666;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.news-card-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  text-decoration: none;
  border-radius: 5px;
  align-self: flex-end;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.news-card-link:hover {
  background-color: #A02222;
  transform: translateY(-2px);
}

.news-detail-container {
  padding: 20px;
  background-color: var(--color-tertiary);
  color: var(--color-text-on-light);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  border: var(--border-accent);
}

.news-detail-title {
  font-size: 2.5em;
  color: var(--color-secondary);
  margin-bottom: 10px;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 15px;
}

.news-detail-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

.news-detail-meta span {
  margin-right: 15px;
}

.news-detail-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.news-detail-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-top: 30px;
  margin-bottom: 30px;
}

.news-detail-content p {
  margin-bottom: 1em;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3 {
  color: var(--color-primary);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  border-bottom: 1px dashed var(--color-accent);
  padding-bottom: 0.3em;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-detail-content ul {
  padding-left: 20px;
  margin: 1em 0;
  list-style-type: disc;
}

.news-detail-content li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.news-detail-ad-space {
  margin: 40px 0;
  padding: 20px;
  border: 1px dashed var(--color-accent);
  border-radius: 8px;
  text-align: center;
}

.news-detail-ad-space > .ad-banner {
  width: 100%;
  max-width: 700px;
  min-height: 150px;
  margin: 0 auto;
  background-color: var(--color-tertiary);
  border: 1px dashed var(--color-primary);
  color: var(--color-text-on-light);
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About Us */
.static-page-container {
  padding: 30px;
  background-color: var(--color-tertiary);
  color: var(--color-text-on-light);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  border: var(--border-accent);
  line-height: 1.7;
}

.static-page-container h1 {
  font-size: 2.5em;
  color: var(--color-secondary);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 15px;
  text-align: center;
}

.static-page-container h2 {
  font-size: 1.8em;
  color: var(--color-primary);
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px dashed var(--color-accent);
  padding-bottom: 5px;
}

.static-page-container p {
  margin-bottom: 1em;
}

.static-page-container ul {
  margin-left: 25px;
  margin-bottom: 1em;
  list-style: disc;
}

.static-page-container li {
  margin-bottom: 0.5em;
}

.static-page-container a {
  color: var(--color-primary);
  text-decoration: underline;
}

.static-page-container a:hover {
  color: var(--color-secondary);
}

.footer-affiliate-banner {
  display: inline-flex;
  /* LAYOUT HORIZONTAL AQUI! */
  align-items: center;
  /* Alinha os itens verticalmente no centro */
  justify-content: center;
  /* Mantém a largura máxima do banner comum de rodapé */
  margin: 5px 10px 20px 10px;
  max-width: 45%;
  background-color: #fff;
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  /* BORDAS CURVAS */
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  text-decoration: none;
  color: var(--color-text-on-light);
}

.footer-affiliate-banner:hover {
  transform: translateY(-5px);
  /* EFEITO DE HOVER */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.footer-affiliate-banner-image-container {
  width: 150px;
  /* Largura fixa para a imagem */
  height: 150px;
  /* Altura fixa */
  text-align: center;
  background-color: var(--color-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-affiliate-banner-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  display: block;
}

.footer-affiliate-banner-content {
  flex-grow: 1;
  /* Permite que o conteúdo de texto ocupe o espaço restante */
  padding: 15px 25px;
  text-align: left;
  /* Alinha o texto à esquerda */
}

.footer-affiliate-banner-label {
  color: var(--color-secondary);
  font-size: 1.2em;
  /* Título maior para o rodapé */
  margin-bottom: 5px;
}

.footer-affiliate-banner-cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.footer-affiliate-banner-cta:hover {
  background-color: #A02222;
}

/* Os estilos antigos para .footer-ad-banner serão usados como fallback */
.footer-ad-banner {
  height: 90px;
  margin: 20px auto;
  background-color: #eee;
  border: 1px dashed var(--color-accent);
  color: var(--color-text-on-light);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
