html {
  font-size: 100%;
}

@font-face {
  font-family: "vazir";
  src: url(./fonts/Vazir.eot)format("embedded-opentype");
  src: url(./fonts/Vazir.ttf)format("truetype");
  src: url(./fonts/Vazir.woff)format("woff");
  src: url(./fonts/Vazir.woff2)format("woff2");
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: 'vazir', sans-serif;
}

header {
  width: 100%;
  height: 12rem;
  background: gray;
  border-top: solid 1.5rem black;
  background-image: url(./img/2/header2.webp);
  background-repeat: no-repeat;
  background-size: cover;
}

.header {
  position: relative;
  display: flex;
  align-items: center;
}

.header img {
  width: auto;
  height: 70px;
  margin: 1rem 3rem 0 0;
}

nav {
  background: #1b2e42;
  padding: 1rem;
  text-align: center;
  margin-top: 0.1rem;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  display: none;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  margin-right: 1rem;
}

a.navbar,
.custom-select {
  display: block;
  padding: 10px 12px;
  font-weight: bold;
  font-family: "vazir";
  font-size: .9rem;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  position: relative;
  text-align: center;
  margin-left: .5rem;
  background: linear-gradient(120deg,
      #1b2e42,
      #2a4868,
      #375e86,
      #2a4868,
      #1b2e42);
  cursor: pointer;
}

.custom-select:hover,
a.navbar:hover {
  color: #f0a8a8;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: linear-gradient(120deg, #1b2e42, #2a4868, #375e86, #2a4868, #1b2e42);
  border-radius: 6px;
  padding: 0;
  list-style: none;
  z-index: 100;
  font-size: 14px;
  font-weight: normal;
}

.custom-select:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #2a4868;
  color: #f5cccc;
}

a.navbar span,
.custom-select span {
  position: relative;
  z-index: 1;
}

a.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: auto;
  transition: left 0.4s ease;
  z-index: 0;
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 1rem 0;
    background-size: auto 100px;
  }

  .header {
    margin-right: 2.5rem;

  }

  .header img {
    height: 50px;
    margin: 0 0rem;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    align-items: right;
    width: 20rem;
  }

  .menu a {
    margin: 0.5rem;
    width: 15rem;
  }

  .custom-select {
    margin: 0.5rem;
    width: 15rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu.active {
    display: flex;
    background: none;
  }
}

@media (max-width: 480px) {
  header {
    height: 5rem;
    padding: 1rem 0;
    background-size: auto 70px;
  }

  .header img {
    height: 40px;
    margin: -0.7rem 0.2rem;
  }

  .name {
    width: 200px;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    align-items: right;
    width: 20rem;
  }

  .menu a {
    margin: 0.5rem;
    width: 15rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu.active {
    display: flex;
    background: none;
  }
}

.main {
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  margin-top: 2rem;
}

.intro {
  width: 30%;
  height: 25rem;
  background-color: rgba(95, 80, 228, 0.1);
  border-radius: 1rem;
  padding: 2rem 0 1rem 0.2rem;
  border: none;
  box-shadow: 0px 0px 10px #37516d,
    0px 0px 10px #37516d inset;
  border: 2px solid #1b2e42;
  align-items: center;
}

.intro a {
  font-family: "vazir";
  color: black;
  font-weight: bold;
  /* text-shadow: 0px 0px 2px #6d58e2; */
  font-size: 14px;
}

.intro a:hover {
  text-shadow: 0px 0px 2px #f71111;
  font-size: 15px;
}

.intro li {
  margin: 0rem 2rem 2rem 0rem;
}

.content {
  padding: 0 1rem;
  width: 100%;
  box-shadow: 0px 0px 10px #d8e6f5,
    0px 0px 10px #d8e6f5 inset;
  margin-right: 1rem;
}

.section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 1rem 1rem 2rem;
}

.title {
  font-family: "vazir";
  font-size: 120%;
  font-weight: bold;
  text-shadow: 0px 0px 5px #ff0080;
  background-image: url(./img/2/title.webp);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2rem;
  padding: 2rem 2rem 3rem 2rem
}

.subtitle {
  font-family: 'vazir';
  font-size: 90%;
  padding-bottom: 2rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
  margin: 0 1rem;
}

#one,
#two,
#three,
#four,
#five {
  background-image: url(./img/2/mainback.webp);
  background-repeat: no-repeat;
  border-bottom: rgb(193, 182, 224) solid .2rem;
}

.text-content {
  height: 110px;
  overflow: hidden;
  transition: height 0.3s;
}

.text-content.expanded {
  height: auto;
}

.read-more-btn {
  background-color: #0d2844;
  color: #FFF;
  border-radius: 1rem;
  border: none;
  padding: 10px 20px;
  margin: 0 1rem 1rem 0;
  cursor: pointer;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .intro {
    width: 80%;
    height: auto;
    margin: 0 auto 2rem;   
  }

  .section img {
    width: 13rem !important;
  }

  .title {
    font-size: 1rem;
  }

  .subtitle {
    font-size: 80%;
  }

}

@media screen and (max-width: 480px) {
  .section img {
    width: 8rem !important;
  }

  .content {
    margin: 1rem auto;
  }

  .title {
    font-size: 0.7rem;
  }

  .subtitle {
    font-size: 75%;
  }

}
footer {
  height: auto;
  background-image: url(./img/fixed/footerback.png);
  background-repeat: no-repeat;
  background-size: 1500px 380px;
  margin-top: 2rem;
  padding: 3rem 2rem 1rem 2rem;
}

footer h2 {
  font-size: 1rem;
  text-align: center;
  font-weight: bold;
  color: white;
  border-bottom: 0.1rem solid white;
}

footer h3 {
  font-size: 0.9rem;
  color: white;
  margin: 0;
  text-align: center;
}

.masengers {
  color: rgb(182, 174, 255);
  margin: 0;
}

.page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.page img {
  width: 2rem;
  margin: 0.5rem;
  opacity: 0.5;
}

.page img:hover {
  opacity: 1;
}

.contact {
  display: flex;
  margin-bottom: 1rem;
}

.contact img {
  width: 1.5rem;
  margin: 0 0.5rem;
}

.contact p {
  font-size: 0.9rem;
}


@media screen and (max-width: 768px) {
  footer {
    background-size: cover;
  }

}

@media screen and (max-width: 480px) {

  footer h2 {
    text-align: right;
    font-size: 0.9rem;
  }

  footer h3 {
    text-align: right;
    font-size: 0.7rem;
  }

  .page {
    justify-content: right;
    margin-right: 2rem;
  }

  .contact img {
    width: 1rem;
  }

  .contact p {
    font-size: 0.5rem;
  }

}