
#clients {
  background: linear-gradient(135deg, #b21b1c 0%, #8b1516 100%);
  padding: 60px 0; /* Reduzido de 100px para 60px */
  position: relative;
  overflow: hidden;
}

/* Efeito de textura sutil */
#clients::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Container do título */
.section-title-x8 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

/* Título principal */
.section-title-x8 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  line-height: 1.3;
  margin: 0 0 15px 0; /* Remove margin-bottom e adiciona espaço para a linha */
  padding-bottom: 15px; /* Espaço para a linha sem afetar o texto */
}

/* Linha decorativa abaixo do título - AGORA USA PADDING */
.section-title-x8 h2::after {
  content: '';
  position: absolute;
  bottom: 0; /* Alinhado com o padding-bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Subtítulo */
.section-title-x8 p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.5;
  font-style: italic;
  padding: 0 15px;
  word-break: break-word;
  clear: both; /* Garante que fique abaixo da linha */
}

/* Container do slider */
.clients-slider {
  overflow: hidden;
  padding: 10px 0 40px 0; /* Reduzido padding superior */
  position: relative;
  z-index: 2;
}

/* Slides */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* Logos - tamanho ajustado */
.swiper-slide img {
  max-width: 160px; /* Reduzido de 180px */
  height: auto;
  padding: 15px; /* Reduzido */
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(0.95);
}

/* Hover */
.swiper-slide img:hover {
  transform: scale(1.1) translateY(-3px); /* Reduzido */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  filter: brightness(1.1);
}

/* Paginação */
.swiper-pagination {
  position: relative;
  margin-top: 30px; /* Reduzido */
}

.swiper-pagination-bullet {
  width: 10px; /* Reduzido */
  height: 10px; /* Reduzido */
  background: #fff;
  opacity: 0.4;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* =========================================
   RESPONSIVIDADE - TODOS OS DISPOSITIVOS
========================================= */

/* Tablets */
@media (max-width: 991px) {
  .section-title-x8 h2 {
    font-size: 2.2rem;
    margin: 0 0 12px 0;
    padding-bottom: 12px;
  }
  
  .section-title-x8 h2::after {
    width: 60px;
    height: 3px;
  }
  
  .section-title-x8 p {
    font-size: 1.1rem;
  }
}

/* Celulares grandes */
@media (max-width: 768px) {
  .section-title-x8 {
    margin-bottom: 35px;
  }
  
  .section-title-x8 h2 {
    font-size: 1.9rem;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
  }
  
  .section-title-x8 h2::after {
    width: 50px;
    height: 2px;
  }
  
  .section-title-x8 p {
    font-size: 1rem;
    padding: 0 12px;
  }
}

/* Celulares pequenos */
@media (max-width: 576px) {
  .section-title-x8 h2 {
    font-size: 1.6rem;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
  }
  
  .section-title-x8 h2::after {
    width: 40px;
    height: 2px;
  }
  
  .section-title-x8 p {
    font-size: 0.95rem;
    margin-top: 5px;
  }
}

/* Celulares muito pequenos */
@media (max-width: 375px) {
  .section-title-x8 h2 {
    font-size: 1.4rem;
    padding-bottom: 8px;
  }
  
  .section-title-x8 h2::after {
    width: 35px;
  }
  
  .section-title-x8 p {
    font-size: 0.9rem;
  }
}
