.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 700;
}

.page-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.racas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .racas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .racas-grid {
    grid-template-columns: 1fr;
  }
}

.raca-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.6s ease;
  height: 300px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.raca-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.raca-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.raca-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.raca-card:hover .raca-content {
  opacity: 0;
}

.raca-content h2 {
  font-size: 1.8rem;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.raca-content h2 a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.raca-content h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.raca-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: opacity 0.6s ease;
}

.raca-banner:hover .banner-overlay {
  opacity: 0;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.6s ease;
}

.raca-banner:hover .banner-content {
  opacity: 0;
}

.banner-title {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
  line-height: 1.2;
}

.raca-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.raca-title {
  font-size: 3rem;
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.raca-secao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.raca-secao.layout-normal {
  grid-template-columns: 1fr 1fr;
}

.raca-secao.layout-normal .secao-content {
  order: 1;
}

.raca-secao.layout-normal .secao-imagem {
  order: 2;
}

.raca-secao.layout-reverse {
  grid-template-columns: 1fr 1fr;
}

.raca-secao.layout-reverse .secao-content {
  order: 2;
}

.raca-secao.layout-reverse .secao-imagem {
  order: 1;
}

.secao-subtitulo {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2rem;
  margin: 0;
  color: var(--red-main);
  font-weight: 700;
  line-height: 1.3;
}

.secao-texto {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.secao-texto p:last-child {
  margin-bottom: 0;
}

.secao-texto h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.secao-texto ul,
.secao-texto ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.secao-texto li {
  margin-bottom: 0.6rem;
}

.secao-texto strong {
  color: var(--text-main);
  font-weight: 600;
}

.secao-imagem {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.secao-imagem:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 1024px) {
  .raca-banner {
    height: 400px;
  }
  
  .banner-title {
    font-size: 3rem;
  }
  
  .raca-title {
    font-size: 2.5rem;
  }
  
  .raca-secao {
    gap: 1rem 3rem;
    margin-bottom: 4rem;
  }
  
  .secao-subtitulo {
    font-size: 1.75rem;
  }
  
  .secao-texto {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .raca-banner {
    height: 300px;
    margin-bottom: 3rem;
  }
  
  .banner-title {
    font-size: 2.5rem;
  }
  
  .raca-header {
    margin-bottom: 2rem;
    padding: 2rem 0;
  }
  
  .raca-title {
    font-size: 2rem;
  }
  
  .raca-secao {
    grid-template-columns: 1fr !important;
    gap: 1rem 2rem;
    margin-bottom: 3rem;

  }
  
  .raca-secao.layout-normal .secao-content,
  .raca-secao.layout-reverse .secao-content {
    order: 1;
  }
  
  .raca-secao.layout-normal .secao-imagem,
  .raca-secao.layout-reverse .secao-imagem {
    order: 2;
  }
  
  .secao-subtitulo {
    font-size: 1.5rem;
  }
  
  .secao-texto {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .raca-banner {
    height: 250px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .raca-title {
    font-size: 1.75rem;
  }
  
  .secao-subtitulo {
    font-size: 1.3rem;
  }
  
  .raca-secao {
    gap: 1rem 1.5rem;
    margin-bottom: 2.5rem;
  }
}

.pagination-wrapper {
  margin: 60px 0;
  display: flex;
  justify-content: center;
}

.pagination {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  text-decoration: none;

  border: 2px solid var(--red-main);
  color: var(--red-main);
  font-weight: 600;

  transition: all 0.25s ease;
}

.pagination li a:hover {
  background: var(--red-main);
  color: var(--white);
}

.pagination li.active span {
  background: var(--red-main);
  color: var(--white);
}

.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  
  background-color: transparent;
  color: var(--red-main);
  border: 1px solid var(--red-main);
  
  padding: 10px 24px;
  border-radius: 50px;
  
  font-weight: 600;
  font-size: 14px;
  
  cursor: pointer;
  transition: all 0.25s ease;
  
  margin-top: 3rem;
  display: flex;
  width: fit-content;
}

.btn-voltar:hover {
  background-color: var(--red-main);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(187, 24, 24, 0.2);
}

.btn-voltar i {
  font-size: 13px;
}

.associacao-box {
  padding: 1rem;
  border: 1px solid var(--red-main);
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(187, 24, 24, 0.1);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.associacao-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--red-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(187, 24, 24, 0.3);
}

.associacao-content {
  flex: 1;
}

.associacao-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red-main);
  margin: 0 0 1rem 0;
  letter-spacing: -0.3px;
}

.associacao-texto {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.associacao-texto p {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .associacao-box {
    flex-direction: column;
    padding: 2rem;
    margin: 3rem auto 2rem;
  }
  
  .associacao-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .associacao-title {
    font-size: 1.3rem;
  }
  
  .associacao-texto {
    font-size: 1rem;
  }
}
