@font-face {
  font-family: BNazanin;
  src: url("includes/assets/fonts/BNazanin.ttf") format("truetype"),
    url("/includes/assets/fonts/BNazanin.woff") format("woff"),
    url("/includes/assets/fonts/BNazanin.woff2") format("woff2");
}
@font-face {
  font-family: Qs_Iranyekan;
  src: url("/includes/assets/fonts/Qs_Iranyekan.ttf") format("truetype"),
    url("/includes/assets/fonts/Qs_Iranyekan.woff") format("woff"),
    url("/includes/assets/fonts/Qs_Iranyekan.woff2") format("woff2");
}

:root {
  --primary-blue: #5f93e9;
  --light-blue: #87b2f3;
  --dark-blue: #3d6fc2;
  --orange: #ff9800;
  --red: #e91e63;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --light-bg: #f9f9f9;
  --card-bg: #ffffff;
  --text-dark: #333333;
}
* {
  font-family: Qs_Iranyekan;
  box-sizing: border-box;
  list-style: none;
}
a {
  text-decoration: none;
  font-size: 0.8rem;
}
p {
  line-height: 2rem;
  font-size: 0.8rem;
}
ul {
  padding-right: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  color: var(--white);
  direction: rtl;
}

/* هدر */
.header-section {
  background-color: var(--primary-blue);
  padding: 1rem 0;
}
.header-section .logo-image {
  height: 60px; /* یا هر اندازه دیگری که مناسب است */
  width: auto;
}
.navbar-brand {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-nav .nav-link {
  color: var(--white);
  margin: 0 0.75rem;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--orange);
}

.btn-login {
  color: var(--white);
  background: transparent;
  border: none;
  font-weight: 600;
}

.btn-login:hover {
  color: var(--light-blue);
}

.btn-register {
  background-color: var(--red);
  color: var(--white);
  border-radius: 25px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border: none;
  transition: 0.3s;
}

.btn-register:hover {
  background-color: #d81b60;
}

