@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;
}

.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: 100%;
  height: 550px; 
  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: 200px;
  margin-top: 66px;
}
}





      /* ========================== درباره هنرستان ==================== */
      .about{
        display: inline-block;
        direction: rtl;
        padding: 2% 5%;
        background-color: #a6a6eeb6;
        height: 150px;
        width: 90%;
        
      }
      .logoplace{
        display: inline-block;
        opacity: 100%;
        width: 100px;
        height: 100px;
        margin-left: 5%;
      }
      .matnaboutus{
        display: inline-block;
        width: 45%;
      }
      .matnaboutus h2{
        margin: 0%;
        font-family: moramab;
        color: #263f55;
      }

      .matnaboutus h3{
        margin-top: 0%;
        font-family: morabam;
        color: #263f55c6;
      }
      .matnaboutus p{
        text-align: justify;
        font-family: morabam;
        font-size: 17px;
        color: #263f55c6;
      }
      .matnaboutus p a{
        margin-top: 17px;
        text-decoration: none;
        font-family: moramab;
        font-size: 17px;
        color: #263f55;
        background-color: #ffffff00;
        border-radius: 8px;
        transition: 0.3s ease-in-out;
      }
      .more:hover{
         margin-left: 25px;
      }
      .options{
        display: inline-block;
        width: 35%;
        padding: 1%;
        margin-right: 3%;
      }
      .options div{
        text-align: center;
        display: inline-block;
        width: 120px; height: 120px;
        margin-left: 3%;
        background-color: #263f55;
        border-radius: 6px;
        transition: 0.5s ease-in-out;
      }
      .options div:hover{
        transform: scale(0.9);
      }

      @media screen  and (max-width:867px){
        .options{
          display: none;
        }

        .logoplace{
         display: none;
        }

        .matnaboutus{
          display: inline-block;
          width: 95%;
          padding: 3%;
        }
        .matnaboutus h2{
          margin: 0%;
          font-family: moramab;
          font-size: 20px;
          color: #263f55;
        }
  
        .matnaboutus h3{
          margin-top: 0%;
          font-family: morabam;
          font-size: 16px;
          color: #263f55c6;
        }
        .matnaboutus p{
          text-align: justify;
          font-family: morabam;
          font-size: 14px;
          color: #263f55c6;
        }

      }
      /* =====================   استایل های  دانش آموزا نبرتر ====================*/
       .topstudent{
        direction: rtl;
        width: 90%;
        padding: 0% 5%;
        margin-top: 1%;
       }
       .topstudent h2{
        font-family: moramab;
        color: #263f55;
       }
       .topstudent h3{
        font-family: moramab;
        color: #3d74a3;
       }
       .more{
        font-family: moramab;
        text-decoration: none;
        color: #418bcb;
        transition: 0.3s ease-in-out;
       }
       .more:hover{
        color: #74beff;
        padding-left: 1%;
       }

       .topboxes {
        display: inline-flex;
        width: 31%;
        border: 2px solid #263f55;
        border-radius: 8px;
        margin: 0.5%;
        height: 120px;   
        transition: 0.3s ease-in-out;
       }


       .toppic{
        display: inline-block;
        background-color: #263f55;
        width: 130px;  height: 100%;
       }

      .toppic2{
        display: inline-block;
        background-color: #263f5500;
        width: 160px;  height: 100%;
        margin-right: 4%;
       }
       @media screen  and (max-width:867px){
        .topboxes {
          display: inline-flex;
          width: 90%;
          border: 2px solid #263f55;
          border-radius: 8px;
          margin: 2.5%; margin-left: 5%; margin-right: 5%;
          height: 100px;   
         }
         .toppic{
          display: inline-block;
          background-color: #263f55;
          width: 100px;  height: 100%;
         }
         .toppic2 h2{
          font-size: 20px;
         }
         .toppic2 h3{
          font-size: 16px;
         }
         .morelinks{
          font-size: 12px;
         }
         .topstutitle{
          font-size: 20px;
         }

         .konkor h2{
          text-align: center;
          margin-bottom: 4px;
         }
         .konkor h3{
          margin-top: 4px;
         }
       }

       .konkor{
        text-align: center;
        background-color: #fff7e6;
        border-radius: 9px;
        width: 100%;
        height: auto;
        margin-top: 2%;
        padding: 0.6%;
       }
       .konkor h2{
        width: 200px; font-size: 22px; display: inline-block; color: #ffc711;
       }
       .konkor a{
        font-size: 19px; display: inline-block; font-family: morabam; color: #263f55; text-decoration: none;
       }
       @media screen  and (max-width:867px){
        .konkor h2{
          font-size: 16px; 
         }
         .konkor a{
          font-size: 12px; 
          text-decoration: none;
         }
       }

       /* ============= استایل اخبار ====================*/

       .newssectitle{
        margin-top: 4%; margin-bottom: 2%; width: 460px; display: inline-block; padding-left: 58%;
       }
       .todaynews{
        display: flex;
       }

       .news{
           display: inline-block;
           width: 31%;
           border-radius: 20px;
           margin: 0.7%;
           box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
           transition: all 0.5s;
       }

       .news:hover{
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
       }
       .newsimage{
        padding: 0%;
        width: 100%;
       }

       .newsmatn{
        padding-right: 5%;  padding-left: 5%;         font-family: morabam;
       }

       .newsmatn p{
         text-align: justify;
       }

       .table-container {
        padding-top: 7%;
        padding-bottom: 4%;
       }
   
       table {
        margin: 0% 5%;
           width: 90%;
           border-collapse: collapse;
       }
   
       th,
       td:not(.lastnewsbox) {
           padding: 1px;
           border-bottom: 1px solid #ccc;

       }
      th,td{
        transition: all 0.5s;
        cursor: pointer;
      }
       td:hover{
           padding-right: 20px;
       }


       th {
           background-color: #f2f2f2;
       }
   
       .row-image {
           width: 80px;
           height: 60px;
           object-fit: cover;
           border-radius: 9px;
       }
   
       .row-content {
           display: flex;
           align-items: center;
       }
   
       .row-content h2 {
           margin-left: auto;
           font-size: 20px;
           padding: 2%;
       }
   
       .row-content p{
        margin-left: auto;
        font-size: 15px;
        font-family: morabal;
        color: #3d74a3;
    }

    @media screen  and (max-width:867px){

      .newssectitle{
        font-size: 20px;
      }
      .todaynews{
        display: block;
        margin-top: 3%;
      }
      .news{
        display: block;
        width: 95%;
        border: 1px solid #3d74a3;
        border-radius: 20px;
        margin-top:4% ;
        height: 370px;
    }

    }

    .container2 {
      padding: 1% 5%;
      display: flex;
      cursor: default;
    }
    
    .person {
      flex: 1;
      padding: 18px;
      box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
      margin: 1%;
      border-radius: 9px;
      text-align: center;
      transition: 0.3s ease-in-out;
    }
    
    .person:hover{
      transform: scale(1.1);
      box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }

    .person h2{
    font-size: 18px;
    }
    .person p{
    font-family: morabam;
    color: #3d74a3;
    font-size: 18px;
     }

     @media screen  and (max-width:867px){
      .container2 {
        padding: 1% 5%;
        width: 90%;
        display: inline-block;
      }
      .person {
        flex:content;
        padding: 18px;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        margin-bottom: 6%;
        border-radius: 9px;
        text-align: center;
        transition: 0.3s ease-in-out;
      }
      .person img{
        display: none;
      }
      .person:hover{
        transform: scale(1.1);
      }
     }

     /*  ==========  کد قسمت رشته ها =================*/



  /* =============== استایل سکشن معدفی هنرستان=====================*/

  
