#header_top_bar {
  background-color: #ececec;
}

#main-menu-nav-wrapper a {
  color: #003975;
}

#header_nav_bar {
  /* set a z-index, used by blog featured2 design (blog home page /blog */
  position: relative;
  z-index: 1;
}

#header_nav_bar .dl-trigger {
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  width: 27px;
}

#header_nav_bar #main_menu_row {
  background-color: #ffffffcc;

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

  border: 1px solid #00397552;
}
.has-hero #header_nav_bar #main_menu_row {
  border: 0 none;
}

/**
 * ResponsiveMultiLevelMenu
 */
.dl-menuwrapper {
  direction: ltr;
  z-index: 100;
}

.top-header {
  background-color: #fff;
}

ul#main-menu-nav {
  list-style: none;
  margin: 0;
}
ul#main-menu-nav li {
  display: inline-block;
  padding: 11px 10px;
  font-size: 1.5rem;
  font-weight: 500;
}

.portal-link a, .portal-link a:hover, .portal-link a:focus {
  text-decoration: none;
  color: #1c1c1c;
}
.portal-link .far {
  margin-left: 0.6em;
}

.navbar-arjang {
  border: none;
}
.navbar-arjang .navbar-btn {
	margin: 0 1em;
	padding: 2px 0;
}

.region-navbar-search {
  margin-top: 10px;
}
.region-navbar-search .form-item {
  margin-bottom: 0;
}

/* Optional: replace the refresh icon with search icon in search box */
.region-navbar-search .input-group-addon .glyphicon:before,
#coursesearch-search-form .form-item-coursesearch .input-group-addon .glyphicon:before {
  content: "\e003";
}

.navbar-brands-list {
  background-color: #1A3771;
  padding: 0.5em;
}
.navbar-brands-list div {
  background-color: inherit;
}
.navbar-brands-list img {
  /* Avoid image overlap with other images */
  width: 100%;
}
.navbar-brands-list-xs img {
  width: auto;
  margin: 10px 0;
}
.navbar-brands-list button.dropdown-toggle {
  background: none;
  color: #fff;
  border: none;
}
.navbar-arjang {
  margin-bottom: 0 !important;;
}

/**
 * Homepage cover
 */
.cover-contact {
  text-align: center;
  padding: 4em 0 3em;
}
.cover-contact h3 {
  color: #fff;
  font-weight: bold;
}

.cover-three-wrapper {
  margin: 3em 0;
}
.cover-three-wrapper img {
  width: 50px;
}
.cover-three-wrapper span {
  font-size: 1.75em;
  /* color: #6a6b6c; */
  color: #fff;
  display: block;
}
.cover-three-wrapper a,
.cover-three-wrapper a:hover,
.cover-three-wrapper a:focus {
  text-decoration: none;
  color: #6a6b6c;
}


/* Hero */
#hero-wrapper {
  /* margin-top: -20px; */
  background-image: url('../asset/herocover.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin-bottom: 6em;
}

#hero-inner {
  background-color: rgba(0,10,37,0.47);
}

#hero-wrapper .cover-main {
  margin: 120px 0;
  color: #fff;
  text-align: center;
}

#hero-wrapper .cover-items {
  position: relative;
  top: 5.2em;
}


#hero-wrapper .cover-items a.cover-item {
  display: block;
  background-color: #fff;
  margin-bottom: 10px;

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

  text-align: center;
  border-bottom: 5px solid #002b58;

  transition: all 0.2s;

  -moz-box-shadow: 2px 1px 5px rgba(0,0,0,0.2);
  -webkit-box-shadow: 2px 1px 5px rgba(0,0,0,0.2);
  -o-box-shadow: 2px 1px 5px rgba(0,0,0,0.2);
  -ms-box-shadow: 2px 1px 5px rgba(0,0,0,0.2);
  box-shadow: 2px 1px 5px rgba(0,0,0,0.2);
}

#hero-wrapper .cover-items a.cover-item:hover {
  margin-top: -10px;
  margin-bottom: 20px;
}

