.footer{
  position: relative;
   border-top: 1px solid #cacacaa9;
   padding-top: 40px;
}

.footer-bg{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  z-index: -1;
}
/* نسخه موبایل */
@media (max-width: 768px){
   .footer-bg {
    width: 100vw;      
    max-width: 100vw;  
    height: 520px;     
    object-fit: cover; 
    left: 50%;
    transform: translateX(-50%);
  }
}
/* top footer */
.top-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 7;
    padding-bottom: 40px;
}
.footer-logo{
    width: 200px;
}
.footer-desc{
    max-width: 360px;
}
.footer-title{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.footer-link{

}
.link-column{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.footer-access-links{
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: row;
}
.double-column{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.second-cloumn{
    margin-top: 40px;
    margin-right: 40px;
}



/* Tablet */
@media (max-width: 1024px){

.top-footer{
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-desc{
    max-width: 100%;
}

.footer-access-links{
    flex-wrap: wrap;
    gap: 40px;
}

}

/* mobile */
@media (max-width:768px){

.top-footer{
    display:flex;
    flex-direction:column;
    gap:30px;
    align-items:flex-start;
}

.footer-access-links{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    width:100%;
}

.second-cloumn{
    margin:0;
}

.footer-logo{
    width:160px;
}

.footer-desc{
    max-width:100%;
    line-height:1.8;
}

.link-column{
    align-items:flex-start;
}
}


/* bottom footer */
.footer-txt{
    max-width: 800px;
}
.bottom-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding-bottom: 40px;
}
.namad-logo-img{
    width: 100px;
}
.bottom-footer-title{
    margin-bottom: 10px;
}

.footer-raya-desc{
    text-align: justify;
}

@media (max-width: 1401px){
    .footer-txt{
        max-width: 70%;
    }
}
@media (max-width: 1206px){
    .footer-txt{
        max-width: 60%;
    }
}
@media (max-width:995px){
    .bottom-footer{
        flex-direction: column;
        
    }
    .bottom-footer{
        padding: 20px;
    }
    .namad-container{
        margin-top: 20px;
    }
    .footer-txt{
        max-width: 100%;
    }
    
}