/* ===========================
   Theme variables (defaults)
   =========================== */
:root {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #0f141c;
  --text: #e6edf3;
  --muted: #9fb0c3;
  --brand: #5b9cff;
  --brand-2: #8a5bff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark light;
}

/* Explicit theme overrides (driven by html[data-theme]) */
html[data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #0f141c;
  --text: #e6edf3;
  --muted: #9fb0c3;
  --brand: #5b9cff;
  --brand-2: #8a5bff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f8fb;
  --surface-2: #ffffff;
  --text: #0b1220;
  --muted: #516170;
  --brand: #2b6cff;
  --brand-2: #7b35ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

/* ایجاد فاصله از بالا فقط در دستگاه‌های موبایل */
@media screen and (max-width: 768px) {
    .hero-section{
     
        height: 550px !important; /* 100 درصد ارتفاع صفحه نمایش */
        /* اگر می‌خواهید محتوا در وسط این ارتفاع قرار بگیرد، این دو خط را هم اضافه کنید: */
    }
}


/* ===========================
   Base
   =========================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), var(--surface));
  color: var(--text);
}

/* کد جامع برای تمام تصاویر در تمامی بخش‌ها */
img {
    max-width: 100% !important;
    height: auto !important;
}


/* ===========================
   Header & Navbar
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 18%, transparent);
}

.wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand .logo {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.brand strong {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-link:hover,
.nav-link:focus-visible {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.35);
}

.caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  transform: translateY(1px);
}

/* ===========================
   Dropdowns / Mega panels
   =========================== */
.panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-item[aria-expanded="true"] > .panel {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(370px, 1fr));
  gap: 8px;
}
.menu-col {
  padding: 8px 6px;
}

.panel a.item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.panel a.item:hover,
.panel a.item:focus-visible {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  outline: none;
}

.icn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
}
.label {
  font-weight: 600;
}
.sub {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Simple list-style dropdowns */
.panel ul {
  list-style: none;
  margin: 0;
  padding: 4px;
}
.panel li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.panel li a:hover,
.panel li a:focus-visible {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* ===========================
   Utilities (Search, Buttons)
   =========================== */
.utils {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
}

.search {
  position: relative;
  min-width: 220px;
  flex: 1 1 auto;
}
.search input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  color: var(--text);
  padding: 10px 36px 10px 12px;
  border-radius: 12px;
}


.btn {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.35);
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.35);
}
.theme-toggle .mode {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Particles toggle (header button) */
.particles-toggle {
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.particles-toggle[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.35);
}

/* ===========================
   Burger & Drawer (Mobile)
   =========================== */
.burger {
  display: none;
  margin-right: auto;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
}
.drawer-backdrop.open {
  display: block;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw, 380px);
  background: var(--surface-2);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: var(--shadow);
  overflow: auto;
  z-index: 999;
}
.drawer.open {
  transform: translateX(0);
}

.drawer .section {
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}
.drawer .section h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.drawer a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.drawer a:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* ===========================
   Hero (demo section)
   =========================== */
.hero {
  padding: 90px 20px 120px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 56px);
  margin: 10px 0;
}
.hero p {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  margin: 0;
}
.hero .cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ghost {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  color: var(--text);
}

/* ===========================
   Particles Canvas
   =========================== */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1; /* behind everything */
  block-size: 100dvh;
  inline-size: 100vw;
  pointer-events: none;
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  #particles {
    display: none;
  }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  nav,
  .utils {
    display: none;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}


/* hero section */

/* ==========================================
   Hero Section Styles
   ========================================== */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 100%; /* محدودیت عرض طبق درخواست شما */
  margin: 0 auto; 
  height: 400px; /* طول ۱۰۰ درصد ارتفاع صفحه */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* اپاسیتی 0.4 */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  width: 100%;
  max-width: 90%;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
  border: 2px solid #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn {
    padding: 10px 22px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 200px;
  }
}


/* ==========================================
   Features Bar Styles (زیر هیرو سکشن)
   ========================================== */
.features-bar-container {
  width: 100%;
  max-width: 100%; /* هم‌تراز با هیرو سکشن شما */
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.features-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ۶ ستونه در دسکتاپ */
  gap: 8px;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  margin-top: -20px; /* ایجاد افکت هم‌پوشانی شیک با هیرو سکشن */
  position: relative;
  z-index: 10;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 4px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border-radius: 8px;
}

.feature-item:hover {
  transform: translateY(-3px);
  background-color: #f9f9f9;
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff; /* رنگ اصلی آیکون‌ها */
  margin-bottom: 8px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
}

.feature-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  word-wrap: break-word;
}

/* ==========================================
   واکنش‌گرایی (Responsive)
   ========================================== */

