/* Case Studies Slider */

.case-studies-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 20px;
    padding-bottom: 50px;
}


.case-studies-row::after{
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    bottom: 7px;
    display: flex;
    background-color: var(--titanYellow);
    z-index: 9;
}

.case-studies-row::-webkit-scrollbar {
    height: 20px;
    padding-bottom: 10px;
    max-width: 80% !important;
    margin: auto;
    /* border: 1px solid red; */
    z-index: 10;
}
.case-studies-row::-webkit-scrollbar-thumb {
    background: var(--titanYellow);
    border-radius: 0px;
}



.case-studies-row .post-item{
    position: relative;
}
.case-studies-row .post-item::after{
    content: '';
    width: 1px;
    height: 60%;
    position: absolute;
    right: 0px;
    top: 30%;
    background-color: var(--titanYellow);
}
.case-studies-row .post-item:last-child:after{
    content: none;
}

.post-item {
    flex: 0 0 auto;
    max-width: 33%;
    scroll-snap-align: start;
    white-space: normal;
}

.post-item .post {
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.post-item .post-info {
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.post-item .post-title {
    color: Var(--titanYellow);
    font-weight: 700;
    text-align: center;
    max-width: 70%;
    line-height: 1.4;
    margin: auto;
    margin-bottom: 5px;
}

.post-item .results-statement {
    font-size: 1rem;
    color: #fff;
    text-align: center;
    max-width: 90%;
    margin: auto;
    margin-bottom: 20px;
}

.post-item .yellow-btn {
    display: inline-block;
    background-color: var(--titanYellow);
    padding: 5px 20px;
    color: var(--titanBlue);
    text-decoration: none;
    border-radius: 0px;
    font-weight: bold;
    font-size: 16px;
    margin: auto;
}

/* Optional underline line like the ::after from old code */
.case-studies-row::after {
    content: '';
    position: absolute;
    bottom: 8;
    height: 2px;
    width: 100%;
    background-color: var(--titanYellow);
    max-width: 1600px;
    margin: auto;
}




.case-studies-slider .scroll-reverse{
    position: absolute;
    left: 20px;
    top: 30%;
    width: 40px;
    height: 100px;
    background-image: url(/wp-content/themes/titan-packaging/assets/images/left-chevron-yellow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
    transition: 0.3s;
}
.case-studies-slider  .scroll-forward:hover,
.case-studies-slider  .scroll-reverse:hover{
    cursor: pointer;
    width: 45px;
    transition: 0.3s;
}
.case-studies-slider  .scroll-forward{
    position: absolute;
    right: 20px;
    width: 40px;
    top: 30%;
    height: 100px;
    background-image: url(/wp-content/themes/titan-packaging/assets/images/right-chevron-yellow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
    transition: 0.3s;
}

.case-studies-slider .yellow-btn:hover{
    color: var(--titanYellow);
    background-color: var(--titanBlue);
    transition: 0.3s;
}

/* Responsive Adjustments */
@media screen and (max-width: 1250px) {
    .post-item {
        max-width: 45%;
    }
}
@media screen and (max-width: 800px) {
    .post-item {
        max-width: 85%;
    }
}
@media screen and (max-width: 450px) {
    .post-item {
        max-width: 100%;
    }
}
