
section.av-blog-strip  {
    padding: 64px 24px;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

.av-blog-strip{
position: relative;
	background-image: url("https://www.avalontec.com/wp-content/uploads/sites/8/2026/images/blog-bg2.png");background-size: cover;background-position: center;    background-repeat: no-repeat;
  overflow:hidden;
}

.av-blog-shell{
max-width: 1360px;	
/*  width: min(1600px, 92%);*/
  margin:0 auto;
}

.av-blog-head{ margin-bottom: 14px; }

.av-blog-title{
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 30px);
  color:#0b1220;
  margin:0 0 6px;
}
.av-blog-sub{
  margin:0;
  color:#5b6475;
  font-size: 14px;
}

/* ===============================
   3D CAROUSEL LAYOUT
   =============================== */
.av-blog-slider{
  position:relative;
  display:flex;
  align-items:center;
  margin-top: 50px;

  /* 3D */
  perspective: 1200px;
}

/* arrows */
.av-blog-nav{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--av-border);
    background: radial-gradient(circle at 30% 0, #60a5fa, #1d4ed8);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.10);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  user-select:none;

  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
.av-blog-nav:hover{
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 16px 30px rgba(15,23,42,.12);
}
.av-blog-nav span{ font-size: 22px; line-height: 1; color:#fff; }

.av-blog-prev{ left: 0; }
.av-blog-next{ right: 0; }

/* ===============================
   3D TRACK (NOT SCROLLING)
   =============================== */
.av-blog-track{
  position: relative;
  width: 100%;
  height: 380px;                 /* controls carousel height */
  margin: 0 auto;
  overflow: visible;             /* important for 3D */
  transform-style: preserve-3d;

  padding: 10px 60px 14px;       /* space so arrows don't overlap */
  outline: none;
}

/* ===============================
   CARD BASE (ABSOLUTE FOR 3D)
   =============================== */
.av-blog-track .av-blog-card{
  position: absolute;
  top: 0;
  left: 50%;
padding: 5px;
  width: 285px;
  background:#fff;
  border: 1px solid var(--av-border);
  border-radius: 5px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  overflow:hidden;
transform-style: flat; 
/*  transform-style: preserve-3d;*/
  transform-origin: center center;

  opacity: 0;
  pointer-events: none;

  transition:
    transform .55s cubic-bezier(.22,.61,.36,1),
    opacity .55s cubic-bezier(.22,.61,.36,1),
    filter .55s cubic-bezier(.22,.61,.36,1),
    box-shadow .55s cubic-bezier(.22,.61,.36,1),
    border-color .35s ease;

  will-change: transform, opacity;
}

/* Active card (center) */
.av-blog-track .av-blog-card.is-active{
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
  box-shadow: var(--av-shadow);
  border-color: rgba(10,58,141,.20);
}

/* Near cards */
.av-blog-track .av-blog-card.is-near{
  pointer-events: auto; /* allow clicking side cards */
}

/* ===============================
   MEDIA (APPLE-STYLE IMAGE EFFECT)
   =============================== */
.av-blog-media{
  position: relative;
  display:block;
  height:135px;
  background:#f2f5fb;
  overflow:hidden;
  border-radius:5px;
}

.av-blog-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;

  transition:
    transform .6s cubic-bezier(.22,.61,.36,1),
    filter .4s ease;

  will-change: transform;
}

/* overlay */
.av-blog-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,.12)
  );
  opacity:0;
  transition: opacity .45s ease;
}

/* ✅ Active card image effect */
.av-blog-card.is-active .av-blog-media img{
  transform: scale(1.12);
  filter: saturate(1.06) contrast(1.02);
}
.av-blog-card.is-active .av-blog-media::after{
  opacity:1;
}

/* Hover = stronger than active */
.av-blog-card:hover{
  box-shadow: 0 26px 55px rgba(15,23,42,.18);
}
.av-blog-card:hover .av-blog-media img{
  transform: scale(1.16);
  filter: saturate(1.08) contrast(1.03);
}
.av-blog-card:hover .av-blog-media::after{
  opacity:1;
}

/* ===============================
   BODY TEXT
   =============================== */
.av-blog-body{ padding: 14px 14px 16px;text-align: center; }

.av-blog-h3{
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  color:#0b1220;
}
.av-blog-h3 a{ color:inherit; text-decoration:none; }
.av-blog-h3 a:hover{ color: var(--av-blue); }

.av-blog-p{
  margin: 0 0 12px;
  font-size: 10px !important;
  color:#5b6475;
  line-height: 1.45 !important;
}

/* Buttons */
.shaping-blog{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px 14px;
  border-radius: 999px;
  border: none;
background: linear-gradient(90deg,rgba(242, 7, 7, 1) 0%, rgba(20, 6, 184, 1) 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(229, 57, 53, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.shaping-blog:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgb(71 53 229 / 50%);
  background: #29569f;
  text-decoration: none;
}
	


/* Soft floor shadow under carousel */
.av-blog-slider::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-30px;
  width:70%;
  height:80px;
  transform:translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(15,23,42,.18),
    transparent 70%
  );
  filter: blur(18px);
  pointer-events:none;
}
	
	


 #bg-canvas{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
  }


/* =========================================
   BLOG NAV – WRAPPER BASED (BEST METHOD)
========================================= */

.av-blog-slider{
  position: relative;
}

/* nav container */
.av-blog-nav-wrap{
  position: absolute;
  right: 18px;
  bottom: 50px;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.av-blog-nav{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0a3a8d;
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 26px rgba(2,8,23,.18);
margin-right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle at 30% 0, #60a5fa, #1d4ed8);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.10);
    color: #e5f2ff;
  font-size: 26px;
  cursor: pointer;

  transition: transform .25s ease, box-shadow .25s ease;
}

.av-blog-nav:hover{
/*  transform: translateY(0px) !important;*/
  box-shadow: 0 18px 40px rgba(2,8,23,.28);
}


.av-blog-track{
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.av-blog-track a,
.av-blog-track button{
  pointer-events: auto;
  position: relative;
  z-index: 5;
}



	

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 900px){
	  .av-blog-nav-wrap{
  right: 25px;
  bottom: 0px;
  display: flex;
  gap: 6px;
  }
	
  .av-blog-nav{
    width: 38px;
    height: 38px;margin-right: 0px;
  }
  .av-blog-prev{ left: 6px; }
  .av-blog-next{ right: 6px; }

  .av-blog-track{
    height: 360px;
    padding: 10px 44px 14px;
  }

  .av-blog-track .av-blog-card{
    width: 260px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
	
	.av-blog-slider{margin-top: 68px;}
}



@media (max-width: 520px){
	.av-blog-shell .section-header{margin-bottom: 64px;
}}
  .av-blog-track{
    height: 350px;
  }
  .av-blog-media{
    height: 128px;
  }
}

/* Apple accessibility */
@media (prefers-reduced-motion: reduce){
  .av-blog-track .av-blog-card,
  .av-blog-media img,
  .av-blog-media::after,
  .av-blog-nav,
  .shaping-blog{
    transition: none !important;
  }
}
