
#block-block-13 .mySlides {display: none}

/* Slideshow container */
#block-block-13 .slideshow-container {
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
#block-block-13  .prev,#block-block-13  .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
#block-block-13  .next {
  left: 0;
  border-radius: 0px 5px 5px 0px;
  background-color: rgba(0,0,0,0.6);
}
#block-block-13 .prev {
  right: 0;
  border-radius: 5px 0px 0px 5px;
  background-color: rgba(0,0,0,0.6);
}

/* On hover, add a black background color with a little bit see-through */
#block-block-13  .prev:hover,#block-block-13 .next:hover {
  background-color: rgba(0,0,0,1);
}

/* Caption text */
#block-block-13 .text {
  color: #fff;
  position: absolute;
  width: 40%;
  text-align: right;
  padding: 15px;
}

#fslide1 .text{
  background: none;
  right: 50px;
  bottom: 50px;
  width: 60%;
}
#fslide2 .text{
  left: 50px;
  top: 30px;
  border: 5px solid #fff;
  border-radius: 15px;
  background: url("../images/bg-gray-70.png") repeat;
}

#fslide3 .text{
  right: 20px;
  bottom: 20px;
}

#block-block-13 .text p{
  padding: 10px;
  color: #fff;
}
#block-block-13  .text a{color: yellow;}
#block-block-13  .text a:hover{color: #ef4b28;}
#block-block-13  .text h4 a,#block-block-13  .text h4{font: bold 1.5em kalameh; color: #000;}
#block-block-13  .text ul li{
  margin-right: 20px;
  font-size: 1.2em;
  color: yellow ;
}

#block-block-13 .text1 h2{font: bold 3.5em kalameh;margin-bottom: 10px;}
#block-block-13 .text1 h3{
  font-size: 1.2em;
  line-height: 2em;
  background: #fff;
  padding: 5px 2px;
  display: inline-block;
}
#block-block-13  .text1 ul li{
  background: url("../images/bg-gray-70.png") repeat;
  display: inline-block;
  margin: 5px 0 5px 10px;
  padding: 0 6px;
  border: 1px dashed #efefef;
  border-radius: 5px;
}

#block-block-13 .text3 p{
  color: red ;
}

#block-block-13 .text3 ul li{
  margin-right: 30px;
  font-size: 0.9em;
  color: #222 ;
}

/* Number text (1/3 etc) */
#block-block-13  .numbertext {
  color: #999;
  font-size: 0.9em;
  padding: 8px 12px;
  position: absolute;
  top: 25px;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

#block-block-13  .active,#block-block-13  .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 750px) {
      #block-block-13 .text {
      position: relative;
      right: 0px;
      top: 0px;
      width: 100%;
      padding: 10px;
      font-size: 0.85em;
    }
    #block-block-13  .prev,#block-block-13  .next {
      position: absolute;
      top: 25%;
      padding: 10px;
      font-weight: bold;
      font-size: 13px;
    }
}
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}





#front-film{
    width: 100%;
    height: auto;
    background-image: linear-gradient(to right, #039614 , #a0bf06);
    clear: both;
    margin: 20px 0;
    padding: 30px 20px;
}
#front-film .content{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
}
#front-film p{
    color: #fff;
}
#front-film ul{
    margin: 30px 30px 0 0;
}


.slide-show-wrap {margin-top: 60px;}

.slider {
    width: 100%;
    max-width: 1024px;
    height: 360px;
    position: relative;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 3px 18px rgba(0,0,0,0.20);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    transition: opacity 1s ease;  /* F A D E */
    background: #4285f4;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.caption {
    width: 50%;
    padding: 30px;
    line-height: 1.4;
    color: #fff;
}
.slider h3, .slider p, .slider li{line-height: 2em;}
.slider h3 {color: yellow;}
.slider p{color: #333;}
.slider li {font-size: 0.85em;}

/* دکمه‌ها */
/*.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffffc7;
    border: none;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
    color: #000;
}

.prev:hover, .next:hover {
    background: #ffffffee;
}

.prev { left: 15px; }
.next { right: 15px; }
*
/* دایره‌ها */
.dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    text-align: center;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dots .active {
    background: #333;
}



@media (max-width: 768px) {

    .slide {
        flex-direction: column;
        height: auto;
    }

    .slide img {
        width: 100%;
        height: 250px;
    }

    .caption {
        width: 100%;
        padding: 20px;
        font-size: 18px;
        text-align: center;
    }
/*
    .prev, .next {
        font-size: 22px;
        padding: 6px 10px;
    }
*/
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .slide img {
        height: 200px;
    }

    .caption {
        font-size: 16px;
        padding: 15px;
    }
}


/* block-block-14 */
#block-block-14 {
    clear: both;
    margin: 60px 0 35px 0;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    padding: 10px 0;
}

#block-block-14 h2 a{
    color: #fff;
    background: red;
    border-radius: 3px;
    padding: 10px 15px;
}
#block-block-14 h2 a:hover{
    color: #000;
    background: orange;
}

/*-------about---------*/