/* برای تبلت و موبایل: نمایش ۲ ستونه */
@media (max-width: 768px) {
  .features-bar {
    grid-template-columns: repeat(2, 1fr); /* ۲ ستونه در موبایل */
    gap: 12px;
    padding: 20px 15px;
    margin-top: 15px; /* در موبایل هم‌پوشانی حذف و فاصله عادی اعمال می‌شود */
  }

  .feature-item {
    flex-direction: row; /* در موبایل آیکون و متن کنار هم قرار می‌گیرند تا فضا بهتر مدیریت شود */
    justify-content: flex-start;
    padding: 10px;
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
  }

  .feature-icon {
    margin-bottom: 0;
    margin-left: 10px; /* فاصله آیکون از متن در راست‌چین */
    width: 26px;
    height: 26px;
  }

  .feature-text {
    font-size: 0.8rem;
    text-align: right;
  }
}



/* ==========================================
   Product Categories Cards
   ========================================== */
.product-categories {
  width: 100%;
  max-width: 1200px; /* این بخش برخلاف هیرو، می‌تواند عریض‌تر باشد تا جذابیت بصری داشته باشد */
  margin: 60px auto;
  padding: 0 20px;
  direction: rtl;
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ۳ ستونه در دسکتاپ */
  gap: 30px;
}

/* استایل کلی کارت */
.category-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid #f0f0f0;
}

/* هاور کارت */
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-color: #007bff;
}

/* تصویر کارت */
.category-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.1); /* زوم ملایم تصویر در هاور */
}

/* لایه رنگی روی تصویر برای خوانایی متن */
.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
}

/* بخش اطلاعات متن */
.category-info {
  padding: 25px;
  text-align: right;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.category-card:hover .category-title {
  color: #007bff;
}

.category-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  height: 50px; /* ارتفاع ثابت برای هماهنگی کارت‌ها */
  overflow: hidden;
}

.category-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #007bff;
  position: relative;
}

/* خط زیر متن مشاهده محصولات که در هاور پر می‌شود */
.category-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.category-card:hover .category-link::after {
  width: 100%;
}

/* ==========================================
   واکنش‌گرایی (Responsive)
   ========================================== */

/* تبلت: ۲ ستونه */
@media (max-width: 992px) {
  .categories-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* موبایل: تک ستونه */
@media (max-width: 600px) {
  .categories-container {
    grid-template-columns: 1fr;
  }
  
  .category-image {
    height: 200px;
  }
  
  .product-categories {
    margin: 40px auto;
  }
}

div.center-titr {
    text-align: center;
}
.center-titr span {
    margin-bottom:20px;
}



/* ==========================================
   Diesel Generator Brands Marquee
   ========================================== */

.brand-marquee-section {
  width: 100%;
  max-width: 1200px;
  margin: 70px auto;
  padding: 0 20px;
  direction: rtl;
}

.brand-marquee-header {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.brand-marquee-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #007bff;
  font-size: 0.9rem;
  font-weight: 800;
}

.brand-marquee-title {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.35;
}

.brand-marquee-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
}

.brand-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 18px;
}

.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 3;
  width: 90px;
  height: 100%;
  pointer-events: none;
}

