/* Canonical internal-page header and navigation. The home page does not load this file. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.internal-site-page {
  direction: rtl;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
}

body.internal-site-page .site-header {
  position: relative !important;
  z-index: 30 !important;
  width: 100% !important;
  height: 66px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-bottom: 1px solid #dac69d !important;
  background:
    radial-gradient(circle at 15% 20%, rgba(174, 125, 52, .10), transparent 26%),
    linear-gradient(180deg, #faf4e7 0%, #f7eedc 100%) !important;
}

body.internal-site-page .site-header::before,
body.internal-site-page .site-header::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 66px;
  opacity: .08;
  background: repeating-linear-gradient(8deg, #705638 0 1px, transparent 1px 19px);
  transform: rotate(-8deg);
  pointer-events: none;
}

body.internal-site-page .site-header::before { right: -80px; top: 0; }
body.internal-site-page .site-header::after { left: -100px; bottom: 0; }

body.internal-site-page .site-header .identity {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 66px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.internal-site-page .site-header .bank-logo-img {
  display: block !important;
  width: auto !important;
  height: 58px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.55) !important;
  transform-origin: center center !important;
}

body.internal-site-page .main-nav {
  position: relative !important;
  z-index: 9000 !important;
  width: 100% !important;
  min-height: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  direction: rtl !important;
  overflow: visible !important;
  border-top: 1px solid rgba(193, 157, 96, .16) !important;
  border-bottom: 1px solid rgba(193, 157, 96, .22) !important;
  background: linear-gradient(180deg, #182632 0%, #111c25 100%) !important;
  box-shadow: 0 7px 20px rgba(22, 18, 13, .13) !important;
}

body.internal-site-page .main-nav .nav-main-links {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  direction: rtl !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

body.internal-site-page .main-nav .nav-main-links::-webkit-scrollbar { display: none !important; }

body.internal-site-page .main-nav .nav-main-links > a {
  position: relative !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #eee4d4 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

body.internal-site-page .main-nav .nav-main-links > a:hover {
  background: rgba(255, 255, 255, .06) !important;
  color: #fffaf2 !important;
}

body.internal-site-page .main-nav .nav-main-links > a::after {
  right: 10px !important;
  left: 10px !important;
}

body.internal-site-page .main-nav .nav-account-zone {
  flex: 0 0 auto !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
}

@media (min-width: 821px) and (max-width: 1450px) {
  body.internal-site-page .main-nav .nav-main-links > a {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 820px) {
  body.internal-site-page .site-header {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 8px !important;
  }

  body.internal-site-page .site-header .identity {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
  }

  body.internal-site-page .site-header .bank-logo-img {
    height: 50px !important;
    transform: scale(1.35) !important;
  }

  body.internal-site-page .main-nav {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  body.internal-site-page .main-nav .nav-main-links {
    order: 1 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 8px !important;
  }

  body.internal-site-page .main-nav .nav-account-zone {
    order: 2 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 62px !important;
    padding: 9px 16px !important;
    justify-content: center !important;
    border-top: 1px solid rgba(213, 181, 126, .13) !important;
    background: #111c25 !important;
  }
}

@media print {
  body.internal-site-page > .site-header,
  body.internal-site-page > .main-nav { display: none !important; }
}
