

@font-face {
    font-family: Tanha;
    src: url('../Fonts/Tanha.woff');

}

html , body {
    height: 100%;
    width: 100%;   
    font-family: Tanha; 
    direction: rtl;
}
  
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
h2{
    font-family: Tanha, sans-serif;
}
/* header */
header{
    width: 100%;
    background-color: #777777;
    height: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar{
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.subnav {
  float: left;
  overflow: hidden;
}

.subnav .subnavbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  font-family: Tanha;
}

.navbar a:hover, .subnav:hover .subnavbtn {
  background-color: #93b027;
  border-radius: 10px;
  transition: 1s;
  
}

.subnav-content {
  display: none;
  position: fixed;
  left: 0;
  background-color: rgb(113, 0, 121);
  width: 100%;
  z-index: 1;
}

.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
}

.subnav-content a:hover {
  background-color: #eee;
  color: black;
}

.subnav:hover .subnav-content {
  display: block;
}
.mobile-container {
  display: none;
  width: 100%;
  margin: auto;
  color: white;
  border-radius: 10px;
}

.topnav {
  overflow: hidden;
  background-color: #16002b;
  position: relative;
}

.topnav #myLinks {
  display: none;
  position: fixed;
  background-color: #16002b;
  width: 100%;
  height: 100%;
  text-align: center;
}

.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
  border: white;
  border: white;
  border-width: 1px;
  border-style: solid;
}

.topnav a.icon {
  background: #16002b;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  transition: 1s;
  
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}
.active {
  font-family: Tanha;
  color: white;
}
/* End */ 

/* Footer */

footer{
  width: 100%;
  background-color: rgb(189, 189, 189);
}
footer h5{
  margin-bottom: 1.5rem;
}


.telico{
  background: url(../icons/telegram.png);
}
.youtubeico{
  background: url(../icons/youtube.png);
}
.gmailico{
  background: url(../icons/gmail.png);
}
.instaico{
  background: url(../icons/insta.png);
}
.aparatico{
  background: url(../icons/aparat.png);
}
.icona{
  margin: 1rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: black;
  background-size: cover;
  transition: background-color 0.5s;
}

.icona:hover {
  background-color: rgb(146, 1, 146);  
}
/* End */

