@charset "UTF-8";

/*card grid (news list / home)*/
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  margin-top: 40px;
}
@media (min-width: 521px) and (max-width: 1023px) {
  .news-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .news-card-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }
}

.news-card {
  display: block;
  color: #111;
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: #F4F3FD;
  margin-bottom: 14px;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2B2775, #8F8BE8);
  color: #fff;
  font-family: "futura-pt", sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.12em;
}

.news-card-date {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.news-card-title {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.news-card:hover .news-card-title {
  color: #2B2775;
}

.news-intro {
  text-align: center;
  line-height: 1.9;
}

/*home: below the section title*/
.home-news .news-card-grid {
  margin: 8px 0 50px;
}
@media (max-width: 767px) {
  .home-news .news-card-grid {
    margin-bottom: 30px;
  }
}

/*article page*/
.news-hero-img {
  max-width: 760px;
  margin: 0 auto 36px;
}
.news-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.news-article {
  max-width: 760px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
  word-break: break-word;
}
.news-article p {
  margin: 0 0 1.1em;
}
.news-article h2 {
  font-size: 20px;
  font-weight: bold;
  color: #2B2775;
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid #2B2775;
  line-height: 1.5;
}
.news-article h3 {
  font-size: 17px;
  font-weight: bold;
  margin: 1.8em 0 0.6em;
  padding-left: 12px;
  border-left: 5px solid #2B2775;
  line-height: 1.5;
}
.news-article ul,
.news-article ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}
.news-article ul {
  list-style: disc;
}
.news-article ol {
  list-style: decimal;
}
.news-article li {
  margin-bottom: 0.4em;
}
.news-article strong {
  font-weight: bold;
}
.news-article a {
  color: #2B2775;
  text-decoration: underline;
}
.news-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
.news-article .ql-align-center {
  text-align: center;
}
.news-article .ql-align-right {
  text-align: right;
}
.news-article .ql-align-justify {
  text-align: justify;
}
.news-article .ql-align-center img {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .news-article h2 {
    font-size: 18px;
  }
  .news-article h3 {
    font-size: 16px;
  }
}

.news-date,
.news-title {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.news-title {
  line-height: 1.6;
  margin-bottom: 28px;
}
