
/* ============================================================
   Team TararBari SAFE Restore V7
   Narrowly scoped: preserves existing layout, sizes and CMS data.
   ============================================================ */

/* The last requested space background, without changing dimensions/layout. */
.tb-safe-space-v7-bg{
  position:fixed;
  inset:-5%;
  z-index:0;
  pointer-events:none;
  background-image:
    linear-gradient(180deg,rgba(1,7,20,.38),rgba(1,7,20,.52)),
    url('/assets/safe-restore-v7/space-background-v7.webp?v=7');
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  filter:saturate(1.06) contrast(1.02);
  transform:scale(1.04);
  animation:tbSafeV7BgMove 20s ease-in-out infinite alternate;
}

/* Keep exact Home hero on top of the global background. */
body.tb-safe-home-v7 .block-hero{
  position:relative!important;
  z-index:6!important;
}

/* Show the space background on Home lower sections and all normal public pages.
   No width/height/grid/flex settings are changed here. */
body.tb-safe-home-v7 main > section:not(.block-hero),
body.tb-safe-home-v7 .footer,
body.tb-safe-home-v7 footer,
body.tb-safe-inner-v7 main > section,
body.tb-safe-inner-v7 .page-hero,
body.tb-safe-inner-v7 .profile-hero,
body.tb-safe-inner-v7 .project-hero,
body.tb-safe-inner-v7 .member-profile-hero,
body.tb-safe-inner-v7 .footer,
body.tb-safe-inner-v7 footer{
  background-color:rgba(2,8,22,.44)!important;
  background-image:none!important;
}

/* Keep all content above the background. */
body.tb-safe-v7 main,
body.tb-safe-v7 header,
body.tb-safe-v7 footer,
body.tb-safe-v7 .footer,
body.tb-safe-v7 .nav{
  position:relative;
  z-index:4;
}

/* ============================================================
   SOCIAL ICON PROTECTION
   Do NOT set width/height/gap here.
   Existing Admin social-icons-custom.css remains authoritative.
   ============================================================ */
.tb-social-real-icons,
.footer .tb-social-real-icons,
footer .tb-social-real-icons{
  position:relative!important;
  z-index:8!important;
}

.tb-social-real-icons .tb-social-btn,
.tb-social-real-icons .tb-social-btn img,
.footer .tb-social-btn,
.footer .tb-social-btn img,
footer .tb-social-btn,
footer .tb-social-btn img{
  animation:none!important;
  filter:none!important;
}

.tb-social-real-icons .tb-social-btn img,
.footer .tb-social-btn img,
footer .tb-social-btn img{
  transform:none!important;
  box-shadow:none!important;
}

/* V5/V6 movement must never affect footer social controls. */
footer .sfx5-imagefx,
footer .sfx5-buttonfx,
footer .tb6-photo,
footer .tb6-photo-box,
footer .tb6-button,
footer .tb6-card,
footer .tb6-icon-box,
.footer .sfx5-imagefx,
.footer .sfx5-buttonfx,
.footer .tb6-photo,
.footer .tb6-photo-box,
.footer .tb6-button,
.footer .tb6-card,
.footer .tb6-icon-box{
  animation:none!important;
  filter:none!important;
  transform:none!important;
}

/* ============================================================
   SPONSOR / PARTNER PROTECTION
   Restore the site's original sponsor sizing/alignment rules.
   We do not define sizes; we only neutralize injected effects.
   ============================================================ */
.sponsor-card,
.partner-card,
.partners-card,
.sponsors-card,
.partner-logo-wrap,
.sponsor-logo-wrap,
.partner-detail-logo,
.sponsor-logo,
[class*="sponsor"] img,
[class*="partner"] img{
  animation:none!important;
}

[class*="sponsor"] img,
[class*="partner"] img,
.partner-detail-logo,
.sponsor-logo{
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
}

/* Disable injected glass/photo wrappers only in sponsor/partner areas. */
[class*="sponsor"] .tb6-photo-box,
[class*="partner"] .tb6-photo-box,
[class*="sponsor"].tb6-card,
[class*="partner"].tb6-card,
[class*="sponsor"].sfx5-cardfx,
[class*="partner"].sfx5-cardfx{
  animation:none!important;
  transform:none!important;
}

/* Do not allow the repair stylesheet itself to affect Admin. */
body.admin .tb-safe-space-v7-bg,
.admin .tb-safe-space-v7-bg{
  display:none!important;
}

@keyframes tbSafeV7BgMove{
  0%{transform:translate3d(-1.5%,0,0) scale(1.04)}
  50%{transform:translate3d(1.2%,-.8%,0) scale(1.065)}
  100%{transform:translate3d(2.4%,.8%,0) scale(1.05)}
}

@media(max-width:991px){
  .tb-safe-space-v7-bg{
    inset:-8%;
    background-position:74% center;
    animation-duration:24s;
  }
}

@media(prefers-reduced-motion:reduce){
  .tb-safe-space-v7-bg{
    animation:none!important;
  }
}

