/* Homepage "News & Stories": featured story + bento grid with category filters (generated by tools/news.mjs). */
.acs-news {
  --navy: #071a36;
  --blue: #1f8fd6;
  --green: #8dc63f;
  --muted: #5d6b82;
  --line: #e4ebf4;
  --ease: cubic-bezier(.22, 1, .36, 1);
  padding: 84px 0 72px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
}
.acs-news *, .acs-news *::before, .acs-news *::after { box-sizing: border-box; }
.acs-news .acs-news__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.acs-news .acs-news__head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.acs-news .acs-news__head > div:first-child { margin-right: auto; }
.acs-news .acs-news__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--blue); }
.acs-news .acs-news__h { margin: 0; font-family: inherit; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--navy); text-transform: none; }

.acs-news .acs-news__filters { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #f1f5fa; }
.acs-news .acs-news__filter {
  min-width: 0; margin: 0; padding: 9px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none;
  cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s;
}
.acs-news .acs-news__filter:hover { background: #e6edf6; color: var(--navy); }
.acs-news .acs-news__filter.is-on { background: #fff; color: var(--navy); box-shadow: 0 4px 12px -6px rgba(7, 26, 54, .35); }
.acs-news .acs-news__filter:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.acs-news .acs-news__all {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  background: var(--navy); color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 24px -16px rgba(7, 26, 54, .8); transition: background-color .2s, transform .25s var(--ease);
}
.acs-news .acs-news__all svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.acs-news .acs-news__all:hover { background: #0a3a66; transform: translateY(-2px); }
.acs-news .acs-news__all:hover svg { transform: translateX(3px); }

/* ---------- bento grid ---------- */
.acs-news .acs-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}
.acs-news .acs-news__card { display: none; position: relative; min-width: 0; }
.acs-news .acs-news__card.is-shown { display: block; }
.acs-news .acs-news__card.is-featured { grid-column: 1; grid-row: span 2; }

.acs-news .acs-news__link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  color: inherit !important; text-decoration: none !important;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  isolation: isolate;
}
.acs-news .acs-news__link:hover { transform: translateY(-5px); border-color: #d3e1f0; box-shadow: 0 26px 44px -30px rgba(7, 26, 54, .55); }
.acs-news .acs-news__link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.acs-news .acs-news__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eef6; }
.acs-news .acs-news__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.1s var(--ease); }
.acs-news .acs-news__link:hover .acs-news__media img { transform: scale(1.06); }

.acs-news .acs-news__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.acs-news .acs-news__meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.acs-news .acs-news__chip { padding: 3px 9px; border-radius: 999px; background: #eaf4fc; color: #12689f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.acs-news .acs-news__title {
  font-size: 16.5px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.acs-news .acs-news__excerpt { display: none; }
.acs-news .acs-news__more { display: none; }

/* featured: full-bleed image with the story on a navy gradient */
.acs-news .is-featured .acs-news__link { border: 0; background: var(--navy); }
.acs-news .is-featured .acs-news__media { position: absolute; inset: 0; aspect-ratio: auto; }
.acs-news .is-featured .acs-news__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 54, 0) 25%, rgba(7, 26, 54, .55) 55%, rgba(7, 26, 54, .94) 100%); }
.acs-news .is-featured .acs-news__body { position: relative; z-index: 1; margin-top: auto; flex: 0; gap: 12px; padding: 30px 30px 28px; color: #fff; }
.acs-news .is-featured .acs-news__meta { color: rgba(255, 255, 255, .85); }
.acs-news .is-featured .acs-news__chip { background: var(--green); color: var(--navy); }
.acs-news .is-featured .acs-news__title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; letter-spacing: -.02em; color: #fff; -webkit-line-clamp: 3; }
.acs-news .is-featured .acs-news__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.acs-news .is-featured .acs-news__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 800; color: #fff; }
.acs-news .is-featured .acs-news__more svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.acs-news .is-featured .acs-news__link:hover .acs-news__more svg { transform: translateX(4px); }
.acs-news .is-featured .acs-news__link:hover { box-shadow: 0 34px 60px -34px rgba(7, 26, 54, .8); }

/* ---------- reveal + filter swap (classes set by acs-news.js) ---------- */
.acs-news.js-anim:not(.is-in) .acs-news__card.is-shown { opacity: 0; transform: translateY(22px); }
.acs-news .acs-news__card.is-shown { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.acs-news .acs-news__card.is-entering { animation: acs-news-in .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes acs-news-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .acs-news .acs-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .acs-news .acs-news__card.is-featured { grid-column: 1 / -1; grid-row: auto; }
  .acs-news .is-featured .acs-news__link { min-height: 420px; }
}
@media (max-width: 640px) {
  .acs-news { padding: 56px 0 48px; }
  .acs-news .acs-news__filters { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .acs-news .acs-news__filters::-webkit-scrollbar { display: none; }
  .acs-news .acs-news__all { padding: 10px 14px; font-size: 13px; }
  /* featured on top, the rest as a swipe strip */
  .acs-news .acs-news__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .acs-news .acs-news__grid::-webkit-scrollbar { display: none; }
  .acs-news .acs-news__card { scroll-snap-align: start; }
  .acs-news .acs-news__card.is-featured { grid-column: auto; }
  .acs-news .is-featured .acs-news__link { min-height: 360px; }
  .acs-news .is-featured .acs-news__body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .acs-news *, .acs-news *::before, .acs-news *::after { animation: none !important; transition: none !important; }
  .acs-news.js-anim .acs-news__card.is-shown { opacity: 1 !important; transform: none !important; }
}

/* Facebook posts merged in by acs-news.js */
.acs-news .acs-news__via { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11.5px; font-weight: 700; color: #1877f2; }
.acs-news .acs-news__via::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #1877f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M13.5 21v-7.5h2.5l.4-3h-2.9V8.6c0-.9.3-1.5 1.5-1.5h1.5V4.4c-.3 0-1.2-.1-2.2-.1-2.2 0-3.7 1.3-3.7 3.8v2.4H8v3h2.6V21h2.9z'/%3E%3C/svg%3E") center / 12px no-repeat; }
.acs-news .is-featured .acs-news__via { color: #fff; }

/* ---------- full archive (/news/, /activties/, /events/) ---------- */
.acs-news--archive { padding: 48px 0 80px; }
.acs-news--archive .acs-news__h { font-size: clamp(32px, 4vw, 52px); }
.acs-news .acs-news__intro { max-width: 680px; margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.acs-news--archive .acs-news__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.acs-news--archive .acs-news__card.is-featured { grid-column: span 2; grid-row: span 2; }
.acs-news--archive .is-featured .acs-news__link { min-height: 460px; }
.acs-news .acs-news__morebar { display: flex; justify-content: center; margin-top: 30px; }
.acs-news .acs-news__morebar[hidden] { display: none; }
.acs-news .acs-news__loadmore {
  min-width: 0; margin: 0; padding: 13px 22px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--navy); font: inherit; font-size: 14.5px; font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.acs-news .acs-news__loadmore:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(7, 26, 54, .6); background: #fff; color: var(--navy); }
@media (max-width: 1024px) {
  .acs-news--archive .acs-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acs-news--archive .acs-news__card.is-featured { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .acs-news--archive .acs-news__grid { grid-template-columns: 1fr; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .acs-news--archive .is-featured .acs-news__link { min-height: 340px; }
}