/*=========================== طراحی سکشن رشته های هنرسان   ==================*/

#fields{
  width: 95%;
  padding: 0% 2.5%;
  margin-bottom: 5%;
}
.fieldscontiner{
  width: 100%;
  display: inline-flex;
}
.fieldscontiner2{
  width: 100%;
  display: inline-flex;
  padding: 0% 15%;
}
.reshtebox{
  margin: 2%;
  border-radius: 20px;
  width: 31%;  height: 395px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  transition: all 0.5s;
}
.reshtebox img{
  opacity:95%;
  transition: 1s ease;
}
.reshtebox:hover{
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.reshtebox:hover img{
  opacity:100%;
  transition: 1s ease;
}
.topfieldpic{
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  height: 140px;
}

.fieldsmatn{
  padding: 1% 6%;
}
.themorefielbtn{
  text-align: center;  background-color: #ffc711; font-size: 18px; border-radius: 8px; padding: 2%; cursor: pointer;
  transition: all 0.5s;
  border: 1px solid #ffc71100;
}
.kkkk{
  color: #ffffff;
}
.themorefielbtn:hover{
  background-color: #ffffff;
  border: 1px solid #ffc711;
}
.themorefielbtn:hover .kkkk{
  color: #ffc711;
}
.fieldsmatn p{
  text-align: justify;
  font-family: morabam;
  color: #263f55;
}
.fieldskey{
  font-family: morabam;
  text-decoration: none;
  padding: 4px;
  font-size: 15px;
  border-radius: 20px;
  color: rgb(255, 255, 255);
  background-color: #ffc711;
}
@media screen  and (max-width:867px){
  .fieldscontiner{
    width: 100%;
    display: inline-block;
  }
  .reshtebox{
    margin: 2%;   margin-bottom: 7%;
    border-radius: 20px;
    width: 95%;  height: 380px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    transition: all 0.5s;
  }
  .fieldskey{
    margin-right: 50px;
  }
  .fieldscontiner2{
    display: inline-block;
    width: 100%;
    padding: 0%;
  }
 }


/* ==  the more links style ==========================*/
.themorelinkflash{
  opacity: 0%;
  padding-right: 1px;
  transition: ease-in-out 0.5s;
}
.morelinks{
  font-family: moramab;
  color: #3d74a3;
  text-decoration: none;
  padding: 10px;
  transition: all 0.5s;
  font-size: 19px;
}
.morelinks:hover{
  padding-right: 18px;
}
.morelinks:hover .themorelinkflash{
  opacity: 100%;
  padding-right: 5px;
  transition: ease-in-out 0.5s;
}

/* =========================== THE FOOTER CODE =============================
.footerdiv{ 
  width: 94%;    height: auto;
  background-color: #263f55;
  padding-top: 3%;   padding-left: 3%; padding-right: 3%;
  display: inline-flex;
}

.linkplace{
  text-align: right;
  width: 13% ;
  font-family: morabam;
}

.linkplace2{
  direction: rtl;
  text-align: right;
  width: 30% ;   height: 100px;
  margin-left: 5%;
  font-family: morabam;
  background-color: hsla(0, 100%, 90%, 0);
}

.linkplace2 img{
 padding: 2% ; background-color: #ffffff;  border-radius: 9px;
}

.footerinfo{
  width: 40%;
  margin-bottom: 3%;
}

.footerinfo a{
  color: #ffffff;
  text-decoration: none;
  transition: 0.4s ease-in-out;
  font-family: moramab; padding: 2%;  
  background-color: #3480c2;  margin: 2%;  border-radius: 9px; 
}

.footerinfo a:hover{
  color: #3480c2 ;
  background-color: #ffffff;
}

.linkplace a{
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: 0.4s ease-in-out;
}

.linkplace a:hover{
margin-right: 18px;
}

@media screen  and (max-width:768px){

  .footerdiv{
      display: inline-block;
      height: 680px;
  }
  .footerinfo{
      width: 100%;
  }
  .linkplace2{
      margin: 4%;
      width:90%;
  }
  .linkplace{
      width: 30%;
      display: inline-block;
      margin-left: 12%;
      margin-bottom: 0%;
  }
}

/* =========== دکمه ارتباط با ما ؟؟ ================== */
.usbtn{
  padding: 1%;
  border: 2px solid #ffffff;
}
/* ================= کد های فوتر جدید ====================*/
.myfoter{
  margin: 0%;
  padding: 3% 4%;
  background-color: #263f55;
  width: 92%;
  direction: rtl;
  height: 160px;
  display: flex;
}
.myfoter .footerlogo{
  padding-top: 5%;
  padding-left: 5%;
}
.infobox1{
  font-family: morabal;
  color: aliceblue;
  padding-bottom: 6%;
  width:30%;
  margin-right: 0%;
  display:flex;
}
.infobox1 a{
  transition: 0.2 ease-in-out;
}

.infobox2{
  width:10%;
  margin-right: 0%;
  font-family: morabal;
  color: aliceblue;
  transition: 0.2s ease-in-out;
}
.infobox2 ul {
  padding:0%;
  list-style: none;
}
.infobox2 li{
  padding-bottom: 16px;
}
.infobox2 a{
  text-decoration: none;
  font-family: morabal;
  color: aliceblue;
  transition: 0.2s ease-in-out;
}
.infobox2 a:hover{
  color: #ffc711;
}
.infobox3{
  width:7%;
  margin-right: 1%;
  font-family: morabal;
  color: aliceblue;

}

.infobox3 ul {
  padding:1%;
  list-style: none;
}
.infobox3 li{
  padding-bottom: 16px;
}
.infobox3 a{
  text-decoration: none;
  font-family: morabal;
  color: aliceblue;
  transition: 0.2s ease-in-out;
}

.infobox3 a:hover{
  color: #ffc711;
}

.myfootermap{
  margin-right: 3%;
  width: 468px;
}
.mapbtn{
text-decoration: none;
font-family: morabal;
margin-left: 3%;
padding: 3%;
margin-bottom: 2%;
border-radius: 6px;
border: 1px solid #ffc711;
color: #ffc711 ;
background-color: #263f55;
transition:  0.2s ease-in-out;
}

.mapbtn:hover{
  border: none;
  color: #263f55 ;
  background-color: #ffc711;
}

@media screen  and (max-width:768px){
  .myfoter{
    margin: 0%;
    padding: 10% 12%;
    background-color: #263f55;
    width: 76%;
    direction: rtl;
    height: 20%;
    display: inline-block;
  }

  .infobox1{
    width: 100%;
  }

  .infobox2{
  display: inline-block;
  width:34%;
  margin-right: 0%;
  font-family: morabal;
  color: aliceblue;
  transition: 0.2s ease-in-out;
}
.infobox3{
  display: inline-block;
  width:28%;
}

.myfootermap{
  width: 100%;
  margin-right: 0%;
}
}

/* استایل برای دکمه بالا برنده سایت بعد از اسکرول*/
.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;
  }
}