.brand-marquee::before {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

.brand-marquee::after {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.brand-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: brandMarqueeRight 32s linear infinite;
  will-change: transform;
}

/* توقف اسلایدر هنگام هاور روی کل مسیر یا کارت */
.brand-marquee:hover .brand-marquee-track {
  animation-play-state: paused;
}

.brand-card {
  flex: 0 0 calc((1200px - 96px) / 7); /* ۷ کارت در دسکتاپ */
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  background:
    radial-gradient(circle at top right, rgba(0, 123, 255, 0.12), transparent 34%),
    #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 123, 255, 0.45);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.12);
}

.brand-card img {
  width: 86px;
  height: 52px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.brand-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

.brand-card span {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

@keyframes brandMarqueeRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* کاهش حرکت برای کاربرانی که motion را محدود کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track {
    animation: none;
  }
}

/* تبلت */
@media (max-width: 992px) {
  .brand-card {
    flex-basis: calc((100vw - 88px) / 4);
  }

  .brand-marquee-title {
    font-size: 1.7rem;
  }
}

/* موبایل: ۲ برند کنار هم */
@media (max-width: 600px) {
  .brand-marquee-section {
    margin: 45px auto;
    padding: 0 14px;
  }

  .brand-marquee-header {
    margin-bottom: 20px;
  }

  .brand-marquee-title {
    font-size: 1.45rem;
  }

  .brand-marquee-desc {
    font-size: 0.92rem;
  }

  .brand-marquee::before,
  .brand-marquee::after {
    width: 34px;
  }

  .brand-marquee-track {
    gap: 12px;
    animation-duration: 26s;
  }

  .brand-card {
    flex: 0 0 calc((100vw - 52px) / 2); /* ۲ کارت در موبایل */
    min-height: 118px;
    border-radius: 16px;
  }

  .brand-card img {
    width: 78px;
    height: 46px;
  }

  .brand-card span {
    font-size: 0.84rem;
  }
}



/* ==========================================
   Diesel Products Grid Section
   ========================================== */
.diesel-products-section {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  direction: rtl;
}

.diesel-products-header {
  text-align: center;
  margin-bottom: 40px;
}

.diesel-products-header .section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.diesel-products-header .section-subtitle {
  font-size: 0.95rem;
}

/* شبکه دو ستونه اصلی */
.diesel-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* ساختار هر کارت محصول */
.diesel-product-card {
  display: flex;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diesel-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* سمت راست کارت: تصویر */
.product-card-image {
  width: 40%;
  position: relative;
  overflow: hidden;
  background: #fafafa;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.diesel-product-card:hover .product-card-image img {
  transform: scale(1.05);
}

/* سمت چپ کارت: محتوا */
.product-card-content {
  width: 60%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.product-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: #007bff;
}

/* بخش ویژگی‌ها به صورت دو ردیف */
.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-bottom: 16px;
  background: #f9fafb;
  padding: 10px 14px;
  border-radius: 8px;
}

.spec-item {
  font-size: 0.8rem;
  color: #4b5563;
}

.spec-item strong {
  color: #1f2937;
}

/* توضیحات کوتاه ۲ خطی */
.product-short-desc {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 45px; /* تثبیت ارتفاع توضیحات */
}

/* دکمه‌های اکشن */
.product-card-actions {
  display: flex;
  gap: 10px;
}

.btn-product-view,
.btn-product-consult {
  flex: 1;
  text-align: center;
  padding: 10px 5px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-product-view {
  background-color: #007bff;
  color: #ffffff;
}

.btn-product-view:hover {
  background-color: #0056b3;
}

.btn-product-consult {
  background-color: #e5e7eb;
  color: #374151;
}

.btn-product-consult:hover {
  background-color: #d1d5db;
}

/* ==========================================
   Responsive
   ========================================== */

/* تبلت بزرگ و آیپد */
@media (max-width: 992px) {
  .diesel-products-grid {
    grid-template-columns: 1fr; /* تبدیل به تک ستونی برای داشتن فضای کافی اطلاعات */
  }
}

/* موبایل */
@media (max-width: 600px) {
  .diesel-product-card {
    flex-direction: column; /* چیدمان عمودی کارت در موبایل */
  }
  
  .product-card-image {
    width: 100%;
    height: 200px;
  }
  
  .product-card-content {
    width: 100%;
    padding: 16px;
  }

  .product-short-desc {
    height: auto;
    -webkit-line-clamp: 3; /* در موبایل کمی توضیحات بیشتر نمایش داده شود */
  }
}




/* ==========================================
   Parallax Why Us Section
   ========================================== */
.parallax-why-us {
  position: relative;
  padding: 100px 0;
  background-image: url('/wp-content/uploads/2026/07/بارگذاری-و-مدیریت-مصرف-انرژی-e1757332356391.jpg'); /*   */
  background-attachment: fixed; /* افکت پارالاکس */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  direction: rtl;
  overflow: hidden;
  color: #fff;
}

/* لایه تیره روی تصویر */
.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* میزان تیرگی */
  z-index: 1;
}

.parallax-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.parallax-header {
  margin-bottom: 60px;
}

.parallax-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: #ffffff;
}

.parallax-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
}

/* گرید ویژگی‌ها */
.why-us-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.why-item {
  flex: 0 1 calc(25% - 30px); /* ۴ ستونه در دسکتاپ */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); /* افکت شیشه‌ای مدرن */
  padding: 30px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  border-color: #007bff;
}

.why-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  color: #007bff; /* رنگ اصلی برند شما */
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================
   Responsive
   ========================================== */

/* تبلت: ۳ ستونه */
@media (max-width: 992px) {
  .why-item {
    flex: 0 1 calc(33.33% - 30px);
  }
}

/* موبایل عریض: ۲ ستونه */
@media (max-width: 768px) {
  .parallax-why-us {
    background-attachment: scroll; /* پارالاکس در موبایل برای عملکرد بهتر غیرفعال شود */
    padding: 70px 0;
  }
  
  .parallax-title {
    font-size: 1.8rem;
  }

  .why-item {
    flex: 0 1 calc(50% - 20px);
    padding: 20px 10px;
  }
}

/* موبایل کوچک: ۱ ستونه */
@media (max-width: 480px) {
  .why-item {
    flex: 0 1 100%;
  }
}


/* ==========================================
   Generator Guide CSS
   ========================================== */
.generator-guide-section {
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  direction: rtl;
}

.guide-header {
  text-align: center;
  margin-bottom: 45px;
}

.guide-badge {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 12px;
}

.guide-title {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 10px;
}

.guide-subtitle {
  font-size: 1rem;
}

.guide-wrapper {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  overflow: hidden;
}

/* منوی تب‌ها */
.guide-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f9fafb;
  border-bottom: 1px solid #eef2f6;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-item svg {
  width: 18px;
  height: 18px;
  transition: color 0.3s;
}

.tab-item:hover {
  color: #007bff;
  background: rgba(0, 123, 255, 0.02);
}

