/* FirstAidChina Phase 4B-2C: Joomla Cassiopeia supported user stylesheet. */
:root { --fac-brand: #b71924; --fac-ink: #293342; }
.container-banner { background: #f4f4f4; }
.fac-carousel { max-width: 1494px; margin: 0 auto; position: relative; overflow: hidden; }
.fac-carousel--home .fac-slides { position: relative; aspect-ratio: 1494/380; }
.fac-carousel--home .fac-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s linear, visibility 0s linear .6s; }
.fac-carousel--home .fac-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s linear; }
.fac-carousel .fac-slide > a, .fac-carousel .fac-slide > img, .fac-carousel .fac-slide > a > img { display: block; width: 100%; height: 100%; }
.fac-carousel--home img { object-fit: cover; }
.fac-carousel--single img { width: 100%; height: auto; }
.fac-carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; padding: 6px; border-radius: 20px; background: rgb(0 0 0 / .18); }
.fac-carousel-dots button { width: 11px; height: 11px; border: 1px solid #fff; border-radius: 50%; background: rgb(255 255 255 / .45); padding: 0; cursor: pointer; }
.fac-carousel-dots button[aria-current="true"] { background: var(--fac-brand); }
.fac-carousel-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.container-footer { background: #343b45; color: #fff; margin-top: 2.5rem; }
.container-footer .grid-child { max-width: 1200px; margin: auto; padding-block: 1.5rem; }
.container-footer a { color: #fff; text-decoration: underline; }
.container-footer a:hover, .container-footer a:focus { color: #ffd6d9; }
@media (max-width: 575px) {
  .fac-carousel-dots { bottom: 4px; gap: 5px; }
  .fac-carousel-dots button { width: 9px; height: 9px; }
}
@media (prefers-reduced-motion: reduce) { .fac-carousel--home .fac-slide { transition: none; } }


/* Original jt001_j25 custom-components.css; scoped .sa-page component styles. */
/* =========================================================
   CUSTOM-COMPONENTS.CSS
   firstaidchina.com / jt001_j25
   新版 hero / landing / article 组件层
   请放在以下文件之后加载：
   1. styles.css
   2. custom-typography.css
   3. responsive-layout.css
========================================================= */

/* =========================
   PAGE WRAPPER
========================= */
.sa-page {
  max-width: 980px;
  margin: 0 auto;
  color: #1f1f1f;
  line-height: 1.8;
}

.sa-page *,
.sa-page *:before,
.sa-page *:after {
  box-sizing: border-box;
}

.sa-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sa-page a {
  color: #134e8b;
  text-decoration: none;
}

.sa-page a:hover {
  text-decoration: underline;
}

.sa-page p {
  margin: 0 0 1em 0;
}

.sa-page ul,
.sa-page ol {
  margin: 0 0 1em 0;
  padding-left: 1.5em;
}

.sa-page li {
  margin-bottom: 0.45em;
}

.sa-page h1,
.sa-page h2,
.sa-page h3,
.sa-page h4 {
  margin-top: 0;
  color: #134e8b;
  line-height: 1.4;
}

.sa-page h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.sa-page h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.sa-page h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.sa-page strong {
  color: #111;
  font-weight: 600;
}

/* =========================
   SECTION SPACING
========================= */
.sa-section {
  margin: 0 0 38px 0;
}

.sa-section:last-child {
  margin-bottom: 0;
}

.sa-section-intro {
  margin-bottom: 18px;
}

.sa-muted {
  color: #555;
}

.sa-small {
  font-size: 14px;
  color: #666;
}

/* =========================
   HERO
========================= */
.sa-hero {
  margin: 0 0 30px 0;
  padding: 32px 28px;
  background: #f8fbff;
  border: 1px solid #dbe7f3;
}

.sa-hero-inner {
  max-width: 760px;
}

.sa-hero-title {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 16px 0;
  color: #134e8b;
}

.sa-hero-lead {
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 12px 0;
}

.sa-hero-text {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 20px 0;
}

.sa-hero-media {
  margin: 0 0 30px 0;
  text-align: center;
}

.sa-hero-media img {
  margin: 0 auto;
}

/* =========================
   BUTTONS
========================= */
.sa-button-row {
  margin: 0 0 16px 0;
}

.sa-button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 8px;
  box-sizing: border-box;
  line-height: 1.5;
}

.sa-button-primary {
  background: #134e8b;
  color: #ffffff !important;
  border: 1px solid #134e8b;
}

.sa-button-secondary {
  background: #ffffff;
  color: #134e8b !important;
  border: 1px solid #134e8b;
}

/* =========================
   TRUST SIGNALS
========================= */
.sa-trust {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.sa-trust span {
  display: inline-block;
  margin-right: 18px;
  margin-bottom: 6px;
}

/* =========================
   CONTENT BLOCKS
========================= */
.sa-highlight {
  padding: 24px;
  background: #f8f8f8;
  border-left: 4px solid #134e8b;
}

.sa-soft-block {
  padding: 24px;
  background: #f8f8f8;
}

.sa-outline-block {
  padding: 22px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
}

/* =========================
   CARD GRID
========================= */
.sa-card-grid {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.sa-card-grid:after {
  content: "";
  display: block;
  clear: both;
}

.sa-card {
  width: 48%;
  float: left;
  margin: 0 4% 18px 0;
  padding: 22px;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
  background: #ffffff;
}

.sa-card:nth-child(2n) {
  margin-right: 0;
}

.sa-card h3 {
  margin-top: 0;
  color: #134e8b;
}

.sa-card p:last-child,
.sa-card ul:last-child,
.sa-card ol:last-child {
  margin-bottom: 0;
}

/* =========================
   STACK BLOCKS
========================= */
.sa-stack {
  margin: 0;
  padding: 0;
}

.sa-stack-item {
  margin: 0 0 20px 0;
  padding: 22px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
}

.sa-stack-item:last-child {
  margin-bottom: 0;
}

.sa-stack-item h3 {
  margin-top: 0;
}

/* =========================
   CTA
========================= */
.sa-cta {
  margin: 0 0 24px 0;
  padding: 28px;
  border: 1px solid #d9d9d9;
  background: #fcfcfc;
}

.sa-cta h2 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #134e8b;
}

.sa-cta p:last-child {
  margin-bottom: 0;
}

/* =========================
   SIMPLE UTILITIES
========================= */
.sa-text-center {
  text-align: center;
}

.sa-mb-0 {
  margin-bottom: 0 !important;
}

.sa-mt-0 {
  margin-top: 0 !important;
}

/* =========================
   TABLES
========================= */
.sa-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px 0;
}

.sa-page th,
.sa-page td {
  border: 1px solid #d9d9d9;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.sa-page th {
  background: #f7f9fb;
  color: #134e8b;
  font-weight: 600;
}

/* =========================
   <= 768px
========================= */
@media (max-width: 768px) {
  .sa-page {
    max-width: 100%;
    padding: 0 12px;
  }

  .sa-page h1,
  .sa-hero-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .sa-page h2 {
    font-size: 24px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .sa-page h3 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .sa-page p,
  .sa-page li {
    font-size: 15px;
    line-height: 1.75;
  }

  .sa-section {
    margin-bottom: 24px;
  }

  .sa-hero {
    margin: 0 0 18px 0;
    padding: 16px 14px;
  }

  .sa-hero-lead {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
  }

  .sa-hero-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .sa-hero-media {
    margin: 0 0 18px 0;
  }

  .sa-trust span {
    display: block;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .sa-highlight,
  .sa-soft-block,
  .sa-outline-block,
  .sa-cta,
  .sa-stack-item,
  .sa-card {
    padding: 14px;
  }

  .sa-card-grid {
    overflow: visible;
  }

  .sa-card {
    width: 100%;
    float: none;
    margin: 0 0 12px 0;
  }

  .sa-card:nth-child(2n) {
    margin-right: 0;
  }

  .sa-button-row {
    margin-bottom: 12px;
  }

  .sa-button {
    display: block;
    width: 100%;
    margin: 0 0 8px 0;
    text-align: center;
    padding: 10px 12px;
  }

  .sa-cta h2 {
    font-size: 24px;
  }

  .sa-page table,
  .sa-page thead,
  .sa-page tbody,
  .sa-page th,
  .sa-page td,
  .sa-page tr {
    display: block;
    width: 100%;
  }

  .sa-page th {
    margin-top: 10px;
  }
}

/* =========================
   <= 480px
========================= */
@media (max-width: 480px) {
  .sa-page {
    padding: 0 10px;
  }

  .sa-page h1,
  .sa-hero-title {
    font-size: 24px;
  }

  .sa-page h2 {
    font-size: 21px;
  }

  .sa-page h3 {
    font-size: 17px;
  }

  .sa-hero,
  .sa-highlight,
  .sa-soft-block,
  .sa-outline-block,
  .sa-cta,
  .sa-stack-item,
  .sa-card {
    padding: 12px;
  }
}

/* =========================================
   Homepage top slider resize fix
   Corrected version for DJ-ImageSlider
========================================= */

body.page-home #slide-w,
body.page-home #djslider-loader88 {
  width: 100% !important;
  max-width: 1494px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.page-home #djslider88 {
  width: 100% !important;
  max-width: 1494px !important;
  margin: 0 auto !important;
  position: relative !important;
  box-sizing: border-box !important;
}

body.page-home #slider-container88 {
  width: 100% !important;
  overflow: hidden !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  box-sizing: border-box !important;
}

body.page-home #djslider88 ul#slider88 {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.page-home #djslider88 ul#slider88 li {
  list-style: none !important;
  float: left !important;
  height: auto !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.page-home #slider88 li img,
body.page-home #slider88 li a img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border: 0 !important;
  margin: 0 !important;
}

body.page-home #cust-navigation88 {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 5 !important;
}

/* =========================================
   Homepage mobile first-screen refinement
========================================= */

@media (max-width: 768px) {
  body.page-home .sa-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-home .sa-hero {
    margin: 0 0 12px 0 !important;
    padding: 18px 14px 14px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    background: #f8fbff !important;
  }

  body.page-home .sa-hero-inner {
    max-width: 100% !important;
  }

  body.page-home .sa-hero-title {
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  body.page-home .sa-hero-lead {
    font-size: 15px !important;
    line-height: 1.75 !important;
    margin-bottom: 10px !important;
  }

  body.page-home .sa-hero-text {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
  }

  body.page-home .sa-button-row {
    margin-bottom: 10px !important;
  }

  body.page-home .sa-button {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 11px 12px !important;
    text-align: center !important;
  }

  body.page-home .sa-trust {
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  body.page-home .sa-trust span {
    display: block !important;
    margin: 0 0 4px 0 !important;
  }

  body.page-home .sa-hero-media {
    margin: 0 0 16px 0 !important;
    padding: 0 0 0 0 !important;
  }

  body.page-home .sa-hero-media img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  body.page-home .sa-hero {
    padding: 16px 12px 12px !important;
  }

  body.page-home .sa-hero-title {
    font-size: 22px !important;
  }

  body.page-home .sa-hero-lead {
    font-size: 14px !important;
  }

  body.page-home .sa-hero-text {
    font-size: 13px !important;
  }
}

.sa-mini-contact-strip {
  margin: 20px 0;
  padding: 14px 18px;

  background: #ffffff;                 /* 改成白底 */
  border-radius: 6px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.06);   /* 轻阴影 → 关键 */

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sa-mini-contact-line {
  font-size: 14px;
  color: #2c3e50;
  margin: 0;
  white-space: nowrap;
}

.sa-mini-contact-line a {
  color: #134e8b;
  text-decoration: none;
}

.sa-mini-contact-line a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sa-mini-contact-line {
    white-space: normal;
  }
}

.sa-contact-card {
  margin: 24px 0;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sa-contact-card-body {
  margin-bottom: 14px;
}

.sa-contact-card-line {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.7;
  color: #243447;
}

.sa-contact-card-line:last-child {
  margin-bottom: 0;
}

.sa-contact-card-line a {
  color: #134e8b;
  text-decoration: none;
}

.sa-contact-card-line a:hover {
  text-decoration: underline;
}

.sa-contact-card-action {
  margin-top: 12px;
}

.sa-footer-card {
  max-width: 720px;
  margin: 20px auto;
  padding: 14px 16px;

  background: rgba(255,255,255,0.06);   /* 半透明 → 融入蓝底 */
  border-radius: 8px;

  text-align: center;
}

/* 主信息 */
.sa-footer-line {
  margin: 0 0 6px;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.7;
}

.sa-footer-line a {
  color: #ffffff;
  text-decoration: none;
}

.sa-footer-line a:hover {
  text-decoration: underline;
}

/* 次级链接 */
.sa-footer-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.sa-footer-sub a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.sa-footer-sub a:hover {
  color: #ffffff;
}

/* =========================
   Footer contact card
========================= */
.sa-footer-card {
  max-width: 520px;
  margin: 10px auto;
  padding: 10px 14px;
  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;

  text-align: left;
}

.sa-footer-line,
.sa-footer-sub {
  margin: 0;
  text-align: left !important;
}

.sa-footer-line + .sa-footer-line,
.sa-footer-line + .sa-footer-sub {
  margin-top: 4px;
}

.sa-footer-line {
  font-size: 14px;
  line-height: 1.7;
  color: #ffffff;
}

.sa-footer-sub {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.sa-footer-card a,
.sa-footer-card a span {
  color: #ffffff !important;
  text-decoration: none;
}

.sa-footer-card a:hover,
.sa-footer-card a:hover span {
  text-decoration: underline;
}

/* 压缩 user7 / mod3 底部蓝色区域的厚度 */
#mod3,
#mod3 .moduletable,
#mod3 .custom {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* 避免底部模块里的段落默认 margin 把高度继续撑大 */
#mod3 p {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

#mod3 p:last-child {
  margin-bottom: 0 !important;
}

/* 手机端保持更自然的居中阅读 */
@media (max-width: 768px) {
  .sa-footer-card {
    max-width: 100%;
    text-align: center;
  }

  .sa-footer-line,
  .sa-footer-sub {
    text-align: center !important;
  }
}

/* ===== PC端：一行布局 ===== */
@media (min-width: 768px) {

  .sa-footer-card {
    max-width: 900px;              /* 放宽容器，不要太窄 */
    margin: 10px auto;
    text-align: center;            /* PC改成居中更平衡 */
  }

  /* 把三行压成一行 */
  .sa-footer-line,
  .sa-footer-sub {
    display: inline;
    margin: 0;
    font-size: 14px;
  }

  /* 行之间加分隔 */
  .sa-footer-line + .sa-footer-line::before,
  .sa-footer-line + .sa-footer-sub::before {
    content: " ｜ ";
    color: rgba(255,255,255,0.6);
  }

}

/* ===== homepage width fix FINAL ===== */

#header,
#navr,
#slide-w,
#wrapper,
.shadow2,
.site-nav-wrap,
#footer,
#bottom {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#comp {
  padding: 20px !important;
}

#comp_100,
#comp_full,
#comp-i,
.full,
.blog-featured,
.items-leading,
.leading {
  width: 100% !important;
  max-width: none !important;
}

.sa-page {
  width: 100% !important;
  max-width: none !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* =========================================
   CN TOP MENU - MATCH EN STYLE
========================================= */

#navr {
    margin: 0 auto;
    position: relative;
    z-index: 99;
    width: 100%;
    min-height: 40px;
    height: auto;
    background: #233748 !important;
    border-bottom: 1px solid #1b2c39;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}

#nav {
    z-index: 10;
    position: relative;
    padding: 0;
    margin: 0;
    background: #233748 !important;
}

#nav > ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    background: #233748 !important;
}

#nav > ul.menu > li {
    list-style: none;
    float: none;
    position: relative;
    padding: 0;
    margin: 0;
    height: 40px;
    line-height: 40px;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: 'Quantico', Arial, Helvetica, sans-serif;
    background: #233748 !important;
}

