.about {
  height: auto; /* Adjusted to auto to fit content height */
}

.about__card1 {
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden; /* Ensures the border radius affects all child elements */
}

.about__title-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-image: url(/public/fitgirl.JPG);
  background-size: cover;
  background-position: center;
  height: 300px;
  width: 100%;
  cursor: pointer;
}

.about__title {
  text-align: center;
  margin-bottom: 1rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 18px;
  padding: 0.5rem 4rem;
}

.about__card1-content {
  max-height: 0; /* Start with a max-height of 0 to hide content */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Transition effect */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem; /* Adjust padding to 0 initially */
  background: white;
  gap: 1rem;
}

.about__card1-content.active {
  max-height: 1000px; /* Set to a value large enough to show content */
  padding: 2rem;
}

/* Additional styles for better presentation */
.about__background,
.about__approach,
.about__achievements {
  margin: 0.5rem 0;
  font-weight: bold;
}

.about__background__description,
.about__approach__description,
.about__achievements__description {
  text-align: center;
}

.about-btn {
  text-decoration: none;
  color: white;
  background-color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.about-btn:hover {
  background-color: #0056b3;
}
