.image-swap {
  position: relative;
  width: 102%;
  height: auto;
  margin-left: -20px;
}

.image-swap img {
  max-width: 102%;
  height: auto;
  transition: opacity 0.3s ease-in-out;
}

.image-swap .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.image-swap:hover .default-image {
  opacity: 0;
}

.image-swap:hover .hover-image {
  opacity: 1;
}
/* integrated */
.flip-cards-container-hp {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px; 
    margin: 0 auto;
  }
  
  .flip-card-wrapper-hp {
    width: calc(33.33% - 20px);
    margin-bottom: 30px;
  }
  
  .flip-card-hp {
    background-color: transparent;
    width: 100%;
    height: 300px; 
    perspective: 1000px;
    margin-bottom: 10px;
    border-radius: 30%;
    overflow: hidden; 
}
  
  .flip-card-inner-hp {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .flip-card-hp:hover .flip-card-inner-hp {
    transform: rotateY(180deg);
  }
  
  .flip-card-front-hp, .flip-card-back-hp {
    position: absolute;
    width: 100%;
    height: 100%; 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}
  
.flip-card-front-hp img {
    width: 100%;
    height: auto; /* Auto height */
    object-fit: cover;
    object-position: top;
    max-height: 100%; 
}
  
.flip-card-back-hp {
    background-color: #80687a;
    color: #ffffff;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
  
  .scrollable-text-hp {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 10px;
    text-align: center;
    background-color: var(--text-box-bg-color, rgba(240, 240, 240, 0.1));
    border-radius: 30%;
  }
  
  .scrollable-text-hp p {
    margin: 2;
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Styling the scrollbar */
  .scrollable-text-hp::-webkit-scrollbar {
    width: 8px;
  }
  
  .scrollable-text-hp::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }
  
  .scrollable-text-hp::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }
  
  .scrollable-text-hp::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }
  
  .flip-card-caption-hp {
    text-align: center;
    padding: 10px 5px; 
    background-color: #00000062;
    border-radius: 20px;
  }
  
  .flip-card-caption-hp h3 {
    color: #ffffff; 
    font-size: 1.2rem;
    margin: 0 0 5px 0; 
  }
  
  .flip-card-caption-hp p {
    color: #f0f0f0; 
    font-size: 0.7rem;
    margin: 0; 
  }

/* community */
.flip-cards-container-hp-c {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: center; 
    min-height: 300px;
  }
  
  .flip-card-wrapper-hp-c, .text-box-hp-c {
    width: 100%;
  }
  
  .text-box-hp-c {
    background-color:  #ffffff37;;
    padding: 15px;
    font-size: 0.9rem;
    height: auto;
    border-radius: 20px;
    text-align: center;
  }

  .text-box-hp-c p {
    color: #ffffff; 
    margin: 0; 
  }
  

  
  /* Update responsive design */
  @media (max-width: 900px) {
    .flip-cards-container-hp-c {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .flip-cards-container-hp-c {
      grid-template-columns: 1fr;
    }
  }


  /* responsive design */
  @media (max-width: 900px) {
  .flip-cards-container-hp {
    grid-template-columns: repeat(2, 1fr);
  }
  .text-box-hp {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .flip-cards-container-hp {
    grid-template-columns: 1fr;
  }
  .text-box-hp {
    grid-column: span 1;
  }
}

/* education */
.circle-container {
    position: relative;
    width: 100%;
    height: 80vh; 
}
.circle-container1 {
    position: relative;
    width: 100%;
    height: 110vh; 
}
  
.circle-hp1 {
    position: absolute;
    left: 8%;
    top: 0%;
    padding: 10px;
    background-color: #d5c9be;
    height: auto;
    width: 30vw;
    border-radius: 35px;
    z-index: 3;
    box-shadow: inset 0 -3em 3em rgba(255, 255, 255, 0.3), 
    -0.5em 0.5em 0.2em #a38d7d; /* left/right, thickness, blur effect*/
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.circle-hp2 {
    position: absolute;
    left: 50%;
    top: 25%;
    padding: 10px;
    background-color: #8d534e;
    height: auto;
    width: 30vw;
    border-radius: 35px;
    z-index: 2;
    box-shadow: inset 0 -3em 3em #ecbeb94f, 
    -0.5em 0.5em 0.2em #472a27; /* left/right, thickness, blur effect*/
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.circle-hp3 {
    position: absolute;
    right: 25%;  
    top: 0%;
    padding: 10px;
    background-color: #d5c9be;
    height: auto;
    width: 28vw;
    border-radius: 35px;
    z-index: 3;
    box-shadow: inset 0 -3em 3em rgba(255, 255, 255, 0.3), 
    0.5em 0.5em 0.2em #a38d7d;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.circle-hp4 {
    position: absolute;
    left: 5%; 
    top: 15%;
    padding: 10px;
    background-color: #f1ab60;
    height: auto;
    width: 27vw;
    border-radius: 35px;
    z-index: 2;
    box-shadow: inset 0 -3em 3em #ecbeb94f, 
    -0.5em 0.5em 0.2em #aa763f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.circle-hp5 {
    position: absolute;
    right: 0%; 
    top: 40%;
    padding: 2%;
    background-color: #8d534e;
    height: auto;
    width: 40vw;
    border-radius: 35px;
    z-index: 3;
    box-shadow: inset 0 -3em 3em rgba(255, 255, 255, 0.3), 
    0.5em 0.5em 0.2em #472a27; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.circle-text-hp {
    color: #ffffff; 
    font-size: 1.2vw;
    text-align: center;
    padding: 2%; 
    max-width: 90%; 
}

.circle-text-dark-hp {
    color: #272727; 
    font-size: 1.2vw;
    text-align: center;
    padding: 2%; 
    max-width: 90%; 
}
