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/4/header41.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;
  height: auto;
  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: 1000px) {
  .header img {
    height: 60px;
    margin: 1.5rem 0.5rem;
  }
}

@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 0.5rem;
  }

  .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;
  }
}

.Titr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.subtitle {
  width: 140px;
}

.subtitr {
  margin: 0 auto;
}

.maintitle {
  width: 400px;
  margin: 0 auto;
}

.Titr button {
  background-color: rgba(255, 166, 10, 0.2);
  border: none;
  border-radius: 1rem;
  box-shadow: 0.5rem 0.5rem 2rem #ffa60a;
  cursor: pointer;
}

.Titr button:hover {
  background-color: rgba(255, 166, 10, 0.3);
  box-shadow: 0.5rem 0.5rem 5rem #ffa60a;
}

@media (max-width: 768px) {
  .maintitle {
    width: 250px;
    margin: 0 auto;
  }

  .subtitr {
    display: flex;
    flex-direction: row;
  }

  .subtitle {
    width: 110px;
  }

}

@media (max-width: 480px) {
  .Titr {
    flex-direction: column;
  }

  .subtitr {
    flex-direction: column;
  }


  .Titr button {
    width: 150px;
    margin-top: 1rem;
  }

}

.content1 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  background: linear-gradient(rgba(182, 182, 182, 0.7), rgba(255, 255, 255, 0), rgba(182, 182, 182, 0.7));
  border-radius: 1rem;
  height: auto;
  text-align: center;
  margin: 3rem auto 0;
}

h2 {
  font-family: 'vazir';
  font-weight: bold;
  margin: 0 auto;
  font-size: 18px;
  width: 50%;
}

.gallery {
  position: relative;
  width: 100%;
  margin: auto;
  height: inherit;
}

.slides {
  display: none;
  text-align: center;
  margin: 0.75rem 0;
}

.slides img {
  height: 300px;
  width: 500px;
  border-radius: 10px;
}

.description {
  margin-top: 10px;
  font-size: 18px;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 10px;
  margin-top: -22px;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 5px;
}

.prev {
  left: 1rem;
}

.next {
  right: 1rem;
}

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}


@media (max-width: 768px) {

  .prev,
  .next {
    font-size: 14px;
    padding: 5px;
  }

  .content1 {
    flex-direction: column;
    height: auto;
    margin-bottom: 2rem;
  }

  h2 {
    font-size: 18px;
    margin-top: 1rem;
  }

  .gallery {
    width: 90%;
    height: auto;
  }

  .slides img {
    height: auto !important;
    width: 80% !important;
  }

  .description {
    font-size: 14px;
  }

}

@media (max-width: 480px) {
  h2 {
    font-size: 14px;
  }

}

.content2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  height: auto;
  margin: 2rem auto;
}

.future {
  background: linear-gradient(rgba(20, 2, 63, 0.7) 17%, rgba(255, 255, 255, 0) 22%, rgba(182, 182, 182, 0.7));
  border-radius: 1rem;
  height: auto;
  width: 30%;
  margin: 0 0.5rem 0;
}

.future h2,
.sec2 h2 {
  margin: 1.5rem auto;
  border-bottom: white 0.1rem solid;
  color: white;
  width: 100%;
  text-align: center;
}

.report {
  max-height: 280px;
  overflow-y: auto;
  padding: 0 10px;
  direction: rtl;
}

.accordion-item {
  height: auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  color: black;
}

.accordion-header p {
  font-size: 1rem;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(180deg);
}

.accordion-content {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
  background-color: #f9f9f9;
  padding: 0 20px;
  text-align: justify;
  font-size: small;
}

.future li {
  margin: 2rem 1.5rem 0;
  text-align: justify;
  font-size: small;

}


/* برای مرورگرهای WebKit مثل Chrome و Safari */
.gallery::-webkit-scrollbar {
  width: 8px;
  background-color: #f0f0f0;
}

.gallery::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.gallery::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

.sec2 {
  background: linear-gradient(rgba(20, 2, 63, 0.7) 17%, rgba(255, 255, 255, 0) 22%, rgba(182, 182, 182, 0.7));
  border-radius: 1rem;
  height: auto;
  width: 70%;
  margin: 0 0.5rem 0;
}

.year-buttons {
  margin: 2rem 2rem 1rem 0;
}

button {
  margin: 5px;
  padding: 10px;
  cursor: pointer;
  border-radius: 0.5rem;
  background-color: rgba(10, 61, 98, 0.2);
  font-weight: bold;
}

.content-box {
  border: 1px solid #ccc;
  padding: 20px;
  width: 95%;
  margin: auto;
  border-radius: 0.5rem;
}

.project {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.titles {
  cursor: pointer;
  color: blue;
  margin: 5px 0;
  width: 100%;
  margin: 0 0.5rem 0 2rem;
}

.images {
  display: none;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .content2 {
    flex-direction: column;
    margin: 0rem auto;
    height: auto;
  }

  .future {
    background: linear-gradient(rgba(20, 2, 63, 0.7), rgba(255, 255, 255, 0), rgba(182, 182, 182, 0.7));
    height: auto;
    width: 100%;
    margin-bottom: 1rem;
  }

  .future h2,
  .sec2 h2 {
    color: black;
    font-size: 18px;
  }

  .sec2 {
    width: 100%;
    height: auto;
  }

  .year-buttons {
    margin: 2rem 2rem 1rem 0;
  }

  button {
    margin: 2px;
  }

}

@media (max-width: 480px) {

  .future h2,
  .sec2 h2 {
    font-size: 14px;
  }

  .sec2 {
    height: auto;
  }

  h3 {
    font-size: 14px;
  }

  .titles {
    font-size: 14px;
  }

  button {
    margin: 1px;
    width: 3rem;
    font-size: 12px;
  }

}

h3 {
  margin: 0 4rem 2rem 0;
}

.gallery2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.gallery2 img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #444;
  transition: transform 0.3s;
  margin-left: 1rem;
}

.gallery2 img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: #000;
  max-width: 800px;
  width: 100%;
  position: relative;
  padding: 10px;
}

iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: #000;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}


@media screen and (max-width: 768px) {
  .gallery img {
    width: 100px;
    height: 70px;
  }

  iframe {
    height: 300px;
  }
}

hr{
  width: 80%;
  margin: 20px auto;
  border-top: 2px solid rgba(14, 14, 87, 0.2);
}
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;
  }

}