@font-face {
    font-family: moramab;
    src: url(font/MorabbaBold[editby].ttf);
}
@font-face {
    font-family: morabam;
    src: url(font/MorabbaMedium[editby].ttf);
}
@font-face {
    font-family: morabal;
    src: url(font/MorabbaLight[editby].ttf);
}
@font-face {
    font-family: vazirl;
    src: url(font/Vazir-Light.ttf);
}
@font-face {
    font-family: vazirm;
    src: url(font/Vazir-Medium.ttf);
}

html{
  scroll-behavior: smooth;
}
body{
    margin: 0;
    padding-top: 66px;
    margin-top: 66px;
}

.menu {
    top: 0;
    left: 0;
    width: 100%;   
    height: 66px;
    background-color: #263f55;
    text-align: center;
    box-shadow: 0 2px 11px rgba(0, 0, 0, 0.295);
    position: fixed;
    z-index: 1000;
    padding: 1% 10%;
  }
  

  .logoo {
    background-color: #fff; border-radius: 5px; padding: 0.5%; margin-left: 1%;
  }


  .phone-icon{
    width: 100px; height: auto; 
    transition: width 0.5s ease-in;
    border: 2px solid #ffc711;
    border-radius: 10px;
    opacity: 100%;
    font-family: morabam ;                   
    line-height: 39px;
    display: block;
    margin-top: 3%;
    margin-left: 25%;
    padding: 2px 2px;
    text-decoration: none;
   color: rgb(255, 255, 255);
    font-size: 15px;
    transition: 0.2s ease-in-out;
  }

  .phone-icon:hover{
    background-color: #ffc711;
    color: #263f55;
  }
  
  .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    height: 100%;
  }
  
  .menu ul li {
    display: inline-block;
    position: relative;
  }
  
  .menu ul li:not(.image-btn,.contact-btn,.res-menu,.usbtn)::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  }
  
  .menu ul li:not(.image-btn,.contact-btn,.res-menu,.usbtn):hover::before {
    transform: scaleX(1);
    background-color: #ffffff;
  }
  
  .active{
    opacity: 100%;
  }

  .menu ul li.res-menu{
    display: none;
    right: 10%;
    top: 6%;
  }
  .menu ul li.contact-btn {
    position: absolute;
    left: 0;
  }
  
  .menu ul li.image-btn {
    position: absolute;
    right: 0;
  }
  
  
  .active{
    opacity: 100%;
    font-family: morabam ;                   
    line-height: 39px;
    display: block;
    padding: 10px 20px;
    text-decoration: none;
   color: #ffc711;
    font-size: 15px;
    transition: 0.3s ease-in-out;
  }

  .menu ul li a:not(.active,.phone-icon){
    opacity: 60%;
    font-family: morabam ;                   
    line-height: 39px;
    display: block;
    padding: 10px 14px;
    text-decoration: none;
   color: rgb(255, 255, 255);
    font-size: 15px;
    transition: 0.3s ease-in-out;
  }
  
  .menu ul li a:hover{
    opacity: 100%;
  }

  .menu ul li a img {
    width: 30px;
    height: 30px;
  }


  @media (min-width: 769px) {
    #myDivmenu {
      display: none;
    }
  }

  @media screen  and (max-width:867px){ 
      .menu ul li:not(.home,.image-btn,.res-menu){
        display: none;
        
      }
  
      .logoo{
        background-color: #ffffff00; border-radius: 5px; padding: 2%; margin-left: 37%;
      }
      .menu ul li.res-menu {
        display: block;
        right: 23%;
        top: 10%;
      }
  
      #myDivmenu{
        display: none;
      }
      .menu .responsive{
        position: relative;
      }
      .menu .responsive .icon{
        position: absolute;
        left: 0;
        top: 0;
      }
      .menu .responsive{
        float: none;
        text-align: center;
        display: block;
      }
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
      }
  
      #myDivmenu {
        width:50% ;
        height: auto;
        top: 65px;
        position: fixed; 
        z-index: 1000;
        background-color: #263f55;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-family: vazirbold;
        border-bottom-right-radius: 20px;
        text-decoration: none;
        text-align: center;
      }
  
      #myDivmenu li{
        list-style: none;
        text-decoration: none;
        margin: 20px;
      }
      #myDivmenu li a{
        font-size: 90%;
        color: #ffffff94;
        font-family: morabam;
        transition: 0.3s ease-in-out;
        text-decoration: none;
        padding-right: 10px;
        transition: 0.2s ease-in-out;
      }
  
      #myDivmenu  li:hover a{
        color: #ffffff;
        text-decoration: none;
        padding-right: 4px;
      }
