html, body, * {
    font-family: Vazir, sans-serif !important;
    direction: rtl;
}
.navlinks{
    display: flex;
}

/* جلوگیری از خراب شدن فونت آیکون‌ها */
[class^="fa"], [class*=" fa-"], .fa, .fas, .far, .fab {
  font-family: "Font Awesome 6 Free" !important;
}
[class^="fa"], [class*=" fa-"], .fa, .fas, .far, .fab {
  font-family: "Font Awesome 5 Free" !important;
}

@import url('https://v1.fontapi.ir/css/Vazir:300;900');
.inline-photo {
    width: 20em;
    border: 1em solid #fff;
    border-bottom: 4em solid #fff;
    border-radius: .25em;
    box-shadow: 1em 1em 2em .25em #dfe5e8;
    margin: 2em 3.5em;
    opacity: 0;
    transform: translateY(4em) rotateZ(-5deg);
    transition: transform 4s .25s cubic-bezier(0, 1, .3, 1), opacity .3s .25s ease-out;
    will-change: transform, opacity;
    background: white;
    padding-left: 0.5rem;
}

.inline-photo.is-visible {
    opacity: 1;
    transform: rotateZ(0deg);
}

.cart-animation{
    margin-bottom: 3em;
}
.p-cart-animation{
    font-family: irultra;
    font-size: 18px;
}

@media screen and (max-width: 1074px) {
    .bannerimg{
        display: none !important;
    }
    .inline-photo{
        margin: 2em 2.5em !important;
    }
}
@media screen and (max-width: 993px) {
    .inline-photo{
        max-width: 28.666667% !important;
        padding-left: -3px !important;
        margin: 2em 1em !important;
    }
}
@media screen and (max-width: 874px) {
    .inline-photo{
        max-width: 33.666667% !important;
        padding-left: -3px !important;
        margin: 2em 2.5em !important;
    }
    .animation {
        margin-right: 50px !important;
        margin-left: -100px !important;
    }
}
@media screen and (max-width: 780px) {
    .animation {
        margin-right: 32px !important;
    }
}
@media screen and (max-width: 725px) {
    .inline-photo{
        max-width: 36.666667% !important;
        padding-left: -3px !important;
        margin: 2em 2.2em !important;
    }
    .animation {
        margin-right: -8px !important;
        margin-left: -85px !important;
    }
}
@media screen and (max-width: 660px) {
    .inline-photo{
        max-width: 38.666667% !important;
        padding-left: -3px !important;
        margin: 2em 1.4em !important;
    }
    .animation {
        margin-right: -8px !important;
        margin-left: -85px !important;
    }
}
@media screen and (max-width: 570px) {
    .inline-photo{
        max-width: 39.666667% !important;
        padding-left: -3px !important;
        margin: 2em 0.8em !important;
    }
    .animation {
        margin-right: -8px !important;
        margin-left: -85px !important;
    }
}
@media screen and (max-width: 530px) {
    .inline-photo{
        max-width: 50% !important;
        padding-left: -3px !important;
        margin: 2em 7.8em !important;
    }
    .animation {
        margin-right: -8px !important;
        margin-left: -85px !important;
    }
}
@media screen and (max-width: 500px) {
    .inline-photo{
        margin: 2em 6.8em !important;
    }
}
@media screen and (max-width: 460px) {
    .inline-photo{
        max-width: 59% !important;
        margin: 2em 4.5em !important;
    }
}
@media screen and (max-width: 414px) {
    .inline-photo{
        max-width: 63% !important;
        margin: 2em 3.2em !important;
    }
}
@media screen and (max-width: 375px) {
    .inline-photo{
        max-width: 64% !important;
        margin: 2em 2.5em !important;
    }
}
@media screen and (max-width: 360px) {
    .inline-photo{
        max-width: 65% !important;
        margin: 2em 2.2em !important;
    }
}


/* 📱 تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 1025px) {

  /* --- Navbar --- */
  .navbar-brand {
    font-size: 16px !important;
  }
  .navbar-brand img {
    width: 50px !important;
    height: auto !important;
    margin-right: 0 !important;
  }
  .navbar-nav .nav-item {
    margin-left: 0 !important;
    margin-bottom: 8px;
  }

  /* --- هدر و بنر بالا --- */
  div[style*="height: 450px"] {
    height: 260px !important;
  }
  div[style*="height: 450px"] img {
    height: 260px !important;
  }
  div[style*="height: 450px"] span {
    font-size: 22px !important;
    width: 90% !important;
    left: 5% !important;
    top: 10% !important;
  }
  div[style*="height: 450px"] p {
    font-size: 17px !important;
    width: 90% !important;
    left: 5% !important;
    top: 35% !important;
  }
  div[style*="height: 450px"] img.bannerimg {
    display: none !important;  /*حذف دایره بزرگ سمت راست در موبایل */
  }

  /* --- درباره ما --- */
  #aboutUs + .container-fluid {
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px !important;
    margin-top: 20px !important;
  }
  #aboutUs + .container-fluid img {
    width: 100% !important;
    height: auto !important;
    margin: 20px 0 !important;
  }
  #aboutUs + .container-fluid p {
    text-align: justify !important;
    font-size: 15px !important;
    width: 100% !important;
  }

  /* --- خدمات و تعرفه‌ها --- */
  #services + .container-fluid .row {
    flex-direction: column !important;
    height: auto !important;
    background-color: white !important;
  }
  #services + .container-fluid .col-lg-3 {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 20px;
    background-color: white !important;

  }
  #upload{
    background-color: white !important;
  }
  .animation{
    width: 100% !important;
    background-color: white !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
  }
  .cards{
    height: 220px !important;
  }
  .upload-click{
    margin-right: 5px !important;
  }
  .upload-click-link{
    font-weight: 500 !important;
  }
  .price{
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  .upload-click-link{
    font-weight: 500 !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    border-radius: 5% !important;
    font-size: 13px !important;
  }


  /* --- خدمات ترجمه غیر رسمی --- */
  #services ~ .container-fluid {
    margin-top: 650px;
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px !important;
  }
  #services ~ .container-fluid h3 {
    font-size: 18px !important;
  }
  #services ~ .container-fluid p {
    font-size: 14px !important;
  }
  .unlegaltrans{
    display: flex !important;
    flex-direction: column !important;
  }
  .unlegal-services-title{
    margin-bottom: 30px !important;
  }
  

  /* --- فوتر --- */
  footer .row {
    flex-direction: column !important;
  }
  footer .col-md-3,
  footer .col-md-2,
  footer .col-md-4 {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  footer h6 {
    font-size: 16px !important;
  }
  footer p, footer a, footer span {
    font-size: 14px !important;
  }
  footer img.bannerimg {
    display: none !important;
  }
  .footer-priv{
    font-size: 15px !important;
  }
  /* --- آپلود مدارک --- */
  #upload {
    padding: 20px !important;
  }
  #upload .col-lg-3 {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  .doc-explain{
    margin-right: 5px !important;
    font-size: 15px !important;
  }
  .label{
    font-size: 13px !important;
    text-align: start !important;
  }
}