.tab-item.active {
  color: #007bff;
  border-bottom-color: #007bff;
  background: #ffffff;
}

/* پنل محتوا */
.guide-tab-content {
  padding: 40px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.panel-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 15px;
}

.panel-text p {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.8;
}

.guide-list {
  padding-right: 20px;
  margin: 20px 0;
}

.guide-list li {
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: #4b5563;
}

.guide-tip {
  background: #fff8eb;
  border-right: 4px solid #f59e0b;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #b45309;
}

/* بخش‌های جانبی محتوا */
.quick-calc-box, .info-highlight-box {
  background: #f3f4f6;
  padding: 25px;
  border-radius: 18px;
  border: 1px dashed #d1d5db;
}

.quick-calc-box h4, .info-highlight-box h5 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 15px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.calc-row span {
    color: #000;
}

.calc-row:last-child {
  border-bottom: none;
}

/* جدول مقایسه */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.95rem;
}
.comparison-table {
    color: #000;
}
.comparison-table th, .comparison-table td strong {
    color: #000;
}

.comparison-table th {
  background: #f9fafb;
  font-weight: 800;
  color: #1f2937;
}

.text-green { color: #10b981; }
.text-orange { color: #f59e0b; }

/* کارت‌های محل پروژه */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.use-case-card {
  background: #f9fafb;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  transition: border 0.3s;
}

.use-case-card:hover {
  border-color: #007bff;
}

.use-case-card h5 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #007bff;
}

.use-case-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 992px) {
  .guide-tabs {
    flex-wrap: wrap;
  }
  .tab-item {
    flex: 0 0 50%;
    border-bottom: 1px solid #eef2f6;
  }
  .panel-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .tab-item {
    flex: 0 0 100%;
  }
  .guide-tab-content {
    padding: 20px;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table th, .comparison-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
}


.info-highlight-box {
    color: #f00;
}

/* ==========================================
   Projects Showcase Section
   ========================================== */
.projects-showcase-section {
  width: 100%;
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
  direction: rtl;
}

.projects-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects-badge {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706; /* تم نارنجی/طلایی متناسب با هویت صنعتی */
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 12px;
}

.projects-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 12px;
}

.projects-subtitle {
  font-size: 1.05rem;
}

/* تایم‌لاین و ساختار کارت‌ها */
.projects-timeline {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
}

/* خط فرضی وسط در دسکتاپ برای جلوه بصری تایم‌لاین */
.projects-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  bottom: 50px;
  left: 50%;
  width: 2px;
  background: #f3f4f6;
  transform: translateX(-50%);
  z-index: 1;
}

.project-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* کلاس کمکی برای چیدمان معکوس تصویر و متن */
.project-card.row-reverse {
  direction: ltr;
}
.project-card.row-reverse .project-info-wrapper {
  direction: rtl;
}
.project-card.row-reverse .project-image-wrapper {
  direction: rtl;
}

/* طراحی بخش تصویر */
.project-image-wrapper {
  width: 100%;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.05);
}

/* طراحی بخش اطلاعات پروژه */
.project-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #e5e7eb;
  line-height: 1;
  margin-bottom: 10px;
}

.project-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 15px;
}

.project-excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-meta {
  margin-bottom: 25px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 8px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
}

.project-link-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.project-link-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.project-link-btn:hover {
  color: #d97706;
}

.project-link-btn:hover svg {
  transform: translateX(-5px); /* حرکت فلش به سمت راست در زمان هاور */
}

/* دکمه فوتر برای رفتن به کل پروژه‌ها */
.projects-action-footer {
  text-align: center;
  margin-top: 80px;
}

.view-more-projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111827;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
  transition: all 0.3s ease;
}

.view-more-projects-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.view-more-projects-btn:hover {
  background: #d97706;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
}

.view-more-projects-btn:hover svg {
  transform: translateX(-4px);
}

.no-projects-found {
  text-align: center;
  color: #6b7280;
  padding: 40px;
}

/* ==========================================
   Responsive
   ========================================== */

/* تبلت‌ها و لپ‌تاپ‌های کوچک */
@media (max-width: 992px) {
  .project-card {
    gap: 30px;
  }
  .project-image-wrapper {
    height: 300px;
  }
  .project-card-title {
    font-size: 1.4rem;
  }
}

/* موبایل‌ها */
@media (max-width: 768px) {
  .projects-timeline::before {
    display: none; /* حذف خط راهنما در موبایل */
  }

  .projects-timeline {
    gap: 50px;
  }

  .project-card, 
  .project-card.row-reverse {
    grid-template-columns: 1fr; /* چیدمان تک ستونه تمام قد */
    gap: 20px;
    direction: rtl; /* ریست کردن جهت برای موبایل */
  }

  .project-image-wrapper {
    height: 240px;
    border-radius: 16px;
  }

  .project-info-wrapper {
    padding: 0 10px;
  }

  .project-number {
    font-size: 2rem;
  }

  .project-card-title {
    font-size: 1.25rem;
  }

  .projects-title {
    font-size: 1.7rem;
  }
}