#nav > ul.menu > li:last-child {
    border-right: none;
}

#nav > ul.menu > li > a {
    display: block;
    padding: 0 14px;
    margin: 0;
    line-height: 40px;
    text-decoration: none;
    font-size: 12px;
    color: #ffffff !important;
    text-shadow: none !important;
    white-space: nowrap;
    background: transparent !important;
}

#nav > ul.menu > li:hover > a,
#nav > ul.menu > li.active > a,
#nav > ul.menu > li.current > a,
#nav > ul.menu > li > a:hover {
    color: #ffffff !important;
    background: #1b2c39 !important;
    text-decoration: none;
}

#nav span.li-l,
#nav span.li-r {
    display: none !important;
}

#nav ul li ul {
    position: absolute;
    left: -999em;
    top: 100%;
    margin: 0;
    padding: 6px 0;
    width: 290px;
    border: none;
    background: #2b3f51;
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
    z-index: 9999;
}

#nav ul li:hover > ul,
#menu ul li.sfHover > ul,
#nav ul li.sfHover > ul {
    left: -1px !important;
}

#nav ul li ul li {
    padding: 0;
    height: auto;
    width: 100%;
    margin: 0;
    border: none;
    float: none;
    line-height: normal;
    background: none;
    position: relative;
}

#nav ul li:hover ul li a,
#nav ul li ul li a,
#nav ul li li ul li a,
#nav ul li.active ul li a,
#nav ul li ul li.active ul li a,
#nav ul li.active ul li a,
#nav ul li ul li.active ul li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 16px;
    line-height: 20px;
    font-size: 12px;
    font-weight: normal;
    text-align: left;
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #2b3f51;
    color: #eef4f8;
}

