/* .achievements-container {
  margin: auto;
  padding-bottom: 2.5vw;

  text-align: center;
  margin-bottom: 0px;
  width: 87%;
  max-width: 1440px;
  
} */

/* .achievements-title {
  font-weight: 600;
  font-size: 2.361vw;
  margin-bottom: 2vw;
} */


body.dark-mode .achievements-description{
  color: white;
}
/* .achievements-description {
  height: 160px;
  font-size: 18px;
  color: #555;
  line-height: 32px;
  font-weight: 400;
  margin: 0 auto;
  margin-bottom: 0vw;
} */

/* .badges-grid {
  position: relative;
  width: 100%;
  height: 40vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  max-width: 1440px;
} */


.badges-grid :nth-child(10){
  z-index: inherit;
  /* border: 1px solid red; */
}

.badge-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 1s ease-in-out, opacity 0.5s ease, width 1s ease-in-out, height 1s ease-in-out;
}

.badge-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 2vw;
  /* background-color: white; */
  
}

/* Centered (stacked) state */
.badge-item.stacked {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 1;
  width: 8vw; /* Smaller size for back badges */
  height: 8vw; /* Smaller size for back badges */
}
.badge-item.arranged {
  opacity: 1;
  z-index: 2; /* Default z-index for arranged badges */
  width: 13vw; /* Smaller size for back badges */
  height: 13vw; /* Smaller size for back badges */
}


.badge-item.transitioning {
  z-index: 10 !important; /* Highest z-index for transitioning badge */
  width: 18vw !important; /* Larger size for transitioning badge */
  height: 18vw !important; /* Larger size for transitioning badge */
  opacity: 1;
}

/* Arranged state for top row */
.badge-item.arranged[data-row="top"] {
  opacity: 1;
  top: 0%;
  left: calc(38% + (var(--badge-index) * 21% - 30%)); /* Centered with fixed spacing */
  transform: translateX(-50%);
  z-index: 1;
}

/* Arranged state for bottom row */
.badge-item.arranged[data-row="bottom"] {
  opacity: 1;
  bottom: 0%;
  left: calc(38% + (var(--badge-index) * 21% - 30%)); /* Centered with fixed spacing */
  transform: translateX(-50%);
  z-index: 1;
}

/* .badge-item.arranged img[alt="Oracle App"] {
  width: 15vw !important;
  height: 15vw !important;
 
} */

/* Media Query for 2560px and above */
@media screen and (min-width: 2560px) {
  .badges-grid {
    height: 25vw;
  }

  .badge-item {
    width: 10vw; 
    height: 10vw;
  }
  .achievements-container{
    
    margin-top: 3vw;
  }

 
}
@media screen and (max-width: 786px){
.badges-grid{
  margin-top: 50px;
  /* border: 1px solid red; */
}
.achievements-description{
  font-size: 2vw;
  /* border: 1px solid red; */
}

.achievements-title{
  font-size: 3.5vw;
}



}
@media screen and (max-width: 660px){
  .achievements-container{
   
    margin-top: 30px;
  }
  .achievements-description{
    height: 100px;
    font-size: 8px;
    line-height: 12px;
  }
  .achievements-title{
    font-size: 18px;
    font-weight: 600;
  }
  .badges-grid{
    margin-top: 0;
  }
}