/* حذف مارجین و پدینگ پیش‌فرض */
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;
}


.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;
}



/* ========================= */
/* 📱 ریسپانسیو برای نمایشگرهای کوچک‌تر */
/* ========================= */

/* تبلت (تا 1024px) */
@media (max-width: 1024px) {
  .box-main2 a {
    flex: 1 1 calc(33.33% - 20px); /* سه تا در هر ردیف */
  }
}

/* موبایل متوسط (تا 768px) */
@media (max-width: 768px) {
  .box-main2 a {
    flex: 1 1 calc(50% - 20px); /* دو تا در هر ردیف */
  }

  .box5, .box6, .box7, .box8, .box-8, .box9, .box10 {
    width: 100%;
    padding: 20px;
  }

  .box-text, .box-text2 {
    font-size: 150%;
    text-align: center;
  }
}

/* موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
  .box-main2 a {
    flex: 1 1 100%; /* یکی در هر ردیف */
  }

  .box-text, .box-text2 {
    font-size: 130%;
  }
}

/* ---------------------- نسخه اصلی ---------------------- */
/*  container  */
.container {
  display: flex;
  width: 100%;
}

.paragraph-image {
  width: 100%;
  height: 300px;
  background-color: #ecf0f1;
  border-radius: 0.78rem;
  padding: 25px;
  margin: 1rem 2rem 2.5rem;
}

.paragraph {
  background-color: #ecf0f1;
  color: #211786;
  transform: translateY(-150px);
}

.paragraph-1 {
  width: 50%;
  text-align: justify;
  line-height: 2;
  color: #211786;
  transform: translateY(-130px);
}

.image {
  position: relative;
  justify-self: left;
  transform: translateY(100px);
}

.select {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #ecf0f1;
  padding: 20px;
  border-radius: 10px;
  margin-right: 2rem;
  margin-left: 2rem;
}

.paragraph-2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #211786;
}

.paragraph-3 {
  font-size: 17px;
  color: #211786;
  text-align: justify;
  line-height: 3;
  margin-top: -1rem;
}

/* Box Main Packages */
.box-main {
  padding: 20px;
}

.box-main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  transform: translateY(-33px);
}

/* پکیج‌ها */
.box-main ul li {
  background-color: #ecf0f1;
  border-radius: 12px;
  padding: 12px;
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  transition: transform 0.3s;
  font-size: 0.89rem;
  line-height: 45px;
  margin-top: 2.3rem;
}

.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: 0.3;
  }
}

/* ---------------------- نسخه ریسپانسیو ---------------------- */

/* برای موبایل‌های کوچک (تا 576px) */
@media (max-width: 576px) {
  .container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    margin: auto 0;
    line-height: 35px;
    font-size: 0.85rem;
    /* transform: translateX(35px, -35px); */
    /* margin-left: -150px; */

  }

  .paragraph-image {
    height: auto;
    margin: auto 0;
    padding: 15px;
    transform: none;
    /* margin-left: 6rem 0 0 -6rem; */
    width: 85%;



  }

  .image {
    transform: none;
    text-align: center;
  }

  .image img {
    width: 90%;
    height: auto;
  }

  .paragraph {
    transform: none;
    text-align: center;
    margin-top: 1rem;
  }

  .paragraph-1 {
    width: 95%;
    transform: none;
    font-size: 15px;
    line-height: 2;
    margin: 1rem auto;
  }

  .select {
    margin: 1rem;
    padding: 15px;
  }

  .paragraph-2 {
    font-size: 18px;
    text-align: center;
  }

  .paragraph-3 {
    font-size: 15px;
    line-height: 2;
  }

  .box-main ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .box-main ul li {
    width: 85%;
    /* max-width: 100%; */
    justify-content: center;
    align-items: center;
    margin: auto 0;
    line-height: 35px;
    font-size: 0.85rem;
    transform: translateX(20px);
  }

  .start-btn,
  .silver-text {
    width: 100%;
    padding: 12px;
    font-size: 13px;
  }
}

/* برای تبلت‌ها (بین 577px تا 992px) */
@media (min-width: 577px) and (max-width: 992px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .paragraph-image {
    flex-direction: column;
    height: auto;
  }

  .paragraph-1 {
    width: 80%;
    transform: none;
  }

  .box-main ul {
    justify-content: center;
  }

  .box-main ul li {
    flex: 1 1 calc(45% - 20px);
    max-width: 320px;
  }

  .start-btn,
  .silver-text {
    padding: 12px 50px;
  }
}

/* برای دسکتاپ بزرگ‌تر از 992px */
@media (min-width: 993px) {
  .container {
    flex-direction: row;
    align-items: flex-start;
  }

  .paragraph-1 {
    width: 50%;
  }
}

/* فوتر */
.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;
}

/* ======================== */
/* 📱 ریسپانسیو */

/* تبلت (تا 1024px) */
@media (max-width: 1024px) {
    .site-footer .logo-section img {
        max-width: 160px;
    }

    .site-footer .social-links li a {
        font-size: 26px;
    }

    .site-footer .footer-text {
        font-size: 13px;
    }
}

/* موبایل (تا 768px) */
@media (max-width: 768px) {
    .site-footer {
        padding: 25px 10px;
    }

    .site-footer .logo-section img {
        max-width: 140px;
    }

    .site-footer .social-links {
        gap: 12px;
    }

    .site-footer .social-links li a {
        font-size: 24px;
    }

    .site-footer .footer-text {
        font-size: 12.5px;
    }
}

/* موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
    .site-footer .logo-section img {
        max-width: 120px;
    }

    .site-footer .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-footer .social-links li a {
        font-size: 22px;
    }

    .site-footer .footer-text {
        font-size: 12px;
    }
}
