@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Bold-FD-WOL.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Black-FD-WOL.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==============================
   پس‌زمینه و لایه شیشه‌ای
============================== */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* بهتره برای اسکرول */
  align-items: center;
  background: linear-gradient(135deg, #cce9ff, #e6f5ff);
  position: relative;
}

/* لایه شیشه‌ای روی کل صفحه */
body::before {
  content: "";
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
  pointer-events: none; /* اطمینان از اینکه لایه روی تعامل کاربر تاثیری ندارد */
}

/* ==============================
   هدر نوا آرا – حرفه‌ای و ریسپانسیو
============================== */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #cce9ff, #e6f5ff);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  box-sizing: border-box;
  height: 154px; /* ارتفاع واقعی هدر */
}

/* فاصله دادن main از هدر ثابت */
main {
  padding-top: 154px; /* برابر ارتفاع هدر */
}

/* اگر از anchor link استفاده می‌کنید */
section {
  scroll-margin-top: 154px; /* جلوگیری از مخفی شدن محتوا زیر هدر */
}

/* ریسپانسیو موبایل */
@media (max-width: 992px) {
  header {
    height: 154px;
  }
  main {
    padding-top: 154px;
  }
  section {
    scroll-margin-top: 154px;
  }
}

/* لوگو */
header .logo h1 {
  font-size: 1.8rem;
  color: #0077cc;
  margin: 0;
}
header .logo p {
  margin: 2px 0 0 0;
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}



/* منوی دسکتاپ */
header .main-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 25px;
}
header .main-menu ul li a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}
header .main-menu ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #0077cc;
  transition: 0.3s;
}
header .main-menu ul li a:hover::after {
  width: 100%;
}





/* مخفی کردن منوی دسکتاپ روی موبایل با کلاس اصلی */
@media (max-width: 992px) {
  .main-menu {
    display: none !important;
  }
}




