.about {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 3.9rem;
  padding-bottom: 0;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 100%;
  min-width: 0;
}

.about-text {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.about-text h1 {
  font-size: 2.14rem;
  margin: 0 0 12px 0;
  text-align: start;
  line-height: 1.15;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 15px 0;
  text-align: left;
}

.yuid-label {
  display: inline-block;
  font-weight: bold;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 14px;
}

.about-image {
  flex: 0 1 315px;
  max-width: 100%;
  min-width: 0;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

.photo-wrapper {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 10%;
  overflow: hidden;
  margin: 0 auto 12px;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.block-child p,
.block-teachers p {
  text-align: left;
  margin-top: 1.1rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  color: #1A2C3E;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  hyphens: auto;
  word-break: break-word;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .about {
    width: 100%;
    padding: 0 16px;
    padding-top: 12px;
    margin-bottom: 2rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    width: 100%;
  }

  .about-text {
    width: 100%;
    flex: 1 1 auto;
  }

  .about-text h1 {
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .about-text p {
    font-size: 1rem;
    text-align: center;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .about-image {
    flex: 0 0 auto;
    width: 180px;
    max-width: 60%;
    margin: 0 auto;
  }

  .blocks-flex {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .block-child,
  .block-teachers {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1rem;
    border-radius: 30px;
  }

  .block-child h5,
  .block-teachers h5 {
    font-size: 1.6rem;
  }

  .block-child p,
  .block-teachers p {
    font-size: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .photo-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 12px;
  }
}

@media (max-width: 400px) {
  .about {
    padding: 0 12px;
    padding-top: 12px;
  }

  .about-text h1 {
    font-size: 1.25rem;
  }

  .about-text p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .about-image {
    width: 110px;
    max-width: 55%;
  }

  .block-child,
  .block-teachers {
    padding: 1.2rem 0.8rem;
    border-radius: 24px;
  }

  .block-child h5,
  .block-teachers h5 {
    font-size: 1.3rem;
  }

  .block-child p,
  .block-teachers p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}