/* Swift MEP — Blog Posts (original HTML "#articles" section: filters, grid, pagination — scoped) */
.smw-posts, .smw-posts *, .smw-posts *::before, .smw-posts *::after{ box-sizing:border-box; }
.smw-posts{ font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif; color:#1B2836; font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased; }
.smw-posts a{ color:inherit; text-decoration:none; }
.smw-posts img{ max-width:100%; display:block; height:auto; }
.smw-posts .wrap{ width:100%; max-width:1200px; margin-inline:auto; padding-inline:20px; }
.smw-posts .sr-only{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:0; padding:0; border:0; }
.smw-posts :focus-visible{ outline:3px solid #F26B21; outline-offset:2px; border-radius:6px; }
.smw-posts .posts-section{ padding:40px 0 0; }

/* ---- Filters ---- */
.smw-posts .toolbar{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin:0 0 26px; }
.smw-posts .chips{ display:flex; flex-wrap:wrap; gap:10px; flex:1 1 auto; min-width:0; }
.smw-posts .chip{
  -webkit-appearance:none; appearance:none; margin:0; cursor:pointer; box-shadow:none; text-transform:none; letter-spacing:0;
  background:#fff; border:1px solid #E3E8EF; border-radius:999px; padding:9px 18px;
  font-family:"Inter",system-ui,sans-serif; font-size:14px; font-weight:500; line-height:1.3; color:#132B52; transition:.16s ease; white-space:nowrap;
}
.smw-posts .chip:hover{ background:#fff; border-color:#F26B21; color:#F26B21; }
.smw-posts .chip[aria-pressed="true"]{ background:#F26B21; border-color:#F26B21; color:#fff; font-weight:600; }
.smw-posts .searchbox{ position:relative; flex:0 0 280px; max-width:100%; margin:0; }
.smw-posts .searchbox input{
  -webkit-appearance:none; appearance:none; width:100%; margin:0; box-shadow:none;
  padding:12px 44px 12px 18px; border:1px solid #E3E8EF; border-radius:999px;
  background:#fff; font-family:"Inter",system-ui,sans-serif; font-size:14.5px; line-height:1.4; color:#1B2836;
}
.smw-posts .searchbox input:focus{ outline:none; border-color:#F26B21; }
.smw-posts .searchbox input::placeholder{ color:#9AA8B8; opacity:1; }
.smw-posts .searchbox svg{ position:absolute; right:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:#3C5478; pointer-events:none; }

/* ---- Post grid ---- */
.smw-posts .grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; transition:opacity .2s ease; }
.smw-posts.is-loading .grid{ opacity:.45; pointer-events:none; }
.smw-posts .card{
  background:#FFFFFF; border:1px solid #E3E8EF; border-radius:12px;
  overflow:hidden; display:flex; flex-direction:column; min-width:0; transition:box-shadow .2s ease, transform .2s ease;
}
.smw-posts .card:hover{ box-shadow:0 10px 30px rgba(19,43,82,.10); }
.smw-posts .card > a:first-child{ display:flex; flex-direction:column; flex:1 1 auto; }
.smw-posts .card__thumb{
  position:relative; aspect-ratio:16/10; background:linear-gradient(135deg,#1B3A66 0%,#2B5487 55%,#3A6DA8 100%);
  display:grid; place-items:center; overflow:hidden;
}
.smw-posts .card__thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; max-width:none; border-radius:0; }
.smw-posts .card__thumb .ph{ width:64px; height:64px; color:rgba(255,255,255,.38); }
.smw-posts .badge{
  position:absolute; top:12px; left:12px; z-index:2; background:#F26B21; color:#fff;
  font-family:"Poppins",system-ui,sans-serif; font-size:12px; font-weight:600; line-height:1.2; padding:6px 12px; border-radius:7px;
}
.smw-posts .badge--inline{ position:static; display:inline-block; margin-bottom:10px; }
.smw-posts .card__body{ padding:20px 20px 0; flex:1 1 auto; }
.smw-posts .card__body h3{ font-family:"Poppins",system-ui,sans-serif; color:#132B52; font-size:18.5px; font-weight:600; line-height:1.35; letter-spacing:-.01em; margin:0 0 9px; padding:0; transition:color .16s ease; }
.smw-posts .card a:hover h3{ color:#F26B21; }
.smw-posts .card__body p{ margin:0; color:#65788C; font-size:14.5px; line-height:1.6; }
.smw-posts .card__meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px;
  padding:16px 20px; margin-top:18px; border-top:1px solid #E3E8EF;
  font-size:12.5px; line-height:1.4; color:#65788C;
}
.smw-posts .card__meta span{ display:inline-flex; align-items:center; gap:6px; }
.smw-posts .card__meta svg{ width:13px; height:13px; color:#3C5478; flex:none; }
.smw-posts .card__meta .avatar{ width:20px; height:20px; border-radius:50%; object-fit:cover; }
.smw-posts .card__cta{
  display:inline-flex; align-items:center; gap:8px; padding:0 20px 20px;
  color:#F26B21; font-family:"Poppins",system-ui,sans-serif; font-weight:600; font-size:14.5px;
}
.smw-posts .card__cta:hover{ color:#D95811; }
.smw-posts .card__cta svg{ width:15px; height:15px; transition:transform .18s ease; }
.smw-posts .card:hover .card__cta svg{ transform:translateX(4px); }
.smw-posts .card > a:first-child + .card__cta{ margin-top:18px; }

.smw-posts .empty{ grid-column:1/-1; text-align:center; padding:64px 20px; background:#fff; border:1px dashed #E3E8EF; border-radius:12px; }
.smw-posts .empty h3{ font-family:"Poppins",system-ui,sans-serif; color:#132B52; font-size:20px; margin:0 0 8px; }
.smw-posts .empty p{ margin:0 0 18px; color:#65788C; }
.smw-posts .btn{
  -webkit-appearance:none; appearance:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:"Poppins",system-ui,sans-serif; font-weight:600; font-size:14.5px; line-height:1.2;
  padding:12px 20px; border-radius:9px; border:1px solid transparent; background:#F26B21; color:#fff; transition:background-color .18s ease;
}
.smw-posts .btn:hover{ background:#D95811; color:#fff; }

/* ---- Pagination ---- */
.smw-posts .pager{ display:flex; justify-content:center; align-items:center; gap:10px; margin:40px 0 0; flex-wrap:wrap; }
.smw-posts .pager[hidden]{ display:none; }
.smw-posts .pager button{
  -webkit-appearance:none; appearance:none; margin:0; cursor:pointer; box-shadow:none;
  min-width:42px; height:42px; padding:0 12px; border-radius:50%; border:1px solid #E3E8EF;
  background:#fff; color:#132B52; font-family:"Inter",system-ui,sans-serif; font-weight:600; font-size:14.5px; line-height:1;
  display:grid; place-items:center; transition:.16s ease;
}
.smw-posts .pager button:hover:not(:disabled){ background:#fff; border-color:#F26B21; color:#F26B21; }
.smw-posts .pager button[aria-current="page"]{ background:#F26B21; border-color:#F26B21; color:#fff; }
.smw-posts .pager button:disabled{ opacity:.4; cursor:not-allowed; }
.smw-posts .pager svg{ width:15px; height:15px; }
.smw-posts .pager .dots{ color:#65788C; padding:0 2px; }
.smw-posts .pager .load-more{ border-radius:9px; height:auto; min-width:0; padding:13px 26px; display:inline-flex; background:#F26B21; color:#fff; border-color:#F26B21; font-family:"Poppins",system-ui,sans-serif; }
.smw-posts .pager .load-more:hover:not(:disabled){ background:#D95811; color:#fff; border-color:#D95811; }

/* ---- Responsive (same breakpoints as the responsive HTML) ---- */
@media (max-width:1080px){
  .smw-posts .grid{ gap:22px; }
}
@media (max-width:900px){
  .smw-posts .grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .smw-posts .posts-section{ padding-top:32px; }
  .smw-posts .toolbar{ margin-bottom:22px; }
  .smw-posts .chips, .smw-posts .searchbox{ flex:1 1 100%; }
}
@media (max-width:760px){
  .smw-posts .wrap{ padding-inline:16px; }
  /* chips: one swipeable row */
  .smw-posts .chips{
    flex-wrap:nowrap; overflow-x:auto; margin-inline:-16px; padding:2px 16px 6px;
    scrollbar-width:none; -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; scroll-padding-inline:16px;
  }
  .smw-posts .chips::-webkit-scrollbar{ display:none; }
  .smw-posts .chip{ flex:none; scroll-snap-align:start; padding:8px 16px; font-size:13.5px; }
}
@media (max-width:620px){
  .smw-posts .grid{ grid-template-columns:1fr; gap:18px; }
  .smw-posts .card__body{ padding:18px 18px 0; }
  .smw-posts .card__body h3{ font-size:17.5px; }
  .smw-posts .card__meta{ padding:14px 18px; }
  .smw-posts .card__cta{ padding:0 18px 18px; }
  .smw-posts .pager{ gap:6px; margin-top:32px; }
  .smw-posts .pager button{ min-width:38px; height:38px; font-size:14px; }
}