/* دکمه همبرگری */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* سکشن هیرو */
.hero-section {
  background-image: url("/includes/assets/images/site/background1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-cta {
  background-color: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
  text-align: center;
}

.btn-cta:hover {
  background-color: #e68900;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}
/* سکشن ویژگی ها */
.features-section {
  background-color: var(--light-gray); /* رنگ پس زمینه سکشن */
}

/* عنوان  */
.section-title {
  color: var(--text-dark); /* رنگ تیره برای عنوان */
  font-size: 1.8rem;
  font-weight: 700;
}

.section-title span {
  color: var(--red); /* اگر بخواهید بخشی از عنوان صورتی شود */
}

/* استایل کارت‌ها */
.feature-card {
  background-color: var(--light-blue);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* یک سایه ملایم */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: -webkit-fill-available;
}

.feature-card:hover {
  transform: translateY(-5px); /* افکت کوچک هنگام هاور */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* آیکون‌ها */
.feature-icon img {
  /* تنظیمات برای شبیه‌سازی مربع صورتی پشت آیکون‌ها */
  /* توجه: برای این بخش نیاز به تصاویر آیکون مناسب (icon-support.png و ...) دارید */
  width: 70px; /* اندازه آیکون */
  height: 70px;
  /* در طراحی اصلی از تصاویر خاص استفاده شده است. این استایل‌ها فقط برای placeholder هستند. */
}

/* عنوان کارت */
.card-title {
  color: var(--red); /* رنگ صورتی برای عنوان کارت */
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* متن کارت */
.card-text {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 0;
}
/* سکشن ویژگی ها */

/*پلتفرم ها سکشن */
.platform-section {
  /* استفاده از --light-gray به عنوان پس زمینه روشن سکشن */
  background-color: var(--light-gray);
}

/* باکس اصلی حاوی متن و آیکون‌ها */
.platform-box {
  /* استفاده از --red به عنوان پس زمینه صورتی/سرخابی باکس */
  background-color: var(--red);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* بخش محتوای متنی */
.platform-content {
  flex-basis: 40%;
}

.platform-content .content-title {
  /* استفاده از --white برای متن روشن */
  color: var(--white);
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.5;
}

.platform-content .content-description {
  /* استفاده از --white برای متن روشن */
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* دکمه "دریافت اپلیکیشن" */
.btn-app-download {
  /* پس‌زمینه سفید */
  background-color: var(--white);
  /* متن صورتی/سرخابی (استفاده از --red) */
  color: var(--red);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s ease;
}

.btn-app-download:hover {
  background-color: var(--light-gray);
  color: var(--red);
}

/* بخش آیکون‌ها */
.platform-icons {
  flex-basis: 55%;
  gap: 15px;
}

.platform-icons .icon-item {
  border-radius: 10px;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px;
}

.platform-icons .icon-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
}
/*پلتفرم ها سکشن */

/* <!-- سکشن پشتیبانی --> */
/* استایل کلی سکشن پشتیبانی و تماس */
.support-cta-section {
  background-color: var(--light-gray); /* پس‌زمینه سکشن */
}

/* باکس اصلی */
.support-cta-box {
  background-color: var(--light-blue); /* پس‌زمینه سفید برای باکس داخلی */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* سایه ملایم */
}

/* محتوای متنی */
.cta-content {
  /* اطمینان از قرارگیری در سمت راست */
  text-align: right;
}

.cta-title {
  color: var(--white); /* رنگ تیره برای عنوان */
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-description {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* استایل مشترک دکمه‌ها */
.cta-buttons .btn {
  width: 200px; /* عرض ثابت برای دکمه‌ها */
  height: 45px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  line-height: 28px; /* برای تراز عمودی متن */
}

/* دکمه تلگرام (رنگ آبی روشن/آبی اصلی) */
.btn-telegram {
  background-color: var(--primary-blue); /* یا یک آبی مناسب تلگرام */
  color: var(--white);
  transition: 0.3s;
}
.btn-telegram:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* دکمه روبیکا (رنگ قرمز/سرخابی) */
.btn-rubika {
  background-color: var(--red);
  color: var(--white);
  transition: 0.3s;
}
.btn-rubika:hover {
  background-color: #d81b60; /* کمی تیره‌تر از red */
  color: var(--white);
}

/* دکمه تماس تلفنی (رنگ نارنجی/متفاوت) */
.btn-phone {
  background-color: var(--orange);
  color: var(--white);
  transition: 0.3s;
}
.btn-phone:hover {
  background-color: #e68900; /* کمی تیره‌تر از orange */
  color: var(--white);
}
/* <!-- سکشن پشتیبانی --> */

/* سکشن FAQ */
.faq-section {
  background-color: var(--light-gray); /* یا light-bg */
}

.faq-section .section-title {
  color: var(--text-dark);
}

/* تصویر FAQ */
.faq-image {
  max-height: 450px;
  width: auto;
  border-radius: 12px;
}

/* آیتم تکی FAQ */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--light-gray); /* مرز ملایم */
  border-radius: 10px;
  overflow: hidden; /* برای جلوگیری از سرریز در هنگام انیمیشن */
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* سایه کوچک هنگام هاور */
}

/* سؤال (سربرگ آکاردئون) */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background-color: var(--light-blue); /* سفید */
  color: var(--text-dark);
  font-weight: 600;
  transition: background-color 0.3s;
}

.faq-question h4 {
  font-size: 1rem;
  margin: 0;
  flex-grow: 1;
}

/* آیکون + / - */
.faq-toggle-icon {
  font-size: 1.5rem;
  font-weight: 300;
  margin-right: 15px;
  color: var(--red); /* رنگ اصلی (صورتی/سرخابی) */
  transition: transform 0.3s ease;
}

/* استایل فعال (باز بودن آکاردئون) */
.faq-item.active .faq-question {
  background-color: var(--dark-blue); /* پس زمینه کمی متفاوت برای حالت فعال */
  color: var(--white);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg); /* چرخش + به X یا - */
}

/* پاسخ (محتوای آکاردئون) */
.faq-answer {
  padding: 0 1.25rem;
  background-color: var(--light-bg); /* پس زمینه پاسخ */
  /* ارتفاع به صفر و عدم نمایش برای بستن آکاردئون */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out; /* انیمیشن باز و بسته شدن */
}

.faq-answer p {
  color: var(--text-dark);
  padding: 1rem 0;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* حالت فعال پاسخ (باز شدن) */
.faq-item.active .faq-answer {
  /* ارتفاع کافی برای نمایش کامل محتوا. این عدد باید بزرگتر از محتوای شما باشد */
  max-height: 500px;
}
/* سکشن FAQ */

/* سکشن توضیحات مقدماتی */
.feature-intro-section {
  background-color: var(--light-gray); /* پس زمینه سفید */
  margin: 4rem auto;
}

.f-intro-item {
  padding: 3rem 0;
  /* خط جدا کننده ملایم بین ردیف‌ها */
  border-bottom: 1px solid var(--light-gray);
}

/* حذف خط جدا کننده از آخرین آیتم */
.f-intro-item:last-child {
  border-bottom: none;
}

/* عنوان داخلی */
.f-intro-title {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* توضیحات */
.f-intro-description {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* تصویر */
.f-intro-image {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
}
/* سکشن توضیحات مقدماتی */

/* سکشن فوتر */
/* استایل کلی فوتر */
.main-footer {
  position: relative;
  /* اگر از تصویر موجی استفاده می‌کنید: */
  background-image: url("/includes/assets/images/site/footer-background.png"); /* مسیر تصویر موجی خود را اینجا قرار دهید */
  background-size: cover; /* پوشش کل ناحیه */
  background-position: top;
  background-repeat: no-repeat;
  background-color: var(--light-gray);
  color: var(--white); /* رنگ متن کلی فوتر */
  padding-top: 10rem; /* پدینگ بالا برای فضای موج */
}

/* ویجت‌ها */
.footer-widgets {
  margin-bottom: 2rem;
}

.footer-widget .widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-widget p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-widget ul {
  padding-right: 0; /* برای RTL */
}

.footer-widget ul li {
  margin-bottom: 0.75rem;
}

.footer-widget ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
  color: var(--light-blue); /* یا رنگی دیگر برای هاور */
}

/* بخش پشتیبانی خاص */
.support-contacts li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.support-contacts li i {
  font-size: 1rem;
  margin-left: 10px; /* فاصله آیکون از متن برای RTL */
  color: var(--light-blue); /* رنگ آیکون‌ها */
}
.support-contacts .contact-link {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.support-contacts .contact-link:hover {
  color: var(--light-blue);
}

/* استایل تصویر آیکون (IMG) */
.support-contacts .contact-icon {
  width: 16px; /* اندازه نهایی برای آیکون‌های کوچک */
  height: 16px;
  margin-left: 8px; /* فاصله تصویر از متن برای RTL */
}
/* فوتر پایین (کپی رایت) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* خط جداکننده سفید کم‌رنگ */
  color: rgba(255, 255, 255, 0.7); /* رنگ متن کم‌رنگ */
  font-size: 0.85rem;
}
/* سکشن فوتر */

@media (max-width: 768px) {
  .hero-section {
    padding: 7rem 0;
  }
  .hero-content h1 {
    text-align: center;
  }
  .navbar-collapse {
    background-color: var(--dark-blue);
    padding: 1rem;
    border-radius: 10px;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .btn-login,
  .btn-register {
    width: 100%;
    height: 48px;
    margin-bottom: 0.75rem;
    text-align: center;
    line-height: 48px;
    padding: 0;
    background-color: var(--red);
    border-radius: 25px;
  }
  .btn-cta {
    display: block;
    margin: 0 auto;
  }
  .platform-box {
    flex-direction: column;
  }
  .platform-content,
  .platform-icons {
    flex-basis: 100%;
  }
  .platform-icons {
    justify-content: center;
  }
  .support-cta-box {
    flex-direction: column; /* در موبایل، چیدمان عمودی شود */
    text-align: center;
  }
  .cta-content {
    margin-bottom: 1.5rem;
    /* اطمینان از وسط چین شدن در موبایل */
    text-align: center;
  }
  .cta-buttons {
    align-items: center; /* دکمه‌ها وسط چین شوند */
    margin-left: 0 !important; /* حذف ms-4 در موبایل */
  }
  .cta-buttons .btn {
    width: 100%; /* دکمه‌ها در موبایل تمام عرض را بگیرند */
    max-width: 250px; /* محدودیت عرض برای ظاهر بهتر */
  }
  .faq-image-container {
    order: -1; /* تصویر در موبایل به بالا منتقل شود */
  }
  .faq-image {
    max-height: 300px;
  }
  .f-intro-title,
  .f-intro-title {
    text-align: center;
  }
  .f-intro-item {
    margin-bottom: 0 !important;
  }
  .main-footer {
    padding-top: 5rem; /* پدینگ کمتر در موبایل */
  }
  .footer-widgets .col-md-6 {
    margin-bottom: 2rem; /* فاصله بین ستون‌ها در موبایل */
  }
  .footer-widgets .col-md-6:last-child {
    margin-bottom: 0;
  }
  .footer-widget {
    text-align: center; /* متن ویجت‌ها در موبایل وسط چین شوند */
  }
  .footer-widget ul {
    display: flex;
    flex-direction: column;
    align-items: center; /* لیست‌ها در موبایل وسط چین شوند */
  }
  .support-contacts li {
    justify-content: center; /* آیتم‌های پشتیبانی در موبایل وسط چین شوند */
  }
}
