/* news.css — news cards (homepage + news pages) and the article page */
.news-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-white); color: var(--c-ink); border-radius: 6px;
  border: 1px solid var(--c-line); box-shadow: 0 16px 36px -30px rgba(21, 39, 41, .55);
  transition: transform .5s var(--ease-out), box-shadow .5s ease, border-color .3s ease;
}
.news-card:hover { transform: translateY(-5px); border-color: var(--c-teal); box-shadow: 0 26px 46px -28px rgba(21, 39, 41, .6); color: var(--c-ink); }
.news-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-slate); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .5); font-size: 2.4rem;
  background: linear-gradient(135deg, var(--c-teal-deep), var(--c-teal)); }
.news-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.news-body time { color: var(--c-teal-deep); font-size: .85rem; font-weight: 700; }
.news-body strong { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.45; }
.news-sum { color: var(--c-text, #3f4b4d); font-size: .95rem; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; padding-top: .4rem; color: var(--c-teal-deep); font-weight: 700; font-size: .92rem; }
.news-more i { transition: transform .4s var(--ease-out); }
.news-card:hover .news-more i { transform: translateX(-4px); }
[dir="ltr"] .news-card:hover .news-more i { transform: translateX(4px); }

/* the newest item leads on wide screens */
@media (min-width: 992px) {
  .news-grid .news-card--lead { grid-column: span 2; flex-direction: row; }
  .news-card--lead .news-media { aspect-ratio: auto; flex: 1.2; min-height: 320px; }
  .news-card--lead .news-body { flex: 1; padding: 2rem; justify-content: center; }
  .news-card--lead strong { font-size: 1.6rem; }
}
.news-empty { color: var(--c-muted); }

/* news list header */
.news-hero { background: var(--c-teal); color: #fff; padding: 3rem 0 2.6rem; }
.news-hero h1 { color: #fff; font-size: var(--t-3xl); margin: .6rem 0 .4rem; }
.news-hero p { color: rgba(255, 255, 255, .85); margin: 0; }
.news-hero .breadcrumb-sole a { color: #dff1f2; }

/* article: editorial layout — kicker + meta, large title, lead, cover lifted over the header, readable column */
.article-head { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-deep) 100%); color: #fff; padding: 2.4rem 0 7.5rem; }
.article-head::after { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none; background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 64px); }
.article-head .container { position: relative; z-index: 1; max-width: 60rem; }
.article-head .breadcrumb-sole a { color: #dff1f2; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin: 1.4rem 0 0; font-size: .92rem; color: rgba(255, 255, 255, .9); }
.article-meta i { margin-inline-end: .3rem; opacity: .8; }
.article-kicker { padding: .3rem .9rem; border-radius: 99px; background: #fff; color: var(--c-teal-deep); font-weight: 800; }
.article-head h1 { color: #fff; font-family: var(--f-display); font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.3; margin: 1rem 0; max-width: 52rem; text-wrap: balance; }
.article-sum { color: rgba(255, 255, 255, .93); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.9; max-width: 46rem; margin: 0; padding-inline-start: 1rem; border-inline-start: 3px solid rgba(255, 255, 255, .55); }

.article-figure { position: relative; z-index: 2; display: block; max-width: 60rem; margin: -5.5rem auto 2.8rem; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 34px 60px -34px rgba(21, 39, 41, .7); }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure--logo { display: grid; place-items: center; background: linear-gradient(135deg, #6a6b6e 0%, var(--c-grey, #58595c) 50%, #3a3b3e 100%); }
.article-figure--logo img { width: min(60%, 420px); padding: 4.5rem 0; }

.article-body { max-width: 44rem; margin: 0 auto 4rem; font-size: 1.12rem; line-height: 2.05; color: #2a3436; }
.article-body > p { margin: 0 0 1.5rem; }
.article-lede { font-size: 1.28rem; line-height: 1.95; font-weight: 500; color: var(--c-ink); }
.article-lede::first-line { color: var(--c-teal-deep); font-weight: 700; }

.article-photo { margin: 2.4rem 0; }
.article-photo a { display: block; overflow: hidden; border-radius: 6px; box-shadow: 0 22px 44px -30px rgba(21, 39, 41, .6); }
.article-photo img { width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease-out); }
.article-photo a:hover img { transform: scale(1.04); }
.article-photo figcaption { margin-top: .7rem; font-size: .92rem; line-height: 1.7; color: var(--c-muted); padding-inline-start: .8rem; border-inline-start: 2px solid var(--c-teal); }
@media (min-width: 992px) { .article-body > .article-photo { margin-inline: -4rem; } }
.article-photos { display: grid; gap: 1rem; margin: 2.4rem 0; }
.article-photos .article-photo { margin: 0; }
.article-photos--2 { grid-template-columns: 1fr 1fr; }
.article-photos--3 { grid-template-columns: repeat(3, 1fr); }
.article-photos .article-photo a { aspect-ratio: 4 / 3; }
.article-photos .article-photo img { height: 100%; object-fit: cover; }

.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; margin-top: 2.6rem; border-top: 1px solid var(--c-line); }
.article-by { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--c-ink); }
.article-by-mark { display: grid; place-items: center; width: 64px; height: 40px; border-radius: 6px; background: var(--c-teal); }
.article-by-mark img { width: 50px; height: auto; }
.article-share { display: flex; flex-wrap: wrap; gap: .6rem; }
.article-share a { line-height: 1.4; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border: 1px solid var(--c-line); border-radius: 99px; color: var(--c-teal-deep); font-weight: 700; transition: background .3s, color .3s, border-color .3s; }
.article-share a:hover { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }

@media (max-width: 575.98px) {
  .article-head { padding-bottom: 5rem; }
  .article-figure { margin-top: -3.5rem; }
  .article-figure--logo img { padding: 3rem 0; }
  .article-body { font-size: 1.05rem; line-height: 1.95; }
  .article-lede { font-size: 1.15rem; }
  .article-photos--3 { grid-template-columns: 1fr 1fr; }
  .article-foot { flex-direction: column; align-items: stretch; }
  .article-share { width: 100%; }
  .article-share a { flex: 1 1 0; justify-content: center; }
}

/* homepage news block */
.home #news .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.news-all { font-weight: 700; color: var(--c-teal-deep); }

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .news-card.is-hot { transform: translateY(-5px); border-color: var(--c-teal); box-shadow: 0 26px 46px -28px rgba(21, 39, 41, .6); }
  .news-card.is-hot .news-media img { transform: scale(1.06); }
}

/* logo as news image: shown whole on the brand teal */
.news-media:has(img[src*="logo"]) { background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-deep) 100%); display: grid; place-items: center; }
.news-media img[src*="logo"] { object-fit: contain; padding: 18% 14%; }