/* ==============================
   فوتر نوا آرا – شیشه‌ای و مدرن
============================== */
footer {
  flex-shrink: 0;
  width: 100%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 50px 20px 20px;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
  color: #333;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column { flex: 1 1 220px; min-width: 220px; }

.footer-logo h2 {font-family: 'Vazir', Tahoma, Arial, sans-serif;font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: #333;font-weight: 700; margin-bottom: 15px; }
.footer-logo p { font-size: 0.95rem; line-height: 1.6; color: #444; }

.footer-column h3 { font-family: 'Vazir', Tahoma, Arial, sans-serif;font-size: 1.2rem; color: #333; margin-bottom: 15px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a {font-family: 'Vazir', Tahoma, Arial, sans-serif; text-decoration: none; color: #333; transition: 0.3s; }
.footer-column ul li a:hover { color: #333; }










.social-icons { display: flex; gap: 15px; margin-top: 10px; }
.social-icons a {
  font-family: 'Osam', sans-serif;
  font-size: 1.6rem;
  color: #0077cc;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icons a:last-child { margin-right: 0; }
.social-icons a:hover { color: #005fa3; transform: scale(1.2); }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type="email"] {
  font-family: 'Vazirmatn', sans-serif;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
}
.newsletter-form button {
  font-family: 'Osam', sans-serif;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background-color: #0077cc;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter-form button:hover { background-color: #005fa3; }
.newsletter-message { display: none; margin-top: 10px; padding: 10px; border-radius: 8px; background-color: #d4edda; color: #155724; font-size: 0.95rem; }

.footer-bottom { text-align: center; margin-top: 30px; font-size: 0.85rem; color: #555; }

/* ریسپانسیو فوتر */
@media (max-width: 992px) {
  .footer-container { flex-direction: column; gap: 25px; }
  .footer-column { min-width: auto; } /* اطمینان از نمایش صحیح ستون‌ها */
}


/* ==============================
   دکمه سفارش فوری شناور واتس‌اپ
============================== */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

.cta-button {
  position: fixed;
  left: 20px;
  bottom: 50px;
  background-color: #25D366;
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  z-index: 9999;
}

.cta-button:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .cta-button {
    padding: 12px 16px;
    font-size: 16px;
    bottom: 30px;
    left: 15px;
  }
}

.main-banner h1 {
    position: relative; /* اضافه شود */
    text-align: center;
    font-size: 3rem;
color: #004080;
}

.main-banner h1::after {
    content: '';
    position: absolute;
    bottom: -10px;  /* فاصله از متن */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #004080, #00bfff);
    border-radius: 5px;
    animation: slideIn 1s ease-in-out;
}
/* وسط چین کردن متن‌های زیر تیتر */
.main-banner .banner-content p {
    text-align: center;   /* وسط چین کردن متن */
    margin: 10px 0;       /* فاصله عمودی بین خطوط */
    color: black;
  }


.main-banner {
  display: flex;
  flex-direction: row; /* دسکتاپ دو ستون */
  align-items: center;
  justify-content: center;
  gap: 40px; /* فاصله گیف و متن */
  padding: 60px 20px;
  background: linear-gradient(135deg, #cce9ff, #e6f5ff);
  border-radius: 20px;
  direction: ltr; /* متن سمت راست و گیف سمت چپ */
  flex-wrap: wrap; /* ریسپانسیو موبایل */
  animation: fadeIn 1s ease-in-out;
}

.banner-gif {
  flex: 0 0 auto;
}

.banner-gif img {
  width: 220px; /* اندازه گیف در دسکتاپ */
  height: auto;
  border-radius: 15px;
  animation: fadeInLeft 1s ease;
}

.banner-content {
  flex: 1;
  min-width: 250px;
  text-align: right; /* متن راست چین */
}

/* آیکون‌ها */
.banner-icons {
  display: flex;
  justify-content:center; /* آیکون‌ها سمت چپ متن */
  gap: 30px;
  margin-top: 20px;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
color: #0077cc;
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
    align-items: center;     /* وسط چین کردن آیکون و متن زیرش */
    text-align: center;  
}

.icon-box i {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.icon-box span {
  font-size: 1rem;
}

.icon-box:hover {
  transform: translateY(-10px) scale(1.1);
  color: #005fa3;
}

/* انیمیشن‌ها */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .main-banner {
    flex-direction: column; /* زیر هم قرار گرفتن گیف و متن */
    text-align: center;
    gap: 20px;
  }

  .banner-gif img {
    width: 150px;
    margin-bottom: 20px;
  }

  .banner-content {
    text-align: center;
  }

  .banner-icons {
    justify-content: center;
  }
}


/* ============================= */
/* فاصله محتوای اصلی از هدر و فوتر */
/* ============================= */
main {
  padding-top: 180px;  /* فاصله از هدر، بسته به ارتفاع هدر */
  padding-bottom: 150px; /* فاصله از فوتر، بسته به ارتفاع فوتر */
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* مخفی کردن منوی موبایل روی دسکتاپ */
@media (min-width: 769px) {
  .mobile-nav, .hamburger-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* فقط موبایل نمایش */
@media (max-width: 768px) {
  .mobile-nav, .hamburger-menu {
    display: block !important; /* یا flex */
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
/* خط جداکننده */
.divider {
  border: none;
  height: 2px;
  background: #FFB347;
  margin: 30px auto;
  width: 90%;
  opacity: 0.7;
}

/* دکمه بازگشت به بالا */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: linear-gradient(135deg, #00bfff, #004080);
  color: white;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#backToTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  #backToTop { 
    bottom: 20px; 
    right: 20px; 
    width: 45px; 
    height: 45px; 
    font-size: 1.7rem; 
  }
}

@media (max-width: 480px) {
  #backToTop { 
    width: 40px; 
    height: 40px; 
    font-size: 1.5rem; 
    bottom: 15px; 
    right: 15px; 
  }
}


html, body {
  font-family: 'Vazir', Tahoma, Arial, sans-serif !important;
}
/* ================================
   اعمال فونت روی همه عناصر
   ================================ */
html, body {
  font-family: 'Vazir', Tahoma, Arial, sans-serif !important;
}

/* اطمینان از اعمال روی تیترها */
h1, h2, h3, h4, h5, h6, p, span, a, li, input, button, textarea {
  font-family: 'Vazir', Tahoma, Arial, sans-serif !important;
}
/* =========================
   ریسپانسیو برای موبایل
========================= */
@media (max-width: 768px) {
  /* فاصله‌ها جمع‌وجورتر بشن */
  #blog-page, 
  #blog, 
  #blog-end {
    padding: 25px 15px !important;
    border-radius: 12px;
  }

  /* بنر */
  .blog-banner h1 {
    font-size: 1.4rem !important;
  }
  .blog-banner p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  .blog-banner button {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  /* کارت‌های مقاله */
  .blog-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .blog-card {
    padding: 15px !important;
  }
  .blog-card h3 {
    font-size: 1rem !important;
  }
  .blog-card p {
    font-size: 0.85rem !important;
  }

  /* پاپ‌آپ */
  #popup-content {
    width: 95% !important;
    padding: 20px !important;
    font-size: 0.9rem !important;
  }

  /* پیام انتهایی */
  #blog-end h2 {
    font-size: 1.3rem !important;
  }
  #blog-end p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    text-align: justify;
  }

  /* دکمه مشاهده همه مقالات */
  .read-all-blogs {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px 0 !important;
    border-radius: 20px !important;
  }
}
/* =========================
   اصلاح پاپ‌آپ برای ریسپانسیو
========================= */
#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999 !important;  /* خیلی بالاتر از هدر */
  justify-content: center;
  align-items: center;
}

#popup-content {
  background: #e6f5ff;
  border-radius: 15px;
  padding: 30px;
  max-width: 800px;
  width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  z-index: 10000 !important; /* بالاتر از همه چیز */
}
/* دکمه ضربدر پاپ‌آپ */
#popup-content button {
  position: absolute;
  top: 10px;    /* فاصله از بالا */
  right: 10px;  /* فاصله از راست */
  font-size: 1.5rem;
  background: #fff;   /* پس‌زمینه سفید که روی متن گم نشه */
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10001; /* همیشه روی متن */
}

/* نسخه موبایل */
@media (max-width: 600px) {
  #popup-content button {
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}
#popup-text {
  padding-top: 50px; /* متن از زیر دکمه فاصله می‌گیره */
}

/* ==============================
   فونت وزیر برای کل سایت
============================== */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, input, button {
    font-family: 'Vazirmatn', sans-serif;
}
/* ==============================
   بلاگ نوا آرا با فاصله واقعی بین کارت‌ها
============================== */

.blog-section {
  background: #e6f5ff;
  padding: 60px 20px 100px 20px;
  border-radius: 20px;
  font-family: 'Vazirmatn', sans-serif;
}

.blog-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px; /* فاصله بین کارت‌ها */
  justify-content: center;
}

/* کارت بلاگ */
.blog-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  flex: 1 1 280px; /* حداقل عرض 280px، رشد انعطاف پذیر */
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

/* تصویر کارت */
.blog-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  height: 250px;
  object-fit: cover;
}

/* محتوای کارت */
.blog-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.blog-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #004466;
  margin: 0;
}

/* فاصله بین بلاگ‌ها و لینک مشاهده همه مقالات */
.blog-more {
  text-align: center;
  margin-top: 60px;
}

.blog-more .read-all-blogs {
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  color: #004466;
  background: linear-gradient(135deg,#cce9ff,#e6f5ff);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-decoration: none;
  display: inline-block;
}

.blog-more .read-all-blogs:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media screen and (max-width: 768px) {
  .blog-container {
    gap: 25px;
  }
  .blog-card img {
    height: 160px;
  }
}

@media screen and (max-width: 480px) {
  .blog-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .blog-card {
    max-width: 90%;
  }
  .blog-card img {
    height: 150px;
  }
  .blog-more {
    margin-top: 50px;
  }
}
#popup-text {
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: bolder !important;
}
.btn-gallery {
  text-decoration: none; /* حذف خط زیر لینک */
}


/* اگر از فونت آیکون مثل Font Awesome استفاده می‌کنی */
i, [class*="fa-"], [class*="icon"] {
  font-family: FontAwesome !important; /* یا فونت آیکون تو */
}
/* تعریف فونت وزیر */
@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Black-FD-WOL.ttf') format('woff2'),
       url('/fonts/Vazir-Bold-FD-WOL.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* برای لودینگ بهتر */
}

@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Black-FD-WOL.ttf') format('woff2'),
       url('/fonts/Vazir-Bold-FD-WOL.ttf') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت به تمام المان‌ها */
body, 
body *:not(i):not(.fa):not([class*="icon"]):not([class*="Icon"]) {
  font-family: 'Vazir', Tahoma, sans-serif !important;
}

/* برای ریسپانسیو و خوانایی بهتر */
body {
  text-align: right;
  direction: rtl;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* تنظیم سایز فونت پایه */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }
}






