@import url('font.css');
@import url('color.css');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100%;
   
  
    scroll-behavior: smooth; /* اضافه کردن اسکرول روان */
}
.search_box_small{
    display: none;
}
.search_place{
    display: none;
}
header {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#bg-video {
    width: 100%;
    height: 550px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
nav {
    
    position: fixed;
    background-color: rgba(0, 37, 130, 0.792); /* پس‌زمینه اولیه */
    display: flex;
    justify-content: center;
    height: 70px;
    padding: 0.7rem;
    margin-bottom: 0px!important;
    align-items: center;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.5s ease, box-shadow 0.5s ease; /* انتقال روان برای هر دو ویژگی */
    box-shadow: none; /* بدون سایه در حالت اولیه */
}

nav.scrolled {
    background-color: rgba(0, 37, 130, 0.823); /* پس‌زمینه پررنگ‌تر */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* سایه زیر نوبار */
}
nav li {
    margin-left: 0.7rem;
    margin-right: 0.7rem;
    font-family: "vazir";
    list-style: none;
    font-size: 0.85rem;
}
nav a{
    text-decoration: none;
    color: #fff;
}
a li:hover {
    color: var( --special_blue);
    
}
nav li img {
    width: 60px;
    height: 50px;
}
nav .active {
    color: var(--light_blue); /* رنگ صورتی */
    font-weight: bold; /* بولد کردن متن */

}

section {
    height: 100vh;
}



/* search_box */
.search_box {
    background-color: #eee;
    position: absolute;
    top: 520px; /* فاصله از بالا */
    left: 50%; /* قرار دادن باکس در وسط افقی */
    transform: translateX(-50%); /* جابجایی به وسط افقی */
    width: 60%;
    padding: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    border-radius: 2rem;
    height: 60px;
    display: flex; /* استفاده از flexbox */
    align-items: center; /* تراز عمودی */
    justify-content: center; /* تراز افقی */
    text-align: center; /* برای وسط‌چین کردن محتوا در داخل باکس */
    box-shadow: 0px 4px 6px #00000049; /* سایه زیر نوبار */
}

.search_box input[type="text"] {
    height: 100%; /* ارتفاع برای input */
    padding: 0.5rem;
    font-family: "vazir";
    font-size: 0.85rem;
    border-radius: 1.7rem;
    border:none;
    background-color: #eee;
    width: 95%; /* عرض برای input */
    
}
.search_box .search_buttem{
  
    padding: 0.5rem;
    border:none;
    background-color: var(--light_blue);
    color: white;
    font-family: "vazir";
    font-size: 0.88rem;
    border-radius: 1.7rem;
    cursor: pointer;
    height: 100%;
    margin-left: 10px;
    transition: all 1000ms;
}
.search_box .search_buttem:hover{
   
   
   background-color: var( --special_blue);
}

.search_icon{
    width: 28px;
    height: 28px;
}
.nav_small{
    display: none;
}



@media screen and (max-width: 1926px) and (min-width: 1700px) {
    #bg-video {
        width: 100%;
        height: 800px;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        }

        .search_box {
            background-color: #eee;
            position: absolute;
            top: 760px; /* فاصله از بالا */
            width: 70%;
            padding: 0.5rem;
            padding-bottom: 0.5rem;
            padding-left: 0.7rem;
            padding-right: 0.7rem;
            border-radius: 2.5rem;
            height: 80px;
        }
        

        .search_icon{
            width: 45px;
            height: 45px;
        }
        nav {

            height: 120px;
           
        }
        nav li {
            margin-left: 0.9rem;
            margin-right: 0.9rem;
            font-family: "vazir";
            list-style: none;
            font-size: 1.3rem;
        }
        nav a{
            text-decoration: none;
            color: #fff;
        }
        a li:hover {
            color: var( --special_blue);
            
        }
        nav li img {
            width: 90px;
            height: 80px;
        }
        .search_box input[type="text"] {
  
            font-size: 1.1rem;
            
            
        }

        .search_box .search_buttem{
  
           
            border-radius: 2rem;
           
        }
   
}

@media screen and (max-width: 1700px) and (min-width: 1560px) {
    #bg-video {
        width: 100%;
        height: 650px;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        }

        .search_box {
            background-color: #eee;
            position: absolute;
            top: 620px; /* فاصله از بالا */
            width: 60%;
            padding: 0.4rem;
            padding-bottom: 0.4rem;
            padding-left: 0.6rem;
            padding-right: 0.6rem;
            border-radius: 2rem;
            height: 60px;
        }
        

        .search_icon{
            width: 30px;
            height: 30px;
        }
        nav {

            height: 100px;
           
        }
        nav li {
            margin-left: 0.75rem;
            margin-right: 0.75rem;
            font-family: "vazir";
            list-style: none;
            font-size: 1.1rem;
        }
        nav a{
            text-decoration: none;
            color: #fff;
        }
        a li:hover {
            color: var( --special_blue);
            
        }
        nav li img {
            width: 80px;
            height: 70px;
        }
        .search_box input[type="text"] {
  
            font-size: 1rem;
            
            
        }
   
}
@media screen and (max-width: 1200px) {
    #bg-video {
        width: 100%;
        height: 500px;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    
}

.search_box {
    background-color: #eee;
    position: absolute;
    top: 470px; /* فاصله از بالا */
    width: 80%;
    padding: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 2rem;
    height: 50px;
}


