.carousel-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 1rem;
  }
  
  .carousel-slide {
    display: none;
  }
  
  .carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: contain; /* ou cover, para cortar a img */
    background-color: #fff;
  }
  
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    transition: 1.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    transform: translateY(-50%);
  }
  
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }
  
  .carousel-dots {
    text-align: center;
    padding: 8px;
    background: none;
  }
  
  .dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: 0.3s;
  }
  
  .dot.active {
    background-color: #000;
  }
  

  @media (max-width: 768px) {
    .carousel-container {
      position: relative;
      width: 100%;
      margin: auto;
      overflow: hidden;
      border-radius: 0.5rem;
      height: auto;
    }
  
    .carousel-slide {
      width: 100%;
      text-align: center;
    }
  
    .carousel-slide img {
      width: 100%;
      height: auto; /* Alteração aqui */
      max-height: 400px;
      object-fit: contain;
      display: block;
      margin: 0 auto;
      background-color: #fff;
    }
  
    .prev, .next {
      font-size: 18px;
      padding: 10px;
      top: 45%;
      background-color: rgba(0, 0, 0, 0.4);
      z-index: 10;
    }
  
    .carousel-dots {
      padding: 8px 0;
    }
  
    .dot {
      height: 10px;
      width: 10px;
      margin: 0 4px;
      background-color: #ccc;
      border-radius: 50%;
      display: inline-block;
      transition: background-color 0.3s ease;
    }
  
    .dot.active {
      background-color: #002C5D; 
    }
  }
  
  @media (max-width: 480px) {
    .carousel-slide img {
      max-height: 300px;
    }
  
    .prev, .next {
      font-size: 16px;
      padding: 8px;
    }
  
    .dot {
      height: 8px;
      width: 8px;
      margin: 0 3px;
    }
  }