/*========================== استایل های اسلاید ===================*/
    .slider {
        width: 90%;
        margin-left: 5%; margin-right: 5%; margin-top: 6%;
        border-radius: 20px;
        height: 380px; 
        position: relative;
        overflow: hidden;
    }
    
    .slider img {
        width: 100%;
        height: auto;
    }
    
    .slider .slides {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }
    
    .slider .slide {
        flex: 0 0 100%;
    }

    @media screen  and (max-width:867px){
      .slider{
        height: 150px;
      }
    }
      

/*================= پایان اسلایدر ==================*/

.pagetitle{
    direction: rtl;
    margin-top: 3%;
    margin-bottom: 3%;
    width: 90%;
    margin-left: 5%; margin-right: 5%;
    background-color: #e3f2ff;
    border-radius: 13px;
  }
  .pagetitle h2{
    margin-right: 1%;
    margin-bottom: 1%;
    padding: 2%;
    font-size: 30px;
    font-family: moramab;
    color: #263f55;
    text-align: center;
  }

  .pageheader{
    display: flex;
    width: 70%;
    margin-left: 12.5%; margin-right: 10%;
    background-color: #ffffff;
    border-radius: 13px;
    margin-bottom: 0%;
  }

  .headerimg{
    width: 60%;
    margin-left: 4%;
  }

  .headerimg video{
   border-radius: 20px;
  }

  .headerimg img{
    border-radius: 10px;
    width: 100%;
  }

  .headermatn{
    direction: rtl;
    margin-left: 9%;
    width: 30%;
    padding: 4%;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 20px;
    text-align: center;
  }


  .headermatn h2{
    padding: 0%;  margin-top: 0.5%;
    font-family: moramab;
    color: #122637;
  }
  .headermatn h5{

    font-size: 16px;
    font-family: vazirl;
    color: #263f55;
  }

  /*رسپانسیو این قسمت*/
  @media screen  and (max-width:867px){

    .pagetitle h2{
       font-size: 24px;
      }

      .pageheader{
        display: inline-block;
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
        padding: 0% ;
        background-color: #ffffff;
      }

      .headerimg{
        width: 100%;
        margin-left: 0%;
      }

      .headerimg img{
        width: 100%;
      }

      .headermatn{
        direction: rtl;
        margin-left: 0%;margin-top: 2%;
        width: 90%;
        padding: 4%;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        border-radius: 20px;
        text-align: center;
      }

      .headermatn h5{
        width: 100%;
        margin-top:0px;
        font-size: 18px;
        font-family: morabal;
        color: #263f55;
      }
  }

  .topiclist a{
    text-decoration: none;
    font-family: moramab;
    background-color: #316ca0;
    color: #ffffff;
    margin-left: 4%;
    transition: 0.2s ease-in-out;
    padding: 2%;
    border-radius: 9px;
    border: 2px solid #ffffff;
  }
  .topiclist a:hover{
    border: 2px solid #316ca0;
    color: #316ca0; background-color: #ffffff;
  }

  .pagesecond h5{
    font-size: 18px;
    font-family: morabal;
    color: #263f55;
    text-align: justify;
    margin-bottom: 1%;  margin-top: 1%; 
  }

  .pagesecond{
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
  display: inline-flex;
  margin-bottom: 2%;
  }

  .pagesecond div{
    padding: 2%;
   width: 28%;
   margin-left: 2%;
   background-color: #fffdfb6c;
   border-radius: 8px;
   box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
   transition: 0.2s ease-in-out;
  }

  .pagesecond div:hover{
    transform: scale(1.1);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }

  .pagesecond .highlight{
    font-size: 18px;
    font-family: morabal;
    color: #ffc711;
  }

  .tttitle{
    text-align: center; 
    margin: 3%; 
    font-family: moramab; 
    color: #91b9dc; 
    font-size: 30px;
  }

  @media screen  and (max-width:867px){
    .pagesecond{
        width: 100%;
        background-color: #ffffff;
        margin: 0% ; padding: 0%;
        display: inline-block;
        margin-top: 2%;
    }

    .pagesecond div{
        width: 80%;
        margin-left: 5%;
        margin-right: 5%;
        margin-bottom: 5%;
        padding: 5%;
    }
    .tttitle{
       font-size: 24px;
    }
  }

  .pagesecond2 h5{
    font-size: 18px;
    font-family: morabal;
    color: #263f55;
    text-align: justify;
    margin: 0%;
  }

  .pagesecond2 .highlight2{
    font-size: 22px;
    font-family: moramab;
    color: #ffc711;

  }

  .pagesecond2{
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    display: inline-flex;
    margin-bottom: 2%;
    text-align: center;
    }
  
    .pagesecond2 div{
      padding: 2%;
     width: 28%;
     margin-left: 2%;
     background-color: #ffffff;
     border-radius: 8px;
     box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    }
    @media screen  and (max-width:867px){
      .pagesecond2{
          width: 100%;
          background-color: #ffffff;
          margin: 0% ; padding: 0%;
          display: inline-block;
          margin-top: 2%;
      }
  
      .pagesecond2 div{
          width: 80%;
          margin-left: 5%;
          margin-right: 5%;
          margin-bottom: 5%;
          padding: 5%;
      }
      .tttitle2{
         font-size: 24px;
      }


    }

    /* استایل برای دکمه بالا برنده سایت بعد از اسکرول*/
