.text-overlay1 {
      position: absolute;
      top: 50%;
      left: 25%;
      text-align: center;
      transform: translate(-50%, -50%);
      color: white;
      font-size: 45px;
      font-weight: bold;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
      }

      .slider{
        width: 1100px;
        max-width: 100vw;
        height: 500px;
        margin: auto;
        position: relative;
        overflow: hidden;
        margin-top: 50px;
      }
      .list {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        display: flex;
        width: max-content;
      }
      .list img{
        width: 1100px;
        max-width: 500vw;
        height: 600px;
        object-fit: cover;
      }
      .buttons{
        position: absolute;
        top: 45%;
        left: 5%;
        width: 90%;
        display: flex;
        justify-content: space-between;
      }
      .buttons button {
        width: 50px;
        height: 50px;
        border-radius: 505;
        background-color: #fff5;
        color: #fff;
        border: none;
        font-family: monospace;
        font-weight: bold;
      }   
      .dots{
        position: absolute;
        bottom: 10px;
        color: #fff;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
      }
      .dots li {
        list-style: none;
        width: 10px;
        height: 10px;
        background-color: #fff;
        margin: 10px;
        border-radius: 20px;
      }
      .dots li.active {
        width: 20px;
      }

      .slider button {
        border-radius: 50%;
      }

      section{
        margin-left: 35px;
      }

      .heading_container{
        font-family: serif; 
        font-size: 30px;
        text-transform: uppercase;
        margin-left: 170px; 
        margin-top: 100px;
      }

      .detail-box h1{
        text-transform: uppercase; 
        color: green; 
        font-family:serif; 
        margin-left: 170px;
        font-size: 16px;
      }

      .detail-box p{
        color:rgba(0,0,0,0.5); 
        font-family: serif;
        font-size: 17px; 
        margin-left: 170px; 
        text-align: justify;
      }

      .row h2{
        font-family: serif; 
        font-size: 30px; 
        margin-left: 50px; 
        margin-top: 120px;
      }

      .pro-detail {
        border: 1px solid #e0e0e0;
        padding: 2px 10px;
        max-width: 450px;
        font-family: serif;
        background: #fff;
        margin-left: 50px;
      }

      .pro-detail p {
        margin: 12px 0;
        color: rgba(0,0,0,0.75);
        text-align: justify;
        line-height: 1.6;
      }

      .pro-detail strong {
        font-weight: bold;
      }

@media (max-width: 1024px) {
        html, body {
          max-width: 100%;
          overflow-x: hidden;
        }

        /* Slider */
        .slider {
          width: 80%;
          height: 450px;
          margin: 40px auto;
        }

        .list img {
          height: 450px;
          object-fit: cover;
        }

      .text-overlay1 {
        font-size: 32px;   /* smaller text for tablets */
        left: 20%;
        transform: translate(-50%, -50%);
        padding: 0 10px;
      }

      .buttons button {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }

      /* Headings */
      .heading_container {
        font-size: 26px;
        margin-left: 40px;
        margin-top: 60px;
        text-align: left;
      }

      .detail-box h1 {
        font-size: 15px;
        margin-left: 40px;
      }

      .detail-box p {
        font-size: 15px;
        margin-left: 40px;
        line-height: 1.5;
      }

      .row h2 {
        font-size: 26px;
        margin-left: 30px;
        margin-top: 80px;
      }

      /* Product detail */
      .pro-detail {
        max-width: 100%;
        margin-left: 30px;
        padding: 10px 15px;
      }

      .pro-detail p {
        font-size: 15px;
        line-height: 1.5;
      }
    }


      @media (max-width: 480px) {

  /* Slider */
  .slider {
    width: 90%;
    height: 250px;   /* smaller height for mobile */
    margin-top: 20px;
  }

  .list img {
    width: 100%;
    height: 250px;   /* match slider height */
    object-fit: cover;
    width: 350px;
  }

  /* Overlay Text */
  .text-overlay1 {
    font-size: 20px;  /* smaller text */
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10px; /* prevent cutting off */
    text-align: center;
  }

  /* Slider buttons */
  .buttons {
    top: 40%;
    left: 0;
    width: 100%;
    padding: 0 10px;
  }

  .buttons button {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  /* Dots */
  .dots li {
    width: 8px;
    height: 8px;
    margin: 5px;
  }
  .dots li.active {
    width: 15px;
  }

  /* Section */
  section {
    margin-left: 0;
    padding: 15px;
  }

  /* Headings */
  .heading_container {
    font-size: 20px;
    margin-left: 0;
    margin-top: 20px;
  }

  .detail-box h1 {
    font-size: 14px;
    margin-left: 0;
   
  }

  .detail-box p {
    font-size: 14px;
    margin-left: 0;
    text-align: justify;
  }

  .row h2 {
    font-size: 20px;
    margin-left: 0;
    margin-top: 30px;
    text-align: center;
  }

  /* Product Detail Box */
  .pro-detail {
    max-width: 100%;
    margin: 20px auto;
    padding: 10px;
  }

  .pro-detail p {
    font-size: 14px;
    line-height: 1.5;
  }
}

