@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');
/* .................... */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}
/* .................... */
body {
  font-size: 16px;
  background-color: rgb(26, 35, 126);
  color: #000;
  line-height: 1.6;
  text-align: right;
  padding: 0 20px;
}
/* ....................... */
header {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  height: 100px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: rgba(0, 87, 128, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

}
.logo {
    width: 100%;
    max-width: 300px;
    height: 0px;
    padding-bottom: 15.10%;
    background-image: url(image/dawsdigita_.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 40px;
}
.Contact_number a{
    font-family: "Vazirmatn", sans-serif;
    text-decoration: none;
    font-size: 16px;
    color: #fff;

}
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
}
/* همبرگر منو - پیش‌فرض مخفی */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* انیمیشن همبرگر به X */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* منوی موبایل */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgb(26, 35, 126);
    border: 1px solid #ddd;
    z-index: 1000;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
}

.mobile-menu li {
    border-bottom: 1px solid #444;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    font-family: "Vazirmatn", sans-serif;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* نمایش منوی موبایل */
.mobile-menu.active {
    display: block;
}
/* ------------------------------------------- */
.active-contaner {
text-align: center;
padding: 80px 20px;
color: #fff;
border: 1px solid #ccc;
box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
border-radius: 25px;
text-align: center;
background-color: #ffffff;
}
.active-contaner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
  margin: 0.5rem 0 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 3px solid #3498db;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.active-contaner h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #34495e;
  margin: 2rem 0 1rem;
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
  text-align: right;
}

.active-contaner h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background: linear-gradient(to bottom, #3498db, #2980b9);
  border-radius: 2px;
}
.active-contaner h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #2c3e50;
  margin: 1.5rem 0 0.8rem;
  padding: 0.2rem 0;
  border-left: 3px solid #e74c3c;
  padding-left: 1rem;
  background-color: rgba(231, 76, 60, 0.05);
  text-align: right;
}
.active-contaner p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin: 1rem 0;
  text-align: justify;
  padding: 0.5rem 0;
  word-spacing: 1px;
  letter-spacing: 0.3px;
}

.active-contaner p:first-of-type {
  font-size: 1.2rem;
  color: #555;
  font-weight: 300;
}
.featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 0 auto 2rem;
  display: block;
  transition: transform 0.3s ease;
}

.featured-image:hover {
  transform: scale(1.02);
}
.content-image {
  max-width: 85%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #ecf0f1;
}

.content-image:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* تصاویر چپ‌چین */
.content-image.left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

/* تصاویر راست‌چین */
.content-image.right {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

/* تصاویر تمام‌پهنا */
.content-image.full-width {
  max-width: 100%;
  float: none;
}
/* تصاویر وسط چین */
.content-image.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  float: none;
}
.table-of-contents {
  background-color: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.table-of-contents h2 {
  font-size: 1.5rem;
  color: #0056b3; /* آبی پرنگ */
  margin-bottom: 1rem;
}

.table-of-contents ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column; /* نمایش عمودی */
  gap: 0.5rem; /* فاصله بین آیتم‌ها */
}

.table-of-contents li {
  margin: 0;
}

.table-of-contents a {
  text-decoration: none;
  color: #0056b3; /* آبی پرنگ */
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: 0.3rem 0;
}

.table-of-contents a:hover {
  color: #003d7a; /* آبی تیره‌تر برای هاور */
}

/* ---------------------------------------------- */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 0;
  background-image: url(image/parde\ ee.webp);
  color: #ddd;
}
.logo-footer {
    width: 100%;
    max-width: 300px;
    height: 0px;
    padding-bottom: 14%;
    background-image: url(image/dawsdigita_.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 5px;
}
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center; /* تراز عمودی در وسط */
  gap: 15px; /* ایجاد فاصله بین آیتم‌ها */
  padding: 20px;
  border-top: 1px solid #ddd;
  margin-top: -50px;
}

.social-links p {
  margin: 0; /* حذف فاصله پیش‌فرض پاراگراف */
  font-family: sans-serif;
  color: #ddd;
}

/* استایل خود آیکون‌ها */
.social-links a i {
  font-size: 24px; /* اندازه آیکون */
  color: #ddd;
  transition: color 0.3s ease; /* انیمیشن نرم برای تغییر رنگ */
}
.fa-brands {
  padding-left: 5px;
}

.social-links a {
text-decoration: none;
  color: #ddd;
}

/* تغییر رنگ آیکون در زمان هاور (وقتی موس روی آن می‌رود) */
.social-links a:hover .fa-instagram {
  color: #e4405f; /* رنگ اینستاگرام */
}

.social-links a:hover .fa-whatsapp {
  color: #25d366; /* رنگ واتساپ */
}
/* استایل کلی بخش راه‌های ارتباطی */
.contact-info {
  font-family: sans-serif;
  color: #ddd;
  padding: 20px;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd; /* یک خط جداکننده زیر عنوان */
  padding-bottom: 10px;
}

