.product-service-gallery {
  margin: 0;
  overflow: hidden;
}

.product-service-gallery__heading {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
}

/* Tab Navigation */
.product-service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.4rem;
  margin-bottom: 48px;
}

.product-service-tab {
  font-size: 16px;
  font-weight: 500;
  background: #f4f4f5;
  border-radius: 8px;
  border: 0;
  padding: 16.5px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-service-tab:hover {
  color: white;
  background: #265CB3;
  transform: translateY(-2px);
}

.product-service-tab.active {
  background: #265CB3;
  /* border-color: #007bff; */
  color: white;
  /* box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3); */
}

/* Tab Content */
.product-service-content {
  position: relative;
}

.product-service-category {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.product-service-category.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product Grid */
.product-service-grid {
  display: grid;
  column-gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(254px, 1fr));
  row-gap: 24px;
  margin-top: 2rem;
}

.product-service-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d4d4d5;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 21px 29px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-service-image {
  width: 100%;
  /* height: 200px; */
  /* object-fit: cover; */
  transition: transform 0.3s ease;
}

.product-service-item:hover .product-service-image {
  transform: scale(1.05);
}

.product-service-placeholder {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.9rem;
}

.product-service-title {
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: center;
  background: white;
}

/* Modal Styles */
.product-service-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-service-modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-service-modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-service-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  /* color: white; */
  /* font-size: 40px; */
  /* font-weight: bold; */
  // cursor: pointer;
  // z-index: 1001;
  // transition: color 0.3s ease;
  // background-color: #fff3;
  // border-radius: 100%;
  // width: 40px;
  // height: 40px;
  // justify-content: center;
}

.product-service-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.product-service-modal-close,
.product-service-modal-prev,
.product-service-modal-next {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  justify-content: center;
}

.product-service-modal-close svg,
.product-service-modal-prev svg,
.product-service-modal-next svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.product-service-modal-prev svg {
  transform: rotate(-180deg);
}

.product-service-modal-close:hover,
.product-service-modal-prev:hover,
.product-service-modal-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  svg {
    fill: #265cb3;
  }
}

/* Responsive Design */
@media screen and (max-width: 1025px) {
  .product-service-grid {
    grid-template-columns: repeat(auto-fit,minmax(214px,1fr));
  }
  .product-service-grid {
    gap: 16px;
  }
}

@media screen and (max-width: 768px) {
  .product-service-gallery__heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .product-service-tabs {
    gap: 16px;
    margin-bottom: 2rem;
  }

  .product-service-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 32px;
  }
  
  .product-service-modal-close svg,
  .product-service-modal-prev svg,
  .product-service-modal-next svg {
    fill: #265cb3;
  }
  
  .product-service-item {
    height: 150px;
  }

  .product-service-title {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .product-service-modal-content {
    width: 95%;
  }

  .product-service-modal-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }

  .product-service-modal-close svg {
    fill: #000;
  }

  .product-service-modal-prev,
  .product-service-modal-next {
    font-size: 18px;
    padding: 10px 15px;
  }
}

@media screen and (max-width: 480px) {
  .product-service-tabs {
    flex-direction: column;
    align-items: center;
  }

  .product-service-tab {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .product-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
