section.stack-section--inference {
    padding: 80px 0px;
    background: #F6F6F6;
}

.stack--tab--Image img {
    width: 100%;
    height: 375px;
}

.stack--tabs button.active{
    background: #062D1F;
    color:#fff;
}

.stack--tabs button {
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    line-height: 22px;
    padding: 12px 20px;
    color:var(--text-color);
    border:none;
    border-top: 1px solid #BCBCBC;
    background: transparent;
    width: 100%;
}

.stack--tabs{
    display: flex;
    gap: 10px;
}

.stack-tab--innerWrap {display: none;padding: 40px 0px 0;}

.stack-tab--innerWrap.active {
    display: block;
}
.stack--slate.active {
    fill: #42DA88;
}
.base-slate.active {
    fill: var(--primary-color);
    fill-rule: evenodd;
}

.base-slate.active path{
    fill: var(--primary-color);
    fill-rule: evenodd;
}
.stack-image svg {
    overflow: visible;
}

.stack--grid--outer {
    max-width: max-content;
    margin: 0px auto;
}
.cta--block {
    margin-top: 30px;
}
.stack--tab--grid {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.00) 37.42%, rgba(255, 255, 255, 0.70) 84.05%), rgba(251, 251, 251, 0.80);
    box-shadow: 4px 4px 15px 0 rgba(0, 0, 0, 0.15);
    width: 100%;
}

.stack--tab--grid img {
    margin-bottom: 10px;
}

.stack--tab--grid p {
    font-size: 30px;
    font-weight: 400;
    line-height: 38px;
}

.stack--tab--Image {
    margin-bottom: 50px;
}
.stack--tab--Image {
    text-align: center;
}
.stack--tab--grid ul li {
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.045px;
    list-style: disc;
}

.stack--tab--grid ul {
    margin-top: 20px;
    padding-left: 20px;
}

/* Inference Stack */
.stack-image svg g[id^="stack-"] {
  --ty: 0px;
  transform: translateY(var(--ty));
  transition: transform 0.45s ease;
  transform-origin: center;
  cursor: pointer;
}

/*  */
/* default state */
.stack--grid--outer {
  opacity: 1;
  transform: translateY(0);
}

/* animated state – added by JS */
.stack-tab--innerWrap.animate-grids .stack--grid--outer {
  animation: fadeInGrid 0.45s ease-out forwards;
}

@keyframes fadeInGrid {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default state – no animation */
.stack-tab--innerWrap[data-index="3"] .stack--tab--Image img,
.stack-tab--innerWrap[data-index="3"] .stack--tab--Image svg {
  width: 100%;
  transform: scale(1);
}

/* Animated state (only when JS adds class) */
.stack-tab--innerWrap[data-index="3"].animate-image .stack--tab--Image img,
.stack-tab--innerWrap[data-index="3"].animate-image .stack--tab--Image svg {
  animation: widthZoomIn 2.5s ease-out forwards;
}

/* Keyframes */
@keyframes widthZoomIn {
  0% {
    width: 0;
    transform: scale(1);
    opacity: 0;
  }
  100% {
    width: 100%;
    transform: scale(1);
    opacity: 1;
  }
}


@media(max-width:768px){
    section.stack-section--inference {
        background: transparent;
        padding-bottom: 0;
    }
    .accordion-header {
        width: 100%;
        background: none;
        border: 0;
        text-align: left;
        cursor: pointer;
    }
    .stack--tab--grid.transparent--grid {
        background: transparent;
        border: 0;
        padding: 0;
        box-shadow: none;
        /* visibility: hidden; */
    }
    
    .stack--tab--grid.transparent--grid p {
        color: #fff;
        font-size: 18px;
    }
    
    .inference--stack-content .stack--grid--outer {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        /* padding: 20px; */
    }
    .accordion-item.inference--stack-item.is-active button{
        background: transparent;
        color:#fff;
    }
    .accordion-item.inference--stack-item button {
        padding: 15px;
        font-size: 18px;
        font-family: 'Inter';
        color: #000;
        background: #F6F6F6;
        border-top: 1px solid #bcbcbc;
        border-bottom: 1px solid #bcbcbc;
    }
    .accordion-content.inference--stack-content .stack--tab--grid ul li {
        color: #fff;
    }
    .accordion-item.inference--stack-item {
        /* padding: 10px 0px; */
        margin-bottom: 10px;
    }

    .accordion-item.inference--stack-item.is-active {
        background: var(--text-color);
    }

    .stack--tab--Image img {
        height: 100%;
    }

    .stack-image svg {
        width: 100%;
        height: 350px;
    }

    .stack--tabs {
        display: unset;
    }
    .stack-tab--innerWrap {
        padding: 0px;
    }
    
    .stack--tab--Image {
        padding: 0px 20px 20px;
        margin: 0px;
    }
    
    .stack--tab--grid p {
        font-size: 20px;
        line-height: 26px;
    }
}

@media(max-width:1366px) and (min-width: 769px){
    .stack-image svg {
        width: 100%;
        height: 100%;
    }
    .stack--tabs button {
        padding: 7px;
        font-size: 14px;
    }

    .stack--tab--grid p {
        font-size: 16px;
        line-height: 20px;
    }

    .stack--tab--Image img {
        height: 100%;
    }

    .stack-tab--innerWrap[data-index="3"] .stack--tab--Image img {
        height: 225px;
    }

    .stack--tab--grid ul li {
        font-size: 14px;
        line-height: 16px;
    }

    .stack--tab--grid ul {
        margin-top: 10px;
    }
}