.segmentContainer {
  padding: 20px 0;
}

#segments h2 {
  font-size: 30px;
  text-align: center;
}

.imgContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 25px;
  padding: 10px;
  margin: 0px 35px;
  box-sizing: border-box;
}

.imgContainer figure {
  position: relative;
  width: 200px;
  height: 150px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 10px 10px rgb(127, 124, 124);
}

.number {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #000;
  padding-right: 0.4rem;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
}

.imgContainer figure figcaption {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  padding: 25px;
  color: #003366 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.imgContainer figure a {
  text-decoration: none;
  color: #fff;
}

.imgContainer figure:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.imgContainer figure:hover figcaption {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .imgContainer figure {
    width: 48%;
  }
}

@media (max-width: 500px) {
  .imgContainer figure {
    width: 100%;
    height: 150px;
  }

  #segments h2 {
    font-size: 23px;

  }

  .imgContainer figure figcaption {
    text-align: center;
    font-size: 15px;
  }
}