/* فونت کلی */
body {
/* display: flex; */
  font-family: "Vazirmatn", sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl;
  margin: auto 0;
  background-color: #2c3e50;
  /* justify-content:center ; */
  color: #1B1464;
}


/* نوار ناوبری */
nav.section {
    width: 92%;
    height: 60px;
    margin-top: 1.5rem;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    background-color: #ecf0f1;
    /* padding: 1rem 2rem; */
    border-radius: 10px 100px / 120px;
    margin: auto ;
    border: rgb(120, 236, 234) 10px double;
    background-clip: content-box;


}


/* منوهای راست و چپ */
.home,
.panel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;


}

/* خانه و منوی اصلی سمت راست */
.home {

  order: 1;

}

/* پنل مدیریت سمت چپ */
.panel {
  order: 3;
}

/* منوی کشویی */
.dropdown {
  position: relative;
  list-style: none;
  margin-right: 1rem;
}

.dropdown a {
  color: #1B1464;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropdown a:hover {
  color: #31dcec
}

/* منوی کشویی پنهان */
.dropdown-menu {
    width: 14%;
  display: none;
  position: absolute;
  top: 2rem;
  right: 0;
  background: #ecf1f1;
  margin-right: 19rem;
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  z-index: 100;
  justify-content: center;
border-bottom-right-radius: 25%;
border:#f40895 10px double;
background-clip: content-box;
}


/* آیتم‌های داخل منوی کشویی */
.dropdown-menu li {
  padding: 8px 16px;
}

.dropdown-menu li a {
  color: #1B1464;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  color: #31dcec}

/* فعال شدن با هاور */
.dropdown:hover + .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

/* لینک‌ها و آیکن‌ها */
a {
  color: #1B1464;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

a:hover {
  color: #31dcec}

.iconify {
  vertical-align: middle;
  margin-left: 5px;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
  nav.section {
    flex-direction: column;
    align-items: flex-start;
  }

  .home,
  .panel {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
  }
}

/* کانتینر */
#contact {
  width: 90%;
  background-color: #ecf0f1;
  /* padding: 40px 20px; */
  text-align: center;
  margin:auto;
  transform: translatey(70px);
  font-family: 'Vazirmatn', sans-serif;
  align-items: center;
  border: #9be15e 10px double;
    background-clip: content-box;
  border-radius: 10px 100px / 120px;


}

#contact h2 {
  color: #ff6f61;
  font-size: 24px;
  margin-bottom: 20px;
}

#contact ul {
  list-style: none;
  padding: 0;
  line-height: 2;
}

#contact a {
  color: #0077cc;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 15px;
  font-size: 18px;
}

/* about */
.about-section {
    width: 92%;
    margin: auto ;
    background-color: #ecf0f1;
    transform: translatey(35px);
    align-items: center;
    border-radius: 10px 100px / 120px;
    border: #9be15e 10px double;
    background-clip: content-box;
}

/* .about-section h2 {
    width: 92%;
  color: #ff7b54;
  margin-bottom: 20px;
  font-size: 28px;
} */

.h2{
    justify-self: start;
    color: #ff914d;
    justify-content:space-around;
    align-items: center;
    margin: auto ;


}

.about-section p {
  color: #1B1464;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
  /* padding: 25px; */
}

.about-features {
    width: 85%;
    padding: 25px;
    margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;

}
.text{
    padding: 25px;
}

.feature {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.feature h3 {
  color: #ff914d;
  margin-top: 10px;
}

.feature p {
  color: #555;
  font-size: 14px;
  margin-top: 8px;
}




/* footer */
.footer-main ,.fardad ,.fardad1{
    width: 92%;
    height: auto;
    place-items: center; /* مرکز افقی و عمودی */
    /* transform: translatey(-45px); */
    display:grid;
    grid-row-end: auto;
    background-color: #ecf0f1;
    margin: auto ;
    margin-top: 3.5rem;
    border-radius: 10px 100px / 120px;
    border: rgb(120, 236, 234) 10px double;
    background-clip: content-box;
    /* grid-area: 2 / 1 / 2 / 4; */
    /* grid-template-columns: 1fr 2fr; */
    grid-template-columns: 8ch auto;
    margin-bottom: .5rem;
    transform: translateY(43px);

}

.fardad{
    padding: 20px;
    transform: translateY(-50px) translateX(40px); /* جابجایی در راستای عمودی و افقی */
    margin-bottom: 1rem;
    justify-content: center;
    color: #1B1464;
    background: transparent;   /* بدون بکگراند */


}
.fardad1{
    padding: 20px;
    margin-bottom: 1rem;
    transform:translateY(40px);
    color: #1B1464;
    text-decoration: none;
    list-style: none;

}

.number1{
    color:#4b7bec;
}

.number2{
    color: #fa8231;
}

.number3{
    color: #20bf6b;
}
.call-ferst{
    color: #211786;
}



/* --------- رسپانسیو برای موبایل (max-width: 768px) --------- */
@media (max-width: 768px) {

  body {
    background-color: #2c3e50;
  }

  nav.section {
    width: 95%;
    height: auto;
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
  }

  .home,
  .panel {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dropdown-menu {
    width: 60%;
    margin-right: 0 !important;
    position: static;
    border-width: 6px;
    text-align: center;
  }
}


/* --------- رسپانسیو برای موبایل کوچک (max-width: 480px) --------- */
@media (max-width: 480px) {

  nav.section {
    border-width: 6px;
  }

  .dropdown a {
    font-size: 0.9rem;
  }

  .dropdown-menu li {
    padding: 6px 0;
  }
  }
