* {
  margin: 0;
  box-sizing: border-box;
}

body {
  direction: rtl;
  font-family: "iranyekanwebregularfanum.woff2", irany, Farhang;
  text-align: justify;
  text-justify: inter-word;
  line-height: 2.5;
  background-color: #eee;
}

@font-face {
  font-family: 'iranyekanwebregularfanum.woff2';
  src: url('../font/iranyekanwebmediumfanum.woff2') format('woff2'),
    url('../font/iranyekanwebregularfanum.woff2') format('woff2'),
    url('../font/iranyekanwebmediumfanum.woff2') format('woff2');
  font-display: swap;
}

.header {
  width: 100%;
  margin-top: 0.5em;
  padding: 1em;
  height: 10em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header img {
  width: 10%;
  height: auto;
}

.topnav {
  overflow: hidden;
  border-radius: 10px;
  transition-duration: 0.4s;
  cursor: pointer;
  background-color: white;
  color: #000000;
}

.topnav a {
  float: right;
  display: block;
  margin: 4px 2px;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}

.topnav a:hover {
  color: black;
  background-color: #B2DDEB;
}

.topnav a.active {
  background-color: #008CBA;
  color: white;
}

.topnav .icon {
  display: none;
}

#myTopnav {
  position: sticky;
  top: 0;
}

/* content of the page */
.content {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* page content */
.pagecontent {
  display: inline-block;
  width: 71%;
  margin: 0.5em;
  padding: 1em;
  background-color: white;
  border-radius: 10px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: 10px 16px;
  list-style: none;
  background-color: #eee;
  border-radius: 10px;
}

.breadcrumb li {
  display: inline;
  font-size: 18px;
}

.breadcrumb li+li:before {
  padding: 8px;
  color: black;
  content: "/\00a0";
}

.breadcrumb li a {
  color: #0275d8;
  text-decoration: none;
}

.breadcrumb li a:hover {
  color: #01447e;
  text-decoration: underline;
}

/* accordion */
details summary {
  background-color: #eee;
  cursor: pointer;
  padding: 0.2em 0.2em;
  display: block;
}

details summary::marker {
  display: none;
}

details span {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  padding: 0 2rem 0 2rem;
  font-size: 20px;
  border-bottom: 1px solid #000000;
}

details span::before {
  content: "......";
  transition: rotate 200ms ease-in-out;
}

details[open] span::before {
  rotate: -90deg;
}

.details-body {
  display: flex;
  flex-direction: column;
}

.details-body a {
  margin: 0.2em 0.1em;
  padding: 0.3em 0.3em 0 0;
  font-size: 18px;
  background-color: #eee;
  border-radius: 10px;
  text-decoration: none;
}

.details-body .titleLinks {
  margin: 0.2em 0.1em;
  padding: 0.3em 0.3em 0 0;
  font-size: 18px;
  background-color: #8d93ad;
  border-radius: 10px;
  text-decoration: none;
}

.details-body a {
  background: #8d93ad;
}

/* accordion end */

.textbox {
  width: 95%;
  padding: 1em;
  margin-inline: auto;
  border: 1px solid #888080;
  border-radius: 10px 10px;
}

/* sidenav start */
.sidenav {
  width: 27%;
}

.subsidenav {
  border-radius: 10px;
  margin: 0.5em;
  padding: 1em;
  background-color: white;
}

.subsidenav .label {
  font-size: 20px;
  text-align: center;
}

.subsidenav a {
  display: inline-block;
  width: 100%;
  border-top: 1px solid #008CBA;
  text-decoration: none;
}

.subsidenav a:hover {
  text-decoration: underline;
}

#mySidenav {
  position: sticky;
  top: 5em;
}

/* sidenav ends */

.advertise {
  width: 80%;
  padding: 1em;
  margin-inline: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
  border-radius: 10px 10px;
}

/* foote starts */
.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.text {
  display: inline-block;
  width: 23%;
  margin: 0.5em;
  padding: 1em;
  text-align: center;
  border-right: 5px solid #008CBA;
}

/* footer ends */
table,
tr,
th {
  border: 1px solid #000000;
  border-collapse: collapse;
  padding: 0.5em;
  text-align: center;
}

.tablecenter {
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 900px) {
  .header {
    flex-direction: column-reverse;
  }

  .header img {
    width: 20%;
    padding-top: 1em;
  }

  /* Topnav start */
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: left;
    display: inline;
  }

  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive .icon {
    position: absolute;
    left: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: right;
  }

  /* top nav ends */
  .container {
    flex-direction: column;
  }

  .item {
    width: 98%;
  }

  .image {
    width: 50%;
  }

  .text {
    width: 47%;
  }

  .content {
    flex-direction: column;
  }

  .pagecontent {
    width: 98%;
  }

  .sidenav {
    width: 100%;
  }

  #mySidenav {
    display: none;
  }

  .footer {
    flex-direction: column;
  }
}

@media screen and (min-width: 768px) {}

@media screen and (min-width: 768px) {}