*{
  margin: 0;  
  padding: 0;
  box-sizing: border-box;
}
body{
  font-family: "Jost", sans-serif;
  background-color:white
}
.container{
    width: 100%;
    height: 180px;
    /* border: 1px solid red; */
    /* display: flex; */
   
    >.row{
        width: 100%;
        height: 80px;
        /* background-color: cornflowerblue; */
        display: flex;
        justify-content: space-between;
        >nav{
            width: 70%;
            height: 100%;
             padding: 10px 30px;
            /* border: 1px solid black; */
            >ul{
                display: flex;
                width: 100%;
                height: 100%;
                gap: 20px;
                
                >li{
                    list-style-type: none;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 10px;
                    
                    
                    >i{
                        font-size: 20px;
                        color: #cd201f;
                    }
                    >a{
                        text-decoration: none;
                        font-size: 20px;
                        color: rgb(18, 17, 17);
                        display: flex;
                        width: 100%;
                        height: 100%;
                        align-items: center;
                        justify-content: center;
                        &:hover{
                            color:#cd201f;
                        }
                        

                    }
                }
            }
        }
        >div{
          display: flex;
          width: 40%;
          height: 100%; 
          /* border: 1px solid black; */
          padding: 10px 30px;
          >nav{
            width: 100%;
            height: 100%;
            /* border: 1px solid red; */
            >ul{
                width: 100%;
                height: 100%;
                display: flex;
                justify-content: right;
                gap: 20px;
                >li{ 
                    width: 10%;
                   /* height: 100%; */
                    list-style-type: none;
                    border-radius: 5px;
                    /* padding: 15px 3px; */
                    /* border: 1px solid red; */
                    align-items: center;
                    &:nth-of-type(1){
                        background-color:#3b5998
                    }
                    &:nth-of-type(2){
                        background-color:black;
                    }
                    &:nth-of-type(3){
                        background-color:#c13584;
                    }
                    &:nth-of-type(4){
                        background-color:#cd201f;
                    }
                    >i{
                         width: 100%;
                          height: 100%;
                          display: flex;
                         align-items: center;
                          justify-content: center;
                         font-size: 20px;
                         color: white;
                    }
                }
            }
          }
        }
    }
    .row2{
        width: 100%;
        height: 100px;
        padding: 10px 30px;
        display: flex;
        justify-content: space-between;
        margin: 10px 0;
        >figure{
            width: 8%;
            display: flex; align-items: center;
            >img{
                width: 100%;
                object-fit: cover ;
            }
        }
        >nav{
            width: 60%;
            height: 100%;
            /* border: 1px solid black; */
            >ul{
                display: flex;
                width: 100%;
                height: 100%;
                gap: 30px;
                justify-content: center;
                >li{
                    list-style-type: none;
                  
                    >a{
                        font-size: 20px;
                        text-decoration: none;
                        display: flex;
                        width: 100%;
                        height: 100%;
                        align-items: center;
                        justify-content: center;
                        text-transform: uppercase;
                        color: rgb(26, 25, 25);
                        &:hover{
                            color: #cd201f;
                        }
                        
                    }

                }
            }


        }
        >div{
            display: flex;
            width: 20%;
            height: 80%;
            background-color: #bd162d;
            justify-content: center;
            border-radius: 30px;
            >i{
                display: flex;
                align-items: center; justify-content: center;
                font-size: 30px;
                color: white;
                >a{
                    font-size: 20px;
                    color: white;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    text-decoration: none;
                    font-weight: bold;
                    
                }
            }
        }
    }
}
/* end header */
.head-bottom{
    width: 100%;
    height: 500px;
    background-image: url(image/imgi_61_hero-image-car-dealership.jpg);
    background-size: cover;
    margin: 15px 0;
    background-repeat: no-repeat;
    position: relative;
    /* z-index: 2; */
    &::after{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        background-color: rgba(0, 0, 0, 0.534);
        z-index: 1;
    }
}
.paragraf{
    width: 50%;
    height: 350px;
    /* border: 3px solid black; */
    position: absolute;
    top: 45%;
    left: 15%;
    z-index: 3;
    text-transform: uppercase;
    >h1{
        font-size: 60px;
        color: white;
    }
    >p{
        font-size: 45px;
        color:white;
    }
    >div{
        display: flex;
        gap: 20px;
        margin: 20px 0;
      >a{
        font-size: 25px;
        background-color: #bd162d;
        border-radius: 3px;
        border: none;
        text-decoration: none;
        color: white;
        display: flex;
        padding: 15px 30px;
        &:nth-of-type(1){
            background-color:#bd162d;
            &:hover{
                background-color: #2364c4;
            }
        }
        &:nth-of-type(2){
            background-color: white;
            color: black;
            &:hover{
                background-color: #2364c4;
            }
        }

      }
       
    }
}
/* end */
.section{
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 0 8%;
    margin: 10px auto;
    /* gap: 300px; */
    >figure{
        width: 15%;
        /* border: 1px solid red; */
        >img{
            width: 100%;
        }
       
       >figcaption{
        margin: 20px 0;
        text-transform:capitalize;
        width: 155%;
        /* border: 1px solid green; */
        >*{
            color: rgb(26, 25, 25);
          
        }
        >h3{
            font-weight: bold;
            font-size: 30px;
            /* width: 110%; */
        }
        >p{
            font-size: 20px;
            /* width: 110%; */
            text-align-last:center;
        }
       }
    }
}
/* end */
.item{
    width: 100%;
    height: 800px;
    background-color:#051a3a;
    position: relative;

    >figure{
        position: relative;
        width: 100%;
        height: 100%;
        >img{
            width: 100%;
            height: 100%;
        }
    }
    &::after{
        content: '';
        display: flex;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
        /* background-color: rgba(0, 0, 0, 0.734); */
    }
    >div{
        bottom: 95%;
        left: 30%;
        position: relative;
        width: 40%;
      
        >figure{
            display: flex;
            justify-content: center;
        }
        >h2{
            color: white;
            font-size: 50px;
            text-align: center;
        }
        >p{
            color: white;
            font-size:20px;
            width: 100%;
            text-align: center;
        }
      
    }
    .gallery{
        /* border: 1px solid white; */
        display: flex;
        width: 80%;
        /* justify-content: center; */
        position: relative;
        left: 14%;
        bottom: 730px;
        z-index: 1;
        cursor: pointer;
        >figure{
            width: 23%;
            border: 1px solid #39495e;
            /* outline: none; */
            padding: 50px 90px;
            transition: 1s;
            >img{
                width: 100%;
                transition: .5s;
                 filter: brightness(30%);
           
                 &:hover{
                filter: brightness(100%);
            }
                
        
            }
        }
       
    }
}
/* end */
.bottom-header{
    display: flex;
    width: 100%;
    height: 123px;
    /* background-color: rgb(20, 18, 18); */
    justify-content: space-around;
    padding: 40px 0;
    /* margin: 5px auto; */
    outline: none;
    text-transform: capitalize;
    >h2{
        font-size: 60px;
        color: black;
        
    }
    >p{
        color: gray;
        font-size: 20px;
        width: 50%;
        

    }

}

