.service{
    height:auto;
    padding:50px 0px;
    display:flex;
    justify-content: center;
    align-items: center;
}
.service h1 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 24px;
  font-weight: bold;
}
.img-bor {
    background-color: white;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
    
    text-align: center;
    border-radius: 5px;
    margin-bottom:26px;
    position: relative;
    overflow: hidden;
}
.ser-img img{
  width:100%;

    object-fit: cover;
    object-position: center;
    background-size: cover;
    border-radius: 5px;
}
.img-con{

    display: flex;
    align-items: center;
    justify-content: center;
}
.img-con h4{
    padding:12px 0px;
    font-size: 18px;
    line-height:1;
    font-weight:bold;
   
}
.ser-middle{
    display:flex;
    justify-content: center;
    align-items: center;
}

.flip-container {
  perspective: 1000px; 
  position: relative;
 
  height:312px;
 
}
.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s; 
  transform-style: preserve-3d; 
}


.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; 
}


.front {
  z-index: 2; 

}


 .back {
  padding:20px 40px;
  transform: rotateY(180deg); 
  background-color: #fb3748; 
}
.back p{
    text-align: justify;
    font-size: 16px;
    color:white;
    line-height: 28px;
    padding:5px 10px;
    margin-top:10px;
    
}
 .back img{
    display:block;
    margin:5px auto 5px 10px;
    width:50px;
    height:50px;
    margin-top:20px;
    font-weight: bold;
    filter:brightness(8) invert(1);
}

.flip-container:hover .flipper {
  transform: rotateY(180deg); 
}

@media(max-width:1366px){
  .flip-container {
    height: 277px;
}
.back p{
  font-size: 14px;
  line-height: 25px;
  
}

}
@media(max-width:1200px){
.back {
  padding: 20px 30px;
}
}
@media(max-width:1199px){
  .flip-container {
    height: 250px;
}
  .back {
      padding: 10px 10px;
  }
  .back img {
    width: 40px;
    height: 40px;
    margin-top: 10px;
}
.img-con h4 {
  padding: 19px 0px;
}

}
@media(max-width:1024px){
.flip-container {
  height: 250px;
}
}
@media(max-width:992px){

}
@media(max-width:991px){
.ser-img img {
  width: 100%;
}
.flip-container {
  height: 260px;
}
.back p {
  font-size: 14px;
  line-height: 30px;
  padding: 0px 10px;
}
.img-con h4 {
  padding: 12px 0px;
}
}
@media(max-width:767px){
.back p {
  font-size: 14px;
  line-height: 22px;
  padding: 0px 10px;
}
.flip-container {
  height: 376px;
}
.back p {
  font-size: 16px;
  line-height: 40px;
}
.back img {
  width: 50px;
  height: 50px;
  margin-top: 20px;
}
.back {
  padding: 50px 50px;
}
}
@media(max-width:600px){
.img-con h4 {
  padding: 11px 0px;
}
}
@media(max-width:540px){
.flip-container {
  height: 380px;
}
.back p {
  font-size: 15px;
  line-height: 40px;
 
}
}
@media(max-width:492px){
  .flip-container {
    height: 350px;
  }
  .img-con h4 {
    padding: 14px 0px;
}
.back {
  padding: 30px 50px;
}
}
@media(max-width:432px){
.flip-container {
  height: 310px;
}
.back {
  padding: 30px 30px;
}
.back img {
  margin-top: 0px;
}
}

@media(max-width:414px){
  .flip-container {
    height: 300px;
  }
  .back {
    padding: 31px 30px;
}
.back p {
  font-size: 15px;
  line-height: 35px;
}
}
@media (max-width: 400px) {
  .flip-container {
      height: 288px;
  }
  .back {
    padding: 25px 25px;
}
.back p {
  font-size: 15px;
  line-height: 30px;
}
}
@media (max-width:393px) {
.flip-container {
  height: 283px;
}

}
@media (max-width: 385px) {
  .flip-container {
      height: 275px;
  }
  .img-con h4 {
    padding: 12px 0px;
    font-size: 16px;
}
.back {
  padding: 20px 21px;
}
}
@media (max-width: 375px) {
  .flip-container {
      height: 272px;
  }
  .back p {
    font-size: 14px;
    line-height: 30px;
}
.back {
  padding: 32px 21px;
}

}
@media (max-width: 360px) {
.back p {
  font-size: 14px;
  line-height: 30px;
}
.flip-container {
  height: 262px;
}
.back {
  padding: 26px 21px;
}
.back p {
  font-size: 14px;
  line-height: 24px;
}
}
@media (max-width: 320px) {
  
.flip-container {
  height: 233px;
}
.back p {
  font-size: 14px;
  line-height: 24px;
}
.back img {
  width: 40px;
  height: 40px;
}
.back {
  padding: 20px 10px;
}
}


