.upgrade-section {
  max-width: 1200px;
  margin: 80px auto;
  text-align: center;
  padding: 40px 20px;
}

.upgrade-title {
  font-size: 2rem;
  color: #36bd15;
}

.upgrade-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.upgrade-item {
  width: 160px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  transition: transform 0.3s ease;
  text-align: center;
  position: relative;
}

.upgrade-item img {
  width: 130px;
  height: auto;
  transition: transform 0.5s ease;
}

.upgrade-item p {
  font-size: 1.5rem;
  color: #064b31;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
}

.upgrade-item p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 4px;
  background-color: #36bd15;
  transition: width 0.3s ease;
}

.upgrade-item:hover p::after {
  width: 100%;
}

.upgrade-item:hover img {
  transform: scale(1.1);
}

.upgrade-button button {
  margin-top: 50px;
  background: #36bd15;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.upgrade-button button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #008643;
  border-radius: 0 50px 50px 0;
  z-index: -1;
  transition: width 0.4s ease;
}

.upgrade-button button:hover::before {
  width: 120%;
}

@media (max-width: 700px) {
  .upgrade-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 12px;
    padding: 0 0 8px 0; /* No horizontal padding */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;  /* Ensures first item can scroll fully into view */
    scroll-padding-right: 16px; /* Ensures last item can scroll fully into view */
  }
  .upgrade-grid::-webkit-scrollbar {
    display: none;
  }
  .upgrade-item {
    flex: 0 0 65vw;
    max-width: 240px;
    scroll-snap-align: start;
  }
  /* Remove any margin-left/right from items */
  .upgrade-item:first-child,
  .upgrade-item:last-child {
    margin-left: 0;
    margin-right: 0;
  }
}