@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('assets/font/Vazirmatn-FD-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
    direction: rtl;
	text-align: right;
    background-color: #f8fafc;
    font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial !important;
}

header {
    background-color: #fefeff;
    color: #fff;
}

footer {
    background-color: #0f172a;
}

a { 
    text-decoration: none !important;
    color: #000;
}
a:hover { 
    text-decoration: none !important;
    color: #000;
}

.info-name-bg {
  background-color: #f59e0b;
  background-image: linear-gradient(#fcd24c,#f59e0b);
}

.info-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bg-slate {
    background-color: rgb(241 245 249) !important;
}

button svg {
  pointer-events: none;
}

/*-----------------------*/

.dotted-line {
  flex: 1;
  border-bottom: 1px dotted #999;
  margin: 0 10px;
}

.list-item {
  display: flex;
  align-items: center;
  margin: 0px 0px 20px 0px;
}

/*---------------------------*/

.fade-box {
    position: relative;
    max-height: 100px; /* مقدار نمایش اولیه */
    overflow: hidden;
}

.fade-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
    transition: 0.3s;
}

.fade-box.expanded {
    max-height: none;
}

.fade-box.expanded::after {
    opacity: 0;
}

.fade-box-item {
    position: relative;
    max-height: 220px; /* مقدار نمایش اولیه */
    overflow: hidden;
}

.fade-box-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
    transition: 0.3s;
}

.fade-box-item.expanded {
    max-height: none;
}

.fade-box-item.expanded::after {
    opacity: 0;
}

/*--------------------------------------*/

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 9999;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* خود باکس پاپ‌آپ */
.popup-content {
  background: #fff;
  border-radius: 8px;
  max-width: 400px;
  color: #000;
}

.popup-content-scrl {
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  border-radius: 0px 0px 20px 20px;
  border-top: 1px #d2d2d2 solid;
}

.popup-content .close {
  cursor: pointer;
  font-size: 29px;
  float: left;
  width: 47px;
  text-align: center;
  color: #000;
}

.popup-content .title {
  width: 200px;
  float: right;
  margin-top: 10px;
  margin-right: 8px;
  font-weight: bold;
  color: #000;
}

@media (max-width: 480px) {
  .popup {
    padding: 30px;
  }

  .popup-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 8px;
    padding: 0px;
    color: #000;
  }

  .popup-content .close {
    top: 6px;
    right: 10px;
    color: #000;
  }
}

/*----------------------------*/

.catbat {
  margin-bottom: 30px;
  padding: 10px 30px;
  border: 0;
  background-color: #ffc107;
}

/*-----------------------------*/

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

/*------------------------------*/

.popular {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

@media only screen and (max-width: 600px) {
  .popular {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*--------------------------------*/

#commentform p {
  margin: 0px;
}

/*------------------*/

.under-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px; 
  text-align: center;
  background-color: #0f172a;
  color: #fff;
  font-weight: 400;
  font-size: 0.8rem;
}

.under-menu-d {
  background-color: #0f172a;
  color: #fff;
  font-weight: 400;
  font-size: 0.8rem;
}

.offcanvas-backdrop {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background-color: #00000059 !important;
}

.offcanvas-backdrop.show {
  opacity: 1 !important;
}

/*----------------------------*/

.span-home{
  float: left;
  margin-left: 1px;
  background-color: #ffe300;
  padding: 0px 10px;
  border-radius: 20px;
}

.ni-img-title {
  height: auto !important;
}

.ni-widget-content-box {
  margin: 0 !important;
  padding: 0 !important;
}

.tapsell-notification-photo.tapsell-notification-photo--left {
  margin-bottom: -48px;
}