.section-student-1 .col-inner {
  display: flex;
  gap: 60px;
}

.section-student-1 .wrap {
  display: flex;
  gap: 16px;
  max-width: 387px;
  flex: 1;
}

.section-student-1 .wrap .t-lang {
  max-width: 152px;
  flex: 1;
}
.section-student-1 .wrap h1 {
  flex: 1;
}

.section-student-1 .content {
  flex: 1;
}
.section-student-1 .content * {
  margin-bottom: 30px;
}

.section-student-1 .content *:last-child {
  margin-bottom: 0px;
}

.section-student-3 .col-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-student-3 .col-inner .img {
  box-shadow: 0px 24px 70px 0px #2a332817;
  overflow: hidden;
  border-radius: 16px;
  margin-top: 30px;
}

.section-student-3 .col-inner img {
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

/* CSS cho shortcode wrap-about-student */
.wrap-about-student {
  position: relative;
  margin-top: 60px;
}

.wrap-about-student .image-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  width: 624px;
  height: 100%;
}

.wrap-about-student .image-decor img {
  max-width: 100%;
  height: 100%;
}

.wrap-about-student .list-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.wrap-about-student .list-content .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fffff4;
  border: 1px solid #737a64;
  border-radius: 32px;
  padding: 24px;
  max-width: 310px;
  gap: 20px;
}

/* Vị trí các thẻ theo thiết kế */
.wrap-about-student .list-content .item:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}

.wrap-about-student .list-content .item:nth-child(2) {
  grid-column: 3;
  grid-row: 2;
  transform: translateX(-36px);
}

.wrap-about-student .list-content .item:nth-child(3) {
  grid-column: 2;
  grid-row: 3;
}

.wrap-about-student .list-content .item:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
  transform: translateX(100px);
}

.wrap-about-student .list-content .item .text {
  font-family: "Ma Shan Zheng", sans-serif;
  font-size: clamp(70px, 8vw, 90px);
  color: #737a64;
  line-height: normal;
  font-weight: 400;
}

.wrap-about-student .list-content .item h4 {
  font-size: clamp(24px, 2.6vw, 28px);
  color: #737a64;
  font-weight: 700;
  line-height: clamp(36px, 4.2vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .section-student-2 {
    padding: 30px 0px 30px 0px !important;
  }
  .section-student-1 .col-inner {
    gap: 30px;
  }
  .section-student-3 .col-inner {
    gap: 15px;
  }
  .section-student-1 .wrap h1 {
    flex: none;
    width: fit-content;
  }

  .section-student-3 .col-inner .img {
    margin-top: 15px;
  }
  .wrap-about-student {
    margin-top: 30px;
  }
  .wrap-about-student .list-content .item:nth-child(2),
  .wrap-about-student .list-content .item:nth-child(4) {
    transform: translateX(0px);
  }
}

@media (max-width: 992px) {
  .section-student-1 .caption > div {
    width: 130px;
  }
  .wrap-about-student .list-content {
    column-gap: 30px;
  }
  .wrap-about-student .image-decor {
    display: none;
  }
  .wrap-about-student .list-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 24px;
  }
  .wrap-about-student .list-content .item {
    max-width: 100%;
    width: 100%;
    justify-self: stretch;
    padding: 18px;
  }
  .wrap-about-student .list-content .item:nth-child(1),
  .wrap-about-student .list-content .item:nth-child(2),
  .wrap-about-student .list-content .item:nth-child(3),
  .wrap-about-student .list-content .item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .section-student-1 .col-inner {
    flex-wrap: wrap;
    gap: 16px;
  }
  /* 1. Add this new rule to force the container to stay as a row */
  .section-student-1 .wrap {
    align-items: center; 
    flex-wrap: nowrap;
  }

  /* 2. Fix the Chinese text so it doesn't take up 100% */
  .section-student-1 .wrap .t-lang {
    max-width: 110px; /* Restricts the width so they can share the line */
    flex: none;
  }
  .section-student-1 .content {
    flex: auto;
  }
  .section-student-2 .list-content .col-inner {
    gap: 15px;
  }
  .wrap-about-student .list-content .item:nth-child(1),
  .wrap-about-student .list-content .item:nth-child(2),
  .wrap-about-student .list-content .item:nth-child(3),
  .wrap-about-student .list-content .item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 567px) {
  .section-student-2 .list-content .item:nth-child(2n + 1)::after {
    display: none;
  }
  .section-student-2 .list-content .col-inner {
    gap: 0px;
    column-gap: 20px;
  }
  .wrap-about-student .list-content {
    grid-template-columns: repeat(1, 1fr);
  }
}
