
    .carousel {
      position: relative;
      width: 90%;
      max-width: 800px;
      overflow: hidden;
      border-radius: 20px;
    }

    .slides {
      display: flex;
      transition: transform 0.5s ease-in-out;
      width: 100%;

    }

    .slide {
      min-width: 100%;
      height: 400px;
      background-size: cover;
      background-position: center;
    }

    .dots {
      display: flex;
      justify-content: center;
      margin-top: 20px;
      gap: 10px;
    }

    .dot {
      width: 10px;
      height: 10px;
      background: #555;
      border-radius: 5px;
      overflow: hidden;
      position: relative;
    }

    .dot.active {
      width: 40px;
      background: #aaa;
      transition: width 0.3s ease;
    }



    .dot::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 0%;
      background: white;
    }

   .dot.active::before {
      width: 100%;
      transition: width 4s linear;

    }
