.carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    top: 0;
  }

  .slides {
    display: flex;
    width: 100%;
    transition: transform 0.8s ease-in-out;
  }

  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .carousel img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    mask-image: linear-gradient(black 95%, transparent);
  }

  .dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
  }

  .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
  }

  .dot.active {
    background: #ff0101;
  }

  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
  }
  
  .carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .carousel-button.prev {
    left: 10px;
  }
  
  .carousel-button.next {
    right: 10px;
  }
  @media (max-width: 1440px) {
    .carousel img {
      height: auto;
    }
  }
  @media (max-width: 768px) {
    .carousel img {
      height: auto;
      object-fit: contain;
    }
    .carousel-button {
      font-size: 1rem;
      padding: 0.3rem 0.6rem;
    }
  }
  @media (max-width: 425px) {
    .carousel-button {
      background: transparent;
    }
  }