/**
 * Backport some basic styles from Bootstrap 3
 */
html {
  /* base for the rem unit */
  font-size: 10px;
}
body {
  font-family: arjangFontIS, IranSans, tahoma, serif;
  line-height: 2.9rem;
  /* will be inherited by most elements */
  font-size: 14px;
  font-weight: 400;
}

/**
 * Style headings
 */
.h1, .h2, .h3, h1, h2, h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}
.h4, .h5, .h6, h4, h5, h6 {
  margin-top: 10px;
  margin-bottom: 10px;
}
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  line-height: 4.2rem;
  color: inherit;
}
.h1, h1 {
  font-size: 36px;
  font-family: ArjangFontIY, IranSans, Tahoma, serif;
  font-weight: 900;
}
.h2, h2 {
  font-size: 30px;
  font-family: ArjangFontIY, IranSans, Tahoma, serif;
  font-weight: 500;
}
.h3, h3 {
  font-size: 24px;
  font-family: ArjangFontIS, IranSans, Tahoma, serif;
  font-weight: 400;
}
.h4, h4 {
  font-size: 18px;
  font-family: ArjangFontIS, IranSans, Tahoma, serif;
  font-weight: 400;
}
.h5, h5 {
  font-size: 14px;
  font-family: ArjangFontIS, IranSans, Tahoma, serif;
  font-weight: 300;
}
.h6, h6 {
  font-size: 12px;
  font-family: ArjangFontIS, IranSans, Tahoma, serif;
  font-weight: 300;
}


a {
  text-decoration: none;
}
.btn, .form-control, .form-select {
  font-size: 1.45rem;
}
.dropdown-menu {
  font-size: 1.3rem;
}
label {
  font-weight: 700;
}
table {
  caption-side: top;
}


html {
  scroll-behavior: smooth;
}

body {
  background-color: #f2f2f2;
}

.field .label-inline {
  display: inline;
}

/**
 * Style breadcrumb
 */
.breadcrumb > li + li::before {
  color: #aaa;
  content: "/";
}
.breadcrumb {
  font-size: 0.9em;
  background-color: #fafafa;
  padding: 0.3em 2em;
  margin: 1em 0 2.5em;

  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  -o-border-radius: 15px;
  border-radius: 15px;
}
.breadcrumb a {
  color: #757575;
}

/**
 * Style breadcrumb in hero
 */
.breadcrumb-in-hero .breadcrumb {
  background-color: #5555;
  width: -moz-fit-content;
  width: fit-content;
}
.breadcrumb-in-hero .breadcrumb .breadcrumb-item,
.breadcrumb-in-hero .breadcrumb .breadcrumb-item a,
.breadcrumb-in-hero .breadcrumb > li + li::before {
  color: #eee;
}

/**
 * Global style for bootstrap panels and accordions (Both BS3 & BS5)
 *
 * Example markuo: used in teachercourse node type: course content table.
 * @see templates/paragraphs/paragraph--course-content-table.html.twig
 */
.card-group, .card {
  margin-bottom: 20px;
}
.panel,
.card {
  border: 0 none;
  background-color: #fff;
  -moz-box-shadow: 0 3px 29px 0 rgba(0,0,0,0.06);
  -webkit-box-shadow: 0 3px 29px 0 rgba(0,0,0,0.06);
  -o-box-shadow: 0 3px 29px 0 rgba(0,0,0,0.06);
  box-shadow: 0 3px 29px 0 rgba(0,0,0,0.06);
}
.panel .panel-heading,
.card .card-header {
  background-image: none;
  background-color: transparent;
  padding: 0;
}
.panel .panel-title .indicator,
.card .card-title .indicator {
  margin-top: -25px;
}
.panel .panel-title .accordion-toggle > .row,
.card .card-title .accordion-toggle > .row {
  margin-left: 10px;
}
.panel .panel-title .accordion-toggle .indicator,
.card .card-title .accordion-toggle .indicator {
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);

  -webkit-transition: all 0.4s;
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  transition: all 0.4s;
}
.panel .panel-title .accordion-toggle[aria-expanded=true] .indicator,
.card .card-title .accordion-toggle[aria-expanded=true] .indicator {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
}
.panel .panel-title .accordion-toggle,
.card .card-title .accordion-toggle {
  padding: 15px;
  display: block;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.5rem;
}
.card .card-title .accordion-toggle {
  padding: 5px 15px 10px;
}
.card-title a {
  color: inherit;
}

/* remove barrio's unneeded border */
.block-help {
  border: 0 none;
}

/**
 *barrio, forces all form elements full width, prevent form action (submit buttons) to become full-width
 */