.car-gallery{
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    background-color: white;
    flex-wrap: wrap;
    padding: 0 20px;
    /* height: 100vh; */
    >.all{
        /* border: 1px solid red; */
        width: 23%;
        margin: 5% 5%;
        position: relative;
        >div{
            position: relative;
            height: 100%;
            >figure{
                position: relative;
                width: 100%;
                height: 100%;
               &:hover{
               >.overlay{
                height: 100%;
               }
               
               }
             >img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: 1s;
             }
             >.overlay {
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 0; /* در حالت عادی مخفی */
          background: #163049bb;
          color: white;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: height 0.4s ease;
          overflow: hidden;
          z-index: 2;
          flex-direction: column;
          text-transform: uppercase;
          line-height: 40px;
          >h4{
            font-size: 30px;
          }
          >p{
           font-size: 20px;
          
          }
        }

            }
        }
     >.part{
        background-color: white;
        height: 120px;
        padding: 20px 25px;
        line-height: 40px;
        position: absolute;
        top: 80%;
        left: -20%;
        z-index: 2;
        >h4{
            font-size: 25px;
        }
        >p{
            font-size: 20px;
            border-bottom: 1px solid black;
        }
        >span{
            font-size: 20px;
        }
     }
    }
    .view{
        margin: 80px auto;
        >a{
            font-size: 25px;
            text-decoration: none;
            border-radius: 3px;
            background-color: white;
            border: 1px solid black;
            padding: 10px 20px;
            color: black;
            transition: .4s;
            &:hover{
                background-color: #2364c4;
                color: white;
            }
        }

    }

}
.dealer{
    width: 100%;
    /* border: 1px solid blue; */
    display: flex;
    padding: 20px 90px;
    margin: 30px 0;
    >div{
        display: flex;
        flex-direction: column;
        >h2{
            font-size: 30px;
            color: black;
            width: 85%;
        }
        >nav{
        width: 70%;
        height: 100px;
        /* border: 1px solid black; */

        >ul{
            display: flex;
            width: 100%;
            height: 60%;
            line-height: 40px;
          
            >li{
                list-style-type: none;
                width: 30%;
                height: 100%;
                font-size: 20px;
                display: flex;
               /* border: 1px solid red; */
                padding: 10px 60px;
                color: rgb(79, 77, 77);
                >i{
                    display: flex;
                    align-items: center;
                    height: 100%;
                   color: #bd162d;
                   font-size: 20px;
                   /* border: 1px solid red; */
                   /* width: 100%; */
                }
            }
        }
    }
    }
    >.back{
     
      /* background-color: #051a3a; */
      width: 100%;
      display: flex;
      height: 500px;
      /* margin: 20px 40px; */
      >div{
         background-image: url(image/imgi_19_dealers-location-map-2.png);
         width: 100%;
         height: 100%;
        background-repeat: no-repeat;
        background-size: cover;
         display: flex;
      }
    }
}
/* end */
.main-header{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    /* border: 1px solid black; */
    gap: 30px;
    position: relative;
    margin: 30px 0;
    padding-right: 20%;
    >figure{
        width: 10%;
        >img{
            width: 100%;
        }
    }
    >h2{
        color: black;
        font-size: 30px;
        font-weight: bold;
    }
    .rating{
        position: absolute;
        left: 75%;
        top: 50%;
        transform: translate(-50%,-50%);
        display: flex;
        align-items: center;
       
    }
    .rating input{
        display: none;
    }
    .rating label{
        display: block;
        cursor: pointer;
        width: 50px;
        background-color:#fff;
        &::before{
            content: '★';
            position: relative;
            display: block;
            font-size: 50px;
            color: #101010;
        }
        &::after{
            content: '★';
            position: absolute;
            display: block;
            font-size: 50px;
            color: #ffcd05;
            top: 0;
            transition: .5s;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
            opacity: 0;
        }
    }
    .rating label:hover::after,
.rating label:hover ~ label::after {
  opacity: 1;
}
.rating input:checked ~ label::after {
  opacity: 1;
}
>p{
    font-size: 20px;
    color: gray;
}
}
/* end */
.photo-car{
    display: flex;
    width: 100%;
    /* height: 300px; */
    border: 1px solid green;
    position: relative;
    >div{
        position: relative;
        >figure{
            width: 100%;
            height: 450px;
            position: relative;
             &::after{
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                display: flex;
                background-color:rgba(0, 0, 0, 0.534);
            }
           
            >img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                
            }
        }
        .item-part{
            /* border: 1px solid black; */
            width: 60%;
            position: absolute;
            top: 25%;
            left: 10%;
            line-height: 45px;
            >figure{
                width: 30%;
                >img{
                    width: 100%;
                }
            }
            >h2{
                font-size: 30px;
                color: white;
            }
            >p{
                font-size: 20px;
                color: white;
            }
            >div{
                margin: 40px 0;
                >a{
                    color: white;
                    border: 1px solid white;
                    font-size: 20px;
                    padding: 10px 30px; 
                    text-decoration: none;
                    transition: .5s;
                    text-transform: capitalize;
                    &:hover{
                     background-color: white;
                        color: black;
                        
                    }
                }
            }
            
        }
}
}
/* end */
.work-car{
    /* display: flex; */
    width: 100%;
    gap: 30px;
    height: 400px;
    position: relative;
    >div{
        display: flex;
        margin: 60px 50px;
        gap: 40px;
        height: 100%;
        >figure{
            width: 50%;
            height: 100%;
            position: relative;
            /* border: 10px solid red; */
             &:hover{
                >.overlay2{
                    opacity: 1;
                    background-color: #23324ac2;
                    height: 100%;
                }
            }
          
            >img{
                width: 100%;
                height: 100%;
               
            }
            >.overlay2{
                position: absolute;
                bottom: 0;
                left: 0;
                width:100%;
                height: 0%;
                background-color: rgba(0, 0, 0, 0.532);
                display: flex;
                opacity: 0;
                z-index: 6;
                transition: .5s;
                justify-content: center;
                z-index: 2;
                >i{
                    font-size: 30px;
                    color: white;
                    display: flex;
                    align-items: center;
                }

            }
            >.description{
        display: flex;
        flex-direction: column;
        width: 80%;
        /* border: 2px solid blue; */
        position: absolute;
        top: 80%;
        left: 0%;
        z-index: 9;
        background-color: white;
        line-height: 50px;
        font-weight:normal;
       padding: 30px 0;
       display: flex;
      >h3{
        font-size: 30px;

      }
      >span{
        font-size: 20px;
      }
      >p{
        color: rgba(18, 18, 116, 0.751);
        font-size: 20px;
      }
      >div{
        display: flex;
        >i{
            color: red;
            font-size: 20px;
            align-items: center;
            display: flex;
            >a{
                text-decoration: none;
                color: red;
                /* border: 1px solid black; */
                display: flex;
                align-items: center;
                font-style: normal;
                /* padding: 5px 30px; */

            }
        }
      }
    }
        }
        
    }
    
}
/* end */
.video{
   margin-top: 300px;
   display: flex;
   gap: 30px;
   width: 100%;
   justify-content: center;
   border: none;
   outline: none;
    >video{
        width: 45%;
        height: 400px;
    }
}
/* end */
.end-part{
    display: flex;
    width: 80%;
    height: 250px;
    background-color:  #2364c4;
    margin: 0 auto;
    line-height: 60px;
    text-transform: capitalize;
    padding: 30px 40px;
    justify-content: space-around;
    
    >div{
        >h3{
            font-size: 30px;
            color: white;
        }
        >p{
            font-size: 20px;
            color: white;
        }
        >div{
            margin: 30px 0;
            >a{
                text-decoration: none;
                color: black;
                background-color: white;
                padding: 10px 40px;
                color: white;
                background-color: #cd201f;
                transition: .5s;
                &:hover{
                    background-color: #051a3a;
                }
            
              

            }
        }
    }
    .menu{
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 40px;

      
        
        >i{
            color: white;
            font-size: 20px;
            display: flex;
            gap: 10px;
            align-items: center;
            >a{
                text-decoration: none;
                color: white;
                font-weight: normal;
                text-align: justify;
                justify-content: center;
              
            }
        }
      
    }
}
.footer{
    width: 100%;
    height: 300px;
    background-color: #0a326ff4;
    background-image: url(image/wave.svg);
    position: relative;
   >div{
  padding: 10px;
    >div{
        border-radius: 20px;
        width: 300px;
        /* padding: 5px 10px; */
        background-color: #051a3a;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        >i{
            font-size: 30px;
            color: white;
            >a{
                font-size: 20px;
                color:white;
                text-decoration: none;
                

            }
        }
    }
    
   }
    
   >.nai{
          display: flex;
          width: 40%;
          height: 20%; 
          /* border: 1px solid black; */
          padding: 10px 30px;
          margin: 100px 0;
          margin-left:60%;

          >nav{
            width: 100%;
            height: 100%;
           
            /* border: 1px solid red; */
            >ul{
                width: 100%;
                height: 100%;
                display: flex;
                justify-content: right;
                gap: 20px;
                >li{ 
                    width: 10%;
                   /* height: 100%; */
                    list-style-type: none;
                    border-radius: 5px;
                    /* padding: 15px 3px; */
                    /* border: 1px solid red; */
                    align-items: center;
                    &:nth-of-type(1){
                        background-color:#3b5998
                    }
                    &:nth-of-type(2){
                        background-color:black;
                    }
                    &:nth-of-type(3){
                        background-color:#c13584;
                    }
                    &:nth-of-type(4){
                        background-color:#cd201f;
                    }
                    >i{
                         width: 100%;
                          height: 100%;
                          display: flex;
                         align-items: center;
                          justify-content: center;
                         font-size: 20px;
                         color: white;
                    }
                }
            }
          }
        }
        >.end-menu{
            width: 40%;
            position: absolute;
            top: 40%;
            left: 0;
            margin: 40px 5px;
            >nav{
                >ul{
                    >li{
                        list-style-type: none;
                        >i{
                            padding: 0 5px;
                            color: black;
                        }
                        >a{
                            text-decoration: none;
                            font-size: 20px;;
                            color:#051a3a;
                        }
                    }
                }
            }
        }


}
.cont {
  width: 100%;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #333;
}

