.trad-flip-text-center {
    text-align: center;
}

.trad-flip-color-white {
    color: #fff;
}

.trad-box-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
}

@media screen and (min-width: 1380px) {
    .trad-box-container {
        flex-direction: row;
    }
}

.trad-box-item {
    position: relative;
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
}

.trad-flip-box {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.trad-flip-box-front,
.trad-flip-box-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    -webkit-transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ====================== Direction Variants ====================== */

/* Left → Right */
.trad-flip-left-to-right .trad-flip-box-front {
    transform: rotateY(0deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-left-to-right:hover .trad-flip-box-front {
    transform: rotateY(-180deg) translateZ(1px);
}
.trad-flip-left-to-right .trad-flip-box-back {
    transform: rotateY(180deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-left-to-right:hover .trad-flip-box-back {
    transform: rotateY(0deg) translateZ(1px);
}

/* Right → Left */
.trad-flip-right-to-left .trad-flip-box-front {
    transform: rotateY(0deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-right-to-left:hover .trad-flip-box-front {
    transform: rotateY(180deg) translateZ(1px);
}
.trad-flip-right-to-left .trad-flip-box-back {
    transform: rotateY(-180deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-right-to-left:hover .trad-flip-box-back {
    transform: rotateY(0deg) translateZ(1px);
}

/* Top → Bottom */
.trad-flip-top-to-bottom .trad-flip-box-front {
    transform: rotateX(0deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-top-to-bottom:hover .trad-flip-box-front {
    transform: rotateX(-180deg) translateZ(1px);
}
.trad-flip-top-to-bottom .trad-flip-box-back {
    transform: rotateX(180deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-top-to-bottom:hover .trad-flip-box-back {
    transform: rotateX(0deg) translateZ(1px);
}

/* Bottom → Top */
.trad-flip-bottom-to-top .trad-flip-box-front {
    transform: rotateX(0deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-bottom-to-top:hover .trad-flip-box-front {
    transform: rotateX(180deg) translateZ(1px);
}
.trad-flip-bottom-to-top .trad-flip-box-back {
    transform: rotateX(-180deg) translateZ(1px);
}
.trad-trigger-hover.trad-flip-bottom-to-top:hover .trad-flip-box-back {
    transform: rotateX(0deg) translateZ(1px);
}

/* ====================== Trigger: Click Mode ====================== */
.trad-flip-box.trad-trigger-click {
    cursor: pointer;
}
/* Left → Right */
.trad-trigger-click.trad-flipped.trad-flip-left-to-right .trad-flip-box-front {
    transform: rotateY(-180deg) translateZ(1px);
}
.trad-trigger-click.trad-flipped.trad-flip-left-to-right .trad-flip-box-back {
    transform: rotateY(0deg) translateZ(1px);
}

/* Right → Left */
.trad-trigger-click.trad-flipped.trad-flip-right-to-left .trad-flip-box-front {
    transform: rotateY(180deg) translateZ(1px);
}
.trad-trigger-click.trad-flipped.trad-flip-right-to-left .trad-flip-box-back {
    transform: rotateY(0deg) translateZ(1px);
}

/* Top → Bottom */
.trad-trigger-click.trad-flipped.trad-flip-top-to-bottom .trad-flip-box-front {
    transform: rotateX(-180deg) translateZ(1px);
}
.trad-trigger-click.trad-flipped.trad-flip-top-to-bottom .trad-flip-box-back {
    transform: rotateX(0deg) translateZ(1px);
}

/* Bottom → Top */
.trad-trigger-click.trad-flipped.trad-flip-bottom-to-top .trad-flip-box-front {
    transform: rotateX(180deg) translateZ(1px);
}
.trad-trigger-click.trad-flipped.trad-flip-bottom-to-top .trad-flip-box-back {
    transform: rotateX(0deg) translateZ(1px);
}



/* ====================== Inner Content ====================== */
.trad-flip-box .trad-flip-inner {
    position: absolute;
    left: 0;
    width: 100%;
    /* padding: 60px; */
    outline: 1px solid transparent;
    perspective: inherit;
    z-index: 2;
    /* transform: translateY(-50%) translateZ(60px) scale(.94); 
    -webkit-transform: translateY(-50%) translateZ(60px) scale(.94);
    -ms-transform: translateY(-50%) translateZ(60px) scale(.94); */
    /* top: 50%; */
    /* display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; */
}

.trad-flip-box-header,
.trad-flip-box-header-back {
    font-size: 34px;
}

.trad-flip-box p {
    font-size: 20px;
    line-height: 1.5em;
}

.trad-flip-box-img {
    margin-top: 25px;
}

.trad-flip-box-button {
    background-color: transparent;
    /* border: 2px solid #fff;
    border-radius: 2px; */
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    margin-top: 25px;
    padding: 15px 20px;
    text-transform: uppercase;
    display: block;
}

/* 3D mode */
.trad-content-3d .trad-flip-inner {
    transform: translateY(-50%) translateZ(60px) scale(.94);
    -webkit-transform: translateY(-50%) translateZ(60px) scale(.94);
    -ms-transform: translateY(-50%) translateZ(60px) scale(.94);
}

/* 2D mode */
.trad-content-2d .trad-flip-inner {
    transform: translateY(-50%) translateZ(0px) scale(.94);
    -webkit-transform: translateY(-50%) translateZ(0px) scale(.94);
    -ms-transform: translateY(-50%) translateZ(0px) scale(.94);
}

.trad-front-title,
.trad-front-subtitle,
.trad-front-description,
.trad-front-icon,
.trad-back-title,
.trad-back-subtitle,
.trad-back-description,
.trad-back-icon,
.trad-back-button {
    display: block;
}

.trad-flip-box-front {
        background: linear-gradient(137deg, #ffffff, #6f6f6f);
}

.trad-flip-box-back {
    background: #f1f1f1;
}
