/* ================== RESET ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: #0c2461;
  overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

/* ================== LOGO ================== */
.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 21.5vh;
}

.logo-section img {
  max-width: 900px;
  width: 100%;
  height: auto;
}

/* ================== MENU ================== */
.menu-section {
  background-color: #ecf0f1;
  padding: 15px 0;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-section .menu {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 25px;
  padding-right: 1.5rem;
}

.menu-section .menu li {
  position: relative;
}

.menu-section .menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 12px;
  transition: color 0.3s;
}

.menu-section .menu li a:hover {
  color: #007bff;
}

/* Dropdown */
.menu li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ecf0f1;
  min-width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  z-index: 999;
  text-align: right;
}

.menu li .dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.menu li .dropdown-menu li a:hover {
  background-color: #007bff;
  color: #fff;
}

.menu li.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* ================== BOXES ================== */
.box-text, .box-text2 {
  justify-items: right;
  font-size: 175%;
  font-weight: 500;
  color: #211786;
}

.box, .box-main2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.box-main2 a {
  text-decoration: none;
  color: inherit;
  flex: 1 1 calc(20% - 20px);
}

.box-main2 .box5,
.box-main2 .box6,
.box-main2 .box7,
.box-main2 .box8,
.box-main2 .box-8,
.box-main2 .box9 {
  width: 100%;
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #ecf0f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.box-main2 a:hover .box5,
.box-main2 a:hover .box6,
.box-main2 a:hover .box7,
.box-main2 a:hover .box8,
.box-main2 a:hover .box-8,
.box-main2 a:hover .box9 {
  transform: translateY(-5px);
  border-color: #007bff;
}

.box5 span, .box6 span, .box7 span, .box8 span, .box-8 span, .box9 span {
  font-size: 16px;
  margin-top: 8px;
  color: #333;
}

/* ================== MAIN ================== */
.main {
  width: 85%;
  max-width: 1200px;
  margin: 1.25rem auto 2rem;
  padding: 5rem;
  background-color: #ecf0f1;
  border-radius: 5rem;
  gap: 2rem;
  overflow: hidden; /* جلوگیری از بیرون زدن تصویر */
}

.image {
  width: 100%;
  max-width: 450px;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
  margin: 4rem auto 0;
}

.image:hover {
  transform: scale(1.3);
}

/* ================== TEXT ================== */
.text-h1 h1 {
  font-size: 2rem;
  color: #211786;
  margin-bottom: 1rem;
  text-align: center;
}

.text p {
  line-height: 2.6;
  margin-bottom: 1rem;
}

.title, .paragraph p {
  color: #211786;
  font-weight: bold;
  line-height: 2.6;
  margin-top: 3rem;
  font-size: large;
}
.number1 { color:#4b7bec; }
.number2 { color: #fa8231; }
.number3 { color: #20bf6b; }

.call-ferst { color: #211786; }
.call a {
    color: #211786;
    text-decoration: none;
}

.main li {
    list-style: none;
}


/* ================== FOOTER ================== */
.site-footer {
  background-color: #ecf0f1;
  color: #211786;
  padding: 20px 10px;
  text-align: center;
}

.site-footer .logo-section img {
  max-width: 200px;
  margin-bottom: 15px;
}

.site-footer .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .social-links li a {
  color: #007bff;
  font-size: 28px;
  transition: color 0.3s;
}

.site-footer .social-links li a:hover {
  color: #0056b3;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1200px) {
  .box-main2 a {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  .menu-section .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .menu-section .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .main {
    padding: 2rem;
    border-radius: 2rem;
  }

  .image {
    max-width: 100%;
    transform: none !important;
  }

  .box-main2 a {
    flex: 1 1 calc(50% - 20px);
  }

  .box5, .box6, .box7, .box8,.box-8, .box9 {
    margin:auto 0;
    width: 100%;
    max-width:100%;
  }
}

@media (max-width: 480px) {
  .box-main2 a {
    flex: 1 1 100%;
  }

  .main {
    width: 92%;
    padding: 1.5rem;
  }

  .image {
    max-width: 100%;
    transform: none !important;
  }

  .text-h1 h1 {
    font-size: 1.6rem;
  }
}
