

@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: #608000;
    width: 210px;
    height: 40px;
    border: none;
    border-radius: 10px;
    color: white;
    font-family: Tanha;
    cursor: pointer;
    transition: 0.5s;
}
.gbtn:hover{
    background-color: #496200;
}
.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%;
    height: 50%;
    background-color: #edf5ea;
    text-align: center;
    
}
.tdiv h2{
    padding-top: 3rem !important;
}
.tdiv h5{
    margin-top: 2rem;
}
.sepidics{width: 100%;display: flex;justify-content: center;align-items: center;flex-direction: row-reverse;
    margin-top: 3rem;
}
.sepidics img{
    width: 66%;
}
.sepidics p{
    font-size: 16px;
}
.sepidics div{
    width: 12%;
    margin: 1rem;
}
.odiv{
    width: 100%;
    height: 70px;
    background-color: #cacaca;
    display: flex;
    align-items: center;
    justify-content: center;
}
.div5{
    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: #608000;
    border-radius: 18px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.div6{
    width: 100%;
    background-color: #f4f5f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cards{

    width: 80%;
    display: flex;
    flex-wrap: wrap;

}
.card{
    flex: 1 0 21%;
    height: 182px;
    padding: 18px;
    margin: 1rem;
    border: #92c300 ;
    border-style: solid;
    border-radius: 10px;
    align-content: center;
    text-align: center;
    transition: 0.5s;
    font-weight: bold;
    justify-content: center;
}
.card:hover{
    cursor: pointer;
    border-color: #496200;
    background-color: #83ae02;
    color: white;
    margin: 2rem;
}

.ffdiv{
    margin: 2rem;
    width: 80%;
    background-color: #83ae02;
    height: 80px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 10px;
    color: white;
}
.div7{
    padding: 18px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card7{
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center
}
.cards7{
    padding: 18px;
    margin: 1rem;
    border-radius: 18px;
    border-color: #496200;
    border-style: double;
    width: 30%;
}
.cards7 h4{
    padding: 10px;
    text-align: center;
    margin-bottom: 1rem;
    background-color: #83ae02;
    border-radius: 28px;
    color: rgb(0, 0, 0);
}


.div8{ 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #4b5158;
    color: white;
}
.questiondiv {
    width: 60%;
    margin: auto;
    border-radius: 8px;
    padding: 20px;
}

.question {
    margin: 5px 0;
    padding: 10px;
    border-radius: 8px;
    border-style: solid;
    border-color: white;
    cursor: pointer;
    transition: 1s;
}
.answer {
    max-height: 0;
    margin: 10px 0;
    padding: 0 10px;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease; /* انیمیشن برای max-height و opacity */
}
.answer.show {
    max-height: 200px; /* حداکثر ارتفاع برای نمایش */
    opacity: 1; /* شفافیت کامل */
    
}
.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;
}

.odiv h2{width: 50%;}
.odiv img{width: 25%;}


@media screen and (max-width: 600px) {
    .navbar{
      display: none;
    }
    .mobile-container{
      display: block;
      direction: ltr;
    }
    .icona{
      height: 48px;
    }
    .fdiv{
        flex-direction: column;
        margin-bottom: 2rem;
    }
    .fdiv1{
        text-align: center;
        width: 100%;
        margin: 0;
    }
    .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%;}
    .tdiv{padding: 0px 8px;height: auto;}
    .sepidics{align-items: center;flex-wrap: wrap;justify-content: center;}
    .sepidics div{width: 40%;margin: 0.5rem;}
    .odiv{height: auto;flex-direction: column;}
    .odiv h2{width: 100%;font-size: 18px;text-align: center;margin-top: 1rem;}
    .odiv img{width: 100%;margin-bottom: 1rem;}
    .div5 div{width: 98%;}
    .cards{width: 98%;}
    .card{flex:none;height: 82px;margin: 4px 1px;width: 49%;padding: 2px;justify-content: center;position: static;}
    .card p{margin: 0;}
    .card:hover{margin: 4px 1px;}
    .ffdiv{margin: 20px 2px;width: 98%;flex-direction: column;height:auto;}
    .ffdiv button{width: 80%;margin: 2px;padding: 1rem;}
    .div7{padding: 1px;margin-bottom: 1rem;}
    .card7{width: 98%;}
    .cards7{width: 100%;margin: 5px;}
    .div8{padding: 0px 10px;}
    .div8 h3{margin:2rem 0rem;}
    .div8 h5{font-size: 15px;text-align: center;margin-bottom: 1rem;}
    .div8 img{width: 100%;height: 160px;}
    .questiondiv{width: 100%;padding: 0;margin-bottom: 2rem;}
    .question{font-size: 15px;}
    .div9{padding: 5px;}
    .viddiv{width: 100%;flex-direction: column-reverse;}
    .sidebar{margin-left: 0;width: 98%;}
    .video-section{flex: none;padding: 0;}
}