@font-face {
  font-family: "yekanbakh";
  src: url("../fonts/yekanbakh/YekanBakhFaNum-VF.woff")
    format("woff-variations");
  font-weight: 100 1000;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  box-sizing: border-box;
}
html,
body,
a,
select,
textarea,
button,
input,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "yekanbakh";
  font-variation-settings: "dots" 3;
}
body {
  background: white;
  color: #111;
  direction: rtl;
  font-weight: 400;
  font-size: 12px;
  text-align: right;
  line-height: 1.5;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
}
h1,
.h1 {
  font-size: 23px;
}
h2,
.h2 {
  font-size: 21px;
}
h3,
.h3 {
  font-size: 19px;
}
h4,
.h4 {
  font-size: 17px;
}
h5,
.h5 {
  font-size: 15px;
}
h6,
.h6 {
  font-size: 13px;
}
p {
  margin-bottom: 0;
}






.demo-list{
    overflow: hidden;
    display: -ms-grid;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}
.box-list{
    overflow: hidden;
    display: -ms-grid;
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}
/* وقتی فقط 1 آیتم در ردیف آخر مانده */
.demo-list > *:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* وقتی 2 آیتم در ردیف آخر مانده */
.demo-list > *:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1;
}

.demo-list > *:last-child:nth-child(3n + 2) {
    grid-column: 3;
}
a.block {
    display: block;
    position: relative;
}
.url-inner {
    padding: 15px;
    border-radius: 15px;
    background: #eef0f0;
}
.demo-image-wrapper {
    height: 20rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.demo-overlay {
    transition-duration: 500ms;
    transition-property: all;
    transition-timing-function: ease-in-out;
    opacity:0;
    background:linear-gradient(360deg, #0a123d8c, #ffffff00);
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 10px;
}
.demo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 3s ease-in-out;
}
a.block:hover .demo-overlay {
    opacity: 1;
}
a.block:hover .demo-image{
    transform: translateY(calc(-100% + 18rem));
}
.show-demo {
    background: white;
    border-radius: 15px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
}
.name-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
}
.head-box {
    display: grid;
}
.move {
    width: 50px;
    height: 50px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: white;
}
.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 2px 15px;
    border-radius: 8px 0;
    color: white;
    background: #ee1844;
    z-index: 11;
    font-size: 11px;
    font-weight: 600;
}
.box-card {
    padding: 15px;
    border-radius: 15px;
    background: #eef0f0;
}
.box-image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 210px;
}
.box-image-wrapper img{
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: top center;
    border-radius: 15px 15px 15px 15px;
    box-shadow: 0px 0px 6px 2px rgba(0, 92, 81.99999999999999, 0.06);
    transition: .3s;
}
.name-box-card {
    background-color: #47464d;
    margin-top: 10px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
}
.name-box-card h3{
    margin:0;
    font-size: 15px;
}
.move-card {
    background: #ee1844;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 45px;
    height: 35px;
    font-size: 14px;
}
.move-card span {
    overflow: hidden;
    padding: 0;
    max-width: 0;
    white-space: nowrap;
    font-weight: 600;
    transition: padding .4s cubic-bezier(0.175, 0.885, 0.32, 1.15), max-width .4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}
.move-card i{
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:16px;
    font-weight:400;
}
.boxblock{
    display:block;
}
.box-card{
    cursor:pointer;
}
.box-card:hover .move-card span{
    max-width:100px;
    padding-right:15px;
}
.box-card:hover .box-image-wrapper img{
    transform: scale(1.02);
}





.button-list{
    overflow: hidden;
    display: -ms-grid;
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 20px;
}
.button-card {
    padding: 10px;
    border-radius: 15px;
    background: #eef0f0;
}
.button-inner {
    background: white;
    border-radius: 12px;
    padding: 10px;
    display: grid;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align:center;
    min-height:120px;
}
.button-inner i{
    font-size:30px;
    color:rgb(0, 137, 123);
}
.button-inner h3{
    font-size:13px;
    margin-bottom:0;
}







.faqs {
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  
}
.faq-item {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgb(206 206 206) !important;
    background-color: #f9f9f9;
  }
.faq-question {
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 700;
  }

  .faq-icon {
      font-size:20px;
      line-height:1;
      font-weight:400;
  }

  .faq-title {
    flex: 1;
  }
.faq-arrow {
    font-size: 1.1em;
    transition: transform 0.35s ease;
    margin-left: 12px;
  }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    opacity: 0;
    font-size: 14px;
    line-height: 2.5;
    font-weight: 400;
    color: #777;
  }
.faq-answer-inner {
    padding: 0 0 16px 0;
  }
.faq-item--open > .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 16px 18px;
  }
  
  
  
  
  
  
  
  
  
@media (max-width:991px){
    .demo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .box-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .button-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    
}


@media (max-width:768px){
    .demo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .box-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .button-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width:568px){
    .demo-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .box-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .button-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

