.serviceh1-container {
  display: flex;
  justify-content: center;
}

.serviceh1 {
  display: inline-block;
  background: linear-gradient(to right, rgba(255, 153, 0, 0.817), rgb(117, 0, 0));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
  font-family: 'Libre Baskerville';
  font-size: 60px;
  font-weight: 1000;
  padding: 50px 0;
  text-align: center;
}


.container-service {
  width: 80%;
  margin: auto;
  text-align: left;
}

.dropdown {
  background: #fff;
  margin: 10px 0;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #ddd;
  transition: 0.3s;
}

.dropdown:hover, .dropdown.active-dropped-down {
  background: #ff9800;
  color: white;
  border-color: #ff9800;
}

.dropdown i {
  font-size: 20px;
  opacity: 1;
  transition: opacity 1.0s ease-in-out;
}

.dropdown-content {
  display: none;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 5px;
  padding: 10px;
  animation: slideDown 1.0s ease-in-out;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.grid-item {
  text-align: center;
  width: 200px;
  text-decoration: none;
  color: black;
  transition: 0.3s;
}

.grid-item:hover {
  transform: scale(1.05);
}

.grid-item img {
  width: 200px;
  height: 200px;
  border-radius: 5px;
  object-fit: cover;
}

.grid-item span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

@keyframes slideDown {
  from {
      opacity: 0;
      max-height: 0;
  }
  to {
      opacity: 1;
      max-height: 500px;
  }
}

/* Updated slideUp animation */
@keyframes slideUp {
  from {
      opacity: 1;
      max-height: 500px;
  }
  to {
      opacity: 0;
      max-height: 0;
  }
}

.slide-up {
  animation: slideUp 1.0s ease-in-out forwards;
}
