/* ==========================================================================
   bdsmchat.co — site fixes, loaded LAST on every page.
   Added 2026-09-06 after the WordPress cutover.

   Loaded after the theme's own sheets so plain specificity wins; !important is
   used only where the theme's rule is itself !important or equally specific.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LINK HOVER
   The theme hovered links to #f62626 — a red barely distinguishable from the
   #d80808 link colour against the near-black background, so links appeared to
   vanish on hover. White reads clearly on every surface the site uses.
   -------------------------------------------------------------------------- */
a:hover,
a:focus {
  color: #ffffff !important;
}
/* keep the underline behaviour the theme already had */
.footer-legal a:hover,
.sf-links a:hover,
.legal-doc a:hover {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. TRAILING WHITESPACE ABOVE THE FOOTER
   Measured before the fix: 82px (blog post) to 305px (contact). It came from
   the last item's own padding/margin plus the section's bottom padding, which
   only looked right when a sidebar or widget block sat below it.
   -------------------------------------------------------------------------- */
#page-section .page-section-inner { padding-bottom: 26px !important; }
.blog-list-item { margin-bottom: 26px !important; }
.isotope-item:last-child .blog-list-item,
.blog-list-item:last-child { margin-bottom: 0 !important; }
.bl-item-info { padding-bottom: 22px !important; }
.blog-single-wrap > *:last-child,
.page-content > *:last-child { margin-bottom: 0 !important; }
.sidebar.sidebar-right { padding-bottom: 0 !important; }

/* --------------------------------------------------------------------------
   3. THE FOOTER
   Replaces the theme's near-empty footer (which was three bootstrap columns,
   two of them blank after the WordPress widgets were removed).
   -------------------------------------------------------------------------- */
#footer.site-footer {
  background: #0f0f12;
  border-top: 1px solid #23232b;
  margin-top: 0;
  padding: 0;
}
.site-footer .sf-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px 0;
}
.site-footer .sf-cols {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.site-footer .sf-col h3 {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}
.site-footer .sf-links { list-style: none; margin: 0; padding: 0; }
.site-footer .sf-links li { margin-bottom: 9px; }
.site-footer .sf-links a {
  color: #9a9aa6;
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer .sf-links a:hover { color: #ffffff !important; }

.site-footer .sf-brand img { width: 168px; height: auto; margin-bottom: 16px; display: block; }
.site-footer .sf-brand p {
  margin: 0 0 12px;
  color: #8f8f9b;
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 42ch;
}
.site-footer .sf-age { color: #6f6f7c !important; font-size: 12.5px !important; }

.site-footer .sf-bottom {
  margin-top: 40px;
  padding: 20px 0 26px;
  border-top: 1px solid #23232b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .sf-bottom p { margin: 0; font-size: 13px; color: #6f6f7c; }
.site-footer .sf-legal a {
  color: #8f8f9b;
  font-size: 13px;
  text-decoration: none;
}
.site-footer .sf-legal a:hover { color: #ffffff !important; }
.site-footer .sf-legal span { color: #3a3a44; margin: 0 9px; }

@media (max-width: 980px) {
  .site-footer .sf-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .site-footer .sf-cols { grid-template-columns: 1fr; gap: 26px; }
  .site-footer .sf-wrap { padding: 34px 18px 0; }
  .site-footer .sf-bottom { flex-direction: column; align-items: flex-start; }
}
