/* PATH: public/assets/css/mobile-fix.css — mobile centering of cards + compact pagination */
@media(max-width:767.98px){
  html,body{max-width:100%;overflow-x:hidden}
  .container,.container-xl{padding-left:16px;padding-right:16px}
  .row{--bs-gutter-x:1.25rem}
  /* every card column fills the row so cards sit centred */
  .row>*:has(>.blog-card),.row>*:has(>.feat-card),.row>*:has(>.port-card),.row>*:has(>.testi-card){flex:0 0 100%;width:100%;max-width:100%}
  .blog-card,.feat-card,.port-card,.testi-card{width:100%;max-width:100%;margin-left:auto;margin-right:auto}
  .feat-grid{width:100%;margin:0 auto}
  [data-aos]{transform:none!important}   /* no sideways shift while animating */
}
/* compact pagination */
.pagination{flex-wrap:wrap;justify-content:center}
.pagination .page-link{min-width:40px;text-align:center}
.pagination .page-item.dots .page-link{pointer-events:none;border-color:transparent;background:transparent}
@media(max-width:575.98px){
  .pagination .page-link{min-width:36px;padding:.4rem .5rem;font-size:14px}
  .pagination .page-item.hide-xs{display:none}
}

/* blog images: keep full 1200x630 artwork (no cropping) in every card */
.blog-card>div:first-child:has(img){height:auto!important;aspect-ratio:1200/630;overflow:hidden}
.blog-card>div:first-child>img{width:100%;height:100%;object-fit:cover}