.upbtn{
  cursor: default;
  bottom: 4%;
  right: 2%;
  padding: 1.5%;
  border-radius: 20px;
  background-color: #ffc711;
  position: fixed;
  z-index: 999;
}
@media screen  and (max-width:768px){
  .upbtn{
    padding: 2%;
    border-radius: 10px;
  }
}

/*========================= ادامه سر تیتر معرفی هنرستان ================*/

.pagetitle1{
  direction: rtl;
  margin-top: 3%;
  margin-bottom: 3%;
  width: 90%;
  margin-left: 5%; margin-right: 5%;
  background-color: #e3f2ff;
  border-radius: 13px;
}
.pagetitle1 h2{
  margin-right: 1%;
  margin-bottom: 1%;
  padding: 2%;
  font-size: 30px;
  font-family: moramab;
  color: #263f55;
  text-align: center;
}

.pageheader2{
  display: flex;
  width: 80%;
  margin-left: 6%;
  background-color: #ffffff;
  border-radius: 13px;
  margin-bottom: 0%;
}

.headerimg2{
  width: 50%;
  margin-left: 4%;
}

.headerimg2 img{
  border-radius: 10px;
  width: 100%;
}

.headermatn2{
  direction: rtl;
  margin-left: 9%;
  width: 50%;
  margin-top: 2%;
}
.headermatn2 h2{
  padding: 0%;  margin-top: 0.5%;
  font-family: moramab;
  color: #122637;
}
.headermatn2 h5{

  font-size: 16px;
  font-family: vazirl;
  color: #263f55;
}

/*رسپانسیو این قسمت*/
@media screen  and (max-width:867px){

  .pagetitle h2{
     font-size: 24px;
    }

    .pageheader2{
      display: inline-block;
      width: 80%;
      margin-left: 10%;
      margin-right: 10%;
      padding: 0% ;
      background-color: #ffffff;
    }

    .headerimg2{
      width: 100%;
      margin-left: 0%;
    }

    .headerimg2 img{
      width: 100%;
    }

    .headermatn2{
      width: 100%;
      margin: 0%;
    }

    .headermatn2 h5{
      width: 100%;
      margin-top:0px;
      font-size: 15px;
      font-family: vazirl;
      color: #263f55;
    }
}
