/* Mobile footer centering fix for all pages (≤768px)
   Mirrors the working rules used on index.html and contact.html */

/* Kill any absolute layout coming from theme so flex can center properly */
@media screen and (max-width: 768px) {
  /* Container becomes a clean centered column */
  footer #footer-container,
  .clapat-footer #footer-container {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
  }

  /* Socials bar: row, centered */
  footer .socials-wrap,
  .clapat-footer .socials-wrap {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    order: 0 !important;
    margin: 0 0 12px 0 !important;
    width: 100% !important;
    height: auto !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  footer .socials,
  .clapat-footer .socials {
    display: flex !important;
    gap: 16px !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 0 !important;
  }

  footer .socials li,
  footer .socials li span.parallax-wrap,
  footer .socials li a {
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    float: none !important;
    height: 36px !important;
    width: 36px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: static !important;
  }

  /* Middle row that contains the logo and copyright */
  footer .footer-middle,
  .clapat-footer .footer-middle {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 12px 0 0 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  footer .footer-logo,
  .clapat-footer #backtotop {
    width: 100% !important;
    margin: 8px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center !important;
    display: flex !important;
  }

  footer .footer-logo .icon-wrap,
  .clapat-footer #backtotop .icon-wrap {
    width: 100% !important;
    height: auto !important;
    justify-content: center !important;
    display: flex !important;
  }

  footer .footer-logo img {
    max-width: 160px !important;
  }

  /* Exact centering for the copyright line */
  footer .copyright,
  .clapat-footer .copyright {
    font-size: 0.68rem !important;
    line-height: 1.4 !important;
    white-space: nowrap !important; /* tek satır */
    overflow: visible !important;
    /* Basit ve sağlam merkezleme: pozisyon hileleri yok */
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
}

@media screen and (max-width: 480px) {
  footer .copyright,
  .clapat-footer .copyright {
    font-size: 0.62rem !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 auto !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
}