.form-actions .form-control, .form-submit {
  /* undo width: 100% */
  width: auto;
}

/**
 * Style pagers
 */
ul.pagination {
  font-size: 1.6rem;
  margin: 2rem 1rem;
}
ul.pagination .page-link {
  background-color: transparent;
  color: #003975;
  margin: 0 3px !important;
  padding: 4px 11px !important;
  display: inline-block;
  border-radius: 3px;
  border: 2px solid #003975;
  font-weight: bold;
}
ul.pagination .page-link:hover {
  background-color: #003975;
  color: #fff;
}

ul.pagination .page-item.active .page-link {
  color: #fff;
  border-color: #f7941e !important;
  background-color: #f7941e;
}

/* make pagers responsive (this class is added in pager.html.twig */
.pagination.arjang-responsive-pager-fix {
  flex-wrap: wrap !important;
}
.pagination.arjang-responsive-pager-fix li {
  margin-bottom: 0.8rem;
}

/**
 * Alternative pager style (Should be replaced with the above style)
 */
/*
ul.pagination {
  margin-bottom: 2rem;
}
ul.pagination .page-link {
  background-color: #003975;
  color: #fff;
  margin: 0 3px !important;
  padding: 4px 11px !important;
  display: inline-block;
  border-radius: 3px;
  border: 2px solid transparent !important;
}
ul.pagination .page-link:hover {
  background-color: transparent;
  border-color: #003975 !important;
  color: #003975;
}

ul.pagination .page-item.active .page-link {
  color: #fff;
  background-color: #f7941e;
}
ul.pagination .page-item.active .page-link:hover {
  background-color: #f7941e;
  border-color: transparent !important;
  color: #fff;
}
*/


/**
 * Global style for bootstrap tabs (both BS3, BS5)
 */
.nav-tabs {
  margin-bottom: 2rem;
}
.nav-tabs li a,
.nav-tabs .nav-link {
  background-color: transparent !important;
  border: 0 none !important;
  border-bottom: 2px solid transparent !important;
  padding: 1.5rem;
  color: #000 !important;
  font-weight: bold;
  font-size: 1.8rem;
}
.nav-tabs li a:hover, .nav-tabs .nav-link:hover,
.nav-tabs li a:focus, .nav-tabs .nav-link:focus {
  border: 0 none !important;;
  color: #000;
  background-color: transparent !important;
}
.nav-tabs li.active a, .nav-tabs .nav-link.active,
.nav-tabs li a:hover, .nav-tabs .nav-link:hover {
  border-bottom: 2px solid #f7941e !important;
}
.nav-tabs li {
  margin-left: 10px;
}
.nav-tabs li a:focus {
  outline: none;
}

/**
 * Add this class to anchor links to move them virtually above their actual position
 * so that when scrolling to the anchor, the target element does not go under our top sticky headers.
 */
.arjang-anchor {
  position: relative;
  display: block;
  visibility: hidden;
  top: -150px;
}

/**
 * Style blocks in sidebar first
 */
#region-sidebar-first .block {
  background-color: #f8f8f8;
  margin-bottom: 2em;

  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;

  -moz-box-shadow: 1px 0 4px #d2d2d2;
  -webkit-box-shadow: 1px 0 4px #d2d2d2;
  box-shadow: 1px 0 4px #d2d2d2;
}

#region-sidebar-first .block .block-title {
  background-color: #0b2644ba;
  margin: 0 0 1em;
  color: #fff;
  padding: 0.9rem;
  font-size: 1.7rem;
  text-align: center;

  -moz-border-top-left-radius: inherit;
  -webkit-border-top-left-radius: inherit;
  -o-border-top-left-radius: inherit;
  border-top-left-radius: inherit;

  -moz-border-top-right-radius: inherit;
  -webkit-border-top-right-radius: inherit;
  -o-border-top-right-radius: inherit;
  border-top-right-radius: inherit;
}
#region-sidebar-first .block a {
  color: #0a3a75;
}
#region-sidebar-first .block a:hover {
  color: #0056b3;
  text-decoration: underline;
}
#region-sidebar-first ul {
  list-style-image: url('../asset/arrow.png');
  padding: 0 3.5rem 2rem 0.7rem;
}
#region-sidebar-first ul li {
  margin-bottom: 0.7rem;
}

/**
 * Style fields (style missing in bootstrap theme!!)
 * Style inline/block field labels.
 */
.field .field--label {
  font-weight: bold;
}
.field .field--label::after {
  content: ': ';
  font-weight: bold;
}
.field--label-inline .field--label,
.field--label-inline > .field--items,
.field--label-inline > .field--item {
  display: inline;
}

