.cssm-aprovados-carousel-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cssm-aprovados-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cssm-carousel-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.cssm-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.cssm-carousel-item {
  flex: 0 0 auto;
  width: 250px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.cssm-carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cssm-carousel-item img {
  width: 100%;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  display: block;
}

.cssm-carousel-nav {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.cssm-carousel-nav:hover {
  background: #000;
  transform: scale(1.1);
}

.cssm-carousel-nav:active {
  transform: scale(0.95);
}

/* Modal */
.cssm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.cssm-modal.active {
  display: block;
}

.cssm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.cssm-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cssm-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
}

.cssm-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.cssm-modal-body {
  display: flex;
  gap: 40px;
  padding: 40px;
}

.cssm-modal-image {
  flex: 0 0 300px;
}

.cssm-modal-image img {
  width: 100%;
  aspect-ratio: 1080 / 1350;
  object-fit: cover;
  border-radius: 8px;
}

.cssm-modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cssm-modal-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.cssm-modal-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cssm-modal-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cssm-modal-detail-item strong {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cssm-modal-detail-item span {
  font-size: 20px;
  font-weight: 500;
  color: #333;
}

/* Responsivo */
@media (max-width: 768px) {
  /* Ajustando para mostrar exatamente 2 slides no mobile */
  .cssm-carousel-item {
    width: calc((100% - 20px) / 2);
    min-width: 150px;
  }

  /* Ajustando tamanho das arrows no mobile (50% menor) */
  .cssm-carousel-nav {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .cssm-modal-body {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  .cssm-modal-image {
    flex: 0 0 auto;
    max-width: 250px;
    margin: 0 auto;
  }

  .cssm-modal-info h2 {
    font-size: 24px;
  }

  .cssm-modal-detail-item span {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* Mantendo 2 slides visíveis mesmo em telas pequenas */
  .cssm-carousel-item {
    width: calc((100% - 20px) / 2);
    min-width: 140px;
  }

  /* Ajustando tamanho das arrows em telas pequenas */
  .cssm-carousel-nav {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .cssm-aprovados-carousel {
    gap: 10px;
  }

  .cssm-carousel-track {
    gap: 10px;
  }
}
