.page-education {
  background: #fff;
  overflow-x: hidden;
}

.page-education #sec-policy,
.page-education #sec-achievement,
.page-education #sec-study {
  scroll-margin-top: 7.25rem;
}

.education-banner {
  position: relative;
  height: 100vh;
  min-height: 460px;
  max-height: 100vh;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--theme-hero-visual-bg);
}

.education-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 24, 39, 0.62) 0%,
    rgba(8, 24, 39, 0.34) 44%,
    rgba(8, 24, 39, 0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.education-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.education-main {
  background: #fff;
}

.education-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.education-news-item {
  display: flex;
  gap: 1rem;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid var(--theme-border-light);
  border-radius: 0.5rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(16, 35, 56, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.education-news-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--theme-primary-rgb), 0.32);
  box-shadow: 0 8px 22px rgba(var(--theme-primary-rgb), 0.12);
}

.education-news-item__img {
  flex: 0 0 200px;
  width: 200px;
  height: 120px;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--theme-section-muted-bg);
}

.education-news-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.education-news-item:hover .education-news-item__img img {
  transform: scale(1.05);
}

.education-news-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.education-news-item__body h3 {
  margin: 0 0 0.5rem;
  color: var(--theme-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.education-news-item__body p {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.education-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.education-stat-item {
  padding: 2rem 1.25rem;
  border: 1px solid var(--theme-border-light);
  border-radius: 0.5rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 12px rgba(16, 35, 56, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.education-stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.32);
  box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.14);
}

.education-stat-item__number {
  margin-bottom: 0.55rem;
  color: var(--theme-primary);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.education-stat-item__number span {
  font-size: 1.45rem;
  font-weight: 700;
}

.education-stat-item__label {
  color: var(--theme-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.education-students-shell {
  padding-bottom: 0.25rem;
}

.education-students-swiper {
  padding-bottom: 0.2rem;
}

.education-students-swiper .swiper-wrapper {
  align-items: stretch;
}

.education-students-swiper .swiper-slide {
  height: auto;
}

.education-student-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
  height: 100%;
}

.education-student-card {
  min-height: 168px;
  height: 100%;
  padding: 0.85rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.education-student-card:hover {
  transform: translateY(-3px);
}

.education-student-card__photo {
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--theme-primary);
  box-shadow: 0 6px 14px rgba(var(--theme-primary-rgb), 0.15);
}

.education-student-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.education-student-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
}

.education-student-card__body h4 {
  margin: 0;
  color: var(--theme-heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.education-student-card__major {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: 0.76rem;
}

.education-student-card__school {
  margin: 0.15rem 0 0;
  color: var(--theme-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.education-study-swiper {
  padding-bottom: 2.4rem;
}

.education-study-swiper .swiper-pagination-bullet-active {
  background: var(--theme-primary);
}

.education-study-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.education-empty {
  padding: 1.4rem 1.25rem;
  border: 1px dashed rgba(var(--theme-primary-rgb), 0.24);
  border-radius: 0.5rem;
  background: rgba(var(--theme-primary-rgb), 0.04);
  color: var(--theme-text-muted);
  text-align: center;
}

@media (max-width: 991.98px) {
  .page-education #sec-policy,
  .page-education #sec-achievement,
  .page-education #sec-study {
    scroll-margin-top: 6.7rem;
  }

  .education-banner {
    height: min(78dvh, 620px);
  }

  .education-news-list {
    grid-template-columns: 1fr;
  }

  .education-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .education-study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .education-banner {
    min-height: 320px;
    height: min(62dvh, 460px);
  }

  .education-news-item {
    flex-direction: column;
  }

  .education-news-item__img {
    width: 100%;
    height: 180px;
    flex-basis: auto;
  }

  .education-stats {
    grid-template-columns: 1fr;
  }

  .education-study-grid {
    grid-template-columns: 1fr;
  }

  .education-stat-item {
    padding: 1.5rem 1rem;
  }

  .education-stat-item__number {
    font-size: 2rem;
  }

  .education-stat-item__number span {
    font-size: 1.25rem;
  }

  .education-student-stack {
    gap: 16px;
  }
}