/* حذف استایل پیش‌فرض لیست */
.contact-info ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* استایل هر آیتم لیست (مهم‌ترین بخش) */
.contact-info li {
  display: flex;         /* این باعث میشه آیکون و متن در یک ردیف قرار بگیرند */
  align-items: center;   /* تراز عمودی آیکون و متن در وسط */
  margin-bottom: 12px;   /* فاصله بین هر آیتم */
}

/* استایل آیکون‌ها */
.contact-info li i {
  font-size: 18px;
  color: #007bff; /* یک رنگ آبی برای جلب توجه */
  width: 30px; /* یک عرض ثابت برای آیکون‌ها تا متن‌ها همه در یک راستا باشند */
  text-align: center;
  margin-left: 10px; /* فاصله بین آیکون و متن (در فارسی از margin-left استفاده می‌کنیم) */
}

/* استایل متن (برای اعداد و ایمیل) */
.contact-info li span {
  font-size: 16px;
  /* برای نمایش صحیح شماره تماس و ایمیل در سایت‌های فارسی */
  direction: ltr;
  text-align: left;
}
.contact-info a {
  text-decoration: none; /* حذف زیرخط لینک */
  color: inherit; /* ارث‌بری رنگ از عنصر والد (li) */
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #0056b3; /* تغییر رنگ در زمان هاور */
}


/* =========================================== */
/*      بخش کدهای ریسپانسیو (Media Queries)      */
/* =========================================== */

/* برای تبلت‌ها و صفحات نمایش کوچک‌تر */
/* Max-width: 992px */
@media (max-width: 992px) {
  /* تنظیمات هدر برای تبلت */
  header {
    padding: 15px 20px; /* کاهش پدینگ برای صرفه‌جویی در فضا */
    height: 80px; /* کاهش ارتفاع هدر */
  }

  .logo {
    max-width: 250px; /* کمی کوچک‌تر کردن لوگو */
    margin-top: 20px; /* کاهش فاصله از بالا */
  }

  /* تنظیمات محتوا برای تبلت */
  .active-contaner h1 {
    font-size: 2.2rem;
  }

  .active-contaner h2 {
    font-size: 1.6rem;
  }

  .active-contaner p {
    font-size: 1rem;
  }
}

/* برای موبایل‌ها */
/* Max-width: 768px */
@media (max-width: 768px) {
  /* تنظیمات کلی بدنه برای موبایل */
  body {
    padding: 0 15px; /* کاهش پدینگ کناری بدنه */
  }

  /* تنظیمات هدر برای موبایل */
  header {
    width: calc(100% + 30px); /* تنظیم عرض هدر متناسب با پدینگ جدید body */
    margin-left: -15px;
    margin-right: -15px;
    padding: 10px 15px; /* پدینگ کمتر */
    height: 70px;
  }

  /* مخفی کردن منوی اصلی دسکتاپ */
  nav {
    display: none;
  }

  /* نمایش آیکون همبرگر */
  .hamburger {
    display: flex;
  }

  /* مخفی کردن شماره تماس در هدر برای جلوگیری از شلوغی */

    .logo {
        max-width: 200px;
        margin-top: 20px;
    }


  /* تنظیمات بخش محتوای اصلی برای موبایل */
  .active-contaner {
    padding: 40px 15px; /* کاهش پدینگ داخلی */
  }

  .active-contaner h1 {
    font-size: 1.8rem; /* کاهش اندازه فونت‌ها برای خوانایی بهتر */
  }

  .active-contaner h2 {
    font-size: 1.4rem;
  }

  .active-contaner h3 {
    font-size: 1.2rem;
  }

  .active-contaner p {
    font-size: 0.95rem;
    text-align: right; /* در موبایل justify ممکن است فاصله‌های بدی ایجاد کند */
  }

  /* تنظیمات تصاویر در موبایل */
  .content-image.left,
  .content-image.right {
    float: none; /* حذف شناوری */
    display: block;
    max-width: 100%; /* تصویر تمام عرض کانتینر را بگیرد */
    margin: 1.5rem auto; /* وسط‌چین کردن تصویر و ایجاد فاصله */
  }

  /* تنظیمات فوتر برای موبایل */
  footer {
    padding: 20px 0;
  }

  .logo-footer {
    max-width: 200px;
  }

  .social-links {
    margin-top: -20px; /* تنظیم مجدد مارجین منفی */
  }
}
@media (max-width: 480px) {
    .logo {
        max-width: 100px;
        padding-bottom: 33.10%;
        margin-right: 0px;

    }

    body {
        padding: 0 -10px;
    }
    .logo-footer {
    width: 100%;
    max-width: 300px;
    height: 0px;
    padding-bottom: 50%;
}
}