/* ==========================================
   Expert Services Section
   ========================================== */
.expert-services-section {
  position: relative;
  padding: 100px 20px;
  direction: rtl;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.expert-services-section::before {
  content: "";
  position: absolute;
  inset: auto -120px 40px auto;
  width: 320px;
  height: 320px;
  background: rgba(17, 24, 39, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.expert-services-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.expert-services-header {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.expert-services-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  font-size: 0.85rem;
  font-weight: 800;
}

.expert-services-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1.35;
}

.expert-services-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.9;
}

.expert-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.expert-service-card {
  position: relative;
  min-height: 250px;
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #eef2f7;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.055);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.expert-service-card::after {
  content: "";
  position: absolute;
  inset: auto auto -45px -45px;
  width: 120px;
  height: 120px;
  background: rgba(217, 119, 6, 0.08);
  border-radius: 50%;
  transition: transform 0.28s ease;
}

.expert-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.1);
}

.expert-service-card:hover::after {
  transform: scale(1.25);
}

.expert-service-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  background: #fff7ed;
  border-radius: 18px;
}

.expert-service-icon svg {
  width: 29px;
  height: 29px;
}

.expert-service-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
}

.expert-service-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.85;
}

.expert-service-card.featured {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
  border-color: rgba(217, 119, 6, 0.25);
}

.expert-service-card.featured-dark {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border-color: #111827;
}

.expert-service-card.featured-dark h3,
.expert-service-card.featured-dark p {
  color: #ffffff;
}

.expert-service-card.featured-dark p {
  opacity: 0.78;
}

.expert-service-card.featured-dark .expert-service-icon {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.13);
}

.expert-service-card.wide-card {
  grid-column: span 3;
  min-height: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(217, 119, 6, 0.1), transparent 45%),
    #ffffff;
}

.expert-service-card.wide-card .expert-service-icon {
  margin-bottom: 0;
}

.expert-services-footer {
  margin-top: 44px;
  padding: 24px 28px;
  border-radius: 22px;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.expert-services-footer p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.expert-services-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  color: #111827;
  background: #f59e0b;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 900;
  transition: background 0.28s ease, transform 0.28s ease;
}

.expert-services-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.28s ease;
}

.expert-services-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.expert-services-btn:hover svg {
  transform: translateX(-4px);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 992px) {
  .expert-services-section {
    padding: 80px 20px;
  }

  .expert-services-title {
    font-size: 1.9rem;
  }

  .expert-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expert-service-card.wide-card {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .expert-services-section {
    padding: 65px 16px;
  }

  .expert-services-header {
    margin-bottom: 34px;
  }

  .expert-services-title {
    font-size: 1.55rem;
  }

  .expert-services-subtitle {
    font-size: 0.94rem;
  }

  .expert-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .expert-service-card,
  .expert-service-card.wide-card {
    grid-column: span 1;
    min-height: auto;
    padding: 24px 20px;
  }

  .expert-service-card.wide-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .expert-service-card.wide-card .expert-service-icon {
    margin-bottom: 20px;
  }

  .expert-services-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 22px 18px;
  }

  .expert-services-btn {
    justify-content: center;
    width: 100%;
  }
}




.faq-section {
    padding: 80px 20px;
    direction: rtl;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-badge {
    background: #fff;
    color: #d97706;
    border: 1px solid #fbbf24;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 900;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: #fbbf24;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    transition: color 0.3s;
}

.accordion-item.active .accordion-header h3 {
    color: #d97706;
}

/* آیکون مثبت و منفی سفارشی */
.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.accordion-icon::before, .accordion-icon::after {
    content: "";
    position: absolute;
    background-color: #9ca3af;
    transition: all 0.3s ease;
}

/* خط افقی */
.accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* خط عمودی */
.accordion-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-item.active .accordion-icon::before {
    background-color: #d97706;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-inner {
    padding: 0 25px 25px 60px;
    color: #4b5563;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-title { font-size: 1.7rem; }
    .accordion-header { padding: 15px 20px; }
    .accordion-header h3 { font-size: 1rem; }
}



/* ==========================================
   Blog Section Styles
   ========================================== */
.blog-section {
    padding: 100px 0;
    background-color: #ffffff;
    direction: rtl;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    padding: 0 20px;
}

.blog-badge {
    color: #d97706;
    background: #fff7ed;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 12px;
}

.blog-main-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 10px;
}

.blog-desc {
    color: #6b7280;
    font-size: 1.05rem;
}

.blog-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    transition: all 0.3s;
}

.blog-view-all:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.blog-view-all svg { width: 18px; height: 18px; }

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* Card Design */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #fbbf24;
}

