/* حذف مارجین و پدینگ پیش‌فرض */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    background-color: #0c2461;
}

/* بخش لوگو وسط صفحه */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 21.5vh;

}

.logo-section img {
    max-width: 900px;
    width: 100%;
    height: auto;
}
/* ============= DROPDOWN MENU ============= */
.menu li {
  position: relative;
}

.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;
  font-weight: normal;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  text-align: right; /* لینک راست‌چین */
}

.menu li .dropdown-menu li a:hover {
  background-color: #007bff;
  color: #fff;
}

/* نمایش کرکره وقتی ماوس روی منو بره */
.menu li.dropdown:hover .dropdown-menu {
  display: block;
}

/* ریسپانسیو: در موبایل منوی کرکره عمودی بشه */
@media (max-width: 768px) {
  .menu li .dropdown-menu {
    position: static;
    box-shadow: none;
    min-width: unset;
  }
}

/* بخش منو */
.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;
}

.menu-section .menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    transition: color 0.3s;
    margin-right: 1.5rem;
}

.menu-section .menu li a:hover {
    color: #007bff;
}

/* دکمه همبرگری */
.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;
}

/* موبایل منو */
@media (max-width: 768px) {
    .menu-section .menu {
        display: none;
        flex-direction: column;
        gap: 10px;
    }
    .menu-section .menu.show {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
}


/* متن باکس‌ها */
.box-text, .box-text2 {
    justify-items: right;
    font-size: 175%;
    font-weight: 500;
    color: #211786;
}

/* باکس‌ها */
.box, .box-main2 {
    display: flex;
    justify-content: right; /* box-main2 می‌تواند center باشد */
    gap: 20px;
    margin-top: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.box-main2 {
  display: flex;
  flex-wrap: wrap;       /* اجازه میده در موبایل به خط بعدی بره */
  gap: 20px;
  justify-content: center; /* وسط چین شدن کل باکس‌ها */
  padding-bottom: 10px;
  overflow-x: visible;     /* اسکرول افقی برداشته شد */
}

.box-main2 a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex: 1 1 calc(20% - 20px); /* هر باکس تقریبا 20% عرض، 5 تا کنار هم */
}

.box-main2 .box5,
.box-main2 .box6,
.box-main2 .box7,
.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 .box-8,
.box-main2 a:hover .box9 {
  transform: translateY(-5px);
  border-color: #007bff;
}

/* ریسپانسیو موبایل */
@media (max-width: 1200px) {
  .box-main2 a {
    flex: 1 1 calc(33.33% - 20px); /* 3 تا در هر ردیف */
  }
}

@media (max-width: 768px) {
  .box-main2 a {
    flex: 1 1 calc(50% - 20px); /* 2 تا در هر ردیف */
  }
}

@media (max-width: 480px) {
  .box-main2 a {
    flex: 1 1 100%; /* 1 تا در هر ردیف */
  }
}

.box5, .box6, .box7, .box8,.box-8, .box9, .box10{
    width: 200px;
    height: auto;
    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;
    margin:.5rem  1rem 1rem;
}

.box5 span, .box6 span, .box7 span, .box8 span, .box-8 span, .box9 span, .box10 span {
    font-size: 16px;
    margin-top: 8px;
    color: #333;
}




/*آیکون 1*/

.text-p1 ,.span-text{
    display: flex;
    background-color:#ecf0f1;
    font-size: 55%;
    justify-self:center;
    justify-content:space-evenly;
    border-radius: .7rem;
    color:#211786 ;
    width: 80%;
    padding: 15px;
    align-items: center;
}
.text-p1{
    font-size:110%;
    /* transform: translateY(9px); */
    font-weight: 400;
    margin-top: 1rem;
}
.span-text{
    font-size:110%;
    transform: translateY(.9px);
    font-weight: 400;
    transform: translateY(-8.8px);
}
/* Box Main Packages */
.box-main {
    padding: 20px;
}

.box-main ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;

}
/* پکیج‌ها */
.box-main ul li {
    background-color: #ecf0f1;
    border-radius: 12px;
    padding: 12px;              /* قبلاً 15px بود */
    flex: 1 1 220px;            /* قبلاً 250px بود */
    max-width: 280px;           /* محدود کردن عرض */
    text-align: center;
    transition: transform 0.3s;
    font-size: .89rem;          /* متن جمع‌وجورتر */
    line-height: 45px;
}

.box-main ul li:hover {
    transform: translateY(-5px);
}

.box-main ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    margin-top: 10px;
}



.start-btn {
  background-color: #211786;
  color: white;
  border: none;
  padding: 14.5px 70px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;

}

.start-btn:hover {
  background-color: #0056b3;
}
.silver-text{
    background-color: #ced6e0;
    color:#211786 ;
      border: none;
  padding: 14.5px 70px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}
.price{
    color: #ed0909;
    text-decoration: line-through; /* خط روی متن */

}
.new-price{
    color:#06abd0;
    font-size: 30px;
    font-weight:1000 ;
    animation: blink 1.2s infinite; /* انیمیشن چشمک زن */

}


/* انیمیشن خاموش/روشن */
@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: .3;
  }
}




/* ================== رسپانسیو ================== */
@media (max-width: 992px) {
  .logo-section img {
    max-width: 600px;
  }

  .box, .box-main2 {
    flex-wrap: wrap;
    justify-content: center;
  }

  .box5, .box6, .box7, .box8, .box9, .box10 {
    width: 160px;
    padding: 15px;
  }

  .text-p1, .span-text {
    flex-direction: column;
    text-align: center;
    font-size: 95%;
  }

  .text-p1 span, .span-text span {
    margin-top: 10px;
  }

  .box-main ul {
    flex-direction: column;
    align-items: center;
  }

  .box-main ul li {
    width: 87%;
    max-width: 100%;
    /* line-height: 35px; */
    font-size: .85rem;
    margin: auto 0;
    /* margin-left: 12rem; */
    transform:translateX(20px);
  }

  .start-btn, .silver-text {
    padding: 12px 40px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .logo-section img {
    max-width: 350px;
  }

  .menu-section .menu {
    font-size: 11px;
    gap: 10px;
  }

  .box5, .box6, .box7, .box8, .box9, .box10 {
    width: 140px;
    padding: 12px;
  }

  .text-p1, .span-text {
    font-size: 85%;
    padding: 10px;
  }

  .box-main ul li {
    padding: 10px;
    font-size: .8rem;
    line-height: 30px;
  }

  .start-btn, .silver-text {
    padding: 10px 25px;
    font-size: 12px;
  }

  .site-footer {
    font-size: 13px;
  }

  .site-footer .social-links li a {
    font-size: 22px;
  }
}


/* فوتر */
.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;
}

/* ریسپانسیو موبایل فوتر */
@media (max-width: 768px) {
    .site-footer {
        padding: 15px 10px;
        text-align: center;
    }

    .site-footer .logo-section {
        justify-content: center;
        margin-bottom: 10px;
    }

    .site-footer .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}
