/* Global styles for the whole site */

body {
  scroll-behavior: smooth;
}

/* ------- Font Edit ------ */
--e-global-typography-primary-font-family: "IranYekanXWebFn";
--e-global-typography-secondary-font-family: "IranYekanXWebFn";

/* ------------ Header Edit --------------------- */

.top-bar-small {
  background-color: unset !important ;
}

.whb-sticked .whb-column.whb-col-center {
  display: none;
}

.whb-sticked .whb-top-bar {
  display: none;
}

.whb-sticked .whb-column.whb-col-left {
  width: 100%;
}

.whb-general-header {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.whb-top-bar-inner .wd-header-nav.wd-header-secondary-nav {
  background: var(--e-global-color-2c05b98);
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  margin: 0px 10px;
}

.whb-top-bar-inner .wd-header-nav.wd-header-secondary-nav ul li {
  color: white;
  padding: 7px 15px;
  border-radius: 12px;
}

.whb-top-bar-inner .wd-header-nav.wd-header-secondary-nav ul li:hover {
  background: #8080802b;
}
.whb-top-bar-inner .wd-header-nav.wd-header-secondary-nav ul li a {
  height: auto;
  color: white;
}

#chaty-widget-0 .chaty-widget {
  z-index: 480;
}

@media (max-width: 767px) {
  .top-bar-small {
    background-color: #ffffff !important ;
  }

  .whb-sticked .whb-general-header {
    display: none;
  }

  .whb-sticked .whb-top-bar {
    display: block;
  }

  .whb-general-header-inner .wd-search-form {
    padding: 0px;
  }

  .wd-tools-element .wd-tools-icon:before {
    font-size: 20px !important;
  }

  .whb-header-bottom-inner .wd-nav-secondary > li > a {
    height: auto;
  }

  .whb-header-bottom-inner .wd-header-nav {
    overflow-x: auto;
    width: fit-content;
  }

  .whb-header-bottom-inner .wd-nav[class*="wd-style-"] > li > a {
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
    color: #444444;
    font-family: "IranYekanXWebFn" !important;
    font-size: 13px;
    font-weight: 500;
  }

  .whb-header-bottom-inner .wd-nav[class*="wd-style-"] > li > a:hover {
    color: #111111;
  }

  .whb-header-bottom-inner
    .wd-nav[class*="wd-style-"]
    > li:is(.current-menu-item, .wd-active, .active)
    > a {
    color: #111111;
  }

  .whb-header-bottom-inner .wd-header-nav ul li {
    background: #e9e9e991;
    border-radius: 5px;
    padding: 3px 5px;
    width: fit-content;
  }

  .whb-header-bottom-inner .wd-header-nav ul {
    display: flex;
    align-content: flex-start;
    max-height: calc(27px * 2 + 10px); /* حداکثر ارتفاع ۲ سطر + کمی فاصله */
    overflow: visible; /* تا وقتی ارتفاع پر شد، عرض بیشتر بشه */
    gap: 8px;
    overflow-x: auto;
    min-width: 500px;
    padding: 2px 12px 2px;
    justify-content: flex-start;
  }

  .whb-header-bottom-inner .wd-header-nav {
    overflow-x: auto;

    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-right: -10px;
    margin-left: -10px;
    -webkit-mask-image: linear-gradient(to right, transparent 5px, #000 40px);
    mask-image: linear-gradient(to right, transparent 5px, #000 40px);
  }
}

@media (max-width:900px)  {
		.whb-column.whb-col-left {
		display:none;
	}
	
	 .whb-top-bar-inner .whb-column.whb-col-mobile {
    display: flex;
    justify-content: space-between !important;
    padding: 10px;
  }

	
	.whb-mobile-right,
  .whb-mobile-left {
    display: none !important;
  }
  .whb-mobile-center {
    width: 100%;
  }
	
}