.blog-card-image {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    min-width: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-date-badge span { display: block; line-height: 1.2; }
.blog-date-badge .day { font-weight: 900; font-size: 1.2rem; color: #111827; }
.blog-date-badge .month { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; }

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta svg { width: 14px; height: 14px; }

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-card-title a {
    text-decoration: none;
    color: #1f2937;
    transition: color 0.3s;
}

.blog-card-title a:hover { color: #d97706; }

.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #d97706;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-read-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.blog-read-more:hover svg {
    transform: translateX(-5px);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .blog-main-title { font-size: 1.7rem; }
    .blog-view-all { width: 100%; justify-content: center; }
}





.final-cta-section {
    position: relative;
    padding: 100px 0;
    background: #111827; /* رنگ تیره حرفه‌ای */
    color: #fff;
    overflow: hidden;
    direction: rtl;
}

.cta-overlay-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ستون اطلاعات */
.cta-info-column { flex: 1; }

.cta-top-badge {
    color: #fbbf24;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.cta-main-heading {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}

.cta-description {
    font-size: 1.1rem;
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 35px;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.cta-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.feat-icon {
    color: #10b981;
    width: 24px;
    height: 24px;
}

.cta-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 15px 30px;
    border-radius: 100px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.cta-phone-link:hover {
    background: #fbbf24;
    color: #111827;
    transform: scale(1.05);
}

.phone-icon-box {
    width: 45px;
    height: 45px;
    background: #fbbf24;
    color: #111827;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon-box svg { width: 24px; }

.phone-text span { display: block; font-size: 0.85rem; opacity: 0.8; }
.phone-text strong { font-size: 1.4rem; font-weight: 900; }

/* ستون فرم */
.cta-form-column { flex: 0 0 450px; }

.form-card {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    color: #111827;
}

.form-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.input-group { margin-bottom: 15px; }

.input-group input, .input-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus, .input-group select:focus {
    border-color: #fbbf24;
    outline: none;
    background: #fffbeb;
}

.cta-submit-btn {
    width: 100%;
    background: #d97706;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.cta-submit-btn:hover {
    background: #b45309;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

.cta-submit-btn svg { width: 20px; transition: transform 0.3s; }
.cta-submit-btn:hover svg { transform: translateX(-5px); }

/* ریسپانسیو */
@media (max-width: 992px) {
    .cta-wrapper { flex-direction: column; text-align: center; gap: 40px; }
    .cta-form-column { flex: 1; width: 100%; }
    .cta-feat-item { justify-content: center; }
    .cta-phone-link { justify-content: center; }
    .cta-main-heading { font-size: 2.2rem; }
}





/* ==========================================
   Footer Styles
   ========================================== */
.site-footer {
    background-color: #0f172a; /* تم بسیار تیره و شیک */
    color: #cbd5e1;
    padding-top: 80px;
    direction: rtl;
    font-size: 0.9rem;
    border-top: 3px solid #fbbf24; /* خط طلایی بالای فوتر */
}

.footer-top {
    padding-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1); /* سفید کردن لوگوی تک‌رنگ در فوتر تیره */
}

.footer-about-text {
    line-height: 1.8;
    color: #94a3b8;
    text-align: justify;
}

/* شبکه‌های اجتماعی */
.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #fbbf24;
    color: #0f172a;
    transform: translateY(-3px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
}

/* عناوین ستون‌ها */
.footer-col-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
    margin: 0 0 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: #fbbf24;
}

/* منوهای متنی */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-menu a:hover {
    color: #fbbf24;
    transform: translateX(-5px);
}

/* اطلاعات تماس */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-contact-info svg {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 3px;
}

.ltr-text {
    direction: ltr;
    text-align: right;
}

/* نمادهای اعتماد */
.trust-badges {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.badge-placeholder {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* کپی رایت */
.footer-bottom {
    background: #020617;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #64748b;
    font-size: 0.8rem;
}

.footer-bottom strong {
    color: #cbd5e1;
}

/* ==========================================
   Responsive (واکنش‌گرایی)
   ========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-bottom-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-column {
        align-items: center;
        text-align: center;
    }
    .footer-col-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-contact-info li {
        flex-direction: column;
        align-items: center;
    }
    .ltr-text {
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
    .trust-badges {
        justify-content: center;
    }
}


/* در حالت موبایل (صفحه نمایش‌های کوچک‌تر از 768 پیکسل) مخفی شود */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}





.ad-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.ad-single-page {
    color: #1f2933;
}

.ad-single-hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    padding: 36px 0 44px;
}

.ad-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 24px;
    color: #d1d5db;
}

.ad-breadcrumb a {
    color: #fbbf24;
    text-decoration: none;
}

.ad-single-header {
    max-width: 860px;
}

.ad-post-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ad-post-cats a {
    background: rgba(251, 191, 36, .14);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, .35);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
}

.ad-single-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.45;
    font-weight: 800;
}

.ad-single-excerpt {
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: 17px;
    line-height: 2;
}

.ad-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 22px;
    color: #d1d5db;
    font-size: 14px;
}

.ad-post-meta strong {
    color: #fff;
}

