﻿body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  color: #222;
}

.container {
  max-width: 1200px;
  margin: auto;
}

header {
  background: #fff;
  padding: 10px 20px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-icon {
  background: #004aad; /* azul */
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.logo {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
}

.logo-main {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1.4px #111;
  text-shadow:
    -1px -1px 0 #111,
     1px -1px 0 #111,
    -1px  1px 0 #111,
     1px  1px 0 #111;
}

.logo-sub {
  color: #123c63;
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  row-gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.98rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #004aad; /* azul */
}

.nav-links a.active {
  color: #004aad;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Carrossel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 450px; /* altura padrão do carrossel */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 450px; /* altura fixa para manter padrão */
  object-fit: cover; /* mantém proporção e corta o excesso */
  object-position: center; /* centraliza a imagem */
  display: block;
}

.caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  max-width: 90%;
}

.caption h2 {
  color: #fff;
  margin: 0;
  font-size: 1.4rem;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls button {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.carousel-controls button:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Notícias (imagem à esquerda, texto à direita) */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.news-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news-item:hover {
  transform: translateY(-3px);
}

.news-item img {
  width: 220px;
  height: 160px;
  object-fit: cover;
}

.news-text {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-text h3 {
  margin: 5px 0;
  color: #004aad; /* azul */
  font-size: 1.2rem;
}

.news-text p {
  color: #555;
  font-size: 0.95rem;
  margin: 5px 0 10px;
}

.news-text .author {
  font-size: 0.85rem;
  color: #888;
}

/* Rodapé */
footer {
  text-align: center;
  background: #fff;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
    height: 200px;
  }
}

.pagination {
  text-align: center;
  margin: 30px 0;
}

.page-btn {
  background: #007bff;
  border: none;
  color: #fff;
  padding: 8px 12px;
  margin: 2px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.page-btn:hover {
  background: #0056b3;
}

.page-btn.active {
  background: #333;
  font-weight: bold;
}




