/* News follows the reference structure while retaining EMSoft's palette and shared components. */
.emsoft-news-hero { position: relative; isolation: isolate; overflow: hidden; background: #092737; }
.emsoft-news-hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.emsoft-news-hero h1 { font-weight: 800; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.emsoft-news-hero--archive { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: minmax(300px, 1fr) auto; min-height: 430px; margin: 14px 0 48px; }
.emsoft-news-hero__title { position: relative; isolation: isolate; grid-row: 1 / 3; padding: 44px 28px; overflow: hidden; }
.emsoft-news-hero__title > img { position: absolute; z-index: -2; inset: -15px; width: calc(100% + 30px); height: calc(100% + 30px); object-fit: cover; filter: blur(12px); }
.emsoft-news-hero__title::after { position: absolute; z-index: -1; inset: 0; content: ''; background: rgb(7 31 45 / 35%); }
.emsoft-news-hero__title h1 { display: inline-block; margin: 0; padding: 14px 18px; background: #fff; color: #237eb4; font-size: clamp(28px, 2.5vw, 36px); }
.emsoft-news-hero--archive > .emsoft-news-hero__photo { grid-column: 2; grid-row: 1 / 3; min-height: 430px; }
.emsoft-news-hero__description { grid-column: 2; grid-row: 2; padding: 24px 28px; background: rgb(4 23 35 / 78%); color: #fff; backdrop-filter: blur(8px); }
.emsoft-news-hero__description p { max-width: 800px; font-size: 16px; line-height: 1.65; }
.emsoft-news .emsoft-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.emsoft-news .emsoft-news-card { display: block; min-height: 0; border-radius: 8px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.emsoft-news-card__link { display: flex; flex-direction: column; height: 100%; }
.emsoft-news-card__link:focus-visible { outline-offset: -4px; }
.emsoft-news-card:hover, .emsoft-news-card:focus-within { transform: translateY(-4px); border-color: #419fd9; box-shadow: 0 14px 30px rgb(13 63 91 / 12%); }
.emsoft-news-card .emsoft-blog-card__image { flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
.emsoft-news-card .emsoft-blog-card__image img { width: 100%; height: 100%; min-height: 0; }
.emsoft-news-card__link:hover img { transform: scale(1.04); }
.emsoft-news-card__link:hover h3 { color: #237eb4; }
.emsoft-news-card .emsoft-blog-card__details { flex: 1; min-height: 0; padding: 24px; background: #eff8fd; }
.emsoft-news-card time { margin-bottom: 14px; font-size: 12px; font-weight: 600; color: #61717b; }
.emsoft-news-card h3 { font-size: clamp(21px, 1.8vw, 26px); }
.emsoft-news-card__summary { margin: 14px 0 20px; font-size: 14px; line-height: 1.65; color: #51606a; }
.emsoft-news-card .emsoft-blog-read-more { margin-top: auto; padding-top: 8px; }
.emsoft-news .emsoft-blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 13px; border: 1px solid #c6e2f4; border-radius: 7px; color: #237eb4; font-weight: 700; }
.emsoft-news .emsoft-blog-pagination .current { background: #419fd9; color: #fff; }
.emsoft-news .emsoft-blog-pagination:empty { display: none; }
.emsoft-news-post__layout { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 960px) minmax(0, 1fr); column-gap: 24px; align-items: start; margin-top: 14px; }
.emsoft-news-post__layout > article, .emsoft-news-post__layout > .emsoft-blog-comments, .emsoft-news-post__layout > .emsoft-news-back { grid-column: 2; min-width: 0; }
.emsoft-news-share { grid-column: 1; grid-row: 1; }
.emsoft-news-share .emsoft-blog-share { margin: 0; padding: 16px; background: #eff8fd; }
.emsoft-news-share .emsoft-blog-share a { padding: 6px 0; border: 0; }
.emsoft-news-share .emsoft-blog-share > span { color: #344c5b; }
.emsoft-news-hero--article { display: flex; align-items: center; min-height: 440px; margin-bottom: 44px; }
.emsoft-news-hero--article .emsoft-news-hero__photo { position: absolute; z-index: -1; inset: 0; }
.emsoft-news-hero__copy { width: 100%; margin: 60px 20px; padding: 24px; background: rgb(255 255 255 / 96%); }
.emsoft-news-hero__copy .emsoft-blog-eyebrow { color: #237eb4; }
.emsoft-news-hero__copy h1 { margin: 12px 0 22px; color: #061016; font-size: clamp(30px, 3vw, 44px); }
.emsoft-news-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 25px; font-size: 13px; line-height: 1.6; color: #51606a; }
.emsoft-news-meta a { text-decoration: underline; text-underline-offset: 4px; }
.emsoft-news-post__body { max-width: 820px; margin: 0 auto; }
.emsoft-news-post .emsoft-blog-comments { width: 100%; max-width: 820px; margin: 56px auto 0; }
.emsoft-news-back { justify-self: start; margin-top: 36px; color: #237eb4 !important; font-size: 15px; font-weight: 700; }
.emsoft-news .emsoft-blog-article-content blockquote { padding: 20px 26px; border-left: 4px solid #419fd9; background: #eff8fd; font-style: italic; }
.emsoft-news .emsoft-blog-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.emsoft-news .emsoft-blog-article-content th, .emsoft-news .emsoft-blog-article-content td { padding: 10px 16px; border: 1px solid #d7e8f2; text-align: left; }
.emsoft-news .emsoft-blog-article-content iframe, .emsoft-news .emsoft-blog-article-content video { max-width: 100%; }
.emsoft-news .emsoft-blog-article-content pre { overflow-x: auto; padding: 20px; background: #eff8fd; }
.emsoft-news .emsoft-blog-empty h3 { font-size: 26px; font-weight: 750; }
.emsoft-news .emsoft-blog-comments .comment-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emsoft-news .comment-form > p { grid-column: 1 / -1; }
.emsoft-news .comment-form > .comment-form-author, .emsoft-news .comment-form > .comment-form-email, .emsoft-news .comment-form > .comment-form-url { grid-column: auto; }
.emsoft-news .emsoft-editorial-consultation { margin-top: 76px; padding: 0; }
.emsoft-editorial-consultation .inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; align-items: start; max-width: 1000px; margin: 0 auto; }
.emsoft-editorial-consultation__copy { min-width: 0; }
.emsoft-editorial-consultation__copy > .block:first-child { margin-bottom: 24px; }
.emsoft-editorial-consultation__copy h2 { margin-bottom: 16px; font-size: clamp(26px, 2.1vw, 30px); }
.emsoft-editorial-consultation__copy > .block > p { font-size: 17px; line-height: 1.6; }
.emsoft-editorial-consultation__copy .flex.items-center { gap: 12px; }
.emsoft-editorial-consultation__copy .flex.items-center > span { flex: 0 0 25px; }
.emsoft-editorial-consultation__copy .flex.items-center > p { font-size: 15px; line-height: 1.45; }
.emsoft-editorial-consultation form { min-width: 0; }
@media (max-width: 1050px) {
  .emsoft-news .emsoft-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emsoft-news-post__layout { grid-template-columns: minmax(0, 1fr); }
  .emsoft-news-post__layout > article, .emsoft-news-post__layout > .emsoft-blog-comments, .emsoft-news-post__layout > .emsoft-news-back, .emsoft-news-share { grid-column: 1; }
  .emsoft-news-share { grid-row: auto; margin-bottom: 20px; }
  .emsoft-news-share .emsoft-blog-share { align-items: center; }
  .emsoft-news-share .emsoft-blog-share > span { width: auto; margin-right: 8px; }
  .emsoft-news-share .emsoft-blog-share a { padding: 6px; }
}
@media (max-width: 700px) {
  .emsoft-news-hero--archive { grid-template-columns: minmax(0, 1fr); grid-template-rows: 250px auto; margin-bottom: 36px; min-height: 0; }
  .emsoft-news-hero--archive > .emsoft-news-hero__photo { grid-column: 1; grid-row: 1; min-height: 0; }
  .emsoft-news-hero__title { grid-column: 1; grid-row: 1; z-index: 1; padding: 24px; align-self: start; }
  .emsoft-news-hero__title > img, .emsoft-news-hero__title::after { display: none; }
  .emsoft-news-hero__title h1 { font-size: 30px; }
  .emsoft-news-hero__description { grid-column: 1; grid-row: 2; padding: 20px 24px; }
  .emsoft-news .emsoft-news-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .emsoft-news-hero--article { min-height: 360px; margin-bottom: 32px; }
  .emsoft-news-hero__copy { margin: 35px 14px; padding: 20px; }
  .emsoft-news-hero__copy h1 { font-size: 30px; }
  .emsoft-news .emsoft-blog-comments .comment-form { grid-template-columns: minmax(0, 1fr); }
  .emsoft-news .comment-form > .comment-form-author, .emsoft-news .comment-form > .comment-form-email, .emsoft-news .comment-form > .comment-form-url { grid-column: 1; }
  .emsoft-news .emsoft-editorial-consultation { margin-top: 52px; }
  .emsoft-editorial-consultation .inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { .emsoft-news .emsoft-news-card { transition: none; transform: none; } }