/* fix for small screens */
@media (max-width: 768px) {
  #hero-wrapper .cover-items a.cover-item {
    margin-top: 60px;
  }

  #hero-wrapper .cover-items a.cover-item:hover {
    margin-top: 60px !important;
    margin-bottom: 10px !important;
  }
}


#hero-wrapper .cover-items a.cover-item .fas {
  display: inline-block;
  margin: -51px auto 18px;
  font-size: 39px;
  color: #fff;
  background-color: #003975;
  padding: 32px;

  -moz-border-radius: 70px;
  -webkit-border-radius: 70px;
  -o-border-radius: 70px;
  border-radius: 70px;
}

#hero-wrapper .cover-items a.cover-item span {
  color: #002b58;
  display: block;
  padding: 0.7em 0 1.7em;
  font-weight: bold;
}


/**
 * Course search
 */
#navbar-search {
  margin-top: 1.5em;
}
@media (max-width: 767px) {
  #navbar-search {
    margin-top: 0;
    margin-bottom: 1em;
  }
}
.arjang-search-form .input-group-addon .glyphicon::before {
  /* override glyphicon to show zoom icon instead of the default refresh icon */
  content: "\e003";
}
.arjang-search-form .dropdown {
  z-index: 99999999;
  color: red !important;
}


/**
 * Fix hero  items for mobile
 */
@media (max-width: 770px) {
  #hero-wrapper .cover-main {
    margin: 60px 0 0;
  }
  #hero-wrapper .cover-items {
    /* top: 25px; */
  }
  #hero-wrapper .cover-main .hero-text .description-site {
    /*
    font-size: 1.5em;
    margin-top: 10px;
    */
    font-size: 1.8em;
  }
  .hero-text .calender-course {
    /*
    padding: 0.5em 2em !important;
    margin-bottom: 1em !important;
    */
  }
}

.hero-text .description-site {
  border-bottom: 2px solid #aaa;
  padding-bottom: 0.7em;
  -moz-text-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  -webkit-text-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  text-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  line-height: 1.5em; font-weight: bold;
}
.hero-text .calender-course {
  border: 3px solid #f7941e;
  padding: 1em 3em;
  display: inline-block;
  margin: 1em;
  -moz-border-radius: 35px;
  -webkit-border-radius: 35px;
  -o-border-radius: 35px;
  border-radius: 35px;
  background-color: #f7941e;
  color: #fff;
  font-weight: bold;
}
.hero-text .calender-course:hover {
  background-color: transparent;
}

/**
 * Style header search for the new barrio's fucking markup
 */
/*
.arjang-search-form #edit-course-search {
  background-position: 7px center;
  border-radius: 20px;
  padding: 7px 15px 7px 30px;
}
*/

/**
 * Style hero
 */
#hero_bg_wrapper.has-hero {
  background-color: #1f2f42;
  padding-top: 3.5rem;
}
#hero_bg_wrapper.has-hero #header_hero .content {
  color: #fff;
}
#hero_bg_wrapper.has-hero #header_hero .content a {
  color: #fff;
}
#hero_bg_wrapper.has-hero #main_menu_row {
  margin-top: 0 !important;
}

/**
 * Homepage hero
 */
body.path-frontpage #hero_bg_wrapper.has-hero {
  background-image: url("../asset/home_hero_bg_campaign.jpg?v=2");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* min-height: 750px; */
  /* should not have min-height, otherwise the image can appear below the svg shape */
}
[dir=ltr] body.path-frontpage #hero_bg_wrapper.has-hero {
  background-image: url("../asset/home_hero_bg-flipped.jpg");
}
/**
 * Responsiveness
 */
/*
@media (max-width: 950px){
  body.path-frontpage #hero_bg_wrapper.has-hero {
    background-position: 50% top;
  }
}
@media (max-width: 700px){
  body.path-frontpage #hero_bg_wrapper.has-hero {
    background-position: 40% top;
  }
}
@media (max-width: 400px){
  body.path-frontpage #hero_bg_wrapper.has-hero {
    background-position: 30% top;
  }
}
*/