.ad-single-layout-wrap {
    padding: 34px 0 56px;
}

.ad-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.ad-single-content,
.ad-sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.ad-single-content {
    overflow: hidden;
}

.ad-featured-image {
    margin: 0;
}

.ad-featured-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.ad-article-body {
    padding: 30px;
    font-size: 16px;
    line-height: 2.15;
    color: #27313f;
}

.ad-article-body h2,
.ad-article-body h3,
.ad-article-body h4 {
    color: #111827;
    line-height: 1.7;
    margin: 34px 0 14px;
}

.ad-article-body h2 {
    font-size: 26px;
    border-right: 4px solid #f59e0b;
    padding-right: 12px;
}

.ad-article-body h3 {
    font-size: 22px;
}

.ad-article-body p {
    margin: 0 0 18px;
}

.ad-article-body a {
    color: #c27803;
    text-decoration: none;
    border-bottom: 1px dashed rgba(194, 120, 3, .45);
}

.ad-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.ad-article-body ul,
.ad-article-body ol {
    padding-right: 22px;
    margin-bottom: 22px;
}

.ad-article-body blockquote {
    margin: 26px 0;
    padding: 18px 20px;
    background: #fffbeb;
    border-right: 4px solid #f59e0b;
    border-radius: 14px;
    color: #4b5563;
}

.ad-article-cta {
    margin: 0 30px 28px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border: 1px solid #fde68a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ad-article-cta strong {
    display: block;
    color: #111827;
    font-size: 18px;
    margin-bottom: 6px;
}

.ad-article-cta p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.ad-cta-btn,
.ad-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 11px 18px;
    border-radius: 12px;
    background: #f59e0b;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.ad-cta-btn:hover,
.ad-sidebar-btn:hover {
    background: #d97706;
    color: #fff;
}

.ad-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 30px 28px;
    align-items: center;
}

.ad-post-tags span {
    color: #4b5563;
    font-weight: 700;
}

.ad-post-tags a {
    padding: 6px 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
}

.ad-author-box {
    margin: 0 30px 30px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    display: flex;
    gap: 18px;
    background: #f9fafb;
}

.ad-author-avatar img {
    border-radius: 50%;
}

.ad-author-label {
    display: inline-block;
    font-size: 12px;
    color: #b45309;
    font-weight: 700;
    margin-bottom: 4px;
}

.ad-author-info h3 {
    margin: 0 0 8px;
    color: #111827;
}

.ad-author-info p {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.9;
}

.ad-author-info a {
    color: #c27803;
    text-decoration: none;
    font-weight: 700;
}

.ad-related-posts {
    padding: 0 30px 32px;
}

.ad-section-head {
    margin-bottom: 18px;
}

.ad-section-head h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
}

.ad-section-head p {
    margin: 0;
    color: #6b7280;
}

.ad-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ad-related-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: .2s ease;
}

.ad-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.ad-related-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
}

.ad-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-related-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #9ca3af;
    font-weight: 700;
}

.ad-related-content {
    padding: 13px;
}

.ad-related-content h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.8;
}

.ad-related-content a {
    color: #111827;
    text-decoration: none;
}

.ad-related-content span {
    color: #6b7280;
    font-size: 12px;
}

.ad-single-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

.ad-sidebar-card {
    padding: 20px;
}

.ad-sidebar-card h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 18px;
}

.ad-sidebar-card p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.9;
}

.ad-sidebar-kicker {
    display: inline-block;
    color: #fbbf24;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 700;
}

.ad-contact-card {
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    border-color: transparent;
}

.ad-contact-card h3,
.ad-contact-card p {
    color: #fff;
}

.ad-sidebar-list,
.ad-service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ad-sidebar-list li,
.ad-service-card li {
    border-bottom: 1px solid #f1f2f4;
}

.ad-sidebar-list li:last-child,
.ad-service-card li:last-child {
    border-bottom: 0;
}

.ad-sidebar-list a,
.ad-service-card li {
    display: block;
    padding: 10px 0;
    color: #374151;
    text-decoration: none;
    line-height: 1.8;
}

.ad-sidebar-list a:hover {
    color: #c27803;
}

.ad-latest-posts {
    display: grid;
    gap: 10px;
}

.ad-latest-item {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
    text-decoration: none;
}

.ad-latest-item span {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.8;
}

.ad-latest-item small {
    color: #6b7280;
}

.ad-service-card a {
    display: inline-flex;
    margin-top: 14px;
    color: #c27803;
    text-decoration: none;
    font-weight: 700;
}

.ad-page-links {
    padding: 0 30px 25px;
}