/**
 * Style unpublished nodes
 */
.is-unpublished {
  border: 5px solid pink;
}

/**
 * Restore old classes from D7 ckeditor
 */
.rtejustify {
  text-align: justify;
}
.rtecenter {
  text-align: center;
}

/**
 * Style page nodes
 */
body.node--type-page .region-content h1.title {
  background-color: #fbfbfb;
  text-align: center !important;
  padding: 0.5rem;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
  -moz-box-shadow: 0 3px 20px 0 rgba(0,0,0,0.04);
  -webkit-box-shadow: 0 3px 20px 0 rgba(0,0,0,0.04);
  -o-box-shadow: 0 3px 20px 0 rgba(0,0,0,0.04);
  box-shadow: 0 3px 20px 0 rgba(0,0,0,0.04);
}


/**
 * Style layout builder
 */
#drupal-off-canvas .layout-selection {
  direction: ltr;
}
/* prevent override of this font */
.glyphicon {
  font-family: 'Glyphicons Halflings' !important;
}

/**
 * Style menu toolbar. fix problems.
 */
.toolbar-menu .menu-item > span {
  padding-top: 0.6em;
  padding-bottom: 0.6em;
}

/**
 * Style image upload widget (file_managed in form API)
 * (When the file has been uploaded, and is in preview mode)
 */
.file > .file-link::after {
  content: '‏';
}
.file > .file-icon {
  margin-left: 5px;
}
.file > .file-link {
  margin-left: 10px;
}
.file > .file-size::before {
  content: '(';
}
.file > .file-size::after {
  content: ')';
}

/**
 * Style messages box as fixed, when it has the .messages-area-fixed class
 *
 * THIS STYLE IS CANDIDATE TO BE APPLIED TO WHOLE SITE
 */
#messages_area.messages-area-fixed {
  position: fixed;
  bottom: 1rem;
  z-index: 1000;
  left: 2rem;
  max-width: 65rem;
  min-width: 23rem;
  min-height: 8rem;
}
#messages_area.messages-area-fixed .alert {
  -moz-box-shadow: 0 0 10px #8888;
  -webkit-box-shadow: 0 0 10px #8888;
  box-shadow: 0 0 10px #8888;

  padding-top: 2rem;
  padding-bottom: 2rem;
}

/**
 * Hide recaptcha (V3) badge
 */
.grecaptcha-badge {
  visibility: hidden;
}

/**
 * Style bootstrap tooltips (mostly used in products teasers, aka shop catalog page)
 *
 * Run this code to make a tooltip always visible
 * jQuery('#<tooltip-id>').tooltip('show');
 */
.tooltip-inner {
  background-color: #f7941e;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0.4rem 1rem;
}
.tooltip .tooltip-arrow:before {
  border-top-color: #f7941e;
  border-width: 0.8rem 0.8rem 0;
}

/**
 * Reduce container size to match Mohsen Ghaderi's
 */
@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1140px;
  }
}

/**
 * Default colors for links
 */
a {
  color: #003975;
}
a:hover {
  color: #015ab2;
}

/**
 * Style invalid form input elements
 */
input:not(:placeholder-shown):not(:focus):invalid {
  border: 1px solid #f99;
  box-shadow: 0 0 3px #f77;
}

/**
 * Style secondary tabs
 */
.tabs--secondary {
  display: block;
  padding-bottom: 5px;
  margin: 2em 1em -1.1em 0 !important;
  border: 3px solid transparent !important;
}
.tabs--secondary li {
  display: inline;
}
.tabs--secondary li a {
  display: inline-block;
  float: none;
  font-size: 15px;

  -moz-border-radius: 5px 5px 0 0;
  -webkit-border-radius: 5px 5px 0 0;
  -o-border-radius: 5px 5px 0 0;
  border-radius: 5px 5px 0 0;

  padding: 6px 13px 6px;
  margin-left: 0.5em;

  white-space: nowrap;
}
.tabs--secondary li a.active {
  background-color: #fff !important;
}
.tabs--secondary li a.active:hover {
  background-color: #fff !important;
}

/**
 * Make password fields ltr
 */
input[type=password] {
  direction: ltr;
  text-align: left;
}

/**
 * Remove buggy style from jquery.ui
 */
.ui-dialog .button {
  background-image: none;
}
.ui-dialog {
  font-family: inherit;
}

/**
 * Fix style bug for status messages (caused by fucking bootstrap_barrio)
 */
.alert .alert-heading,
.alert .alert-heading + hr {
  display: none;
}
.alert svg {
  max-height: 2rem;
}
