/* === ریست پایه برای هدر و فوتر === */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  background-color: #FFC000;
}

/* ====== هدر ====== */
.main-header {
  width: 100%;
  background-color: #FFC000;
  padding: 20px 0;
}

.header-inner {
  max-width: 100%;
  width: 100%;
  padding: 0 clamp(16px, 2.5vw, 42px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  direction: rtl;
  box-sizing: border-box;
}

.logo-container img {
  height: 44px;
  object-fit: contain;
}

/* منوی اصلی */
.main-menu {
  min-width: 0;
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: clamp(8px, 1vw, 18px);
  margin: 0;
  padding: 0;
}

.main-menu ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: clamp(11.5px, .82vw, 13px);
  line-height: 1.5;
  transition: 0.3s;
}

.main-menu > ul > li > a {
  white-space: nowrap;
}

.main-menu ul li a:hover {
  color: #000;
}

/* دکمه ورود/ثبت‌نام */
.auth-button a {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.auth-button a:hover {
  background-color: #000;
  color: #fff;
}

/* نوار فشرده برای لپ‌تاپ‌ها و مانیتورهای کوچک؛ زیر 1100px منوی همبرگری فعال است. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .header-inner {
    padding-inline: 14px;
    gap: 8px;
  }

  .logo-container img {
    height: 40px;
  }

  .main-menu ul {
    gap: 7px;
  }

  .main-menu ul li a {
    font-size: 11.5px;
  }

  .auth-button a {
    padding: 7px 10px;
    font-size: 11.5px;
  }
}

/* منوی موبایل */
.mobile-menu-icon {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-header {
    padding: 10px 20px;
  }

  .mobile-menu-icon {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #FFC000;
    width: 100%;
    display: none;
    z-index: 999;
    text-align: center;
  }

  .main-menu ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  .main-menu ul li {
    padding: 12px 0;
  }

  .auth-button {
    display: none;
  }

  .main-menu.show {
    display: block;
  }
}

/* ====== فوتر ====== */
.site-footer {
  background: #FFC000;   /* رنگ سازمانی زرد */
  color: #000;           /* متن مشکی */
  padding: 40px 20px 20px;
  margin-top: 40px;
  direction: rtl;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #000;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: #111;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  font-size: 13px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: 0.3s;
  color: #111;
}

.footer-col ul li:hover {
  color: #000;
}
.footer-bottom {
  text-align: center;
  margin-top: 24px;
  border-top: 1px solid #ccc;
  padding-top: 12px;
  font-size: 12px;
  color: #222;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom-links a:hover { text-decoration: underline; }

/* ریسپانسیو فوتر */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* 🎯 اصلاح کامل ساختار فوتر در موبایل */
@media (max-width: 768px) {

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .footer-col {
    background: #fffbe6;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #f0d98c;
    transition: all 0.3s ease;
  }

  .footer-col + .footer-col {
    margin-top: 10px;
  }

  .footer-col h4 {
    margin: 0;
    font-size: 15px;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
  }

  .footer-col h4::after {
    content: '▾';
    font-size: 14px;
    color: #000;
    transition: transform 0.3s;
  }

  .footer-col.active h4::after {
    transform: rotate(180deg);
  }

  /* محتوای داخل هر باکس در حالت بسته */
  .footer-col ul,
  .footer-col p,
  .footer-col img {
    display: none;
    margin-top: 10px;
  }

  /* در حالت باز */
  .footer-col.active ul,
  .footer-col.active p,
  .footer-col.active img {
    display: block;
  }

  .footer-col ul li {
    text-align: right;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .footer-col ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-col ul li a:hover {
    color: #FFC000;
  }

  .footer-bottom {
    background: #FFC000;
    color: #000;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0 0 10px 10px;
    margin-top: 16px;
    padding: 12px 0;
  }
}

/* 🚨 اصلاح قطعی ساختار فوتر برای موبایل */
@media (max-width: 768px) {
  .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
}
