/* AULAS - PAPEL DE CARTA + CARROSSEL HORIZONTAL */
#turma.turma-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* PAPEL DE CARTA */
.turma-texto {
  position: relative;
  background: linear-gradient(145deg, #fdf8f3 0%, #f9f2ea 50%, #fdf8f3 100%);
  padding: 44px 40px;
  border-radius: 32px;
  box-shadow: 
    0 24px 70px rgba(139, 90, 43, 0.20),
    inset 0 2px 10px rgba(255, 255, 255, 0.95),
    inset 0 -2px 10px rgba(139, 90, 43, 0.06);
  border: 1px solid rgba(139, 90, 43, 0.28);
  backdrop-filter: blur(16px);
  overflow: hidden;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.turma-texto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #8b5a2b 12%,
    rgba(139,90,43,0.95) 50%,
    #8b5a2b 88%,
    transparent 100%
  );
  border-radius: 32px 32px 0 0;
}

.turma-selo {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(139, 90, 43, 0.15);
  color: #8b5a2b;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 90, 43, 0.3);
}

.turma-texto h2 {
  color: #8b5a2b;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.turma-texto p {
  font-size: 18px;
  line-height: 1.8;
  color: #5a3b24;
  margin-bottom: 20px;
}

.turma-chamada {
  margin-top: 32px;
}

/* CARROSSEL HORIZONTAL FUNCIONAL */
.turma-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.turma-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 24px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.turma-carousel::-webkit-scrollbar {
  display: none;
}

.turma-slide {
  flex: 0 0 300px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 50px rgba(139, 90, 43, 0.18);
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid rgba(139, 90, 43, 0.14);
  overflow: hidden;
  scroll-snap-align: start;
}

.turma-slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.4s ease;
  display: block;
}

.turma-slide:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 80px rgba(139, 90, 43, 0.35);
}

.turma-slide:hover img {
  transform: scale(1.05);
}

.carousel-btn {
  background: linear-gradient(135deg, #8b5a2b, #5a3b24);
  border: none;
  color: white;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(139, 90, 43, 0.45);
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-weight: bold;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(90, 59, 36, 0.65);
}

.left-btn {
  margin-right: 16px;
}

.right-btn {
  margin-left: 16px;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .turma-slide {
    flex: 0 0 260px;
  }
  
  .turma-slide img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  #turma.turma-section {
    padding: 0 16px;
  }
  
  .turma-texto {
    padding: 32px 24px;
  }
  
  .turma-texto h2 {
    font-size: 2.2rem;
  }
  
  .turma-carousel-wrapper {
    max-width: 100%;
  }
  
  .turma-slide {
    flex: 0 0 240px;
  }
  
  .turma-slide img {
    height: 220px;
  }
  
  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .turma-texto h2 {
    font-size: 2rem;
  }
  
  .turma-slide {
    flex: 0 0 220px;
  }
  
  .turma-slide img {
    height: 200px;
  }
}