#nav ul li ul li:last-child a {
    border-bottom: none;
}

#nav ul li ul li a:hover,
#nav ul li ul li.active a,
#nav ul li.active ul li a:hover,
#nav ul li li ul li a:hover,
#nav ul li ul li.active ul li.active a,
#nav ul li ul li.active a,
#nav ul li.active ul li a:hover {
    color: #ffffff;
    background: #1f3140;
    text-decoration: none;
}

/* =========================================
   CN TOP MENU DESKTOP SUBMENU FIX
========================================= */
@media (min-width: 769px) {

  /* 第二层、第三层默认先藏起来 */
  #nav ul li ul ul,
  #nav ul li:hover ul ul,
  #nav ul li:hover ul ul ul,
  #nav ul li:hover ul ul ul ul,
  #nav ul li.sfHover ul ul,
  #nav ul li.sfHover ul ul ul,
  #nav ul li.sfHover ul ul ul ul {
    left: -999em !important;
    top: 0 !important;
    margin: 0 !important;
  }

  /* 第一层子菜单：向下展开 */
  #nav > ul.menu > li:hover > ul,
  #nav > ul.menu > li.sfHover > ul {
    left: -1px !important;
    top: 100% !important;
  }

  /* 第二层及更深层：向右展开 */
  #nav ul li ul li:hover > ul,
  #nav ul li ul li.sfHover > ul {
    left: 100% !important;
    top: 0 !important;
    margin-left: 0 !important;
  }

  /* 防止子菜单被父级裁掉 */
  #nav,
  #nav ul,
  #nav li,
  #navr,
  #navl,
  #site-nav-wrap {
    overflow: visible !important;
  }
}