#front-about{
    width: 100%;
    height: auto;
    margin-top: 0px;
    background-image: linear-gradient(to right, #2980dc , #07b4d4);
    clear: both;
}
#block-block-15 p a {
    background: #fff;
    margin: 20px;
    padding: 5px 15px;
    color: #000;
}
#block-block-15 p a:hover {
    background: yellow;
}
.region-front-about{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}
#front-about p{color: #000;line-height: 3em; }
#front-about h2{
    color: #fff;
    font: normal 3em Iransans;
}
#front-about h3{
    color: yellow;
    font: normal 2.5em Iransans;
}
#block-block-16 img{
    border-radius: 50%;
    border: 12px solid #fff;
    width: 65%;
    height: auto;
}
#block-block-16 p{
    margin-bottom: 0px;
}

/* ----- service counter -------*/
#front-counter{
   width: 100%;
   height: auto;
   /*min-height: 220px;*/
   margin: 60px 0 40px 0;
   /*background: #fff url("../images/test2/06.jpg") no-repeat bottom;
   background-size: cover;*/
   clear: both;
}

#front-counter .counters-box{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
    text-align: center;
}

#front-counter .counter-item span{
   text-align: center;
   font: normal 2em byekan;
   color: red;
}

#front-counter .counter-item p{
   color: green;
   text-align: center;
   font: normal 1.2em iransans;
}

.reveal {
  position: relative;
  opacity: 0;
}

.reveal.active {
  opacity: 1;
}

.active.fade-bottom {
  animation: fade-bottom 1s ease-in;
}
.active.fade-left {
  animation: fade-left 1s ease-in;
}
.active.fade-right {
  animation: fade-right 1s ease-in;
}

@keyframes fade-bottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-left {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-right {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/*---- services ----*/
#services{
    background: #eee url("../images/bg-services.jpg") no-repeat bottom;
    background-size: cover;
    padding: 40px 20px;
    border-top: 10px dashed #fff;
    border-bottom: 10px dashed #fff;
}
#services .serviceslist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    text-align: center;
}
#services h2{
    color: green;
    font-size: 1.4em;
    text-align: center;
}
#services h3{
    color: #777;
    font-size: 1.1em;
    text-align: center;
}
#services img{
    border-radius: 35px;
    color: #efefef;
}

/*---- Communication ----*/
#communication{
    background-image: linear-gradient(to right, #e56600 , #ffb500);
    padding: 40px 20px;
}
#communication h2{
    color: #fff;
    text-align: center;
}
#communication .combox{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    text-align: center;
}
#communication .comface img{
    transition: all 0.8s cubic-bezier(.68,-0.55,.27,1.55);
      border-radius: 30% 70% 70% 30% / 30% 37% 63% 70% ;
}
#communication .comface img:hover{
      border-radius: 60% 10% 55% 21% / 39% 10% 65% 50%  ;
      transform: scale(1.1);
}
#communication .comcell img{
    transition: all 0.8s cubic-bezier(.68,-0.55,.27,1.55);
      border-radius: 18% 82% 27% 73% / 52% 37% 63% 48% ;
}
#communication .comcell img:hover{
    border-radius: 50% 60% 28% 44% / 39% 33% 65% 50% ;
      transform: scale(1.1);
}
#communication .comnet img{
    transition: all 0.8s cubic-bezier(.68,-0.55,.27,1.55);
      border-radius: 85% 15% 33% 67% / 59% 66% 34% 41%;
}
#communication .comnet img:hover{
      border-radius: 38% 73% 28% 54% / 17% 33% 65% 76% ;
      transform: scale(1.1);
}


#block-block-5 {
    max-width: 900px !important;
    margin: 20px 20px !important;
    float: right;
}
#block-block-5 h2{
    margin-bottom: 15px;
    text-align: right;
    color: #000;
}
#block-block-5 img{
    margin-right: 20px;
    border-radius: 5px;
}

#front-news {
    clear: both;
    width: 100%;
    margin: 30px 0;
}
#front-news h2{text-align: center;}
.swiper-button-prev{
    /*right: -80px !important;*/
    display: none;
}
.swiper-button-next{
    /*left: -80px !important;*/
    display: none;
}

.view-news-front .views-field-field-image img{
    border-radius: 5px;
    transition: transform .5s;
    border: 2px solid #fff;
}
.view-news-front .views-field-field-image img:hover{
    opacity: 0.8;
}
.view-news-front .views-field-title {
    text-align: justify;
    min-height: 4em;
}
.view-news-front .views-field-title h3{
    font-size: 0.85em;
    min-height: 4em;
}
.view-news-front .views-field-body{
    text-align: justify;
    font-size: 0.7em;
}
.view-news-front .swiper-pagination-bullet {
  width: 15px !important;
  height: 15px !important;
  margin: 2px;
}
.view-news-front .views-field-created,.view-news-front .views-field-changed {font: normal 0.75em Byekan;float: left;text-align: left;color: #999;margin-top: 5px;}


#front-contact{
    width: 100%;
    height: auto;
    margin-top: 20px;
    clear: both;
    padding: 30px 0;
}
#block-block-7 {margin-top: -15px;}
#block-block-7 .content{margin: 0 auto;text-align: center;}
#block-block-7  .frtcnt{
    display: inline;
    margin-right: 10px;
    border: 1px solid #3568ff;
    border-radius: 30px;
    padding: 7px 50px 7px 10px;
    font: normal 1em Byekan;
}
#block-block-7 #address{ background: url('../images/icon-address.png') right center no-repeat; }
#block-block-7 #tel{ background: url('../images/icon-tel.png') right center no-repeat; }
#block-block-7 #cell{ background: url('../images/icon-cell.png') right center no-repeat; }