.card {
  position: relative;
  width: 350px;
  height: 190px;
  background: #333;
  transition: 0.5s;
}

.card:hover {
  height: 400px;
}

.card .lines {
  position: absolute;
  inset: 3px;
  background: #000;
  overflow: hidden;
}

.card .lines::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 120px;
  background: linear-gradient(transparent, #45f3ff, #45f3ff, #45f3ff, transparent);
  animation: animate 4s linear infinite;
}

.card .lines::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #292929;
}

.card .imageBox {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  background: #000;
  transition: 0.5s;
  z-index: 10;
  overflow: hidden;
}

.card:hover .imageBox {
  width: 250px;
  height: 250px;
}

.card .imageBox::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: linear-gradient(transparent, #ff3c7b, #ff3c7b, #ff3c7b, transparent);
  animation: animate 4s linear infinite;
}

.card .imageBox::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #292929;
}

.card .imageBox img {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  filter: grayscale(1);
  transition: 0.5s;
  z-index: 1;
}

.card:hover .imageBox img {
  filter: grayscale(0);
}


@keyframes animate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.card .content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: 0.5s;
}

.card .content .details {
  width: 100%;
  text-align: center;
  transition: 0.5s;
  transform: translateY(115px);
}

.card:hover .content .details {
  transform: translateY(100px);
}

.card .content .details h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #45f3ff;
  line-height: 1.2rem;
  margin-bottom: 50px;
}

.card .content .details h2 span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
}

.card .content .details .info {
  width: 100%;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-evenly;
  align-items: center;
  margin: 30px 0;
}

.card .content .details .info h3 {
  font-size: 1rem;
  color: #45f3ff;
  font-weight: 600;
  text-align: center;
}

.card .content .details .info h3 span {
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
}

.card .content .details .actions {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px
}

.card .content .details .actions button {
  min-width: 100px;
  padding: 10px 0;
  border: none;
  outline: none;
  background: #45f3ff;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.5s;
}

.card .content .details .actions button:nth-child(2) {
  background: #fff;
}

.card .content .details .actions button:hover {
  opacity: 1;
}

.card .content .details .actions button:active {
  opacity: 1;
  transform: scale(0.98);
}



       