.cnc-beforeafter-section.beforeafter-layout2{position:relative;padding:100px 0;overflow:hidden;box-sizing:border-box;}
.cnc-beforeafter-section.beforeafter-layout2 :is(h1,h2,h3,h4,h5,h6,p){margin:0;padding:0;}
.cnc-beforeafter-section.beforeafter-layout2 .container{max-width:1430px;margin:0 auto;padding:0 15px;position:relative;display: flex;flex-direction: column;row-gap: 30px;}
.cnc-beforeafter-section.beforeafter-layout2 .before-after-container{display:flex;justify-content:center;align-items:flex-start;position:relative;}
.cnc-beforeafter-section.beforeafter-layout2 .card{border:1px solid #005bc5;flex:1;max-width:600px;background:#fff;text-align:center;z-index:1;display:flex;flex-direction:column;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content{display:flex;border-bottom:1px solid #005bc5;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .card-label{writing-mode:vertical-rl;transform:rotate(180deg);color:#005bc5;display:flex;align-items:center;padding:50px;justify-content:center;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .card-label :is(h1,h2,h3,h4,h5,h6){font-weight:700;font-size:48px;color:#005bc5;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .member-image{width:100%;height:auto;max-height: 450px; display:flex;align-items: center;justify-content: center; padding:30px;border-left:1px solid #005bc5;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .member-image img{width:100%;height:100%;object-fit:cover; object-position: center; display:block;}
.cnc-beforeafter-section.beforeafter-layout2 .star{flex:0 0 auto;z-index:0;display:flex;justify-content:center;align-items:center;align-self: center;margin:0 -65px;width:390px;height:390px;}
.cnc-beforeafter-section.beforeafter-layout2 .star img{max-width:100%;max-height: 100%; object-fit:contain;}
.cnc-beforeafter-section.beforeafter-layout2 .card.right-card{margin-top:75px;}
.cnc-beforeafter-section.beforeafter-layout2 .card .content{padding:30px 35px;color:#323232;}
.cnc-beforeafter-section.beforeafter-layout2 .card .content p{font-size:20px;font-weight:400;margin-bottom: 10px;}
.cnc-beforeafter-section.beforeafter-layout2 .card .content p:last-child{margin-bottom: 0;}

@media (max-width:1024px){
.cnc-beforeafter-section.beforeafter-layout2 .card-label{padding:20px;}
.cnc-beforeafter-section.beforeafter-layout2 .card .content{padding: 15px;}
 .cnc-beforeafter-section.beforeafter-layout2 .card-content .card-label{padding: 30px;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .card-label :is(h1,h2,h3,h4,h5,h6){font-size:40px;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .member-image{padding:20px;}
.cnc-beforeafter-section.beforeafter-layout2 .star{width: 300px;height: 300px;}
.cnc-beforeafter-section.beforeafter-layout2 .card.right-card{margin-top:50px;}
}
@media (max-width:767px){.cnc-beforeafter-section.beforeafter-layout2{padding: 50px 0;}
.cnc-beforeafter-section.beforeafter-layout2 .before-after-container{flex-direction:column;}
.cnc-beforeafter-section.beforeafter-layout2 .card{max-width:100%;}
.cnc-beforeafter-section.beforeafter-layout2 .card.right-card{margin-top:0;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .card-label{padding: 20px;}
.cnc-beforeafter-section.beforeafter-layout2 .card-content .card-label :is(h1,h2,h3,h4,h5,h6){font-size: 30px;}
.cnc-beforeafter-section.beforeafter-layout2 .star {width:200px;height: 110px;}
.cnc-beforeafter-section.beforeafter-layout2 .card .content p{font-size:16px;}
}