@media screen and (max-width: 640px) {
    h2{font-size: 1em;}
    /*
    #front-product .view-content{
      padding: 20px;
      grid-template-columns: repeat(1, 1fr);
      margin-bottom: 20px;
    }
    #front-product .views-field-field-gallery {text-align: center; border: 1px solid #999; border-radius: 10px;}
    #front-product .views-field-field-gallery:hover {opacity: 0.8; border: 1px solid #555;}
    #front-product .views-field-title{
        margin-top: 0px;
        margin-bottom: 20px;
        border: 1px solid #999; border-radius: 10px;
    }
    */
    #front-about,#front-news{padding: 10px;}
    #front-about p {clear: both;width: 100%;}
    #front-about img{clear: both;width: 100%;margin-bottom: 10px;}
    #front-about h2 {margin-top: 10px;clear: both;width: 100%;}
    #block-block-7 #tel,#block-block-7 #cell,#block-block-7 #address{width: 98%;clear: both;display: block;}
    #block-block-7 .frtcnt {
      display: block;
      margin: 10px 0.5%;
      padding: 7px 40px 7px 10px;
    }
    .swiper-button-prev, .swiper-container-rtl .swiper-button-next{display: none;}
    
    #front-counter .counters-box{
        grid-template-columns: repeat(2, 1fr);
    }
    #front-film .content {
      grid-template-columns: repeat(1, 1fr);
    }
    #block-block-13 .text1 h2{font: bold 2.5em kalameh;}
    #block-block-13  .text1 ul li{font-size: 0.9em;}
}





/* ================================
   Front Products
   ================================ */

#front-product {
    direction: rtl;
    width: 100%;
    margin: 40px auto;
}

#front-product .block {
    width: 100%;
}

#front-product .block h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 35px;
    position: relative;
    line-height: 1.7;
}

/* خط تزئینی زیر عنوان */
#front-product .block h2:after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin: 12px auto 0;
    background: #59ac0c;
    border-radius: 10px;
}


/* محصولات */
#front-product .view-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


/* کارت محصول */
#front-product .views-row {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    padding: 25px 0 15px 0;
}


/* افکت هاور */
#front-product .views-row:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}


/* عکس */
#front-product .views-field-field-gallery {
    width: 100%;
    /*background: #f7f7f7;*/
    overflow: hidden;
}

#front-product .views-field-field-gallery a {
    display: block;
    width: 100%;
}

#front-product .views-field-field-gallery img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.45s ease;
   /* background: #f7f7f7;*/
   border-radius: 200px;
}


/* زوم عکس هنگام هاور */
#front-product .views-row:hover .views-field-field-gallery img {
    transform: scale(1.05);
}


/* عنوان محصول */
#front-product .views-field-title {
    padding: 18px 15px 8px;
}

#front-product .views-field-title h3 {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
}

#front-product .views-field-title h3 a {
    color: #222;
    text-decoration: none;
    transition: color 0.25s ease;
}

#front-product .views-field-title h3 a:hover {
    color: #d4971e;
}


/* قیمت */
#front-product .views-field-field-price {
    padding: 5px 15px 22px;
    color: #777;
    font-size: 14px;
}

#front-product .views-field-field-price .views-label {
    color: #777;
}

#front-product .views-field-field-price .field-content {
    display: block;
    margin-top: 5px;
    color: #58ac0c;
    font-size: 21px;
    font-weight: 800;
    direction: rtl;
}

#front-product .views-field-field-price .toman-suffix {
    font-size: 14px;
    font-weight: 600;
    margin-right: 4px;
    color: #555;
}


/* حذف فضای اضافی Pager */
#front-product .pager {
    display: none;
}


/* ================================
   Tablet
   ================================ */

@media (max-width: 900px) {

    #front-product .view-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    #front-product .views-field-field-gallery img {
        height: 300px;
    }

    #front-product .block h2 {
        font-size: 24px;
    }
}


/* ================================
   Mobile
   ================================ */

@media (max-width: 600px) {

    #front-product {
        margin: 30px auto;
    }

    #front-product .block h2 {
        font-size: 21px;
        padding: 0 15px;
        margin-bottom: 25px;
    }

    #front-product .view-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #front-product .views-field-field-gallery img {
        height: 320px;
        border-radius: 100% !important;
    }

    #front-product .views-field-title {
        padding-top: 15px;
    }

    #front-product .views-field-title h3 {
        font-size: 18px;
    }

    #front-product .views-field-field-price .field-content {
        font-size: 20px;
    }
}
