/* حذف مارجین و پدینگ پیش‌فرض */
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;
}




/* فوتر */
.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;
    }
}
