body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
}

.linha-topo {
  height: 6px;
  background-color: #040732; /* Azul GCEE */
  width: 100%;
  position: absolute; /* ou fixed se quiser que fique sempre no topo da tela */
  z-index: 10;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: white;
  padding: 10px 20px;
  max-height: 65px;
}

.logo-img {
  height: 60px;
  width: auto;  /* mantém a proporção */
}

.logo h1 {
  margin: 0;
  font-size: 24px;
  color: black;
}

.logo p {
  margin: 0;
  font-size: 14px;
  color: black;
}

.websites {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 10px 10px;
  margin: 20px auto;
}

.web-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-img {
  filter: grayscale(100%);
  width: 20px;
}

.web-item a {
  color: #040732; /* Cor escura do seu site */
  text-decoration: none;
  font-weight: bold;
  font-family: Arial, sans-serif;
  transition: color 0.3s ease;
}

.idiomas a {
  color: black;
  margin-left: 10px;
  border-right: 60px;
  font-size: 20px;
  text-decoration: none;
}

#sponsor-title {
  text-align: left;
  padding-left: 40px;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2rem;
  padding: 2rem;
}

.sponsor-content {
  display: flex;
  flex-wrap: wrap; /* garante adaptação em telas pequenas */
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Alinha imagem e texto verticalmente */
  gap: 1rem;
  max-width: 400px;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.sponsor-card img {
  width: 341px;
  height: auto;
  object-fit: contain;
  max-height: 250px; /* Limita a altura da imagem */
  padding: 0.5rem;
  border-radius: 8px;
  background-color: white; /* ou outra cor para destacar */
  flex-shrink: 0;
}

.sponsor-card img.itaipu-logo {
  padding-bottom: 0px;
  margin-bottom: 0px;
  overflow: visible;
  max-width: 335px;
  height: 139px;
}

.sponsor-card img.xbri-logo {
  padding-bottom: 0px;
  margin-bottom: 0px;
  overflow: visible;
  max-width: 335px;
  height: 80px;
}

.sponsor-card img.gov-pr-logo {
  padding-bottom: 0px;
  margin-bottom: 0px;
  overflow: visible;
  max-width: 335px;
  height: 92px;
}

.sponsor-card img.unila-logo {
  padding-bottom: 0px;
  margin-bottom: 0px;
  overflow: visible;
  max-width: 335px;
  height: 88px;
}

.sponsor-card img.shell-logo {
  padding-bottom: 0px;
  margin-bottom: 0px;
  overflow: visible;
  max-width: 335px;
  height: 90px;
}

.sponsor-text {
  width: 100%;
}

.sponsor-text h4 {
  margin: 0.5rem 0 0 0;
  font-size: 18px;
  color: #040732;
}

.sponsor-text h4.ItBi {
  padding-top: 0px;
  margin-top: 0px;
}

.sponsor-text h4.XBRI {
  padding-top: 0px;
  margin-top: 0px;
}

.sponsor-text p {
  margin: 0;
  font-size: 14px;
}

.sponsor-description p.cd_unila {
  margin-top: 0rem;
  font-size: 14px;
  line-height: 1.4;
}

.sponsor-description {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.4;
}

.sponsor-description a {
  color: #0044cc;
  text-decoration: underline;
}

.sponsor-video iframe {
  width: 700px;
  height: 382px;
  border-radius: 12px;
}

.sponsor-image img {
  width: 700px;
  height: 382px;
  border-radius: 12px;
}

nav {
  display: flex;
  align-items: center;
  background: #eee;
  padding: 10px 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0px;
  padding: 0;
  margin: 0;
}

nav ul li::after {
  content: "|";
  margin: 0 8px;
  color: #333; /* ou outra cor discreta */
}

nav ul li:last-child::after {
  content: "";
}

nav a {
  padding-left: 1px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav input {
  margin-left: auto;
  padding: 5px;
}

.banner {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.banner-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center bottom;
}

.banner-texto {
  position: absolute;
  top: 50%; /* Centraliza verticalmente */
  left: 10%;
  transform: translateY(-50%); /* Ajusta o alinhamento para o centro exato */
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  gap: 20px; /* espaço entre texto e imagem */
  color: white;
  max-width: 80%; /* limita a largura para não ocupar demais */
}

.banner-texto iframe {
  min-width: 600px;
  min-height: 333px;
  border-radius: 12px;
}

.banner-texto h2 {
  font-size: 34px;
  margin: 0;
}

.banner-texto p {
  margin-bottom: 1px;
  margin-top: 1px;
}

.banner-texto a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px;
  background: #040732;
  color: white;
  text-decoration: none;
}

.proposito {
  padding: 20px;
}

.proposito h2 {
  text-align: center;
  font-family: sans-serif;
  font-weight: 400;
  font-size: 3rem;
}

.noticias {
  padding: 20px;
}

.noticias h2 {
  margin-bottom: 20px;
}

.noticia {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.noticia:last-child {
  border-bottom: none;
}

.noticia img {
  object-fit: fill;
  width: 500px;
  height: 400px;
  transition: 0.3s;
}

.noticia-container {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
}

.noticia-container h3 {
  text-align: left;
  margin-left: 10px;
  color: #040732;
  font-family: sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  margin-top: 0px;
  margin-bottom: 2px;
}

.noticia-container p {
  text-align: left;
  margin-top: 1px;
  margin-bottom: 1px;
  max-width: 600px;
  margin-left: 10px;
  margin-right: 10px;
}

.noticia-container a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px;
  background: #040732;
  color: white;
  text-decoration: none;
}

.seta {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  color: #333;
  transition: 0.2s;
  background: #e1e1e1;
  height: 380px;
  align-content: center;
}

.seta:hover {
  color: #007bff;
}

footer {
  border-top: 1px solid #A9A9A9; /* Linha divisória */
  background: linear-gradient(to bottom, #040732, #004d99, #040732);
  color: white;
  text-align: center;
  padding: 15px;
}

.logo {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-texto h1 {
  margin: 0;
  font-size: 24px;
  color: black;
}

.logo-texto p {
  margin: 0;
  font-size: 14px;
  color: black;
}

.flag-icon {
  width: 20px;
  height: 14px;
  margin-left: 10px;
  vertical-align: middle;
}

main {
  flex: 1;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sponsor-with-video {
    flex-direction: column;
    align-items: center;
  }

  .sponsor-card {
    max-width: 100%;
    width: 100%;
  }

  .sponsor-card img {
    width: 100%;
    max-width: 300px;
  }

  .banner-texto {
    flex-direction: column;
    left: 5%;
    top: 40%;
    transform: translateY(-40%);
    padding: 10px;
    max-width: 90%;
  }

  .banner-texto h2 {
    font-size: 24px;
    text-align: center;
  }

  .banner-texto img {
    max-width: 100%;
  }

  .noticia {
    display: block;
    width: 100%;
    margin: 0 0 20px 0;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav input {
    width: 100%;
    margin: 10px 0 0 0;
  }
}