.fdiv{
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fdiv h3{
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.fdiv p{
    margin-bottom: 1rem;
}
.fdiv1{
    width: 468px;
    margin-left: 4rem;
}
.fdiv12{
    width: 100%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center
}
.gbtn{
    background-color: #0088e6;
    width: 210px;
    height: 40px;
    border: none;
    border-radius: 5px;
    color: white;
    font-family: Tanha;
    cursor: pointer;
    transition: 0.5s;
}
.gbtn:hover{
    background-color: #004f87;
}
.fdiv2{
    width: 570px;
}
video{
    border-radius: 10px;
}
.sdiv{
    width: 100%;
    height: 50px;
    background-color: rgb(85, 85, 85);
    display: flex;
    justify-content: space-around;
    align-items: center;
    
}
.reveal{
    position: fixed;
    top: 0;
}
.sdiv a{
    margin: 0.5rem;
    color: white;
    text-decoration: none;
    transition: 0.5s;
}
.sdiv a:hover{
    color: #a7a7a7;
    text-decoration: underline;
}
.sdiv button{
    width: 100px;
    height: 40px;
    background-color: rgb(85, 85, 85);
    border-style: groove;
    border-color: white;
    color: white;
    font-family: Tanha;
    border-radius: 5px;
    cursor: pointer;
}
.tdiv{
    width: 100%;
    background-color: #ffffff;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    
}
.tdivv{
    width: 70%;
    text-align: justify;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    
}
.tdivv h3{
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.rrr{
    flex-direction: row-reverse;
}


.odiv{
    width: 100%;
    background-color: #f4f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.odiv1{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.odiv1 div{
    margin: 1rem;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 170px;
}
.odiv1 img{
    padding: 10px;
}
.div5{
    background-color: #f4f4f6;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.div5 div{
    width: 60%;
    height: 80%;
    border-style: double;
    border-width: 10px;
    border-color: #0088e6;
    border-radius: 18px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.div6{
    width: 100%;
    background-color: #ecf9fe;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cards{

    width: 80%;
    display: flex;
    flex-wrap: wrap;

}
.card{
    flex: 1 0 18%;
    padding: 18px;
    border: #0088e6 ;
    align-content: center;
    text-align: center;
    transition: 0.5s;
    font-weight: bold;
    align-items: center;
}
.card:hover{
    border-radius: 60px;
    border-style: solid;
    cursor: pointer;
    margin: 2rem;
}
.card img{
    width: 155px;
}

.div7{
    padding: 18px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f5f6;
}

.ldiv{
    margin: 29px 0px;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ldiv2{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: end;
    padding: 10px;
}

.ansh4{
    padding: 10px;
    width: 50%;
    font-size: 18px;
}
.answer{
    max-height: 0;
    margin: 10px 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.5s ease; /* انیمیشن برای max-height و opacity */
}

.answer.show {
  max-height: max-content;
  opacity: 1; /* شفافیت کامل */
}

.lanswer{
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 18px;
    align-items: center;
}
.lanswer h4{
    font-weight: normal;
}
.questiondiv {
  direction: rtl;
  width: 100%;
  margin: auto;
  border-radius: 8px;
  padding: 2px;
}

.question {
  margin: 5px 0;
  padding: 10px;
  border-radius: 8px;
  border-style: solid;
  border-color: #0088e6;
  cursor: pointer;
  transition: 0.4s;
}
.question:hover{
  color: white;
  background-color: #0088e6;
 }

.div9{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f5f6;
    padding-bottom: 2rem;

}

.viddiv {
    width: 60%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.video-section {
    flex: 2;
    padding: 20px;
    position: relative;
}
.video-section video {
    width: 100%;
    border-radius: 18px;
    border: none;
}
.sidebar {
    flex: 1;
    border-radius:8px;
    margin-left: 20px;
}
.sidebar h3 {
    margin-top: 0;
}
.sidebar ul {
    list-style-type: none;
    padding: 0;
}
.sidebar ul li {
    margin: 10px 0;
    padding: 14px;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
    border: 608000;
    border-style: solid;
    border-width: 1px;
    
}
.sidebar ul li:hover {
    background-color: #608000;
    color: white;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.selected {
    background-color:#608000; /* رنگ انتخابی */
    color: white;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}


@media screen and (max-width: 600px) {
    .navbar{
      display: none;
    }
    .mobile-container{
      display: block;
      direction: ltr;
    }
    .fdiv{
        flex-direction: column;
        margin-bottom: 2rem;
    }
    .fdiv1{
        text-align: center;
        width: 100%;
        margin: 0;
    }
    .icona{
        height: 48px;
      }
    .fdiv2{
        width: 97%;
        margin-top: 1rem;
    }
    .gbtn{width: 150px;}
    .sdiv{height: 60px;position: fixed;bottom: 0;}
    .sdiv1{display: none;}
    .sdiv2{width: 100%;text-align: center;}
    .sdiv2 button{width: 45%;}
    .tdivv{width: 98%;flex-direction: column;}
    .tdiv img{ width: 100%;}
    .odiv1{width: 100%;flex-wrap: wrap;}
    .cards{width: 98%;}
    .card{flex:none;height: auto;margin: 4px 1px;width: 49%;padding: 2px;position: static;background-color: #ecf9fe;}
    .card p{margin: 0;width: 91%;}
    .card:hover{margin: 4px 1px;}
    .tdiv1 ul{
        padding: 0px 24px;
    }
    .tdiv2 ul{
        padding: 0px 24px;
    }
    .odiv1 div{
        width: 40%;
    }
    .div5{
        height: auto;
    }
    .div5 div {
        width: 98%;
    }
    .div5 div h2{
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        margin-top: 1rem;
    }
    .div5 div button{
        width: 80%;
        margin-bottom: 1rem;
    }
    .div7{
        padding: 25px 10px;
    }
    .ldiv{
        width: 100%;
    }
    .ldiv2 h4{
        font-size: 18px;
    }
    #mh4{
        width: 14%;
    }
    #mmh4{
        margin-left: 14px;
    }
    .lanswer h4{
        font-size: 13px;
        padding: 10px 0px;
    }
}