/* =========================================================
   Minimal Carousel (scroll-snap) — FULL CSS
   - No visible scrollbar/trackbar
   - Arrow-only buttons (no circle background)
   ========================================================= */

/* used only for invisible jump when hitting cloned slides */
.mini-carousel__track.is-jumping{
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

section#newcontainer .section {
	padding-bottom: 80px;
    background: transparent linear-gradient(0deg, #FFFFFF 0%, #F2F5F5 100%) 0% 0% no-repeat padding-box !important;
}

/* Optional outer wrapper */
.carousel-container{
  width: 100%;
  max-width: none;      /* set to 1440/1600/etc if you want */
  margin: 0;
  padding: 10px 0;
  position: relative;
  background: #303c56 0% 0% no-repeat padding-box
}

/* Core carousel */
.mini-carousel{
  --gap: 40px;
  --radius: 12px;

  position: relative;
  margin: 16px 0;

  overflow: visible; /* allow arrows to sit above images */
}

/* Scroll track */
.mini-carousel__track{
  display: flex;
  gap: var(--gap);
  overflow-x: auto;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  padding: 6px;
  padding-inline: 8px;
  scroll-padding-inline: 8px;

  /* ✅ hide scrollbar everywhere */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* old Edge/IE */
}
.mini-carousel__track::-webkit-scrollbar{
  display: none;              /* Chrome/Safari */
}

/* Items */
.mini-carousel__item{
  scroll-snap-align: start;
  scroll-snap-stop: always;

  flex: 0 0 calc((100% - (var(--gap) * 3)) / 4); /* 4 items desktop */
}

@media (max-width: 1024px){
  .mini-carousel__item{
    flex-basis: calc((100% - (var(--gap) * 2)) / 3); /* 3 */
  }
}
@media (max-width: 768px){
  .mini-carousel__item{
    flex-basis: calc((100% - var(--gap)) / 2); /* 2 */
  }
}
@media (max-width: 480px){
  .mini-carousel__item{
    flex-basis: 82%; /* 1 big card for swipe */
  }
  
  section#newcontainer .section {
  	padding-bottom: 50px;
  }
}

/* Images */
.mini-carousel__link,
.mini-carousel__img{
  display: block;
  width: 100%;
}

.mini-carousel__img{
  border-radius: var(--radius);
  height: auto;
  object-fit: cover;
}

/* Optional: edge fade hints (REMOVE if you don’t want it) */
.carousel-container::before,
.carousel-container::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width: 70px;
  pointer-events:none;
  z-index: 3;
  border-radius: var(--radius);
}
.carousel-container::before{
  left:0;
  background: linear-gradient(to right, rgba(0,0,0,.22), rgba(0,0,0,0));
}
.carousel-container::after{
  right:0;
  background: linear-gradient(to left, rgba(0,0,0,.22), rgba(0,0,0,0));
}

/* =========================================================
   Arrow-only buttons (no circle)
   ========================================================= */
.mini-carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 44px;
  height: 44px;

  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;

  display: grid;
  place-items: center;
  cursor: pointer;

  opacity: 1; /* always visible */
}

.mini-carousel__btn--prev{ left: 10px; }
.mini-carousel__btn--next{ right: 10px; }

/* SVG arrows */
.mini-carousel__btn svg{
  width: 26px;
  height: 26px;
  display: block;

  color: #fff;       /* change to #111 if on light background */
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease;
}

/* Hover */
@media (hover:hover) and (pointer:fine){
  .mini-carousel__btn:hover svg{
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Keyboard focus */
.mini-carousel__btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 3px;
}

/* Disabled state */
.mini-carousel__btn:disabled{
  cursor: not-allowed;
}
.mini-carousel__btn:disabled svg{
  opacity: .35;
  transform: none;
}

/* Mobile: hide buttons (swipe instead) */
@media (max-width: 768px){
  .mini-carousel__btn{ display: none; } /* remove if you want arrows on mobile */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .mini-carousel__track{ scroll-behavior: auto; }
}