/* Define initial hidden state and animation state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

#skewed {
clip-path: polygon(0% 0, 100% 0, 100% 100%, 20% 100%);
}
@media only screen and (max-width: 767px) {
#skewed {
    clip-path: polygon(0% 20%, 100% 0, 100% 100%, 0 100%);
    }
}


.service-text {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
    margin-top: 0;
    font-size: 16px;
    color: white;
    padding: 0 10px;
    box-sizing: border-box;
}

.service-btn {
    display: flex;
    justify-content: space-between; /* Move + symbol to the right */
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px;
    margin-bottom: 10px;
    background-color: transparent;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Horizontal line between buttons */
}

.service-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.bannerbutton::after {
    content: '»';
    position: absolute;
    opacity: 0;
    top: 7.5px;
    right: -12px;
    transition: all 0.5s;
    font-size: 22px;
  }

  .bannerbutton:hover::after {
    opacity: 1;
    right: 15px;
  }
.vartiointibutton::after {
    content: '»';
    position: absolute;
    opacity: 0;
    top: 7.5px;
    right: -10px;
    transition: all 0.5s;
    font-size: 22px;
  }

.vartiointibutton:hover::after {
    opacity: 1;
    right: 15px;
  }
  
 .faq-content{overflow:hidden;transition:max-height 300ms ease;max-height:0}
  
/* Subtle image hover */
.img-card{transition:transform .22s ease, box-shadow .22s ease}
.img-card:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.12)}

/* Fade edges WITHOUT adding any white overlay */
.fade-edges{
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 2.5%,
    #000 97.5%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 2.5%,
    #000 97.5%,
    transparent 100%
  );
}

/* Helps prevent tiny seams on transforms */
.scroller__track{
  will-change: transform;
  transform: translate3d(0,0,0);
}
/* scroller container MUST have the same bg as the section, because mask edges are transparent */
#meista .fade-edges,
#meista .scroller,
#meista .scroller__track{
  background: transparent; /* keep this */
}

/* IMPORTANT: give the masked element a solid fallback behind it */
#meista .fade-edges{
  background-color: rgba(0,0,0,.0); /* ok, but we need a real color layer behind it */
}


.scroller__track{
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

.scroller__content, 
.scroller__track [aria-hidden="true"]{
  transform: translateZ(0);
}
/* Prevent any inline image baseline gaps and default backgrounds */
.scroller__track img { display:block; }
#meista figure.item { background: transparent; }
#meista .scroller, 
#meista .scroller__track { background: transparent; }

[data-infinite-scroller]{
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
[data-infinite-scroller] { -webkit-tap-highlight-color: transparent; touch-action: pan-y; }