.game-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.line-title {
  position: relative;
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Poppins';
    color: #0066a4;
    text-transform: revert;
    letter-spacing: 1px;
}

.line-title::before,
.line-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  border-radius: 2px;
}

.line-title:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #007bff, #00AEEF);
  transform: translateX(-50%);
  border-radius: 2px;
}

.dark-mode .owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev, .owl-carousel button.owl-dot{
  color: black;
}

.dark-mode .owl-carousel .owl-nav button.owl-prev, .owl-carousel .owl-nav button.owl-dot, .owl-carousel button.owl-prev{
  color: black;
}

.dark-mode .line-title{
  color: #4a9fd8;
}

.game-section .item {
  margin: 0 15px 60px;
  width: 320px;
  height: 400px;
  display: flex;
  align-items: flex-end;
  background: #343434 no-repeat center center / cover;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-section .item.active {
  width: 500px;
  box-shadow: 12px 40px 40px rgba(0, 81, 255, 0.25);
}

.game-section .item:after {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8)); /* Gradient mais suave */
}


.game-section .item-desc {
  padding: 30px 20px; /* Aumenta o padding para dar mais espaço */
  color: #fff;
  position: absolute; /* Muda para absolute para melhor controle de posicionamento */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  transition: all 0.4s ease-in-out;
  /* Remove o transform que estava causando o problema */
}

.game-section .item.active .item-desc {
  transform: none;
}

.game-section .item-desc p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
}

.game-section .item:hover .item-desc p,
.game-section .item.active .item-desc p {
  opacity: 1;
  transform: translateY(0);
}

.game-section .item-desc h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 12px;
}



.game-section .item.active .item-desc p {
  opacity: 1;
  color: white;
  transform: translateY(0);
}

/* Estilo para owl carousel */
.owl-stage {
  display: flex;
  padding: 20px 0;
}

.owl-nav {
  text-align: center; 
  margin-top: 20px;
}

.owl-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background-color: #f5f5f5 !important;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.owl-nav button:hover {
  background-color: #00AEEF !important;
  color: #fff !important;
}

.owl-dots {
  text-align: left;
  margin-top: 30px;
  display: flex;
  justify-content: flex-start; /* Alinha à esquerda */
  padding-left: 50px !important; /* Adiciona espaço à esquerda */
  align-items: center;
  gap: 12px; /* Aumenta o espaçamento entre os dots */
}

.owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #D6D6D6;
  display: block;
  transition: opacity .2s ease;
  border-radius: 30px;
}

.owl-dots .owl-dot.active span {
  background-color: #00AEEF;
}

/* Personalização do carousel */
.custom-carousel {
  padding: 30px 0;
  position: relative;
}

.custom-carousel .item {
  position: relative;
  height: 400px;
  min-width: 350px;
  border-radius: 8px;
  overflow: hidden;
  margin: 15px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  transform: scale(0.9);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-carousel .item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgb(134 161 191 / 15%), rgb(67 67 67 / 0%));  
  z-index: 1;
}

.custom-carousel .item.active {
  transform: scale(1);
  box-shadow: 0 15px 40px rgba(0, 174, 239, 0.3); /* Sombra azul para destacar o item ativo */
  border: 2px solid #00AEEF;
}

.custom-carousel .item-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  z-index: 2;
  transition: all 0.4s ease;
}

.custom-carousel .item-desc h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 12px;
}


.custom-carousel .item-desc p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 90%;
}

/* Estilizando os controles do carousel */
.custom-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 10;
}

.custom-carousel .owl-nav button.owl-prev,
.custom-carousel .owl-nav button.owl-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 174, 239, 0.8) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 20px !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto; /* Restaura os eventos de clique nos botões */
}

.custom-carousel .owl-nav button.owl-prev:hover,
.custom-carousel .owl-nav button.owl-next:hover {
  background-color: rgba(0, 174, 239, 1) !important;
  transform: scale(1.1);
}

.custom-carousel .owl-dots {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}


.custom-carousel .owl-dots .owl-dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #333 !important;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.custom-carousel .owl-dots .owl-dot.active {
  background-color: #0088ff !important;
  width: 30px;
  border-radius: 10px;
}

/* Efeito de hover nos itens */
.custom-carousel .item:hover .item-desc {
  transform: translateY(-5px);
}

/* Adicione FontAwesome para os ícones de navegação se ainda não estiver carregado */
@media screen and (max-width: 768px) {
  .custom-carousel .item {
    min-width: 290px;
    height: 350px;
  }
  
  .line-title {
    font-size: 26px;
  }
  
  .custom-carousel .item-desc h3 {
    font-size: 20px;
  }
  
  .custom-carousel .item-desc p {
    font-size: 14px;
  }
}

/* Classe adicional para o efeito de "dragscroll" mais suave */
.owl-drag {
  cursor: grab;
}

.owl-drag:active {
  cursor: grabbing;
}

/* Ajustes específicos para garantir o fluxo infinito */
.owl-carousel .owl-stage {
  display: flex;
  transition-timing-function: linear !important; /* Faz a transição mais suave */
}

/* Destacando o destino ao passar o mouse */
.custom-carousel .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 174, 239, 0.2);
}


.owl-dots .owl-dot {
  width: 18px !important; /* Aumentado de 12px */
  height: 18px !important; /* Aumentado de 12px */
  margin: 0 !important;
  background-color: transparent !important;
  border-radius: 50% !important;
  transition: all 0.3s ease;
  border: 2px solid #555 !important;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  padding: 0 !important;
}

.owl-dots .owl-dot:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; /* Aumentado de 4px */
  height: 6px; /* Aumentado de 4px */
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.5s ease;
  animation: pulse 2s infinite; /* Adiciona animação de pulso */
}

.owl-dots .owl-dot.active {
  width: 32px !important; /* Aumentado de 24px */
  border-radius: 12px !important;
  background-color: #0066cc !important;
  border-color: #0066cc !important;
}


/* Garante que o contêiner dos dots esteja alinhado */
.owl-carousel .owl-dots {
  padding: 0 !important;
  margin: 20px 0 0 0 !important;
  line-height: 0 !important;
}

/* Corrige qualquer sobreposição de estilos do tema base do Owl Carousel */
.owl-theme .owl-dots .owl-dot span {
  display: none !important; /* Remove o elemento span que pode estar causando o desalinhamento */
}

.owl-dots .owl-dot.active:after {
  width: 12px;
  left: 21px;
  height: 12px;
  background-color: #fff;
  animation: none;
}

/* Mantém os ajustes existentes */
.owl-theme .owl-dots .owl-dot span {
  display: none !important;
}

.owl-dots .owl-dot:hover {
  border-color: #00AEEF !important;
}