#main {
  background:none !important;
}

.shadow2 {
  display:none !important;
}


/* R1: compact content width and preserved original homepage imagery. */
body.site { background: #eaeaea; }
.site-grid { max-width: 1200px; margin-inline: auto; background: #fff; }
.container-banner { background: #eaeaea; }
.fac-carousel { max-width: 1200px; }
.fac-carousel--home .fac-slides { aspect-ratio: 960/380; }
.sa-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; overflow: visible; }
.sa-card-grid:after { display: none; }
.sa-card, .sa-card:nth-child(2n) { float: none; width: auto; margin: 0; }
.sa-card h3 img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; }
.fac-client-wall { max-width: 900px; margin: 1.5rem auto; overflow-x: auto; }
.fac-client-wall table { max-width: 100%; }
.fac-client-wall td { padding: 3px; }
.fac-client-wall img { max-width: 120px; max-height: 50px; height: auto; }
.container-footer { background: #0b58a9; }
@media (max-width: 991px) {
  .site-grid { width: 100%; }
}
@media (max-width: 575px) {
  .sa-card-grid { grid-template-columns: 1fr; }
  .sa-card { padding: 16px; }
  .fac-carousel--home .fac-slides { aspect-ratio: 1494/475; }
  .fac-carousel--home img { object-fit: contain; }
}

/* All six source photographs are about 3.15:1, unlike the R1 960:380 box. */
.fac-carousel--home .fac-slides { aspect-ratio: 1494 / 475; }
.fac-carousel--home img { object-fit: contain; background: #fff; }
.fac-carousel-dots { bottom: 8px; background: rgb(19 78 139 / .42); }
.fac-carousel-dots button[aria-current="true"] { background: #0b58a9; }
@media (max-width: 575px) {
  .fac-carousel--home .fac-slides { aspect-ratio: 1494 / 475; }
  .fac-carousel-dots { bottom: 3px; }
}

/* Keep the blue Footer aligned with the current 1200px public content shell. */
.container-footer {
  width: min(1200px, 100%);
  max-width: 1200px;
  margin: 10px auto 0;
  background: transparent;
  color: #fff;
}
.container-footer .grid-child {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0;
  padding: 0 10px;
  background: #0b58a9;
  border: 1px solid #0a4f99;
  border-radius: 5px;
  box-sizing: border-box;
}
.container-footer .sa-footer-card { width: 100%; max-width: none; margin: 10px auto 6px; padding: 10px 14px; }
.container-footer .sa-footer-line,
.container-footer .sa-footer-sub { text-align: center; }
@media (min-width: 1100px) {
  .container-footer .sa-footer-line,
  .container-footer .sa-footer-sub { white-space: nowrap; }
}
.container-footer .sa-footer-sub br { display: none; }
.container-footer .fac-footer-bottom {
  margin: 0 -11px -1px;
  padding: 9px 10px 0;
  background: #eaeaea;
  text-align: right;
}
.container-footer .fac-footer-bottom a { color: #999; font-size: 11px; text-decoration: none; }
.container-footer .fac-footer-bottom a:hover,
.container-footer .fac-footer-bottom a:focus { color: #555; text-decoration: underline; }
.container-footer a { color: #fff; text-decoration: none; }
.container-footer a:hover,
.container-footer a:focus { color: #fff; text-decoration: underline; }

/* Preserve the legacy client Logo content while preventing table overflow. */
.fac-client-wall { overflow-x: visible; }
.fac-client-wall table {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 900px;
}
.fac-client-wall tbody { display: block; }
.fac-client-wall tr {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px 8px;
  margin-bottom: 6px;
}
.fac-client-wall td {
  display: flex;
  min-width: 0;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.fac-client-wall img { width: auto; max-width: min(120px, 100%); max-height: 50px; height: auto; object-fit: contain; }
@media (max-width: 767px) {
  .fac-client-wall tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Long category pagination must wrap instead of widening the mobile viewport. */
  .com-content-category-blog .pagination,
  .com-content-category .pagination { flex-wrap: wrap; justify-content: center; }
}

/* Modern Cassiopeia header/menu: consolidated R1, R2 and r9 declarations. */
.container-header {
  position: relative;
  color: #fff;
  background: #134e8b url('/images/fac-legacy-header.png') center top / auto 120px no-repeat;
  box-shadow: none;
}
.container-header .grid-child { width: 100%; max-width: 1200px; margin-inline: auto; }
.container-header > .grid-child:not(.container-nav) { padding-block: 0; }
.container-header .navbar-brand { min-height: 120px; padding: 20px 0; align-items: center; }
.container-header .brand-logo img { width: 375px; height: 80px; max-width: min(75vw, 375px); object-fit: contain; object-position: left center; }
.container-header .container-topbar { position: absolute; top: 20px; right: max(12px, calc((100% - 1200px)/2 + 20px)); z-index: 2; }
.container-header .container-topbar img { width: 100px; height: 100px; object-fit: contain; }
.container-header .grid-child.container-nav {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: none;
  min-height: 34px;
  padding: 0 8px;
  color: #eef4f8;
  background: #233748;
  border-top: 1px solid #1b2c39;
  box-shadow: none;
}
.container-header .container-nav .navbar { width: 100%; margin: 0; padding: 0; }
.container-header .container-nav .navbar-collapse { max-width: 1200px; margin-inline: auto; }
.container-header .container-nav .mod-menu {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  color: #eef4f8;
}
.container-header .container-nav .mod-menu > li.level-1 {
  position: relative;
  flex: 0 0 auto;
  height: 33px;
  min-height: 33px;
  margin: 0;
  padding: 0;
  background: transparent;
  border-right: 1px solid rgb(255 255 255 / .09);
}
.container-header .container-nav .mod-menu > li.level-1 > a {
  display: block;
  height: 33px;
  padding: 0 18px 0 6px;
  color: #eef4f8;
  font-size: 13px;
  font-weight: 400;
  line-height: 33px;
  white-space: nowrap;
  text-shadow: none;
}
.container-header .container-nav .mod-menu > li.level-1:not(.deeper) > a { padding-right: 6px; }
.container-header .container-nav .mod-menu > li.level-1:hover,
.container-header .container-nav .mod-menu > li.level-1.active,
.container-header .container-nav .mod-menu > li.level-1:focus-within { background: #1b2c39; }

@media (min-width: 992px) {
  .container-header .container-nav .navbar { width: min(1200px, 100%); margin-inline: auto; }
  .container-header .container-nav .mod-menu > li.level-1 > .mm-toggler-link,
  .container-header .container-nav .mod-menu ul.mm-collapse li > .mm-toggler-link {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    height: 33px;
    margin: 0;
    padding: 0;
    color: #eef4f8;
    background: transparent;
    border: 0;
  }
  .container-header .container-nav .mod-menu ul.mm-collapse li > .mm-toggler-link { width: 29px; min-width: 29px; height: 29px; }
  .container-header .container-nav .mod-menu li > .mm-toggler-link::before { display: none; content: none; }
  .container-header .container-nav .mod-menu > li.level-1 > .mm-toggler-link::after {
    display: block;
    content: "";
    width: 0;
    min-width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    background: none;
    border: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #eef4f8;
    transform: none;
  }
  .container-header .container-nav .mod-menu ul.mm-collapse li > .mm-toggler-link::after {
    display: block;
    content: "";
    width: 0;
    min-width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    background: none;
    border: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #eef4f8;
    transform: none;
  }
  .container-header .container-nav .mod-menu > li.level-1 > ul.mm-collapse,
  .container-header .container-nav .mod-menu ul.mm-collapse ul.mm-collapse {
    display: none;
    position: absolute;
    width: 220px;
    min-width: 220px;
    height: auto !important;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #2b3f51;
    border: 1px solid #1b2c39;
    box-shadow: 0 4px 12px rgb(0 0 0 / .22);
    z-index: 35;
  }
  .container-header .container-nav .mod-menu > li.level-1 > ul.mm-collapse { top: 100%; left: 0; }
  .container-header .container-nav .mod-menu ul.mm-collapse li { position: relative; margin: 0; padding: 0; width: 100%; border: 0; border-bottom: 1px solid rgb(255 255 255 / .09); background: #2b3f51; }
  .container-header .container-nav .mod-menu ul.mm-collapse li:last-child { border-bottom: 0; }
  .container-header .container-nav .mod-menu ul.mm-collapse li > a {
    display: block;
    width: 100%;
    min-height: 29px;
    padding: 5px 11px;
    color: #eef4f8;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    text-shadow: none;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
  }
  .container-header .container-nav .mod-menu ul.mm-collapse li.deeper > a { padding-right: 30px; }
  .container-header .container-nav .mod-menu ul.mm-collapse li > a:hover,
  .container-header .container-nav .mod-menu ul.mm-collapse li > a:focus,
  .container-header .container-nav .mod-menu ul.mm-collapse li.active > a { color: #fff; background: #1f3140; }
  .container-header .container-nav .mod-menu ul.mm-collapse li > .mm-toggler-link:hover,
  .container-header .container-nav .mod-menu ul.mm-collapse li > .mm-toggler-link:focus-visible { background: #1f3140; }
  .container-header .container-nav .mod-menu ul.mm-collapse li > ul.mm-collapse { top: -1px; left: calc(100% - 1px); }
  .container-header .container-nav .mod-menu li:hover > ul.mm-collapse,
  .container-header .container-nav .mod-menu li:focus-within > ul.mm-collapse,
  .container-header .container-nav .mod-menu li > ul.mm-collapse.mm-show { display: block !important; visibility: visible; opacity: 1; }
}

@media (max-width: 991px) {
  .container-header .navbar-brand { min-height: 96px; padding: 13px 0; }
  .container-header .brand-logo img { width: 330px; height: 70px; max-width: min(60vw, 330px); }
  .container-header .container-topbar { top: 13px; }
  .container-header .container-topbar img { width: 70px; height: 70px; }
  .container-header .container-nav .navbar { display: block; width: 100%; }
  .container-header .container-nav .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    color: #fff;
    background: #233748;
    border: 0;
    border-radius: 0;
    text-align: left;
  }
  .container-header .container-nav .navbar-toggler:focus:not(:focus-visible) { outline: none; box-shadow: none; }
  .container-header .container-nav .navbar-toggler:focus-visible { outline: 2px solid #d8e7f3; outline-offset: -3px; box-shadow: inset 0 0 0 2px #d8e7f3; }
  .container-header .container-nav .navbar-toggler::before { content: "Menu"; font-size: 16px; font-weight: 600; }
  .container-header .container-nav .navbar-toggler .icon-menu { margin-left: auto; }
  .container-header .container-nav .navbar-collapse { width: 100%; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
  .container-header .container-nav .mod-menu { width: 100%; flex-direction: column; flex-wrap: nowrap; background: #233748; }
  .container-header .container-nav .mod-menu li { position: relative; display: block; width: 100%; margin: 0; padding: 0; min-height: 0; height: auto; background: #233748; border: 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
  .container-header .container-nav .mod-menu > li.level-1 { width: 100%; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .1); background: #233748; }
  .container-header .container-nav .mod-menu li > a {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 11px 50px 11px 14px;
    color: #fff;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: none;
    box-sizing: border-box;
  }
  .container-header .container-nav .mod-menu > li.level-1 > a {
    height: auto;
    min-height: 44px;
    padding: 11px 50px 11px 14px;
    font-size: 16px;
    line-height: 22px;
  }
  .container-header .container-nav .mod-menu li > a:hover,
  .container-header .container-nav .mod-menu li > a:focus,
  .container-header .container-nav .mod-menu li.active > a { color: #fff; background: #1b2c39; }
  .container-header .container-nav .mod-menu li > .mm-toggler-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-left: 1px solid rgb(255 255 255 / .12);
    border-radius: 0;
    z-index: 2;
  }
  .container-header .container-nav .mod-menu li > .mm-toggler-link::before { content: none; display: none; }
  .container-header .container-nav .mod-menu li > .mm-toggler-link::after {
    content: "+";
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    transform: none;
    font: 24px/1 Arial, sans-serif;
  }
  .container-header .container-nav .mod-menu li > .mm-toggler-link[aria-expanded="true"]::after { content: "−"; }
  .container-header .container-nav .mod-menu li > ul.mm-collapse {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #2b3f51;
    border: 0;
    box-shadow: none;
  }
  .container-header .container-nav .mod-menu li.level-2 { background: #2b3f51; }
  .container-header .container-nav .mod-menu li.level-2 > a { padding-left: 26px; color: #eef4f8; font-size: 15px; font-weight: 500; }
  .container-header .container-nav .mod-menu li.level-3 { background: #355064; }
  .container-header .container-nav .mod-menu li.level-3 > a { padding-left: 38px; color: #eef4f8; font-size: 15px; font-weight: 500; }
  .container-header .container-nav .mod-menu li > .mm-toggler-link:hover,
  .container-header .container-nav .mod-menu li > .mm-toggler-link:focus-visible { background: #1b2c39; }
}
@media (max-width: 575px) {
  .container-header .navbar-brand { width: calc(100vw - 16px); min-height: 78px; padding: 8px 72px 8px 8px; box-sizing: border-box; }
  .container-header .brand-logo img { width: min(74vw, calc(100vw - 104px), 300px); height: auto; max-width: 100%; max-height: 62px; }
  .container-header .container-topbar { top: 5px; right: 8px; }
  .container-header .container-topbar img { width: 52px; height: 52px; }
}
