/* Estilos gerais */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

/* Estilo da Seção Principal (Hero) - Sem alterações */
.hero-emendas {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #192a56;
  color: #ffffff;
  padding: 60px 80px;
  min-height: 70vh;
}
.texto-container {
  flex: 1;
}
.texto-container h1 {
  font-size: 3rem;
  color: #f4f4f4;
  margin-bottom: 10px;
}
.texto-container h2 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 20px;
}
.texto-container p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.imagem-container {
  flex: 1;
  text-align: center;
}
.imagem-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* Estilo compartilhado para TODOS os botões */
.btn {
  display: inline-block;
  background-color: #425481;
  color: #ffffff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 20px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background-color: #f5f5f5;
  color: black;
}

#Voltar {
  margin-left: 10px;
}

.secao-emendas {
  padding: 60px 80px;
}

.secao-emendas h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
}

.swiper-emendas {
  width: 100%;
  padding: 10px 0 40px 0;
  height: 25rem;
}
/*  SECTION  */
#destino-emendas {
  padding: 64px 80px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

/*  TÍTULO PRINCIPAL  */
#destino-emendas > h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #192a56;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0;
}

#destino-emendas > h2::after {
  content: "";
  display: block;
  margin-top: 8px;
  height: 4px;
  width: 50px;
  background: #f5a623;
  border-radius: 2px;
}

/*  TEXTO INTRO*/
.intro-text {
  margin-top: 20px;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/*  SUBTÍTULO  */
.valores-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 40px 0 16px;
}

/*  GRID DOS CARDS  */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/*  CARD INDIVIDUAL  */
.area-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 18px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--accent);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

.area-card .card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.area-card .card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #192a56;
  line-height: 1.3;
}

.area-card .card-value {
  font-size: 1.05rem;
  font-weight: 400;
  color: #444;
  margin-top: 4px;
}

/* cores por área */
.area-card[data-area="saude"] {
  --accent: #1e88e5;
}
.area-card[data-area="educacao"] {
  --accent: #43a047;
}
.area-card[data-area="infra"] {
  --accent: #f5a623;
}
.area-card[data-area="esporte"] {
  --accent: #e53935;
}
.area-card[data-area="cultura"] {
  --accent: #8e24aa;
}
.area-card[data-area="meio-ambiente"] {
  --accent: #0b5025;
}

.img-container {
  position: relative;
  width: 100%;
  height: 200px;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.categoria-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  /* background-color: rgba(255, 255, 255, 0.9); */
  color: #ffffff;
  padding: 8px 20px;
  /* border-radius: 30px; */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
  z-index: 10;
  white-space: nowrap;
}

/* Estilo de cada Card */
.emenda-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.emenda-card:hover {
  transform: translateY(-5px);
}

.emenda-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.emenda-card .card-content {
  padding: 20px;
  flex-grow: 1;
}

.emenda-card h4 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  color: #1a2a44;
}

.emenda-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

.emenda-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
  color: #192a56;
}

.swiper-pagination-bullet-active {
  background: #192a56;
}

.swiper-button-next,
.swiper-button-prev {
  top: var(--swiper-navigation-top-offset, 35%);
}

@media (max-width: 768px) {
  .hero-emendas {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    min-height: 50vh;
  }

  .imagem-container {
    display: none;
  }

  .texto-container h1 {
    font-size: 2.2rem;
  }

  .texto-container h2 {
    font-size: 1.2rem;
  }

  .texto-container p {
    font-size: 1rem;
  }
  .secao-emendas {
    padding: 40px 20px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    top: 40%;

    --swiper-navigation-size: 28px;
  }
}

/* --- Responsividade para telas de 500px ou menos --- */

@media (max-width: 500px) {
  #Voltar {
    margin-left: 0;
  }

  .swiper-emendas {
    height: 28rem;
  }
}

/* --- Responsividade dos destinos das Emendas --- */

@media (max-width: 768px) {
  #destino-emendas {
    padding: 48px 20px 56px;
  }
  .areas-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}