.search_icon{
    width: 24px;
    height: 24px;
}


}

@media screen and (max-width: 992px) {
    #bg-video {
        width: 100%;
        height: 430px;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    
}

.search_box {
    background-color: #eee;
    position: absolute;
    top: 400px; /* فاصله از بالا */
   
}
.search_box input[type="text"] {
  
    font-size: 0.8rem;
    
    
}
nav li {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-family: "vazir";
    list-style: none;
    font-size: 0.8rem;
}
nav a{
    text-decoration: none;
    color: #fff;
}
a li:hover {
    color: var( --special_blue);
    
}
nav li img {
    width: 50px;
    height: 45px;
}


}

@media screen and (max-width: 768px) {
    #bg-video {
        width: 100%;
        height: 400px;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        }
  

nav {

    height: 60px;
   
}

.search_box {
    background-color: #eee;
    position: absolute;
    top: 380px; /* فاصله از بالا */
    width: 80%;
    padding: 0.15rem;
    padding-bottom: 0.15rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    border-radius: 2rem;
    height: 40px;
}

.search_box input[type="text"] {
  
    font-size: 0.75rem;
    
    
}

.search_icon{
    width: 20px;
    height: 20px;
}

nav li {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
 
    font-size: 0.76rem;
}
nav li img {
    width: 45px;
    height: 40px;
}

.search_buttem{
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--light_blue);
}





}
@media screen and (max-width: 668px) {

#bg-video {
    width: 100%;
    height: 330px;
   
 }
.search_box {
    display: none;

 }
  
nav .m-item{
    display: none;
}
.nav_small{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 96%;
  
   
}
nav li img {
    width: 60px;
    height: 50px;
    margin-right: -10px!important;
    
}
nav{
    height: 50px;
}
.menu_search_icon{
  
    display: flex;
    align-items: center!important;
}
.menu_search_icon .icon_menu{
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    margin-top: 0.7rem;
    color: #eee;
  
}
nav li img {
    width: 40px;
    height: 35px;
}



.list_menu {
    position: absolute;
    top: -330px; /* ابتدا منو بالاتر از صفحه قرار دارد */
    right: 0;
    background: #00164cde;
    width: 100%;
    height: 330px;
    padding: 10px;
    opacity: 0; /* مخفی بودن اولیه */
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}

/* هنگام باز شدن */
.list_menu.active {
    transform: translateY(330px); /* منو به پایین حرکت می‌کند */
    opacity: 1;
}

/* هنگام بسته شدن */
.list_menu.hidden {
    transform: translateY(-330px); /* منو دوباره به بالا برمی‌گردد */
    opacity: 0;
}





.list_menu li a{
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.35rem;
    margin-bottom: 0.3rem;
    border:1px solid #eee;
    border-radius: 0.3rem;
    transition: all 1s;
    
}
.list_menu li a:hover{
    color: var(--light_blue);
}
.list_menu .close_menu{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border:none;
}

.close_icon{
    width: 25px;
    height: 25px;
   
}
/* =================== */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.search_place{
    position: absolute;
    top: 0px; /* ابتدا منو بالاتر از صفحه قرار دارد */
    right: 0;
    background: #00164cde;
    width: 100%;
    height: 330px;
    padding: 10px;
    animation: slideDown 1.5s ease-out forwards;
    
}

.search_box_small {
    height: 40px;
    background-color: #ffffffa9;
    width: 70%;
    display: flex;
    align-items: center;
    padding: 0.15;
    margin-top: 125px;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 2rem;
    
}
.close_icon_search{
    width: 25px;
    height: 25px;
    color: #eee;
    margin-right: 1rem;
    transition: all 1s;
}
.close_icon_search:hover{
    color: var(--light_blue);
}
.search_icon_small{
    width: 22px;
    height: 20px;
    transition: all 1s;
    margin-top: 0.5rem;
    color: var(--basic_blue);
}
.search_icon_small:hover{
    color: var(--special_blue);
}
.search_box_small input{
    width: 95%;
    border:none;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    background-color: #ffffff00;
}
.search_box_small .search_buttem_small{
   border:none;
   background-color: #ffffff00;
    border-radius: 50%;
    padding-top: 0px!important;
    padding-bottom: 0px!important;

}


}


@media screen and (max-width: 500px) {
    #bg-video {
        width: 100%;
        height: 300px;
       
     }
     
     .search_place{
     
        height: 300px;
      
        
    }
    .search_box_small {
     
        width: 90%;
    
        
    }
    
.list_menu {
    position: absolute;
    top: -300px; /* ابتدا منو بالاتر از صفحه قرار دارد */
    right: 0;
    background: #00164cde;
    width: 100%;
    height: 300px;
    padding: 10px;
    opacity: 0; /* مخفی بودن اولیه */
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}

/* هنگام باز شدن */
.list_menu.active {
    transform: translateY(300px); /* منو به پایین حرکت می‌کند */
    opacity: 1;
}

/* هنگام بسته شدن */
.list_menu.hidden {
    transform: translateY(-300px); /* منو دوباره به بالا برمی‌گردد */
    opacity: 0;
}
.list_menu li a{
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.25rem;
    margin-bottom: 0.35rem;
    border:1px solid #eee;
    border-radius: 0.3rem;
    transition: all 1s;
    
}

}