.home-hero-wrapper {
  margin: 150px 0 240px;
}

/**
 * Under hero boxes
 */
#underhero-boxes-wrapper {
  margin-top: -150px;
}
#underhero-boxes-wrapper .underhero-box {
  margin-bottom: 2rem;
  background-color: #fff;
  text-align: center;

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

  -moz-box-shadow: 0 0 5px rgba(0,0,0,0.1);
  -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.1);
  -o-box-shadow: 0 0 5px rgba(0,0,0,0.1);
  -ms-box-shadow: 0 0 5px rgba(0,0,0,0.1);
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
#underhero-boxes-wrapper .underhero-box img {
  max-width: 85%;
}
#underhero-boxes-wrapper .underhero-box a.d-block {
  padding: 2rem 3.5rem 5rem;
}
#underhero-boxes-wrapper .underhero-box h3 {
  font-weight: bold;
  margin: 1rem 0 2.5rem;
}

/**
 * Svg shape under hero
 */
#header_hero .svgshape {
  overflow: hidden;
  width: 100%;
  line-height: 0;
  direction: ltr;
}
#header_hero .svgshape svg {
  height: 90px;
  display: block;
  width: calc(100% + 1.3px);
  position: relative;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
/* columns should have bigger z-index, to appear above the svg! */
#underhero-boxes-wrapper .row > div {
  z-index: 0;
}

/**
 * Svg shape under hero, should be visible only in certain pages.
 */
#header_hero .svgshape {
  display: none;
}
body.path-frontpage #header_hero .svgshape {
  display: block;
}

/**
 * Style search in navbar
 */
#navbar_search {
  text-align: center;
  z-index: 101;

  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
}
#navbar_search::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #07132bb8;
  right: 0;
  top: 0;
  z-index: 100;
}
#navbar_search_inner {
  position: relative;
  height: 100%;
  z-index: 102;

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

  background-color: #fff;
}

#navbar_search_inner .search_close {
  margin: 19px 18px 0 2px;
}
#navbar_search_inner .search_form_wrapper {
  height: 100%;
  margin-right: 40px;
  margin-left: 12px;
}
#navbar_search_inner .search_form_wrapper * {
  height: 100%;
}
#navbar_search_inner .search_form_wrapper input {
  border: 0 none;
  box-shadow: none;
}
/* override bootstrap's height transition while .collapsing */
#navbar_search {
  -moz-transition: none !important;
  -webkit-transition: none !important;
  transition: none !important;
}

/**
 * Style search dropdown (should be placed in arjang_search/arjang_search_ux.css
 */
ul.ui-menu.ui-autocomplete {
  z-index: 103;
  /*
    left: auto !important;
    right: 5% !important;
  */
  max-width: 90% !important;
}
ul.ui-menu.ui-autocomplete li a {
  font-family: arjangFontIY, IranSans, Tahoma, serif;
}

/**
 * Style header user menu
 */
#header_user_menu {
  background-color: #093875;
}
#header_user_menu .portal-link-wrapper .portal-link > a {
  color: #fff;
}
#header_user_menu .portal-link .dropdown-menu a {
  font-size: 1.5rem;
}
#header_top_bar .shop-link {
  background-color: #dadada;
  padding: 0 5px;
  margin-left: 5px;
}
#header_top_bar .shop-link a {
  color: #093875;
}
#header_top_bar i {
  font-size: 1.2rem;
}

#arjangshop_cart_count {
  border-right: 1px solid #bbb;
  padding: 0 11px 0 8px !important;
}

/**
 * New feature 14 May 2024 (Request by Shahram)
 *
 * Add video background for header.
 *
 * This css comes with header.html.twig
 */
body.path-frontpage #hero_bg_wrapper {
  position: relative;
  overflow: hidden;
}
body.path-frontpage #hero_bg_wrapper > * {
  position: relative;
}
#HeroBgVideo {
  position: absolute !important;
  top: 0;
  width: 100%;
  display: none;
}
@media (min-width: 1465px) {
  #HeroBgVideo {
    display: block !important;
  }
}
