
/* AFH News Widgets — 0.3.0 */
.afh-news-widget{width:100%;font-family:"DM Sans",system-ui,sans-serif}
.afh-news-widget *{box-sizing:border-box}
.afh-news-grid-track{display:grid;gap:24px}
.afh-news-card{
  display:flex;flex-direction:column;min-width:0;
  background:var(--afh-news-bg,#fff);
  border:1px solid var(--afh-news-border,#DCE6F2);
  border-radius:var(--afh-news-radius,10px);
  box-shadow:var(--afh-news-shadow,none);
  overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.afh-news-card:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 38px rgba(4,33,72,.10);
  border-color:#BFD1E6;
}
.afh-news-media,.afh-news-featured-image,.afh-news-mini-image,.afh-news-list-image{
  display:block;overflow:hidden;background:#F0F4F8;
}
.afh-news-media{aspect-ratio:var(--afh-news-ratio,16/10)}
.afh-news-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.afh-news-card:hover .afh-news-image,.afh-news-featured-main:hover .afh-news-image,.afh-news-mini:hover .afh-news-image,.afh-news-list-item:hover .afh-news-image{transform:scale(1.025)}
.afh-news-placeholder{background:linear-gradient(135deg,#EEF3F8,#DCE6F2)}
.afh-news-card-body{padding:20px 20px 22px}
.afh-news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:10px;color:var(--afh-news-meta,#6B7889);font-size:11px;line-height:1.3}
.afh-news-cat{color:var(--afh-news-accent,#2767BD);font-weight:700}
.afh-news-dot{opacity:.55}
.afh-news-title,.afh-news-featured-title,.afh-news-mini-title,.afh-news-list-title{
  margin:0;
  font-family:"Outfit",sans-serif;
  color:var(--afh-news-title,#042148);
  font-weight:600;
}
.afh-news-title{font-size:20px;line-height:1.18}
.afh-news-title a,.afh-news-featured-title a,.afh-news-mini-title a,.afh-news-list-title a{
  color:inherit;text-decoration:none;
}
.afh-news-excerpt{margin:12px 0 0;color:var(--afh-news-body,#5F6B7A);font-size:14px;line-height:1.6}
.afh-news-cta{
  display:inline-flex;align-items:center;gap:7px;margin-top:17px;
  color:var(--afh-news-accent,#2767BD);font-size:12px;font-weight:700;
}
.afh-news-cta span{transition:transform .18s ease}
.afh-news-card:hover .afh-news-cta span,.afh-news-featured-main:hover .afh-news-cta span,.afh-news-list-item:hover .afh-news-cta span{transform:translateX(3px)}
.afh-news-empty{padding:24px;border:1px dashed var(--afh-news-border,#DCE6F2);color:var(--afh-news-body,#5F6B7A)}

.afh-news-featured{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);
  gap:24px;
}
.afh-news-featured-main{
  display:flex;flex-direction:column;
  background:var(--afh-news-bg,#fff);
  border:1px solid var(--afh-news-border,#DCE6F2);
  border-radius:var(--afh-news-radius,10px);
  box-shadow:var(--afh-news-shadow,none);
  overflow:hidden;
}
.afh-news-featured-image{aspect-ratio:16/8.5}
.afh-news-featured-copy{padding:26px 26px 28px}
.afh-news-featured-title{font-size:34px;line-height:1.08}
.afh-news-featured-copy .afh-news-excerpt{font-size:15px}
.afh-news-featured-side{display:flex;flex-direction:column;gap:14px}
.afh-news-mini{
  display:grid;grid-template-columns:145px minmax(0,1fr);gap:15px;
  padding:12px;
  background:var(--afh-news-bg,#fff);
  border:1px solid var(--afh-news-border,#DCE6F2);
  border-radius:var(--afh-news-radius,10px);
  box-shadow:var(--afh-news-shadow,none);
  min-width:0;
}
.afh-news-mini-image{aspect-ratio:4/3;border-radius:6px}
.afh-news-mini-title{font-size:17px;line-height:1.2}
.afh-news-mini .afh-news-meta{margin-top:2px}

.afh-news-list{display:flex;flex-direction:column;gap:16px}
.afh-news-list-item{
  display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;
  padding:14px;
  background:var(--afh-news-bg,#fff);
  border:1px solid var(--afh-news-border,#DCE6F2);
  border-radius:var(--afh-news-radius,10px);
  box-shadow:var(--afh-news-shadow,none);
  transition:transform .18s ease,box-shadow .18s ease;
}
.afh-news-list-item:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(4,33,72,.08)}
.afh-news-list-image{aspect-ratio:16/10;border-radius:7px}
.afh-news-list-copy{align-self:center;padding:8px 6px 8px 0}
.afh-news-list-title{font-size:23px;line-height:1.15}
.afh-news-list.is-image-right .afh-news-list-image{order:2}
.afh-news-list.is-image-right .afh-news-list-copy{order:1;padding-left:6px;padding-right:0}

@media(max-width:1024px){
  .afh-news-featured{grid-template-columns:1fr}
  .afh-news-featured-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .afh-news-featured-title{font-size:28px}
  .afh-news-list-item{grid-template-columns:220px minmax(0,1fr);gap:18px}
}
@media(max-width:767px){
  .afh-news-grid-track{gap:16px}
  .afh-news-card-body{padding:17px 17px 19px}
  .afh-news-title{font-size:18px}
  .afh-news-featured-side{grid-template-columns:1fr}
  .afh-news-featured-title{font-size:25px}
  .afh-news-featured-copy{padding:21px}
  .afh-news-list-item,.afh-news-list.is-image-right .afh-news-list-item{grid-template-columns:1fr;gap:12px}
  .afh-news-list-image,.afh-news-list.is-image-right .afh-news-list-image{order:1}
  .afh-news-list-copy,.afh-news-list.is-image-right .afh-news-list-copy{order:2;padding:6px 4px 10px}
  .afh-news-list-title{font-size:20px}
}
