/* Education news list */
.news-page .news-section {
  padding: 56px 0 72px;
  background: #f5f8fa;
}

.news-page .news-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid #e1e8ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 55, 70, 0.04);
}

.news-page .news-tabs .tab {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 10px 20px;
  border-radius: 4px;
  color: #5f707b;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.news-page .news-tabs .tab::after {
  display: none;
}

.news-page .news-tabs .tab:hover {
  color: var(--home-green-dark);
  background: #f0f8f6;
}

.news-page .news-tabs .tab.active {
  color: #fff;
  background: var(--home-green);
  font-weight: 600;
}

.news-page .news-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e1e8ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(32, 55, 70, 0.06);
}

.news-page .news-item {
  display: grid;
  grid-template-columns: 86px 104px minmax(0, 1fr) 28px;
  gap: 22px;
  min-height: 106px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #e8edef;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: inherit;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.news-page .news-item:last-child {
  border-bottom: 0;
}

.news-page .news-item:hover {
  z-index: 1;
  transform: none;
  background: #f8fcfb;
  box-shadow: inset 3px 0 0 var(--home-green);
  color: inherit;
}

.news-page .news-date {
  display: flex;
  width: auto;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  border-right: 0;
  text-align: left;
}

.news-page .news-date .day {
  color: var(--home-green-dark);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.news-page .news-date .month {
  color: #8a989f;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.news-page .news-tag {
  display: inline-flex;
  width: fit-content;
  max-width: 104px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 11px;
  overflow: hidden;
  border-radius: 4px;
  background: #eaf7f3;
  color: var(--home-green-dark);
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-page .news-content {
  min-width: 0;
}

.news-page .news-content h3 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #253946;
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-page .news-content p {
  display: block;
  overflow: hidden;
  color: #7a8992;
  font-size: 14px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-page .news-item:hover .news-content h3 {
  color: var(--home-green-dark);
}

.news-page .news-arrow {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #a6b1b7;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-page .news-arrow svg {
  width: 19px;
  height: 19px;
}

.news-page .news-item:hover .news-arrow {
  color: var(--home-green);
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .news-page .news-section {
    padding: 34px 0 48px;
  }

  .news-page .news-tabs {
    width: 100%;
  }

  .news-page .news-tabs .tab {
    flex: 1 0 auto;
    min-width: 88px;
    padding: 9px 14px;
  }

  .news-page .news-item {
    grid-template-columns: auto minmax(0, 1fr) 22px;
    gap: 10px 14px;
    min-height: 0;
    padding: 18px 16px;
  }

  .news-page .news-date {
    grid-column: 1;
    grid-row: 1;
  }

  .news-page .news-date .day {
    font-size: 24px;
  }

  .news-page .news-tag {
    grid-column: 2;
    grid-row: 1;
    max-width: 96px;
  }

  .news-page .news-content {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .news-page .news-content h3 {
    white-space: normal;
  }

  .news-page .news-content p {
    margin-top: 3px;
  }

  .news-page .news-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}
