/* Product section styles */
#product-section {
  padding: 20px 20px;
  background-color: #f9f9f9;
  background-image: url("/images/gss.jpg");
}

.header {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url("/images/partner.png");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-text {
  position: absolute;
  color: white;
  text-align: center;
}

.header-text h1 {
  font-size: 3rem;
  margin: 0;
}

#product-section h2 {
  text-align: center;
  background: #fffefe;
  margin-bottom: 20px;
}
#product-section h1 {
  text-align: center;
  margin-bottom: 20px;
  background: #fffefe;
  color: rgb(49, 11, 241);
}
#product-section p {
  text-align: center;
  color: #131212;
  background: #fffefe;
  margin-bottom: 30px;
  padding: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.product-box {
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
  /* border: 0.5px solid rgb(15, 223, 91); */
}

.product-box img {
  max-width: 300px;
  height: 280px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
  /* display: block; */
}

.product-box .panel-name {
  font-weight: bold;
  margin: 5px 0;
}

.product-box .product-details {
  color: #666;
  padding: 5px;
}

.product-box:hover {
  transform: scale(1.05);
}
.viewButton1,
.viewButton2,
.viewButton3,
.viewButton4,
.viewButton5,
.viewButton6,
.viewButton7,
.viewButton8,
.viewButton9 {
  display: block;
  margin: 20px auto;
  width: 150px;
  padding: 8px 10px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

[class^="viewButton"]:hover {
  background-color: #12ef1d;
}


/* .product-box img:hover {
    transform: scale(1.1);
} */

/* Responsive styles */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Default mobile styling */
@media (max-width: 768px) {
  .header {
    height: 300px;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .product-box img {
    max-width: 100%;
    height: auto;
  }

  #product-section h1, #product-section h2, #product-section p {
    padding: 0 15px;
  }

  #viewButton {
    width: 100%;
  }
}

/* For smaller tablets and large phones (landscape mode) */
@media (max-width: 600px) {
  .header {
    height: 250px;
  }

  .header-text h1 {
    font-size: 1.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .product-box {
    padding: 15px;
  }

  .product-box img {
    max-width: 200px;
    height: auto;
  }
}

/* For mobile phones (portrait mode) */
@media (max-width: 480px) {
  .header {
    height: 200px;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-box img {
    max-width: 100%;
    height: auto;
  }

  #viewButton {
    width: 100%;
    padding: 12px;
  }
}

/* For very small mobile screens */
@media (max-width: 320px) {
  .header {
    height: 180px;
  }

  .header-text h1 {
    font-size: 1.2rem;
  }

  .product-box img {
    max-width: 100%;
    height: auto;
  }

  #viewButton {
    font-size: 14px;
    padding: 10px;
  }
}


