/* ===== استایل‌های مخصوص نسخه‌ی انگلیسی (چپ‌به‌راست) ===== */
body {
  direction: ltr;
  text-align: left;
}

.text-center {
  text-align: center !important;
}

/* ===== هدر انگلیسی (دسکتاپ): چیدمان چپ‌به‌راست؛ لوگو و نوشته‌ی انگلیسی چپ، دکمه‌ها راست ===== */
.navbar,
.navbar .container,
.navbar-nav,
.navbar-collapse {
  direction: ltr !important;
}

.navbar .dropdown-menu,
.navbar .dropdown-item {
  direction: ltr !important;
  text-align: left !important;
}

@media (min-width: 992px) {
  /* لوگوی خوشنویسی (راست) و لوگوی کوه + نوشته‌ی انگلیسی (چپ) دقیقاً مثل نسخه‌ی فارسی؛ اندازه‌ها از site-components.css می‌آید */
  .navbar .logo-wrapper .logo-img {
    display: none !important;
  }
  .navbar .logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: -1px;
    /* هم‌تراز شدن لبه‌ی لوگوها با نسخه‌ی فارسی */
  }
  .navbar .logo-wrapper .logo {
    display: block;
    order: 2;
  }
  .navbar .logo-wrapper .logo2-item {
    order: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  .navbar .logo-wrapper .logo2-ball {
    display: block;
  }
  .navbar .logo-wrapper .logo2-img {
    display: block !important;
    width: 150px !important;
    height: auto !important;
  }
.navbar.nav-scroll .logo-wrapper .logo2-img {
    width: 130px !important;
  }
}

@media (min-width: 992px) {
  .navbar .navbar-nav {
    flex-direction: row-reverse !important;
  }
  .navbar .navbar-nav .lang-logo-row {
    flex-direction: row-reverse !important;
  }
}

/* ===== ارقام لاتین در نسخه‌ی انگلیسی =====
   فونت Peyda ارقام را به شکل فارسی نشان می‌دهد؛ برای ۰-۹ از فونت‌های سیستم استفاده می‌شود (حروف همان Peyda می‌مانند). */
@font-face {
  font-family: "peyda";
  src: local("Segoe UI"), local("Arial"), local("Helvetica Neue"), local("Roboto"), local("DejaVu Sans");
  unicode-range: U+0030-0039;
}

/* ===== صفحه‌ی تماس انگلیسی: کارت‌ها چپ‌چین ===== */
.contact .widget,
.contact .widget * {
  text-align: left;
}

.contact .widget {
  direction: ltr;
}

.contact .contact-box,
.contact .contact-box * {
  text-align: left !important;
  direction: ltr !important;
}

.contact .contact-box .widget,
.contact .contact-box [class*="item"],
.contact .contact-box [class*="info"] {
  align-items: flex-start !important;
}

.contact .contact-box i,
.contact .contact-box [class*="icon"] {
  margin-left: 0 !important;
  margin-right: auto !important;
  float: none !important;
}

.contact-box .item,
.contact-box .item * {
  text-align: left !important;
}

.contact-box .item > i,
.contact-box .item > [class*="icon"],
.contact-box .item > img,
.contact-box .item > span {
  margin-left: 0 !important;
  margin-right: auto !important;
  float: none !important;
  display: block;
}

.navbar .dropdown-menu .dropdown-item {
  justify-content: flex-start !important;
  text-align: left !important;
}

/* ===== فونت انگلیسی: Ubuntu (از Google Fonts؛ برای کار بدون اینترنت فایل فونت را در Site/fonts بگذارید) ===== */
body,
:is(h1,h2,h3,h4,h5,h6,p,a,span,li,button,input,textarea,select,label,small,strong,b,th,td,div):not([class*="fa-"]):not([class*="ti-"]):not([class*="flaticon"]):not([class*="omfi-"]) {
  font-family: "Ubuntu", "Segoe UI", Arial, sans-serif !important;
}

.hero-company-name {
  font-weight: 700;
  letter-spacing: -.5px !important;
}

