@font-face {
  font-family: "Vazir Bold";
  src: url("/vazir-font-v16.1.0/Vazir-Bold.woff2");
}
@font-face {
  font-family: "Vazir Light";
  src: url("/vazir-font-v16.1.0/Vazir-Light.woff");
}
@font-face {
  font-family: "Vazir Thin";
  src: url("/vazir-font-v16.1.0/Vazir-Thin.woff2");
}
* {
  margin: 0;
}
body,
html {
  direction: rtl;
  overflow-x: hidden;
  overflow-y: auto;
}
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: fixed;
  width: 100%;
  top: 0;
  height: 80px;
  background-color: white;
  z-index: 10;
}
.desktop-header img {
  width: 50px;
  height: 50px;
  margin-left: 20px;
}
.mobile-header {
  display: none;
  opacity: 0;
}
.name {
  font-family: "Vazir Bold";
}
header a {
  color: #050505;
  text-decoration: none;
  font-family: "Vazir Light";
  transition: all ease-in-out 0.3s;
}
header a:hover {
  color: #fec82f;
}
.hover-wrapper {
  position: relative;
}
.hidden1 a {
  display: inline-block;
  margin-top: 30px;
  margin-bottom: 30px;
}
.hidden1 {
  direction: ltr;
  position: absolute;
  top: 90px;
  background-color: white;
  padding: 10px 50px;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: top 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 11;
  left: -50px;
}
.hiddenN {
  position: absolute;
  background-color: white;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 10;
  margin-left: 100px;
  top: 0;
  direction: rtl;
  width: 200px;
  padding: 10px 20px;
  box-shadow: 1px 1px 10px #fec82f;
}
.hiddenB {
  position: absolute;
  background-color: white;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 10;
  margin-left: 100px;
  top: 50px;
  direction: rtl;
  width: 200px;
  padding: 10px 20px;
  box-shadow: 1px 1px 10px #fec82f;
  display: flex;
  flex-direction: column;
}
.H-N:hover .hiddenB {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.H-N:hover .hiddenN {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.hover-wrapper:hover .hidden1 {
  opacity: 1;
  visibility: visible;
  top: 22px;
  transition: top 0.3s ease, opacity 0.3s ease;
}

.advice {
  background-color: #405171;
  color: white;
  font-family: "Vazir Light";
  border: none;
  border-radius: 8px;
  padding: 5px 25px;
  cursor: pointer;
}
.info h1 {
  font-family: "Vazir Bold";
  color: #56565a;
}
.info p {
  font-family: "Vazir Light";
  color: #56565a;
}
.info {
  background-color: #efefef;
  width: max-content;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  padding-right: 20%;
  padding-left: 5%;
  padding-top: 5%;
  padding-bottom: 10%;
  position: relative;
  margin-top: 50px;
}
.info strong {
  font-family: "Vazir Bold";
}
.info hr {
  position: absolute;
  height: 80%;
  border: solid #fec82f 2px;
  top: 0%;
  right: 25%;
}
.infotop {
  position: relative;
  width: 100%;
  display: flex;
}
.infotop img {
  width: 35%;
  margin-top: 5%;
  height: 30%;
}
.maininfo {
  font-family: "Vazir Light";
  color: #56565b;
  margin-top: 40px;
  text-align: right;
  width: 60%;
  margin-right: 20%;
}
.maininfo strong {
  font-family: "Vazir Bold";
}
.box1 {
  display: flex;
  justify-content: space-evenly;
}
.box1 img {
  height: 100%;
}
.box1 h3 {
  font-family: "Vazir Light";
}
.boxinfo p {
  font-family: "Vazir Thin";
  font-size: small;
  margin-top: 10px;
  line-height: 2.1;
}
.boxinfo {
  margin: 20px 30px;
}
.B-box {
  display: flex;
  width: 650px;
  height: 450px;
  border: solid #efefef 1px;
  transition: all 0.4s ease;
  justify-content: space-between;
}
.B-box:hover {
  width: 670px;
  height: 470px;
  box-shadow: 1px 1px 8px rgb(121, 121, 121);
}
.B-box:hover h3 {
  color: #3f1482;
}
.B-box:hover p {
  color: #3f1482;
}
.boxs {
  margin-bottom: 100px;
  margin-top: 3%;
}
.S-box img {
  width: 100%;
  height: 48%;
}
.S-box p {
  font-family: "Vazir Thin";
  font-size: small;
}
.S-box {
  border: solid #efefef 1px;
  transition: all 0.4s ease;
  width: 375px;
  height: 450px;
}
.S-box:hover {
  width: 390px;
  height: 475px;
  box-shadow: 1px 1px 8px rgb(121, 121, 121);
}
.S-box:hover h3 {
  color: #3f1482;
}
.S-box:hover p {
  color: #3f1482;
}
.box2 {
  margin-top: 5%;
}
.popup {
  position: fixed;
  background-color: #405171;
  width: 70vw;
  height: 50vh;
  text-align: center;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  overflow: scroll;
  border-radius: 18px;
}
.popup.active {
  opacity: 1;
  pointer-events: auto;
  top: 50%;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 5;
  transition: all ease 0.5s;
}
.overlay.active {
  display: block;
  opacity: 1;
}
table {
  border-spacing: 40px;
  border-collapse: separate;
}
th {
  font-family: "Vazir Bold";
  color: #fec82f;
}
td {
  font-family: "Vazir Thin";
  color: #fec82f;
}
footer {
  font-family: "Vazir Bold";
  text-align: center;
  margin-top: 80px;
}
footer a {
  text-decoration: none;
  color: black;
  transition: all ease 0.4s;
}
footer a:hover {
  color: #14824b;
  transition: all ease 0.4s;
}
@media screen and (max-width: 913px) {
  .desktop-header {
    display: none;
  }
  .mobile-header {
    display: block;
  }
  .menu {
    width: 100%;
    height: 0; /* در حالت بسته */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-y: hidden;
    transition: 0.5s;
    text-align: center;
    z-index: 11;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }

  .menu a {
    display: block;
    padding: 12px;
    text-decoration: none;
    font-size: 20px;
    color: #f1f1f1;
    transition: 0.3s;
  }

  .menu a:hover {
    background: #575757;
  }

  .menu .close-btn {
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 36px;
    color: white;
  }

  .open-btn {
    font-size: 20px;
    cursor: pointer;
    padding: 10px 15px;
    background: #efefef;
    color: #3f1482;
    border-radius: 5px;
    margin: 20px;
    display: flex;
    width: 55px;
  }

  .content {
    padding: 20px;
  }

  .info {
    width: 95%; /* تقریباً پر کنه */
    padding: 20px; /* پدینگ کمتر */
    border-radius: 16px;
    flex-direction: column;
  }
  .info hr {
    display: none;
  }
  .infotop {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .p-info {
    margin-bottom: 20px;
  }
  .box1 {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    align-items: center;
  }
  .B-box {
    margin-bottom: 300px;
    width: 100vw;
    flex-direction: column;
  }
  .B-box:hover {
    margin-bottom: 300px;
    width: 100vw;
    flex-direction: column;
  }
}