@media (max-width: 992px) {
    .ad-single-layout {
        grid-template-columns: 1fr;
    }

    .ad-single-sidebar {
        position: static;
    }

    .ad-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ad-container {
        width: min(100% - 24px, 1180px);
    }

    .ad-single-hero {
        padding: 28px 0 34px;
    }

    .ad-post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .ad-article-body {
        padding: 22px 18px;
        font-size: 15px;
        line-height: 2.05;
    }

    .ad-article-body h2 {
        font-size: 22px;
    }

    .ad-article-body h3 {
        font-size: 19px;
    }

    .ad-article-cta {
        margin: 0 18px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ad-cta-btn {
        width: 100%;
    }

    .ad-post-tags,
    .ad-related-posts {
        padding-inline: 18px;
    }

    .ad-author-box {
        margin-inline: 18px;
        flex-direction: column;
        text-align: right;
    }

    .ad-related-grid {
        grid-template-columns: 1fr;
    }
}



/* تعریف وزن معمولی فونت */
@font-face {
    font-family: 'IRANSansWeb_Light';
    src: url('fonts/IRANSansWeb_Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* بسیار مهم برای سرعت و بهینه‌سازی */
}

/* تعریف وزن ضخیم (Bold) فونت */
@font-face {
    font-family: 'fonts/IRANSansWeb_Bold';
    src: url('fonts/IRANSansWeb_Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap; /* بسیار مهم برای سرعت و بهینه‌سازی */
}



/* اعمال فونت به کل بدنه سایت و تمامی تگ‌ها */
body, html, p, span, a, input, button, textarea, select {
    font-family: 'IRANSansWeb_Light', Tahoma, Arial, sans-serif !important;
}

/* اعمال فونت به تیترها با وزن ضخیم */
h1, h2, h3, h4, h5, h6 {
    font-family: 'fonts/IRANSansWeb_Bold', Tahoma, Arial, sans-serif !important;
    font-weight: 700 !important;
}


h1.page-title.mb-4 {
    text-align: center;
}


/* Floating Contact Widget */
.aref-contact-widget {
    direction: rtl;
}

/* Desktop Button */
.aref-contact-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
}

.aref-contact-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.aref-contact-toggle__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f59e0b;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 38px;
}

.aref-contact-toggle__text {
    white-space: nowrap;
}

/* Desktop Popup */
.aref-contact-popup {
    position: fixed;
    right: 20px;
    bottom: 86px;
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(17, 24, 39, 0.18);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.aref-contact-popup.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aref-contact-popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #111827;
    color: #fff;
    font-size: 15px;
}

.aref-contact-popup__close {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.aref-contact-popup__body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.aref-contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    padding: 14px 14px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #eceff3;
    color: #111827;
    transition: all 0.2s ease;
}

.aref-contact-link:hover {
    background: #fff7ed;
    border-color: #fed7aa;
}

.aref-contact-link__label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.aref-contact-link__value {
    font-size: 14px;
    color: #111827;
    font-weight: 700;
    direction: ltr;
    text-align: left;
}

/* Mobile Sticky Bar */
.aref-mobile-contact-bar {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
}

.aref-mobile-contact-item {
    min-height: 60px;
    padding: 8px 6px;
    text-decoration: none;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    border-left: 1px solid #edf0f2;
}

.aref-mobile-contact-item:last-child {
    border-left: none;
}

.aref-mobile-contact-item__icon {
    font-size: 18px;
    line-height: 1;
}

.aref-mobile-contact-item--whatsapp {
    background: #f0fdf4;
    color: #166534;
}

/* Responsive */
@media (max-width: 767px) {
    .aref-contact-toggle,
    .aref-contact-popup {
        display: none !important;
    }

    .aref-mobile-contact-bar {
        display: grid;
    }

    body {
        padding-bottom: 60px;
    }
}

@media (min-width: 768px) {
    .aref-mobile-contact-bar {
        display: none !important;
    }
}

video{
    
    width:100%;
    max-width:100%;
    height:100%;
}





.qgs-inline-related {
	margin: 28px 0;
}

.qgs-inline-related__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
	border: 1px solid #dbe7ff;
	border-right: 4px solid #2563eb;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	font-size: 15px;
	line-height: 1.9;
}

.qgs-inline-related--fa {
	direction: rtl;
}

.qgs-inline-related__label {
	font-weight: 700;
	color: #0f172a;
}

.qgs-inline-related__link {
	font-weight: 600;
	color: #1d4ed8;
	text-decoration: none;
	border-bottom: 1px solid rgba(29, 78, 216, 0.25);
	transition: all 0.2s ease;
}

.qgs-inline-related__link:hover {
	color: #1e40af;
	border-bottom-color: rgba(30, 64, 175, 0.45);
}

@media (max-width: 768px) {
	.qgs-inline-related__inner {
		padding: 12px 14px;
		font-size: 14px;
		border-radius: 10px;
	}
}


.video-container {
    position: relative;
    width: 100%;
    /* نسبت ابعاد 16:9 */
    aspect-ratio: 16 / 9; 
    /* محدود کردن حداکثر ارتفاع به 400 پیکسل */
    max-height: 400px;
    /* برای اینکه در حالت محدود شده هم نسبت ابعاد به درستی حفظ شود */
    margin: 0 auto;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
