/* SEOGIDTALK – final footer spacing and static blog pagination.
   Loaded AFTER unified.css / brand-final.css on every CMS-generated page. */
html body { padding-bottom: 0 !important; }
html body footer.footer,
html body .footer {
  min-height: 0 !important;
  height: auto !important;
  padding: 30px 0 20px !important;
  margin: 0 !important;
}
html body footer.footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 28px !important;
}
html body footer.footer .footer-grid > div { min-height: 0 !important; }
html body footer.footer .footer-grid > div:not(:first-child) { gap: 7px !important; }
html body footer.footer .footer-bottom {
  margin-top: 22px !important;
  padding: 14px 0 0 !important;
  min-height: 0 !important;
  border-top: 1px solid rgba(255,255,255,.13);
  line-height: 1.5;
}
html body footer.footer p { margin-bottom: 9px; }
/* Accessible and responsive pagination without JS. */
.sgpagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 36px auto 10px;
  padding: 8px;
  max-width: 100%;
}
.sgpagination .sgpage {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid #dce4e1;
  color: #16342d;
  background: #fff;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .16s, background-color .16s, transform .16s;
}
.sgpagination .sgpage:hover { border-color: #12ab78; background: #ebfff5; transform: translateY(-1px); }
.sgpagination .sgpage.is-active { background: #13b981; border-color: #13b981; color: #092e24; }
.sgpagination .sgpage:focus-visible { outline: 3px solid #117c59; outline-offset: 2px; }
.sgpagination .sgpage-gap { min-width: 15px; color: #7a8783; text-align: center; }
.sgpage-counter { font-size: 14px; color: #63746d; margin: 10px 0 0; }
@media (max-width: 760px) {
  html body footer.footer, html body .footer { padding: 28px 0 84px !important; }
  html body footer.footer .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  html body footer.footer .footer-bottom { margin-top: 18px !important; }
  .sgpagination { gap: 6px; margin-top: 25px; padding: 0; }
  .sgpagination .sgpage { padding: 8px 10px; min-width: 40px; min-height: 42px; font-size: 13px; }
  .sgpagination .sgpage-prev, .sgpagination .sgpage-next { flex: 0 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .sgpagination .sgpage { transition: none; } }
