.about {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  margin: 0 auto; /* Center and prevent overflow */
  background: lightgray;
  background-repeat: no-repeat;
  background-image: url('folder-img/rer1.svg'), url('folder-img/rer3.svg');
  background-position: left top, right bottom;
  filter: drop-shadow(10px 14px 14px rgba(0, 0, 0, 0.9)); /* Corrected alpha value format */
  background-size: 200px;
  background-attachment: fixed;
  border-radius: 90px;
  margin-bottom: 20px;
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

.about .im1, 
.about .im2 {
  width: 30%;
  padding: 10px;
  border-radius: 90px;
  filter: drop-shadow(10px 14px 14px rgba(0, 0, 0, 0.3));
  margin: 0 auto; /* Center images to prevent overflow */
}

.about .im3 {
  width: 20%;
  padding: 10px;
  margin: 0 auto; /* Center image to prevent overflow */
  border-radius: 190px;
}

.about .containBx {
  width: 80%;
  padding: 20px 40px;
  height: auto;
  margin: 100px auto; /* Center the element and prevent overflow */
  background: black;
}

.about h2 {
  font-size: 60px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
  color: black;
  border-radius: 9px;
  border: 2px solid black;
  filter: drop-shadow(10px 14px 14px rgba(0, 0, 0, 0.3));
  max-width: 100%; /* Ensure text fits within container */
}

.about .containBx p {
  font-size: 30px;
  margin: 5px 0;
  letter-spacing: 2px;
  color: white;
  text-align: center;
}

.content h2 span {
  font-size: 30px;
  filter: drop-shadow(10px 14px 14px rgba(0, 0, 0, 0.3));
  text-transform: uppercase;
  margin-left: 10px;
  margin-top: 160px;
  font-family: lemon;
  -webkit-text-stroke: 1px black;
  -webkit-text-fill-color: #A9F5D0;
}

.about .im4 {
  animation: ana1 8s linear infinite;
  border-radius: 150px;
}

@keyframes ana1 {
  0% {
    transform-origin: 100px 50%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform-origin: 100px 50%;
    transform: translate(-50%, -50%) rotate(360deg);
  }
  50.00000000001% {
    transform-origin: -120px 50%;
    transform: translate(-80%, -80%) rotate(360deg);
  }
  100% {
    transform-origin: -120px 50%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.about.container {
  border: 5px solid #F5A9F2;
  margin-top: 30px;
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

.about .teamBx {
  border: 4px solid #E2A9F3;
  padding: 10px;
  display: flex;
  margin-top: 30px;
  justify-content: center;
  border-radius: 20px;
}

.team {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: black;
}

.team .heading {
  font-size: 60px;
  text-align: center;
}

.about .teamBx .box {
  border: 4px double #FF00BF;
  margin: 30px;
  width: 100%; /* Changed from 360px to 100% to fit the container */
  max-width: 360px; /* Set a maximum width */
  padding: 25px;
  background: white;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 10px;
}

.about .teamBx .box .imgBx {
  position: relative;
  width: 80%;
  height: 300px;
}

.about .teamBx .box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #F5A9F2;
  padding: 10px;
  border-radius: 20px;
}

.containBx .text {
  color: white;
  letter-spacing: 2px;
}

.about .teamBx .box .content h2 span {
  position: relative;
  font-size: 30px;
  font-family: lemon;
  text-transform: uppercase;
}

@media (max-width: 498px){
	.about{
		  background-size: 100px;
		  background-position: center top, center bottom;
	}
}