/* ===== هدر انگلیسی (دسکتاپ): منو وسط‌چین، لوگو سمت چپ ===== */
@media (min-width: 992px) {
  .navbar .navbar-collapse {
    justify-content: center;
  }
  .navbar .navbar-nav {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 992px) {
  .navbar .navbar-nav {
    justify-content: center !important;
  }
}

/* ===== فوتر انگلیسی: فاصله‌ی متن از آیکون‌های تماس، ایمیل و آدرس ===== */
.footer .footer-contact-link-wrapper {
  gap: 16px !important;
}

.footer .footer-contact-link-wrapper .footer-contact-link-content {
  margin-left: 0;
  margin-right: 0;
}

.home-overview .ov-btn i {
  transform: scaleX(-1);
}

.home-overview .ov-stat strong,
.home-overview .ov-card h3 {
  letter-spacing: 0;
}

@media (min-width: 992px) {
  .navbar .navbar-nav .lang-logo-row .logo2-item {
    margin: 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-link .ti-angle-down {
    margin-left: 9px !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 992px) {
  .navbar .logo-wrapper .logo2-item {
    gap: 5px;
  }
}

/* ===== هدر انگلیسی: منو دقیقاً وسط صفحه، لوگوهای چپ هم‌اندازه‌ی نسخه‌ی فارسی ===== */
@media (min-width: 992px) {
.navbar .navbar-collapse {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex: none !important;
    width: auto !important;
    margin: 0 !important;
  }
  .navbar .navbar-nav {
    margin: 0 !important;
  }
}

.cert-card {
  direction: ltr;
}

/* در عرض‌های ۹۹۲ تا ۱۱۹۹ مثل نسخه‌ی فارسی فقط لوگوی کوه دیده می‌شود (جا برای منو) */
@media (min-width: 992px) and (max-width: 1199.98px) {
}

/* ===================================================================
   جای لوگوی چپ در هدر انگلیسی = دقیقاً جای آن در هدر فارسی
   در فارسی لوگوی چپ کنار منو «بسته‌بندی» می‌شود و با عرض صفحه جابه‌جا می‌شود؛
   این چند عدد (به‌ازای هر بازه‌ی عرض) همان جابه‌جایی را در نسخه‌ی انگلیسی هم اعمال می‌کند.
   =================================================================== */
@media (min-width: 1440px) and (max-width: 1519.98px) {
  .navbar .logo-wrapper .logo2-item {
    margin-left: 0;
  }
}

@media (min-width: 1520px) and (max-width: 1599.98px) {
  .navbar .logo-wrapper .logo2-item {
    margin-left: -56px;
  }
}

@media (min-width: 1600px) and (max-width: 1799.98px) {
  .navbar .logo-wrapper .logo2-item {
    margin-left: calc(-84px - (100vw - 1600px) * 0.0889);
  }
}

@media (min-width: 1800px) {
  .navbar .logo-wrapper .logo2-item {
    margin-left: -126px;
  }
}

/* زیرمنوهای نسخه‌ی انگلیسی: چپ‌چین */
.navbar .dropdown-menu,
.navbar .dropdown-menu .dropdown-item,
.navbar .dropdown-menu .dropdown-item span {
  direction: ltr !important;
  text-align: left !important;
  justify-content: flex-start !important;
}

/* صفحه‌ی مدیران: چارت دقیقاً مثل نسخه‌ی فارسی (آواتار و خط اتصال سمت راست)؛ فقط متن انگلیسی است */
.org-chart-section,
#depTabs,
#depPanel {
  direction: rtl;
}

/* ===== هدر انگلیسی: اندازه‌ی لوگوها دقیقاً مثل نسخه‌ی فارسی (دسکتاپ) =====
   فارسی: کوه ۹۲px | نوشته‌ی انگلیسی ۱۵۰×۳۴ | لوگوی خوشنویسی ۲۰۰px
   بعد از اسکرول: ۷۶px | ۱۳۰px | ۱۷۰px */
@media (min-width: 992px) {
  .navbar .logo-wrapper .logo2-ball {
    width: 92px;
    height: auto;
  }
  .navbar .logo-wrapper .logo2-item .logo2-img {
    width: 150px !important;
    height: 34px !important;
    max-width: 100% !important;
    object-fit: contain;
  }
  .navbar .logo-wrapper .logo-fa {
    width: 200px;
    max-width: none;
    height: auto;
  }
  .navbar.nav-scroll .logo-wrapper .logo2-ball {
    width: 76px;
  }
  .navbar.nav-scroll .logo-wrapper .logo2-item .logo2-img {
    width: 130px !important;
  }
  .navbar.nav-scroll .logo-wrapper .logo-fa {
    width: 170px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .logo-wrapper .logo2-ball {
    width: 72px;
  }
  .navbar .logo-wrapper .logo-fa {
    width: 150px;
  }
  .navbar .logo-wrapper .logo2-item .logo2-img {
    display: none !important;
  }
}

/* ===== صفحه‌ی تماس انگلیسی: هر چهار باکس هم‌ارتفاع (متن‌های طولانی‌تر باکس‌ها را ناهم‌اندازه می‌کرد) ===== */
.contact-box .row {
  display: flex;
  flex-wrap: wrap;
}
.contact-box .row > [class*="col-"] {
  display: flex;
}
.contact-box .row > [class*="col-"] > .item {
  width: 100%;
  height: auto;
}

/* ===== زیرمنوهای انگلیسی: متن در حالت هاور با بکگراندش پدینگ داشته باشد ===== */
@media (min-width: 992px) {
  .navbar .dropdown-menu .dropdown-item {
    padding: 8px 16px !important;
  }
  .navbar .dropdown-menu .dropdown-item span {
    margin-right: 0;
    margin-left: 0;
    text-align: left !important;
  }
  .navbar .dropdown-menu li:hover {
    transform: translateX(5px);
  }
}

/* ===== هدر انگلیسی در موبایل: لوگوی نوشته‌ی انگلیسی (GRS-logo-EN.png) نمایش داده نشود ===== */
@media (max-width: 991.98px) {
  .navbar .logo-wrapper .logo2-item .logo2-img {
    display: none !important;
  }
}
