@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{
        direction: ltr;
    }

    .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;
}

/* بخش خود معرفی هنرستان */

.div_header {
    background-color: blue;
    width: auto;
    height: auto;
}

.h1_modir {
    font-size: 30px;
    /* margin-right: 3%; */
    font-family: moramab;
    color: rgb(59, 66, 87);
}

.h1_honar {
    font-size: 30px;
    font-family: moramab;
    color: rgb(59, 66, 87);
    /* margin-right: 20%; */
}

.div_film {
    /* background-color: red; */
    /* padding-right: 30%;
     */
    width: 50%;
}

.div_modir {
    /* background-color: white; */
    /* disply: inline-flex; */
    text-align: center;
    direction: rtl;
    width: 50%;
    /* border: 1px solid black; */
    border-radius: 10%;
}

/* .div_film {} */

.div_header_main {
    /* background-color: white; */
    display: flex;
    max-width: 100%;
    direction: rtl;
    justify-content: space-between;
    padding: 5%;
    margin-top: 5%;
    gap: 5%;
}

/* بخش اون چهار تا */
.pagetitle {
    direction: rtl;
    margin-top: 7%;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    background-color: #e3f2ff;
    border-radius: 13px;
}

.pagetitle h2 {
    margin-right: 1%;
    padding: 2%;
    font-size: 30px;
    font-family: moramab;
    color: #263f55;
    text-align: center;
}

.pageheader {
    display: flex;
    width: 76%;
    margin-left: 7%;
    margin-right: 7%;
    padding: 0% 5%;
    background-color: #ffffff;
    border-radius: 13px;
    margin-bottom: 0%;
}

.pic_haeder {
    width: 90%;
    height: 90%;
    /* margin-right: 30%; */
    /* gap: 5%; */
}

/*////////////////////// بخش دوم ///////////////////*/
.pagesecond h5 {
    font-size: 18px;
    font-family: morabal;
    color: #263f55;
    text-align: justify;
}

.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;
    text-align: justify;
}

.tttitle {
    text-align: center;
    margin: 3%;
    font-family: moramab;
    color: #91b9dc;
    font-size: 30px;
}

 @media(max-width: 768px) {

    .h1_modir {
        font-size: 20px;
    }

} 

/* استایل برای دکمه بالا برنده سایت بعد از اسکرول*/
.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;
    }
  }