/* =========================================================
   LAZY LOADING PRO (SKELETON + FADE + BLUR)
   Use com: <img class="lazy-thumb" ...>
   JS deve adicionar .is-loaded no load
========================================================= */

/* baseline */
img.lazy-thumb{
  display: block;
  width: 100%;
  height: auto;

  /* blur leve + fade */
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.02);

  transition:
    opacity .45s ease,
    filter .55s ease,
    transform .55s ease;

  /* evita flicker */
  backface-visibility: hidden;
}

/* quando carregar */
img.lazy-thumb.is-loaded{
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* =========================================================
   SKELETON NO WRAPPER (onde a img fica dentro)
   Funciona em vários containers do seu layout
========================================================= */

/* lista de wrappers que existem no seu código */
.post-thumb,
.blog-v3-thumb,
.recent-thumb,
.training-image,
.client-card{
  position: relative;
  overflow: hidden;

  /* fundo base do skeleton */
  background: rgba(0,0,0,.06);
}

/* shimmer */
.post-thumb::before,
.blog-v3-thumb::before,
.recent-thumb::before,
.training-image::before,
.client-card::before{
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.28) 25%,
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,.12) 100%
  );
  transform: translateX(-100%);
  animation: lazyShimmer 1.35s infinite;

  pointer-events: none;
  z-index: 1;
}

/* quando a img carrega, some o skeleton */
.post-thumb:has(img.lazy-thumb.is-loaded)::before,
.blog-v3-thumb:has(img.lazy-thumb.is-loaded)::before,
.recent-thumb:has(img.lazy-thumb.is-loaded)::before,
.training-image:has(img.lazy-thumb.is-loaded)::before,
.client-card:has(img.lazy-thumb.is-loaded)::before{
  animation: none;
  opacity: 0;
}

/* fallback para navegadores que não suportam :has()
   (o fade/blur ainda funciona 100%; skeleton pode continuar,
   então a gente reduz a opacidade ao carregar via classe no wrapper se quiser) */
@supports not selector(:has(*)){
  .post-thumb::before,
  .blog-v3-thumb::before,
  .recent-thumb::before,
  .training-image::before,
  .client-card::before{
    opacity: .35;
  }
}

/* animação shimmer */
@keyframes lazyShimmer{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* respeita acessibilidade */
@media (prefers-reduced-motion: reduce){
  img.lazy-thumb{
    transition: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .post-thumb::before,
  .blog-v3-thumb::before,
  .recent-thumb::before,
  .training-image::before,
  .client-card::before{
    animation: none !important;
  }
}

/* =========================================================
   HERO V2 ARROWS (você usa .hero-v2-arrow mas não tem css)
========================================================= */
.hero-v2-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);

  background: rgba(0,0,0,.35);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;

  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.hero-v2-arrow:hover{
  background: rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.45);
}
.hero-v2-arrow:active{
  transform: translateY(-50%) scale(.96);
}

@media (max-width: 575.98px){
  .hero-v2-arrow{
    width: 40px;
    height: 40px;
  }
}
