.site-main .affiliates-template {
    margin-top: 80px;
}
.affiliates-template .entry-content {
    margin-bottom: 0;
    margin-top: 0;
}
.affiliates-template .entry-content .container {
    max-width: 900px !important; 
}
.affiliates-template .entry-content > * {
    opacity: 0;
}
.affiliates-template .entry-content.reveal > * {
    opacity: 1;
}
.affiliates-template .entry-content .line {
    overflow: hidden;
}
.affiliates-template .entry-content .word {
    visibility: hidden;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    transition-property: transform;
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(.33,0,.13,1);
    --tw-translate-y: 100%;
}
.affiliates-template .entry-content.reveal .word {
    visibility: visible;
    transform: none;
}
.affiliates-template .entry-content .lines:nth-child(1) .word {
    transition-delay: .1s;
}
.affiliates-template .entry-content .lines:nth-child(2) .word {
    transition-delay: .2s;
}
.affiliates-template .entry-content .lines:nth-child(3) .word {
    transition-delay: .3s;
}
.affiliates-template .entry-content .lines:nth-child(4) .word {
    transition-delay: .4s;
}
.affiliates-template .entry-content .lines:nth-child(5) .word {
    transition-delay: .5s;
}
.affiliates-template .entry-content .lines:nth-child(6) .word {
    transition-delay: .6s;
}
.affiliates-template .entry-content .lines:nth-child(7) .word {
    transition-delay: .7s;
}
.affiliates-template .entry-content .lines:nth-child(8) .word {
    transition-delay: .8s;
}
.affiliates-template .entry-content .lines:nth-child(9) .word {
    transition-delay: .9s;
}
.affiliates-template .entry-content .lines:nth-child(10) .word {
    transition-delay: 1s;
}
.affiliates-template .entry-content .affiliates-template .entry-content {
    max-width: 900px;
    margin: 0 auto;
}
.affiliates-template .entry-content h2 {
    text-transform: uppercase;
    margin: 40px 0 0;
}
.affiliates-template .entry-content h4 {
    margin: 0;
}

.affiliates-logos-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.affiliate-logo-item {
    width: 25%;
    padding: 0 10px;
    margin-top: 79px;
}

.affiliate-logo-item .item-inner {
    border-width: 0 0 1px 1px;
    border-style: solid;
    border-color: #CACACA;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.affiliate-logo-item  .item-image {
    padding: 50px;
    height: 100%;
}

.affiliate-logo-item .item-image .image-inner {
    max-height: 200px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.affiliate-logo-item .item-image .image-inner img {
    object-fit: contain;
    max-width: 100%;
}
.affiliate-logo-item .item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 41px 30px 38px;
    /* flex-wrap: wrap; */
    text-align: left;
    transition: transform .4s;
    transform: translate(0, 100%);
    background: #003366;
    color: #ffffff;
}

.affiliate-logo-item .item-inner:hover .item-content {
    transform: translate(0%);
}
.affiliate-logo-item .item-content .item-link {
    margin-top: auto;
}
.affiliate-logo-item .item-content .affiliate-logo-content {
    margin-bottom: 10px;
    margin-top: 9px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 82px;
    display: -webkit-box;
}
.affiliate-logo-item .item-content h3 {
    color: #FFFFFF;
    max-height: 70px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}
.affiliate-logo-item .item-content a {text-transform: capitalize;}

@media (max-width: 1199px) {
    .affiliate-logo-item {
        width: 33.33%;
    }
}
@media (max-width: 991px) {
    .affiliate-logo-item {
        width: 50%;
    }
}
@media (max-width: 767.98px) {
    .site-main .affiliates-template {
        margin-top: 61px;
    }
    .affiliates-template .entry-content {
        margin-bottom: 0;
    }
    .affiliate-logo-item {
        margin-top: 60px;
    }
    .site-main .entry-header {
        margin: 0 0 61px;
    }
    
    .affiliates-template .entry-content h2 {
        margin: 29px 0 0;
    }
    
    .affiliate-logo-item .item-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .affiliate-logo-item .item-inner:before {
        content: '';
        padding-bottom: 100%;
        display: block;
    }
}
@media (max-width: 599px) {
    .affiliate-logo-item {
        width: 100%;
    }
}