.news-page main {
  background: #fff;
}

.news-hero {
  display: flex;
  align-items: center;
  width: 100%;
  height: 280px;
  padding: 0 80px 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("../../assets/images/hero-background.webp") center 48% / cover no-repeat;
}

.news-hero__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  text-align: left;
  white-space: nowrap;
}

.news-hero__heading p {
  color: rgba(238, 134, 161, 0.3);
  font-family: "Alex Brush", cursive;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
}

.news-hero__heading h1 {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.news-archive {
  display: flex;
  justify-content: center;
  min-height: 562px;
  padding: 100px 120px;
  background: #fff;
}

.news-archive__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 800px);
}

.news-archive__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 114px;
  padding: 17px 16px 16px;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.news-archive__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news-archive__meta time {
  color: #666;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.news-archive__meta span {
  padding: 4px 10px;
  color: #fff;
  background: var(--color-pink);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1;
}

.news-archive__item > a {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.news-archive__item > a:hover,
.news-archive__item > a:focus-visible {
  color: #005ead;
}

.news-page--article .news-hero {
  min-height: 320px;
  height: auto;
  padding-block: 50px;
}

.news-page--article .news-hero__heading {
  white-space: normal;
}

.news-page--article .news-hero__heading h1 {
  max-width: 920px;
  font-size: 38px;
  line-height: 1.45;
}

.news-detail {
  padding: 90px 40px 100px;
  background: #fff;
}

.news-detail__inner {
  width: min(100%, 880px);
  margin: 0 auto;
}

.news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.news-detail__meta time {
  color: #666;
  font-size: 13px;
}

.news-detail__meta span {
  padding: 5px 12px;
  color: #fff;
  background: var(--color-pink);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1;
}

.news-detail__body {
  padding: 46px 0 54px;
}

.news-detail__body p {
  font-size: 16px;
  line-height: 2;
}

.news-detail__body p + p {
  margin-top: 22px;
}

.news-detail__schools {
  padding: 38px 40px 42px;
  background: #f4fbfd;
  border: 1px solid #d8eff5;
  border-radius: var(--radius-lg);
}

.news-detail__schools h2 {
  margin-bottom: 24px;
  color: var(--color-navy);
  font-size: 24px;
  text-align: center;
}

.news-detail__schools ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-detail__schools li:last-child {
  grid-column: 1 / -1;
  justify-self: start;
  width: calc((100% - 12px) / 2);
}

.news-detail__schools a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  color: var(--color-navy);
  background: #fff;
  border: 1px solid rgba(0, 196, 243, 0.35);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.news-detail__schools a:hover,
.news-detail__schools a:focus-visible {
  color: #fff;
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.news-detail__schools a > span:last-child {
  flex: 0 0 auto;
  font-size: 20px;
}

.news-detail__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  min-height: 54px;
  margin: 48px auto 0;
  color: #fff;
  background: var(--color-pink);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.news-detail__back:hover,
.news-detail__back:focus-visible {
  background: var(--color-navy);
}

.news-breadcrumb {
  width: min(calc(100% - 80px), var(--content-width));
  margin: 0 auto;
  padding: 22px 0 28px;
  color: var(--color-muted);
  font-size: 12px;
}

.news-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-breadcrumb li:not(:last-child)::after {
  content: "›";
}

.news-breadcrumb a:hover {
  color: #005ead;
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .news-hero {
    padding-inline: 40px;
  }

  .news-archive {
    padding: 80px 40px;
  }
}

@media (max-width: 700px) {
  .news-hero {
    height: 220px;
    padding: 0 20px 16px;
    background-position: center;
  }

  .news-hero__heading p {
    font-size: 52px;
  }

  .news-hero__heading h1 {
    font-size: 32px;
  }

  .news-page--article .news-hero {
    min-height: 260px;
    padding-block: 36px;
  }

  .news-page--article .news-hero__heading h1 {
    font-size: 28px;
    line-height: 1.5;
  }

  .news-archive {
    min-height: 0;
    padding: 64px 20px 80px;
  }

  .news-detail {
    padding: 60px 20px 72px;
  }

  .news-detail__body {
    padding: 36px 0 44px;
  }

  .news-detail__body p {
    font-size: 15px;
    line-height: 1.9;
  }

  .news-detail__body p + p {
    margin-top: 18px;
  }

  .news-detail__schools {
    padding: 30px 18px 32px;
  }

  .news-detail__schools h2 {
    font-size: 21px;
  }

  .news-detail__schools ul {
    grid-template-columns: 1fr;
  }

  .news-detail__schools li:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .news-detail__schools a {
    min-height: 58px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .news-breadcrumb {
    width: calc(100% - 40px);
  }

  .news-archive__list {
    gap: 0;
  }

  .news-archive__item {
    min-height: 0;
    padding: 18px 12px 20px;
  }

  .news-archive__meta {
    align-items: flex-start;
  }

  .news-archive__meta span {
    line-height: 1.4;
  }
}
