/*
Theme Name: Zephyr Child
Template: Zephyr
Version: 1.0
Author:	UpSolution
Theme URI: http://zephyr.us-themes.com/
Author URI: http://us-themes.com/
*/

/* ═══════════════════════════════════════════════════════════════
   INDEX
   01. FONTS
   02. CSS VARIABLES & RESET
   03. TYPOGRAPHY
   04. NAVBAR & HEADER
   05. PAGE HERO (صفحات داخلی)
   06. WAVE DIVIDERS
   07. SECTION COMMON
   08. SERVICES GRID
   09. FOOTER
   10. BLOG PAGE
   11. CONTACT / GRAVITY FORMS
   12. REQUEST MODAL
   13. ANIMATIONS & REVEAL
   14. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   01. FONTS
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Kalameh';
  src: url('fonts/woff2/KalamehWebFaNum-Thin.woff2') format('woff2'),
    url('fonts/woff/KalamehWebFaNum-Thin.woff') format('woff');
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kalameh';
  src: url('fonts/woff2/KalamehWebFaNum-Regular.woff2') format('woff2'),
    url('fonts/woff/KalamehWebFaNum-Regular.woff') format('woff');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kalameh';
  src: url('fonts/woff2/KalamehWebFaNum-Bold.woff2') format('woff2'),
    url('fonts/woff/KalamehWebFaNum-Bold.woff') format('woff');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kalameh';
  src: url('fonts/woff2/KalamehWebFaNum-Black.woff2') format('woff2'),
    url('fonts/woff/KalamehWebFaNum-Black.woff') format('woff');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* icon fonts — دست‌نخورده */
.fa {
  font-family: 'Font Awesome 5 Brands';
}


/* ═══════════════════════════════════════════════════════════════
   02. CSS VARIABLES & RESET
   ═══════════════════════════════════════════════════════════════ */

:root {
  --red: #C8102E;
  --red-dark: #9B0B22;
  --red-light: #C8102E;
  --red-pale: #FFF2F3;
  --red-soft: #FFE8EA;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.10);
  --shadow-red: 0 8px 30px rgba(200, 16, 46, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}


/* ═══════════════════════════════════════════════════════════════
   03. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
ul,
li,
div,
input,
textarea,
select,
button {
  font-family: 'Kalameh', sans-serif !important;
}

body {
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

b,
strong,
.bold {
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
}

h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

/* admin bar */
#wpadminbar .quicklinks .ab-empty-item,
#wpadminbar .quicklinks a,
#wpadminbar .shortlink-input,
#wp-admin-bar-my-account,
.display-name {
  font-family: 'Kalameh', sans-serif !important;
}

/* section headings */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 0 0 14px;
  padding: 0;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-label {
  justify-content: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
/* tabs-slider-wrap — فقط margin، بقیه توسط shared CSS در element.php کنترل می‌شود */
.tabs-slider-wrap {
    margin: 10px 0 !important;
    /* overflow هرگز اینجا تعریف نکن — element.php مدیریت می‌کند */
}

/* ═══════════════════════════════════════════════════════════════
   04. NAVBAR & HEADER
   ═══════════════════════════════════════════════════════════════ */

.nav-btn-account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-btn-account:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* زبان — nav */
.nav-lang-btn {
  font-family: 'Kalameh', sans-serif;
}


/* ═══════════════════════════════════════════════════════════════
   05. PAGE HERO (صفحات داخلی)
   ═══════════════════════════════════════════════════════════════ */

/*
 * .page-hero — gradient از طریق ::before اعمال میشه
 * تا background-color پایه (#F9FAFB) بتونه gap subpixel
 * بین hero و section بعدی رو روی موبایل پر کنه.
 * (ببین بخش wave-divider fix برای توضیح کامل)
 */
.page-hero {
  min-height: 340px;
  /* fallback = رنگ section بعدی؛ gradient روی ::before هست */
  background-color: #F9FAFB;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 5%;
  margin-bottom: -2px;
}

/* لایه gradient + radial glow */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:linear-gradient(135deg, #111827 0%, #1a0a0e 50%, #111827 100%);
  z-index: 0;
  pointer-events: none;
}

/* لایه glow جداگانه روی gradient */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(200, 16, 46, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(200, 16, 46, 0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* breadcrumb */
.g-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  margin-bottom: 20px;
}

.g-breadcrumbs-item a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.g-breadcrumbs-item a:hover {
  color: var(--red);
}


/* ═══════════════════════════════════════════════════════════════
   06. WAVE DIVIDERS
   ═══════════════════════════════════════════════════════════════ */

.wave-bottom {
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.i-cf:after {
    content: '';
    display: inline-block !important;
    clear: unset !important;
}
.wave-bottom svg {
  display: block;
  width: 100%;
  height: 160px;
	  z-index: 9999;

}

.footer-wave {
  line-height: 0;
  margin-bottom: -2px;
  display: block;
  background: transparent;
}

/* غیرفعال کردن wavet6 pseudo داخل footer — چون wave مستقل inject شده */
.l-footer .wavet6::before {
  display: none;
}

/* Wave بالای فوتر */
.l-footer {
  position: relative;
}

/* آخرین section قبل از footer — padding-bottom اضافه تا wave روش overlap کنه */
.l-canvas>.l-main>.l-section:last-child,
.l-main>.l-section:last-child {
  padding-bottom: 180px !important;
}

.footer-wave-top {
  line-height: 0;
  margin-bottom: -2px;
  margin-top: -160px;
  position: relative;
  z-index: 2;
  display: block;
}

.footer-wave-top svg {
  display: block;
  width: 100%;
  height: auto;
}
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
}


/* ═══════════════════════════════════════════════════════════════
   07. SECTION COMMON
   ═══════════════════════════════════════════════════════════════ */

section:not(.dash-content):not(.article-section) {
  position: relative;
  overflow: hidden;
}

/* SVG Blobs */
.blob-svg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.blob-tr {
  width: 500px;
  height: 500px;
  top: 50%;
  transform: translateY(-65%);
  right: -200px;
}

.blob-bl {
  width: 460px;
  height: 460px;
  top: 50%;
  transform: translateY(-25%);
  left: -184px;
}

.blob-tl {
  width: 500px;
  height: 500px;
  top: 50%;
  transform: translateY(-70%);
  left: -200px;
}

.blob-br {
  width: 460px;
  height: 460px;
  top: 50%;
  transform: translateY(-20%);
  right: -184px;
}

/* دکمه‌های عمومی */
.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 28px rgba(200, 16, 46, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(200, 16, 46, 0.55);
  color: #fff !important;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
  transform: translateY(-3px);
}


/* ═══════════════════════════════════════════════════════════════
   08. SERVICES GRID
   ═══════════════════════════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(200, 16, 46, 0.1);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(200, 16, 46, 0.06);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(200, 16, 46, 0.15);
  border-color: rgba(200, 16, 46, 0.3);
  background: rgba(255, 255, 255, 0.72);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #C8102E, #9B0B22) !important;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.28);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
  flex: 1;
  margin-bottom: 18px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-link:hover {
  gap: 9px;
}


/* ═══════════════════════════════════════════════════════════════
   09. FOOTER
   ═══════════════════════════════════════════════════════════════ */



.footer-grid .wpb_wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.l-footer img {
  height: 85px;
  width: auto;
  object-fit: contain;
  display: block;
}

.l-footer p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.8;
  margin: 0 0 22px;
}

.l-footer a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.l-footer a:hover {
  color: var(--red);
}

.l-footer .widgettitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px;
}

.footer-contact-item span[dir="ltr"] {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 22px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
}

.footer-bottom a {
  color: var(--red);
  text-decoration: none;
}

/* ─── فوتر اکاردیون — موبایل ─────────────────────────── */

/*
   منو bottom-nav fixed است — فقط footer-bottom پدینگ می‌گیرد
   تا محتوا پشت منو پنهان نشود.
*/
@media (max-width: 768px) {

  .footer-bottom,
  footer>*:last-child,
  .site-footer>*:last-child,
  #colophon>*:last-child {
    padding-bottom: 82px !important;
  }
}

@media (max-width: 768px) {
	.footer-wave-top svg {
    display: block;
    height: 100px !important;
}
	
  .footer-grid .wpb_wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ستون برند — وسط‌چین، بدون border پایین */
  .footer-grid .footer-brand,
  .footer-grid .w-vwrapper.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 0;
    border-bottom: none !important;
  }

  .footer-grid .footer-brand img,
  .footer-grid .footer-brand .w-image {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid .footer-brand .footer-socials {
    justify-content: center;
    border-bottom: none !important;
    padding-top: 15px !important;
  }

  .footer-grid .footer-brand p,
  .footer-grid .footer-brand .w-text,
  .footer-grid .footer-brand .w-text-h,
  .footer-grid .footer-brand .w-text-value {
    text-align: center;
  }

  /* هر widget منو — border بالا به عنوان جداکننده */
  .footer-grid .vc_wp_custommenu {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
  }

  /* عنوان = دکمه اکاردیون */
  .footer-grid .vc_wp_custommenu .widgettitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 16px 0;
    margin-bottom: 0 !important;
    user-select: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
  }

  /* فلش اکاردیون */
  .footer-grid .vc_wp_custommenu .widgettitle::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  /* وقتی باز هست فلش می‌چرخه */
  .footer-grid .vc_wp_custommenu.is-open .widgettitle::after {
    transform: rotate(180deg);
  }

  .footer-grid .vc_wp_custommenu.is-open .widgettitle {
    color: #fff;
  }

  /* محتوای منو — پنهان پیش‌فرض */
  .footer-grid .vc_wp_custommenu .widget_nav_menu>div,
  .footer-grid .vc_wp_custommenu [class*="-container"],
  .footer-grid .vc_wp_custommenu ul.menu {
    display: none;
    margin: 0;
    padding: 0;
  }

  /* وقتی باز هست */
  .footer-grid .vc_wp_custommenu.is-open .widget_nav_menu>div,
  .footer-grid .vc_wp_custommenu.is-open [class*="-container"],
  .footer-grid .vc_wp_custommenu.is-open ul.menu {
    display: block;
    padding-bottom: 12px;
  }

  /* آیتم‌های منو */
  .footer-grid .vc_wp_custommenu ul.menu li {
    list-style: none;
  }

  .footer-grid .vc_wp_custommenu ul.menu li a {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.42);
  }

  .footer-grid .vc_wp_custommenu ul.menu li a::before {
    content: "—";
    color: #C8102E;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  /* footer-bottom — بدون فضای اضافی */
  .l-footer .footer-bottom,
  #page-footer .footer-bottom {
    margin-top: 0;
    padding-top: 18px;
    padding-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* حذف padding/margin اضافی از wrapper های WPBakery */
  .footer-grid .vc_column-inner,
  .footer-grid .wpb_wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* separator های WPBakery داخل فوتر */
  .footer-grid .w-separator {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   10. BLOG PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── [arsen_post_cats] shortcode ── */
.arsen-post-cats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: none;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red);
    background: var(--red-pale);
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.arsen-post-cat-badge {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.arsen-post-cat-extra {
  display: inline-flex;
  align-items: center;
  background: rgba(200, 16, 46, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 50px;
  white-space: nowrap;
  line-height: 1;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.blog-page-section {
  background: #f9fafb !important;
  padding: 90px 5% 100px !important;
  position: relative;
  overflow: hidden;
}

.blog-page-layout .wpb_wrapper:nth-child(1) {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Grid item (US Grid layout) */
.layout_177 .w-grid-item-h {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.layout_177 .w-grid-item-h:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.layout_177 .us-btn-style_badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red) !important;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px !important;
  border-radius: 50px !important;
}

.layout_177 .usg_post_title_2 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 8px !important;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.layout_177 .usg_post_content_2 {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 14px !important;
}

.blog-page-meta {
  gap: 12px;
  font-size: 0.76rem;
  color: var(--gray-400);
  flex-wrap: nowrap;
  border-top: 1px solid var(--gray-200);
  padding-top: 6px;
  margin-top: auto;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-sidebar-widget {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 20px;
}

.blog-sidebar-widget h4,
.blog-sidebar .widgettitle {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

/* Search */
.blog-sidebar .search-field {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.blog-sidebar .search-field:focus {
  border-color: var(--red);
}

.search-submit {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .15s;
}

.search-submit:hover {
  color: var(--red);
}

/* Recent posts */
.blog-recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-recent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 8px;
  padding: 4px;
}

.blog-recent-item:hover {
  background: var(--gray-100);
}

.blog-recent-item img {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-recent-item p {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 4px;
}

/* Layout 181 (recent posts grid) */
.layout_181 .usg_post_title_1 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   11. CONTACT / GRAVITY FORMS
   ═══════════════════════════════════════════════════════════════ */

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--gray-200);
}

.gform_wrapper.gravity-theme .gform_fields {
  row-gap: 5px !important;
}

.gform_wrapper .gform_fields .gfield select,
.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]):not(.ginput_total):not(.ginput_shipping_price):not(.ginput_product_price),
.gform_wrapper .gform_fields .gfield textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s;
}

.gform_wrapper .gform_fields .gfield select:focus,
.gform_wrapper input:focus,
.gform_wrapper .gform_fields .gfield textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.gform_wrapper.gravity-theme .gfield textarea.large {
  resize: vertical;
  min-height: 100px;
}

.gform_wrapper.gravity-theme #field_submit input,
.gform_wrapper.gravity-theme .gform_footer input {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  background: var(--red) !important;
  color: #fff !important;
  padding: 14px !important;
  border-radius: 12px !important;
  border: none !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35) !important;
  width: 100% !important;
  cursor: pointer;
  transition: var(--transition) !important;
}

.gform_wrapper.gravity-theme #field_submit input:hover,
.gform_wrapper.gravity-theme .gform_footer input:hover {
  background: var(--red-dark) !important;
  transform: translateY(-2px) !important;
}

.gform_wrapper.gravity-theme .gfield_label {
  font-size: 0.82rem;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════
   12. REQUEST MODAL
   ═══════════════════════════════════════════════════════════════ */

.req-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.req-overlay.open {
  opacity: 1;
  visibility: visible;
}

.req-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 36px 32px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none;
}

.req-modal::-webkit-scrollbar {
  display: none;
}

.req-overlay.open .req-modal {
  transform: translateY(0) scale(1);
}

.req-close {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.req-close:hover {
  background: var(--red);
}

.req-close:hover svg path {
  stroke: #fff;
}

.req-modal-head {
  margin-bottom: 28px;
}

.req-modal-head h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.req-modal-head p {
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* فرم داخل مودال */
.req-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.req-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.req-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-600);
}

.req-field input,
.req-field textarea {
  width: 100%;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.req-field input:focus,
.req-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
  background: #fff;
}

.req-field input.error,
.req-field textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.08);
}

.req-err {
  font-size: 0.7rem;
  color: #e53e3e;
  min-height: 14px;
  display: block;
}

/* چک‌باکس رنگ */
.req-color-check {
  margin: 4px 0 16px;
}

.req-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 12px;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.req-check-label:hover {
  border-color: var(--red);
  color: var(--red);
}

.req-check-label input[type="checkbox"] {
  display: none;
}

.req-checkmark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--gray-300);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.req-checkmark svg {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.req-check-label input:checked~.req-checkmark {
  background: var(--red);
  border-color: var(--red);
}

.req-check-label input:checked~.req-checkmark svg {
  opacity: 1;
}

.req-check-label:has(input:checked) {
  border-color: var(--red);
  background: var(--red-pale);
  color: var(--red);
}

/* dropdown خودرو */
.req-car-multiselect {
  position: relative;
}

.req-car-trigger {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  padding: 6px 15px 6px 10px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.req-car-multiselect.open .req-car-trigger {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
  background: #fff;
}

.req-car-placeholder {
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.req-car-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.req-car-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red-pale);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 6px 2px 4px;
  border-radius: 6px;
  white-space: nowrap;
}

.req-car-tag button {
  background: none;
  border: none;
  color: var(--red);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 1px;
  opacity: 0.65;
  transition: opacity 0.15s;
  line-height: 1;
}

.req-car-tag button:hover {
  opacity: 1;
}

.req-car-arrow {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
  pointer-events: none;
}

.req-car-multiselect.open .req-car-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.req-car-multiselect .req-car-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.req-car-multiselect.open .req-car-dropdown {
  display: block;
}

.req-field:has(#req-car-wrap) {
  overflow: visible !important;
}

.req-row:has(#req-car-wrap) {
  overflow: visible !important;
}

.req-car-search-wrap {
  position: relative;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-100);
}

.req-car-search-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.req-car-search-input {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-800);
  outline: none;
  padding: 7px 34px 7px 10px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.req-car-search-input:focus {
  border-color: var(--red);
  background: #fff;
}

.req-car-search-input::placeholder {
  color: var(--gray-400);
}

.req-car-options {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.req-car-options::-webkit-scrollbar {
  width: 4px;
}

.req-car-options::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 4px;
}

.req-car-option {
  padding: 10px 14px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: right;
}

.req-car-option:hover {
  background: var(--red-pale);
  color: var(--red);
}

.req-car-option.active {
  background: var(--red-pale);
  color: var(--red);
  font-weight: 700;
}

.req-car-option.active::after {
  content: '✓';
  float: left;
  font-size: 0.8rem;
}

.req-car-option.hidden {
  display: none;
}

.req-car-no-result {
  padding: 10px 14px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.82rem;
  color: var(--gray-400);
  text-align: center;
  display: none;
}

/* textarea فرم */
.req-field textarea {
  resize: none;
  height: 90px;
  line-height: 1.7;
}

.req-char-count {
  font-size: 0.68rem;
  color: var(--gray-400);
  text-align: left;
  margin-top: 2px;
}

.req-char-count.warn {
  color: #e53e3e;
}

/* دکمه ثبت درخواست */
.req-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
  margin-top: 4px;
}

.req-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   12b. REQUEST MODAL — Gravity Forms overrides
   ═══════════════════════════════════════════════════════════════ */

.req-modal--gf {
  max-width: 680px;
}

.req-gf-wrap {
  direction: rtl;
}

.req-gf-wrap .gform_wrapper {
  margin: 0 !important;
}

.req-gf-wrap .gform_body {
  padding: 0 !important;
}

.req-gf-wrap .gfield_label,
.req-gf-wrap .gform-field-label {
  font-family: 'Kalameh', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #4b5563 !important;
  margin-bottom: 5px !important;
}

.req-gf-wrap input[type="text"],
.req-gf-wrap input[type="tel"],
.req-gf-wrap input[type="email"],
.req-gf-wrap input[type="number"],
.req-gf-wrap input[type="url"],
.req-gf-wrap textarea,
.req-gf-wrap select {
  width: 100% !important;
  background: #f9fafb !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-family: 'Kalameh', sans-serif !important;
  font-size: 0.85rem !important;
  color: #1f2937 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
  box-sizing: border-box !important;
}

.req-gf-wrap input[type="text"]:focus,
.req-gf-wrap input[type="tel"]:focus,
.req-gf-wrap input[type="email"]:focus,
.req-gf-wrap input[type="number"]:focus,
.req-gf-wrap textarea:focus,
.req-gf-wrap select:focus {
  border-color: #C8102E !important;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08) !important;
  background: #fff !important;
}

.req-gf-wrap textarea {
  min-height: 90px !important;
  resize: vertical !important;
  line-height: 1.7 !important;
}

.req-gf-wrap .gform_fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  align-items: start !important;
}

.req-gf-wrap .gfield--width-full,
.req-gf-wrap .gfield--width-half:nth-child(odd):last-child {
  grid-column: 1 / -1 !important;
}

.req-gf-wrap .gfield--width-half {
  grid-column: span 1 !important;
}

.req-gf-wrap .gfield {
  margin: 0 !important;
  padding: 0 !important;
}

.req-gf-wrap .gfield_description.validation_message,
.req-gf-wrap .gfield_validation_message {
  font-family: 'Kalameh', sans-serif !important;
  font-size: 0.72rem !important;
  color: #e53e3e !important;
  margin-top: 4px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.req-gf-wrap .gfield_error input,
.req-gf-wrap .gfield_error textarea,
.req-gf-wrap .gfield_error select {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.08) !important;
}

.req-gf-wrap .validation_error {
  font-family: 'Kalameh', sans-serif !important;
  font-size: 0.82rem !important;
  color: #e53e3e !important;
  background: #fff5f5 !important;
  border: 1.5px solid #fca5a5 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
}

.req-gf-wrap .gform_footer,
.req-gf-wrap .gform_page_footer {
  margin-top: 8px !important;
  padding: 0 !important;
}

.req-gf-wrap input[type="submit"],
.req-gf-wrap button[type="submit"] {
  width: 100% !important;
  background: #C8102E !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px !important;
  font-family: 'Kalameh', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3) !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.req-gf-wrap input[type="submit"]:hover,
.req-gf-wrap button[type="submit"]:hover {
  background: #9b0b22 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.4) !important;
}

.req-gf-wrap .gform_confirmation_message {
  font-family: 'Kalameh', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #059669 !important;
  background: #d1fae5 !important;
  border: 1.5px solid #6ee7b7 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  text-align: center !important;
}

#gf-budget-dollar-equiv {
  font-family: 'Kalameh', sans-serif;
}

@media (max-width: 540px) {
  .req-modal--gf {
    padding: 24px 20px 20px !important;
  }

  .req-gf-wrap .gform_fields {
    grid-template-columns: 1fr !important;
  }

  .req-gf-wrap .gfield--width-half {
    grid-column: 1 / -1 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   13. ANIMATIONS & REVEAL
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}


/* ═══════════════════════════════════════════════════════════════
   14. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* tablet */
@media (max-width: 1024px) {
  .footer-grid .wpb_wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .blog-page-layout .wpb_wrapper:nth-child(1) {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-sidebar-widget {
    flex: 1 1 280px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blob-tr {
    width: 250px;
    height: 250px;
    right: -150px;
  }

  .blob-bl {
    width: 250px;
    height: 250px;
    left: -150px;
  }

  .blob-tl {
    width: 250px;
    height: 250px;
    left: -150px;
  }

  .blob-br {
    width: 300px;
    height: 250px;
    right: -150px;
  }

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

/* small mobile */
@media (max-width: 480px) {

  .wave-bottom svg {
    height: 120px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid .wpb_wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-page-grid {
    grid-template-columns: 1fr;
  }

  .req-modal {
    padding: 28px 20px 24px;
  }

  .req-row {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════
   15. FAQ SHORTCODE
   ═══════════════════════════════════════════════════════════════ */

.faq-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  direction: rtl;
}

.faq-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.faq-sidebar h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 16px;
}

.faq-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
}

.faq-cat-btn span {
  font-size: 0.72rem;
  color: var(--gray-400);
  background: var(--gray-100);
  border-radius: 50px;
  padding: 2px 8px;
}

.faq-cat-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.faq-cat-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.faq-cat-btn.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.faq-list-wrapper {
  display: flex;
  flex-direction: column;
}

.faq-cat-active-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.faq-cat-active-label h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
}

.faq-page-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-cat-heading {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 4px 0 10px;
  margin-top: 20px;
  border-bottom: 2px solid var(--red-pale);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-cat-heading:first-child {
  margin-top: 0;
}

.faq-cat-heading.hidden {
  display: none;
}

.faq-page-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-page-item:hover {
  border-color: var(--red);
}

.faq-page-item.open {
  border-color: var(--red);
}

.faq-page-item.hidden {
  display: none;
}

.faq-page-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: right;
  transition: color 0.2s ease;
}

.faq-page-item.open .faq-page-question {
  color: var(--red);
}

.faq-page-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-page-item.open .faq-page-arrow {
  transform: rotate(180deg);
}

.faq-page-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-page-item.open .faq-page-answer {
  max-height: 400px;
}

.faq-page-answer p {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 1024px) {
  .faq-page-layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .faq-page-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }
}


/* ═══════════════════════════════════════════════════════════════
   16. PAGE CTA SHORTCODE
   ═══════════════════════════════════════════════════════════════ */

.page-cta-section {
  background: linear-gradient(135deg, #111827 0%, #1a0a0e 50%, #111827 100%);
  padding: 50px 5% !important;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 50px;
}

.page-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200, 16, 46, 0.2) 0%, transparent 65%);
}

.page-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.page-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.page-cta-inner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.page-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}

@media (max-width: 520px) {
  .page-cta-section {
    border-radius: 30px;
  }

  .page-cta-btns {
    flex-direction: row;
    align-items: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   17. ARSEN SERVICES GRID (WPBakery element)
   ═══════════════════════════════════════════════════════════════ */

.arsen-sg-wrap {
  position: relative;
  overflow: hidden;
}

.arsen-sg-wrap .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.arsen-sg-wrap .arsen-sg-header {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* reveal animation برای کارت‌های المان */
.asg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.asg-reveal.asg-visible {
  opacity: 1;
  transform: translateY(0);
}

.asg-delay-1 {
  transition-delay: 0.1s;
}

.asg-delay-2 {
  transition-delay: 0.2s;
}

.asg-delay-3 {
  transition-delay: 0.3s;
}

.asg-delay-4 {
  transition-delay: 0.4s;
}

.asg-delay-5 {
  transition-delay: 0.5s;
}

@media (max-width: 1100px) {
  .arsen-sg-wrap .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .arsen-sg-wrap .services-grid {
    grid-template-columns: 1fr;
  }
}






/* ═══════════════════════════════════════════════════════════════
   16. ARSEN CUSTOM WAVE SHAPES (US Row Shape Dividers)
   override theme's  height:15vmin  for our custom SVG shapes
   ═══════════════════════════════════════════════════════════════ */

/*
 * The theme forces height:15vmin on ALL .l-section-shape divs.
 * For our custom shapes (type_custom_arsen_*) we let the SVG's
 * own viewBox aspect-ratio control the height instead.
 */
.l-section-shape[class*="type_custom_arsen_"] {
  height: auto !important;
  overflow: hidden;
  line-height: 0;
}

/*
 * Ensure the SVG stretches 100% wide and its height is auto,
 * so the viewBox ratio is respected naturally.
 */
.l-section-shape[class*="type_custom_arsen_"] svg {
  display: block !important;
  width: 100% !important;
  height: 150px !important;
}

/*
 * pos_top shapes need to sit at the very top of the section.
 * pos_bottom shapes sit at the very bottom.
 * (theme already sets these, but we ensure nothing squashes them)
 */
.l-section-shape[class*="type_custom_arsen_"].pos_top {
  top: 0 !important;
  bottom: auto !important;
}

.l-section-shape[class*="type_custom_arsen_"].pos_bottom {
  bottom: -2px !important;
  top: auto !important;
}

/* ─── fix subpixel gap روی موبایل با gradient background ─── */
/*
   ریشه مشکل: وقتی gradient مستقیم روی .page-hero باشه، مرورگر
   موبایل بین پیکسل‌های اعشاری رندر می‌کنه و یه خط باریک
   بین hero و section بعدی ایجاد میشه.

   راه‌حل: gradient رو به ::before بردیم، background-color اصلی
   hero رو #F9FAFB (رنگ section بعدی) گذاشتیم، و margin-bottom: -2px
   اضافه کردیم. اگه هر gap ایجاد بشه با همون رنگ پر میشه.
*/

/* SVG shape — overlap کافی */
.page-hero .l-section-shape[class*="type_custom_arsen_"].pos_bottom {
  bottom: -3px !important;
  overflow: visible;
  line-height: 0;
  z-index: 5;
}

.page-hero .l-section-shape[class*="type_custom_arsen_"].pos_bottom svg {
  display: block;
  overflow: visible;
}

/* محتوای hero بالای هر دو pseudo-element */
.page-hero .l-section-h {
  position: relative;
  z-index: 3;
}

/* موبایل — overlap بیشتر */
@media (max-width: 768px) {
  .page-hero .l-section-shape[class*="type_custom_arsen_"].pos_bottom {
    bottom: -4px !important;
  }
}












/* ═══════════════════════════════════════════════════════════════
   16. CONTACT INFO — TAB ELEMENT (arsen_contact_tabs)
   ═══════════════════════════════════════════════════════════════ */

/* ── تب‌های دفتر ── */
.office-tabs-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.office-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(200, 16, 46, 0.25);
  background: transparent;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Kalameh', sans-serif;
  white-space: nowrap;
}

.office-tab-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.office-tab-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.office-tab-btn img {
  vertical-align: middle;
  margin-left: 6px;
}

/* ── پنل‌های تب ── */
.office-tab-panel {
  display: none;
  animation: tabFadeIn 0.4s ease both;
}

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

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── گرید کارت‌ها ── */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(200, 16, 46, 0.1);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  border-color: rgba(200, 16, 46, 0.22);
}

/* آیکون کارت */
.contact-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-pale);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-card-icon svg {
  display: block;
}

/* اطلاعات کارت */
.contact-card-info h4 {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
}

.contact-card-info p {
  margin: 0 0 5px;
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.contact-card-info a,
.contact-card-info span {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  direction: ltr;
  unicode-bidi: bidi-override;
  word-break: break-all;
  display: inline-block;
}

.contact-card-info a:hover {
  text-decoration: underline;
}

/* ── نقشه ── */
.contact-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-map-inner {
  width: 100%;
  height: 320px;
  display: block;
}

.contact-map-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: var(--gray-900);
  pointer-events: none;
}

/* ── ریسپانسیو ── */
@media (max-width: 600px) {
  .office-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .office-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .office-tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-inner {
    height: 240px;
  }
}



/* ═══════════════════════════════════════════════════════════════
   PAGES — استایل مشترک صفحات داخلی (منتقل‌شده از assest/pages.css)
   ═══════════════════════════════════════════════════════════════ */

/* ===== SECTION LABEL — تعریف شده در بخش 03 ===== */
/* ===== PAGE HERO — تعریف شده در بخش 05 ===== */
/* ===== REVEAL ANIMATION — تعریف شده در بخش 13 ===== */
/* ===== PAGE CTA — تعریف شده در بخش 16 ===== */
/* ===== FAQ PAGE — تعریف شده در بخش 15 ===== */
/* ===== WAVE BOTTOM — تعریف شده در بخش 06 ===== */

/* همه موارد بالا تکراری بودند و حذف شدند */

/* ===== ABOUT PAGE ===== */
.about-intro-section {
  background: var(--gray-50);
  padding: 90px 5% 100px !important;
  position: relative;
  overflow: hidden;
}

.about-intro-section .wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.about-intro-section .wave-bottom svg {
  width: 100%;
  height: 160px;
  display: block;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-intro-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-lg);
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-intro-img:hover img {
  transform: scale(1.04);
}

.about-intro-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-red);
}

.about-badge-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.about-badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 3px;
}

.about-intro-content {
  padding-right: 8px;
}

.about-intro-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-values-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.about-value-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-value-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--red-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-value-item strong {
  display: block;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.about-value-item span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* STATS */
.about-stats-section {
  background: var(--white);
  padding: 80px 5%;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-stat-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.about-stat-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(200, 16, 46, 0.1);
  transform: translateY(-4px);
}

.about-stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.about-stat-desc {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
}



/* ===== PAGE CTA — تعریف شده در بخش 16 ===== */

/* ===== SERVICES PAGE ===== */
.services-page-section {
  background: var(--white);
  padding: 90px 5% 100px !important;
  position: relative;
  overflow: hidden;
}

.services-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.service-detail-card--reverse {
  direction: rtl;
}

.service-detail-card--reverse>* {
  direction: ltr;
}

.service-detail-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-lg);
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-detail-card:hover .service-detail-img img {
  transform: scale(1.04);
}

.service-detail-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.service-detail-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.service-detail-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.service-detail-body p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 20px;
}

.service-detail-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.service-detail-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--red-pale);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='%23C8102E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.service-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
}

.service-detail-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-section {
  background: var(--gray-50);
  padding: 90px 5% 100px !important;
  position: relative;
  overflow: hidden;
}

.portfolio-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 0.95rem;
  color: var(--gray-400);
  font-weight: 600;
}

/* ===== PORTFOLIO FILTER BAR ===== */
.pf-filterbar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  max-width: 780px;
  margin: 0 auto 44px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.pf-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.pf-dropdown {
  position: relative;
  flex: 1;
}

.pf-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: right;
  transition: color 0.2s;
  white-space: nowrap;
}

.pf-dropdown-btn:hover {
  color: var(--red);
}

.pf-dropdown-btn svg:first-child {
  flex-shrink: 0;
  color: var(--gray-400);
}

.pf-dropdown-btn span {
  flex: 1;
  text-align: right;
}

.pf-arrow {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--gray-400);
}

.pf-dropdown.open .pf-arrow {
  transform: rotate(180deg);
}

.pf-dropdown.active .pf-dropdown-btn {
  color: var(--red);
}

.pf-dropdown.active .pf-dropdown-btn svg {
  color: var(--red);
}

.pf-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: stretch;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.pf-dropdown.open .pf-dropdown-menu {
  display: flex;
}

.pf-option {
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-option:hover {
  background: var(--gray-50);
  color: var(--red);
}

.pf-option.active {
  color: var(--red);
  background: var(--red-pale);
}

/* چک‌باکس داخل option */
.pf-option-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  margin-right: auto;
}

.pf-option.active .pf-option-check {
  border-color: var(--red);
  background: var(--red);
}

.pf-option.active .pf-option-check::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.pf-reset-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  margin: 0 8px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.pf-reset-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 640px) {
  .pf-filterbar {
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .pf-divider {
    width: 100%;
    height: 1px;
  }

  .pf-dropdown {
    width: 100%;
    flex: none;
  }

  .pf-reset-btn {
    margin: 8px;
    width: calc(100% - 16px);
    justify-content: center;
  }

  /* accordion روی موبایل */
  .pf-dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1.5px solid var(--gray-100) !important;
    border-radius: 0 !important;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0;
  }

  .pf-dropdown.open .pf-dropdown-menu {
    max-height: 400px;
    padding: 4px 0;
  }

  .pf-option {
    padding: 12px 20px;
  }
}

.portfolio-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.portfolio-filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.portfolio-filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

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

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
}

.portfolio-overlay-tag {
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.portfolio-overlay-country {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

.portfolio-body {
  padding: 20px;
}

.portfolio-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.portfolio-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.portfolio-meta strong {
  color: var(--gray-600);
}

.portfolio-body>p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.portfolio-result {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 6px 12px;
}


/* ===== FAQ PAGE — تعریف شده در بخش 15 ===== */

/* ===== BLOG PAGE ===== */
.blog-page-section {
  background: #f9fafb !important;
  padding: 90px 5% 100px !important;
  position: relative;
  overflow: hidden;
}

.blog-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.blog-filter-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.blog-filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.blog-filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-page-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-page-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-page-card.hidden {
  display: none;
}

.blog-page-thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.blog-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-page-card:hover .blog-page-thumb img {
  transform: scale(1.05);
}

.blog-page-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.blog-page-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-page-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-page-excerpt {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-page-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--gray-400);
  flex-wrap: nowrap;
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  margin-top: auto;
}

.blog-page-meta-info {
  display: flex;
  gap: 14px;
  align-items: center;
}

.blog-page-meta-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-link:hover {
  gap: 8px;
}

.blog-link svg {
  transform: scaleX(-1);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.blog-pag-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.blog-pag-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.blog-pag-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-sidebar-widget {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.blog-sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

.blog-search-wrap {
  position: relative;
}

.blog-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.blog-search-wrap input:focus {
  border-color: var(--red);
}

.blog-search-wrap button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .15s;
}

.blog-search-wrap button:hover {
  color: var(--red);
}

#blogSearchResults {
  display: none;
  margin-top: 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.blog-search-result-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}

.blog-search-result-item:last-child {
  border-bottom: none;
}

.blog-search-result-item:hover {
  background: var(--gray-50);
}

.blog-search-result-tag {
  font-size: .7rem;
  color: var(--red);
  font-weight: 600;
}

.blog-search-result-title {
  font-size: .82rem;
  color: var(--gray-800);
  line-height: 1.5;
}

.blog-search-no-result {
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--gray-500);
  text-align: center;
}

.blog-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.blog-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.blog-cat-list a:hover {
  background: var(--red-pale);
  color: var(--red);
}

.blog-cat-list span {
  font-size: 0.72rem;
  background: var(--gray-200);
  border-radius: 50px;
  padding: 2px 8px;
  color: var(--gray-600);
}

.blog-recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-recent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 8px;
  padding: 4px;
}

.blog-recent-item:hover {
  background: var(--gray-100);
}

.blog-recent-item img {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-recent-item p {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 4px;
}

.blog-recent-item span {
  font-size: 0.72rem;
  color: var(--gray-400);
}

.blog-sidebar-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
}

.blog-sidebar-cta h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.blog-sidebar-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  background: var(--gray-50);
  padding: 90px 5% 100px;
  position: relative;
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* .contact-card, .contact-card-icon, .contact-card-info, .contact-map
   تعریف شده در بخش «CONTACT INFO — TAB ELEMENT» — تکراری حذف شد */

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--gray-200);
}

.contact-form-head {
  margin-bottom: 28px;
}

.contact-form-head p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
}

.contact-field label span {
  color: var(--red);
}

.contact-field input,
.contact-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.88rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--red);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-err {
  font-size: 0.75rem;
  color: #e53e3e;
}

/* Messenger group */
.contact-messenger-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-msg-label {
  cursor: pointer;
}

.contact-msg-label input {
  display: none;
}

.contact-msg-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  cursor: pointer;
}

.contact-msg-label input:checked+.contact-msg-box {
  border-color: var(--red);
  background: var(--red-pale);
  color: var(--red);
}

.contact-msg-box:hover {
  border-color: var(--red);
  color: var(--red);
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.contact-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-intro-grid {
    gap: 40px;
  }

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

  .service-detail-card {
    gap: 36px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    max-width: 680px;
    margin: 0 auto;
  }

  .faq-page-layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .blog-page-layout {
    grid-template-columns: 1fr 260px;
  }

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

@media (max-width: 768px) {
  .page-hero {
    min-height: 260px;
  }

  .page-hero--contact {
    min-height: 260px;
  }

  .page-hero-inner h1 {
    font-size: 1.7rem;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-intro-img {
    height: 300px;
  }

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

  .service-detail-card,
  .service-detail-card--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .faq-page-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }

  .blog-page-layout {
    grid-template-columns: 1fr;
  }

  .blog-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-cta-btns {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-wrap {
    padding: 24px 20px;
  }

  .page-cta-section {
    margin: 20px 0px;
    border-radius: 30px;
  }
}

/* ===== PORTFOLIO LOAD MORE ===== */
.portfolio-loadmore-wrap {
  text-align: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.portfolio-loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-loadmore-btn:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.15);
}

.portfolio-loadmore-btn:disabled {
  opacity: 0.4;
  cursor: default;
  border-color: var(--gray-200);
  color: var(--gray-400);
  box-shadow: none;
}

/* ===== PORTFOLIO PAGINATION ===== */
.portfolio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.portfolio-pag-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.portfolio-pag-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.portfolio-pag-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.portfolio-pag-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* آیکون تب‌ها در صفحه پروژه‌ها همیشه نمایش داده شود */
.portfolio-section .cars-tab-btn .ctb-icon {
  display: flex !important;
}


/* office-tabs-nav, office-tab-btn, office-tab-panel
   تعریف شده در بخش «CONTACT INFO — TAB ELEMENT» — تکراری حذف شد */

/* ===== ARTICLE PAGE ===== */

/* --- Hero Section --- */
.article-hero-section {
  background: linear-gradient(135deg, #0c0c0c 0%, #1a0a0e 50%, #0c0c0c 100%);
  position: relative;
  overflow: hidden;
  padding: 110px 5% 100px;
}

.article-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #F9FAFB;
  z-index: 3;
}

.article-hero-section .wave-bottom {
  bottom: 0;
}

.article-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 16, 46, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(200, 16, 46, 0.08) 0%, transparent 50%);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.025;
  pointer-events: none;
}

/* دو ستونه ۵۰/۵۰ — متن راست، تصویر چپ */
.article-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.article-hero-content {}

.article-hero-content h1 {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.article-hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-featured-image img {
  border-radius: 20px;
}

/* تصویر شاخص — نسبت ۳:۲ (مثل ۹۰۰×۶۰۰) */
.article-hero-aside {
  display: flex;
  flex-direction: column;
}

.article-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* فهرست شناور در hero — فقط در صورت استفاده در صفحه دیگر */
.article-hero-toc {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px;
  display: none;
}

.article-toc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* TOC items در hero (رنگ روشن) */
.article-hero-toc .article-toc-item {
  color: rgba(255, 255, 255, 0.6);
  border-right-color: transparent;
  border-radius: 6px;
  padding: 6px 10px;
}

.article-hero-toc .article-toc-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.article-hero-toc .article-toc-item.active {
  background: rgba(200, 16, 46, 0.25);
  color: #fff;
  border-right-color: var(--red);
}

/* --- Article Content Layout --- */
.article-section {
  background: var(--gray-50);
  padding: 60px 5% 140px;
  position: relative;
  overflow: visible;
  /* visible تا sticky کار کنه */
}

/* wrapper اصلی صفحه overflow ندیم */
/* override برای container‌های تم زفیر که sticky رو می‌شکنن */
.l-section:has(.article-layout),
.l-section:has(.article-sidebar-sticky),
.wpb_row:has(.article-layout),
.vc_row:has(.article-layout),
.l-section-content:has(.article-layout),
.l-section-h:has(.article-layout),
.wpb_wrapper:has(.article-layout) {
  overflow: visible !important;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  align-items: start;
}

/* --- Main Article --- */
.article-main {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* محتوا */
.article-body h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gray-900);
  margin: 40px 0 16px;
  line-height: 1.25;
  scroll-margin-top: 90px;
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gray-900);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
  scroll-margin-top: 90px;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 28px 0 12px;
  scroll-margin-top: 90px;
}

.article-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 22px 0 10px;
  scroll-margin-top: 90px;
}

.article-body h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: 18px 0 8px;
  scroll-margin-top: 90px;
}

.article-body h6 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin: 14px 0 6px;
  scroll-margin-top: 90px;
}

.article-body p {
  font-size: 0.94rem;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 16px;
}

.article-body strong {
  color: var(--gray-900);
}

/* لیست */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
  padding-right: 4px;
}

.article-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.article-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--red-pale) url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='%23C8102E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  border-radius: 50%;
  margin-top: 2px;
}

/* تصویر */
.article-img-wrap {
  margin: 28px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.article-img-caption {
  background: var(--gray-50);
  padding: 9px 16px;
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* callout */
.article-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--red-pale);
  border: 1.5px solid rgba(200, 16, 46, 0.15);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

.article-callout--warn {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.2);
}

.article-callout-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(200, 16, 46, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-callout--warn .article-callout-icon {
  background: rgba(217, 119, 6, 0.1);
}

.article-callout strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.article-callout p {
  font-size: 0.86rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* مراحل */
.article-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  margin: 24px 0;
}

.article-step {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 120px;
}

.article-step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

.article-step strong {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-900);
  font-weight: 800;
}

.article-step span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.article-step-arrow {
  flex-shrink: 0;
  color: var(--red);
  transform: rotate(180deg);
}

/* برچسب‌ها */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1.5px solid var(--gray-200);
}

.article-tags-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
}

.article-tag {
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
  cursor: default;
}

.article-tag:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-pale);
}

/* اشتراک‌گذاری */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1.5px solid var(--gray-200);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-600);
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.article-share-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-pale);
}

/* --- فرم دیدگاه --- */
.article-comments {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--gray-100);
}

.article-comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 28px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.comment-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  animation: fadeInTab 0.4s ease;
}

.comment-item--new {
  border-color: rgba(22, 163, 74, 0.35);
  background: #f0fdf4;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-header strong {
  font-size: 0.9rem;
  color: var(--gray-900);
  font-weight: 800;
}

.comment-header span {
  font-size: 0.75rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.comment-body p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* دکمه پاسخ */
.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.comment-reply-btn:hover {
  color: var(--red);
}

/* فرم inline پاسخ */
.comment-reply-form {
  margin-top: 14px;
  padding: 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  animation: fadeInTab 0.25s ease;
}

.reply-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.reply-submit {
  padding: 9px 20px;
  font-size: 0.82rem;
}

.reply-cancel-btn {
  font-family: 'Kalameh', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.reply-cancel-btn:hover {
  color: var(--gray-700);
}

/* ─── پاسخ‌ها — تودرتو با خط عمودی (فقط حالت threaded) ─── */
.comment-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-right: 20px;
  border-right: 2px solid var(--gray-200);
  margin-right: 8px;
  overflow: visible;
}

.comment-reply-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-right: 3px solid var(--red);
  border-radius: var(--radius-sm);
  animation: fadeInTab 0.3s ease;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

/* نقطه اتصال به خط عمودی — دسکتاپ */
.comment-reply-item::before {
  content: '';
  position: absolute;
  right: -22px;
  top: 20px;
  width: 19px;
  height: 2px;
  background: var(--gray-200);
}

.comment-reply-item .comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.82rem;
  background: var(--gray-200);
  color: var(--gray-600);
  flex-shrink: 0;
}

.comment-reply-item .comment-header strong {
  font-size: 0.85rem;
}

.comment-reply-item .comment-body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.comment-reply-item .comment-body p {
  font-size: 0.84rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.comment-reply-item .comment-replies {
  margin-right: 6px;
  padding-right: 12px;
  border-right-color: var(--gray-100);
}

.comment-reply-item .comment-reply-item {
  border-right-color: var(--gray-400);
}

.comment-reply-item--new {
  border-color: rgba(22, 163, 74, 0.3);
  border-right-color: #16a34a;
  background: #f0fdf4;
}

.comment-reply-item--new::before {
  background: rgba(22, 163, 74, 0.3);
}

/* ─── badge «در پاسخ به» — حالت flat ───────────────────── */
.comment-reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  border-radius: 50px;
  padding: 3px 10px;
  margin-bottom: 7px;
}

.comment-reply-badge strong {
  font-weight: 700;
  color: var(--red);
}

/* ─── ریسپانسیو ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .comment-item {
    padding: 14px 12px;
    gap: 10px;
  }

  .comment-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .comment-replies {
    margin-right: 0;
    padding-right: 10px;
    border-right-width: 2px;
    gap: 10px;
    overflow: visible;
  }

  .comment-reply-item {
    padding: 10px 10px;
    gap: 8px;
    min-width: 0;
    margin-right: 0;
  }

  .comment-reply-item::before {
    right: -12px;
    width: 9px;
    top: 18px;
  }

  .comment-reply-item .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .comment-reply-item .comment-replies {
    margin-right: 0 !important;
    padding-right: 8px;
    border-right-width: 2px;
  }

  .comment-reply-item .comment-reply-item::before {
    right: -10px;
    width: 7px;
  }

  .inline-reply-form {
    margin-top: 10px;
  }

  .inline-reply-form .ir-text {
    font-size: 0.85rem;
    min-height: 70px;
  }

  .comment-captcha {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .captcha-field {
    width: 100%;
  }

  .captcha-field input {
    width: 100%;
    text-align: right;
  }

  .reply-form-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .reply-submit {
    flex: 1;
    justify-content: center;
  }

  .comment-body p,
  .comment-reply-item .comment-body p {
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .comment-header {
    flex-wrap: wrap;
    gap: 4px;
  }

  .comment-header strong {
    font-size: 0.85rem;
  }

  .comment-header span {
    font-size: 0.72rem;
  }
}

/* بج «در پاسخ به» */
.reply-to-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  border-radius: 50px;
  padding: 3px 10px;
  margin-bottom: 6px;
}

.reply-to-badge strong {
  font-weight: 700;
  color: var(--red);
}

/* notice عدم لاگین */
.comment-login-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--red-pale);
  border: 1.5px solid rgba(200, 16, 46, 0.2);
  border-radius: 12px;
}

.comment-login-notice svg {
  flex-shrink: 0;
}

.comment-login-notice p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0;
}

.comment-login-notice a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.comment-login-notice a:hover {
  text-decoration: underline;
}

/* فرم inline reply (desktop) */
.inline-reply-form {
  margin-top: 12px;
  animation: fadeInTab 0.25s ease;
}

.inline-reply-form .ir-text {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s;
  color: var(--gray-800);
  display: block;
  box-sizing: border-box;
}

.inline-reply-form .ir-text:focus {
  border-color: var(--red);
}

/* ===== REPLY MODAL — فقط موبایل ===== */
.reply-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 12px;
  /* فاصله از لبه‌ها */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.reply-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.reply-modal-box {
  background: var(--white);
  border-radius: 20px;
  /* گرد از همه طرف چون padding داریم */
  padding: 24px 20px 28px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.3s ease;
  position: relative;
}

.reply-modal-overlay.open .reply-modal-box {
  transform: translateY(0);
}

.reply-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}

.reply-modal-header h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-modal-to {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-top: 2px;
}

.reply-modal-to strong {
  color: var(--red);
}

.reply-modal-close {
  width: 34px;
  height: 34px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-500);
  transition: background 0.2s;
  flex-shrink: 0;
}

.reply-modal-close:hover {
  background: var(--gray-200);
}

/* دسکتاپ: modal مخفی — فرم inline نمایش داده می‌شه */
@media (min-width: 769px) {
  .reply-modal-overlay {
    display: none !important;
  }
}

.comment-form-wrap {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.comment-form-wrap h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-200);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.comment-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
}

.comment-form-field label span {
  color: var(--red);
}

.comment-form-field input,
.comment-form-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.88rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
  border-color: var(--red);
}

.comment-form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.comment-err {
  font-size: 0.75rem;
  color: #e53e3e;
}

.comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
}

.comment-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* کپچای عددی */
.comment-captcha {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.captcha-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-600);
}

.captcha-expr {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gray-900);
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px 14px;
  letter-spacing: 2px;
  direction: ltr;
  font-family: monospace;
}

.captcha-field {
  flex: 1;
  min-width: 120px;
}

.captcha-field input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
  direction: ltr;
}

.captcha-field input:focus {
  border-color: var(--red);
}

/* --- Sidebar --- */
.article-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

/* فهرست مطالب سایدبار — لبه بالا flush با article-main */
.article-toc-widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  overflow: hidden;
}

.article-toc-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}

.article-toc-widget-title svg {
  color: var(--red);
  flex-shrink: 0;
}

/* TOC در سایدبار */
.article-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-toc-item {
  display: block;
  padding: 8px 12px;
  border-right: 2px solid transparent;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.article-toc-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  border-right-color: var(--gray-300);
}

.article-toc-item.active {
  background: var(--red-pale);
  color: var(--red);
  border-right-color: var(--red);
  font-weight: 700;
}

/* اشتراک‌گذاری سایدبار */
.sidebar-share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
}

.sidebar-share-wa:hover {
  border-color: #25D366;
  color: #25D366;
  background: #f0fdf4;
}

.sidebar-share-tg:hover {
  border-color: #0088cc;
  color: #0088cc;
  background: #eff9ff;
}

.sidebar-share-email:hover {
  border-color: #d97706;
  color: #d97706;
  background: #fffbeb;
}

.sidebar-share-copy:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-pale);
}

.sidebar-share-copy.copied {
  border-color: #16a34a;
  color: #16a34a;
  background: #f0fdf4;
}

/* --- مقالات مرتبط --- */
.related-articles-section {
  background: var(--white);
  padding: 10px 5% 100px;
}

.related-articles-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: right;
}

/* ===== ARTICLE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .article-hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .article-layout {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }

  .article-main {
    padding: 32px 36px;
  }
}

@media (max-width: 768px) {
  .article-hero-section {
    padding: 90px 5% 120px;
  }

  .article-hero-container {
    grid-template-columns: 1fr;
    gap: 20px;
    /* تصویر بالا، متن پایین */
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
  }

  /* تصویر اول نمایش داده بشه */
  .article-hero-aside {
    display: flex;
    order: -1;
    width: 100%;
  }

  .article-hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar-sticky {
    position: static;
  }

  .article-main {
    padding: 24px 20px;
  }

  .article-steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-step-arrow {
    transform: rotate(270deg);
  }

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

  .article-img-wrap img {
    height: 200px;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
  }

  .comment-form-wrap {
    padding: 20px 18px;
  }
}

@media (max-width: 520px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-meta {
    gap: 10px;
    font-size: 0.75rem;
  }
}



/* ═══════════════════════════════════════════════════════════════
   REQUEST MODAL — تکمیلی
   اطمینان از نمایش صحیح مودال در همه صفحات
   ═══════════════════════════════════════════════════════════════ */

/* z-index بالا از تم */
#reqOverlay {
  z-index: 99999 !important;
}

/* دکمه‌های باز کننده مودال در المان‌های WPBakery */
.open-req-modal,
.btn-open-req,
[href="#request"] {
  cursor: pointer;
}

/* ریست overflow بدنه هنگام باز بودن مودال */
body.modal-open {
  overflow: hidden !important;
}

/* مطمئن از نمایش صحیح در موبایل */
@media (max-width: 560px) {
  #reqOverlay {
    padding: 12px;
    align-items: flex-end;
  }

  #reqOverlay .req-modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 24px 18px 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CAR CARD — گرید نمونه‌کارها (portfolio)
   مشابه طرح HTML: portfolio.html
   ═══════════════════════════════════════════════════════════════ */

.car-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: auto;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 16, 46, 0.2);
}

/* لینک wrapper داخل کارت WPBakery */
.car-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.car-card-link:hover {
  color: inherit;
}

/* تصویر */
.car-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
  flex-shrink: 0;
}

.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.car-card:hover .car-img img {
  transform: scale(1.06);
}

/* بدنه */
.car-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-model {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* footer کارت */
.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  gap: 8px;
  flex-wrap: wrap;
}

/* badge نوع خدمت */
.car-service-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 700;
  background: rgba(200, 16, 46, 0.07);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

/* wrapper دسته‌بندی‌ها — فقط ۲ تا نشون بده + شمارنده */
.car-cats {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

/* آیتم دسته‌بندی */
.item-car-service {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ویرگول بین آیتم‌ها */
.item-car-service + .item-car-service::before {
  content: '،';
  margin-left: 3px;
  margin-right: 3px;
  color: var(--red);
  font-weight: 400;
}

/* آیتم سوم به بعد مخفی */
.car-cats .item-car-service:nth-child(n+3) {
  display: none;
}

/* badge «+N» از data-extra */
.car-cats[data-extra]::after {
  content: attr(data-extra);
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(200, 16, 46, 0.07);
  padding: 2px 7px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 4px;
}

/* رنگ خودرو */
.car-color {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}

.car-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

/* پیام خالی بودن گرید */
.pf-no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 0.95rem;
  color: var(--gray-400);
  font-weight: 600;
}

/* responsive */
@media (max-width: 768px) {
  .car-img {
    height: 180px;
  }

  .car-model {
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .car-img {
    height: 160px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ARSEN READ TIME SHORTCODE
   ═══════════════════════════════════════════════════════════════ */
.arsen-read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.arsen-read-time svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* اگر داخل hero مقاله استفاده شد */
.article-hero-meta .arsen-read-time {
  color: rgba(255, 255, 255, 0.6);
}

/* اگر داخل محتوای روشن استفاده شد */
.article-main .arsen-read-time,
.blog-page-body .arsen-read-time {
  color: var(--gray-500);
}

.blog-page-body .arsen-read-time svg {
  color: var(--gray-400);
}


/* ═══════════════════════════════════════════════════════════════
   CARS SECTION — نمونه‌کارها صفحه اصلی
   مطابق دقیق طرح HTML (assest/style.css)
   ═══════════════════════════════════════════════════════════════ */

/* سکشن اصلی */
.cars-section {
  overflow: visible;
}

/* ── نوار تب‌ها — اسکرول و wrap توسط .tabs-slider-track در element.php ── */
.cars-tabs-nav {
  display: flex;
  flex-wrap: nowrap;           /* track مدیریت می‌کند */
  gap: 10px;
  /* justify-content و overflow اینجا نباشند */
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.cars-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cars-tab-btn:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.12);
}

.cars-tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.cars-tab-btn .ctb-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.cars-tab-btn.active .ctb-icon {
  background: rgba(255, 255, 255, 0.2);
}

.cars-tab-btn.active .ctb-icon svg path,
.cars-tab-btn.active .ctb-icon svg circle,
.cars-tab-btn.active .ctb-icon svg polyline,
.cars-tab-btn.active .ctb-icon svg line,
.cars-tab-btn.active .ctb-icon svg rect {
  stroke: #fff;
}

/* ── پنل‌های تب ── */
.cars-tabs-content {
  position: relative;
  z-index: 1;
  /* جلوگیری از خط artifact هنگام switch تب — فقط افقی clip میشه */
  overflow-x: clip;
}

.cars-tab-panel {
  display: none;
}

.cars-tab-panel.active {
  display: block;
  animation: tabFadeIn 0.45s ease both;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Swiper wrapper ── */
.cars-swiper,
.arsen-cars-swiper {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 60px !important;
  position: relative;
}

/* pagination bullets */
.cars-swiper .swiper-pagination-bullet,
.arsen-cars-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--gray-200);
  opacity: 1;
  transition: var(--transition);
}

.cars-swiper .swiper-pagination-bullet-active,
.arsen-cars-swiper .swiper-pagination-bullet-active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* دکمه‌های prev/next — موقعیت زیر swiper */
.cars-swiper .swiper-button-prev,
.cars-swiper .swiper-button-next,
.arsen-cars-swiper .swiper-button-prev,
.arsen-cars-swiper .swiper-button-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  top: auto;
  bottom: 4px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.cars-swiper .swiper-button-prev,
.arsen-cars-swiper .swiper-button-prev {
  right: calc(50% + 80px);
  left: auto;
}

.cars-swiper .swiper-button-next,
.arsen-cars-swiper .swiper-button-next {
  left: calc(50% + 80px);
  right: auto;
}

.cars-swiper .swiper-button-prev::after,
.cars-swiper .swiper-button-next::after,
.arsen-cars-swiper .swiper-button-prev::after,
.arsen-cars-swiper .swiper-button-next::after {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 900;
  transition: var(--transition);
  display: inline-block;
  transform: scaleX(-1);
}

.cars-swiper .swiper-button-prev:hover,
.cars-swiper .swiper-button-next:hover,
.arsen-cars-swiper .swiper-button-prev:hover,
.arsen-cars-swiper .swiper-button-next:hover {
  background: var(--red);
  border-color: var(--red);
}

.cars-swiper .swiper-button-prev:hover::after,
.cars-swiper .swiper-button-next:hover::after,
.arsen-cars-swiper .swiper-button-prev:hover::after,
.arsen-cars-swiper .swiper-button-next:hover::after {
  color: #fff;
}

.cars-swiper .swiper-button-disabled,
.arsen-cars-swiper .swiper-button-disabled {
  opacity: 0.35;
}

/* ارتفاع slide و wrapper */
.cars-swiper .swiper-slide,
.arsen-cars-swiper .swiper-slide {
  height: auto !important;
  align-self: flex-start;
}

.cars-swiper .swiper-wrapper,
.arsen-cars-swiper .swiper-wrapper {
  align-items: flex-start;
  height: auto !important;
}

/* ── موبایل — فقط ظاهر دکمه، اسکرول روی track هست ── */
@media (max-width: 600px) {
  .cars-tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.78rem;
    box-shadow: none !important;
  }

  .cars-tab-btn:hover {
    box-shadow: none !important;
  }

  .cars-swiper .swiper-button-prev,
  .arsen-cars-swiper .swiper-button-prev {
    right: calc(50% + 60px);
  }

  .cars-swiper .swiper-button-next,
  .arsen-cars-swiper .swiper-button-next {
    left: calc(50% + 60px);
  }
}

/* ── Swiper internals override — جلوگیری از تداخل تم ── */
.cars-swiper .swiper-wrapper,
.arsen-cars-swiper .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100%;
  height: auto !important;
  align-items: flex-start;
  box-sizing: content-box;
}

.cars-swiper .swiper-slide,
.arsen-cars-swiper .swiper-slide {
  flex-shrink: 0 !important;
  height: auto !important;
  position: relative;
}

/* مطمئن از clip شدن swiper روی container */
.swiper.cars-swiper,
.swiper.arsen-cars-swiper {
  position: relative;
}


/* ═══════════════════════════════════════════════════════════════
   TIMELINE / PROCESS SECTION
   ═══════════════════════════════════════════════════════════════ */

.timeline-section {
  background: #f1f1f1;
  position: relative;
  overflow: hidden;
}

/* ── هدر ── */
.process-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

/* ── فلوچارت container ── */
.process-rows {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── SVG overlay (خط S) ── */
.process-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── ردیف‌ها ── */
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 90px;
  position: relative;
  z-index: 1;
}

.process-row-2 {
  margin-bottom: 0;
}

/* ── گام ── */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-row-1 .process-step:nth-child(1) {
  transition-delay: 0.05s;
}

.process-row-1 .process-step:nth-child(2) {
  transition-delay: 0.18s;
}

.process-row-1 .process-step:nth-child(3) {
  transition-delay: 0.31s;
}

.process-row-2 .process-step:nth-child(1) {
  transition-delay: 0.44s;
}

.process-row-2 .process-step:nth-child(2) {
  transition-delay: 0.57s;
}

.process-row-2 .process-step:nth-child(3) {
  transition-delay: 0.7s;
}

/* ── دایره آیکون ── */
.process-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(200, 16, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.process-circle svg {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.process-circle:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 16px 40px rgba(200, 16, 46, 0.24);
}

/* شماره مرحله */
.process-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 2px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.process-circle:hover .process-num {
  transform: scale(1.15);
}

/* highlight اولین مرحله */
.process-step.step-highlight .process-circle {
  box-shadow: 0 12px 36px rgba(200, 16, 46, 0.28);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 12px 36px rgba(200, 16, 46, 0.28);
  }

  50% {
    box-shadow: 0 16px 48px rgba(200, 16, 46, 0.42);
  }
}

/* ── محتوای مرحله ── */
.process-step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-label {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.process-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TIMELINE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .process-row {
    gap: 20px;
  }

  .process-circle {
    width: 80px;
    height: 80px;
  }

  .process-num {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  .timeline-section {
    padding: 80px 5% 140px !important;
  }

  .process-header {
    margin-bottom: 48px;
  }

  /* تبدیل به تک ستون */
  .process-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  /* مخفی کردن SVG خط S در موبایل */
  .process-svg-overlay {
    display: none;
  }

  /* خط عمودی ساده به جای S */
  .process-rows::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, #C8102E 10%, #C8102E 90%, transparent 100%);
    transform: translateX(50%);
    z-index: 0;
  }

  .process-circle {
    width: 70px;
    height: 70px;
  }

  .process-num {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .process-label {
    font-size: 0.88rem;
  }

  .process-desc {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .process-circle {
    width: 65px;
    height: 65px;
  }

  .process-circle svg {
    width: 30px;
    height: 30px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   15. TIMELINE / PROCESS SECTION
   ═══════════════════════════════════════════════════════════════ */

.timeline-section {
  background: #f1f1f1;
  position: relative;
  overflow: hidden;
  direction: rtl;
}

/* ── هدر ── */
.process-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.process-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.process-header .section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 10px;
}

.process-header .section-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.75;
}

/* ── کانتینر اصلی ── */
.process-rows {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* ── SVG یکپارچه روی کل کانتینر ── */
.process-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* ── ردیف‌ها ── */
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.process-row-1 {
  margin-bottom: 60px;
}

/* ── گام ── */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px 40px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-row-1 .process-step:nth-child(1) {
  transition-delay: 0.05s;
}

.process-row-1 .process-step:nth-child(2) {
  transition-delay: 0.18s;
}

.process-row-1 .process-step:nth-child(3) {
  transition-delay: 0.31s;
}

.process-row-2 .process-step:nth-child(1) {
  transition-delay: 0.44s;
}

.process-row-2 .process-step:nth-child(2) {
  transition-delay: 0.57s;
}

.process-row-2 .process-step:nth-child(3) {
  transition-delay: 0.70s;
}

/* ── دایره ── */
.process-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.process-step.step-highlight .process-circle {
  border-color: var(--red);
  border-width: 3px;
  background: var(--red-pale);
  box-shadow: 0 0 0 7px rgba(200, 16, 46, 0.08), 0 8px 28px rgba(200, 16, 46, 0.18);
}

.process-step:hover .process-circle {
  border-color: var(--red);
  background: var(--red-pale);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(200, 16, 46, 0.18);
}

/* رنگ آیکون */
.process-circle svg {
  color: #9ca3af;
}

.process-step.step-highlight .process-circle svg,
.process-step:hover .process-circle svg {
  color: var(--red);
}

.process-circle svg path,
.process-circle svg circle,
.process-circle svg rect,
.process-circle svg polyline,
.process-circle svg line,
.process-circle svg ellipse {
  stroke: currentColor;
  transition: stroke 0.3s ease;
}

/* شماره گام */
.process-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #f8faff;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
}

.process-step.step-highlight .process-num {
  background: #1a1a2e;
}

/* محتوای گام */
.process-step-content {
  display: flex;
  flex-direction: column;
}

.process-label {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.process-step.step-highlight .process-label,
.process-step:hover .process-label {
  color: var(--red);
}

.process-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.8;
  max-width: 200px;
  margin: 0 auto;
}

/* ── موبایل ── */
@media (max-width: 768px) {
  .timeline-section {
    padding: 80px 5% 140px !important;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-row-1 {
    margin-bottom: 0;
  }

  .process-svg-overlay {
    display: none;
  }

  /* خط عمودی */
  .process-rows {
    position: relative;
  }

  .process-rows::before {
    content: '';
    position: absolute;
    right: 34px;
    top: 34px;
    bottom: 34px;
    width: 2px;
    background: linear-gradient(to bottom, var(--red), rgba(200, 16, 46, 0.3));
    border-radius: 2px;
    z-index: 0;
  }

  /* هر گام: آیکون کنار عنوان و توضیحات */
  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
    padding: 16px 0;
    gap: 16px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(200, 16, 46, 0.08);
  }

  .process-step:last-child {
    border-bottom: none;
  }

  /* دایره کوچک‌تر */
  .process-circle {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    margin-bottom: 0;
    background: #fff;
  }

  .process-circle svg {
    width: 26px;
    height: 26px;
  }

  /* شماره گام */
  .process-num {
    top: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }

  /* محتوا */
  .process-step-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 4px;
  }

  .process-label {
    margin-bottom: 4px;
    font-size: 0.95rem;
  }

  .process-desc {
    max-width: 100%;
    margin: 0;
    font-size: 0.80rem;
  }

  .process-header {
    text-align: center;
    margin-bottom: 52px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   18. ARSEN WHY US — WPBakery Element
   ═══════════════════════════════════════════════════════════════ */

.arsen-why-us-wrap {
  position: relative;
  overflow: hidden;
}

.arsen-why-header {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
}

/* ── Tab Nav — اسکرول و wrap توسط .tabs-slider-track در element.php ── */
.arsen-why-us-wrap .why-tabs-nav {
  display: flex;
  flex-wrap: nowrap;           /* track مدیریت می‌کند */
  gap: 10px;
  /* justify-content, overflow, cursor اینجا نباشند */
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.arsen-why-us-wrap .why-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.arsen-why-us-wrap .why-tab-btn:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.12);
}

.arsen-why-us-wrap .why-tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.arsen-why-us-wrap .wtb-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.arsen-why-us-wrap .why-tab-btn.active .wtb-icon {
  background: rgba(255, 255, 255, 0.2);
}

.arsen-why-us-wrap .why-tab-btn.active .wtb-icon svg path,
.arsen-why-us-wrap .why-tab-btn.active .wtb-icon svg polyline,
.arsen-why-us-wrap .why-tab-btn.active .wtb-icon svg circle,
.arsen-why-us-wrap .why-tab-btn.active .wtb-icon svg rect {
  stroke: #fff;
}

/* ── Tab Panels ── */
.arsen-why-us-wrap .why-tabs-content {
  position: relative;
  z-index: 1;
}

.arsen-why-us-wrap .why-tab-panel {
  display: none;
  animation: whyTabFadeIn 0.45s ease both;
}

.arsen-why-us-wrap .why-tab-panel.active {
  display: grid;
}

@keyframes whyTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Panel Inner (دو ستون: تصویر + محتوا) ── */
.arsen-why-us-wrap .why-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: visible;
  height: auto
}

/* ── ستون تصویر ── */
.arsen-why-us-wrap .why-panel-img {
  position: relative;
  overflow: hidden;
  height: 420px;
  border-radius: var(--radius);
}

.arsen-why-us-wrap .why-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

.arsen-why-us-wrap .why-panel-inner:hover .why-panel-img img {
  transform: scale(1.04);
}

.arsen-why-us-wrap .why-panel-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
}

.arsen-why-us-wrap .why-panel-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.18), rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.arsen-why-us-wrap .why-panel-img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.arsen-why-us-wrap .why-panel-img-badge svg path {
  stroke: #fff;
}

/* ── ستون محتوا ── */
.arsen-why-us-wrap .why-panel-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arsen-why-us-wrap .why-panel-content h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 16px;
}

.arsen-why-us-wrap .why-panel-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* ── بولت‌ها ── */
.arsen-why-us-wrap .why-panel-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arsen-why-us-wrap .why-panel-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.arsen-why-us-wrap .why-panel-bullets li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--red-pale);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='%23C8102E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  margin-top: 2px;
}

/* ── دکمه‌های CTA ── */
.arsen-why-us-wrap .why-panel-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.arsen-why-us-wrap .why-panel-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.arsen-why-us-wrap .why-panel-btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.45);
  color: #fff !important;
}

.arsen-why-us-wrap .why-panel-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  padding: 11px 22px;
  border-radius: 50px;
  font-family: 'Kalameh', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.arsen-why-us-wrap .why-panel-btn-wa:hover {
  border-color: #25D366;
  color: #25D366 !important;
  background: rgba(37, 211, 102, 0.06);
  transform: translateY(-2px);
}

/* ── Responsive ── */

/* tablet: دو ستون تبدیل به یک ستون */
@media (max-width: 900px) {
  .arsen-why-us-wrap .why-panel-inner {
    grid-template-columns: 1fr;
    height: auto;
  }

  .arsen-why-us-wrap .why-panel-img {
    min-height: 240px;
    height: 240px;
    order: -1;
  }

  .arsen-why-us-wrap .why-panel-content {
    padding: 32px 28px;
  }
}

/* موبایل: فقط ظاهر دکمه — اسکرول روی .tabs-slider-track هست */
@media (max-width: 600px) {
  .arsen-why-us-wrap .why-tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.78rem;
    box-shadow: none !important;
  }

  .arsen-why-us-wrap .why-panel-img {
    height: auto;
    min-height: 200px;
  }

  .arsen-why-us-wrap .why-panel-content {
    padding: 24px 20px;
  }

  .arsen-why-us-wrap .why-panel-cta-row {
    flex-direction: row;
    align-items: center;
  }

  .arsen-why-us-wrap .why-panel-btn-primary,
  .arsen-why-us-wrap .why-panel-btn-wa {
    justify-content: center;
    flex: 1;
    gap: 0;
  }
}


/* ═══════════════════════════════════════════════════════════════
   18. ARSEN HERO SECTION (WPBakery element — arsen_hero_section)
   ═══════════════════════════════════════════════════════════════ */

/* ── wrapper اصلی ── */
.arsen-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  /* padding سکشن عمومی رو override می‌کنیم */
  padding: 0 !important;
}

/* ── پس‌زمینه ── */
.arsen-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.arsen-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: arsenHeroBgZoom 14s ease-in-out infinite alternate;
  transform-origin: center center;
}

.arsen-hero-bg .bg-mobile {
  display: none;
}

.arsen-hero-bg .bg-desktop {
  display: block;
}

.arsen-hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a0e 0%, #0c0c0c 100%);
}

@keyframes arsenHeroBgZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

/* گرادیان تاریک روی عکس */
.arsen-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12, 12, 12, 0.55) 0%,
      rgba(12, 12, 12, 0.30) 40%,
      rgba(12, 12, 12, 0.72) 80%,
      rgba(12, 12, 12, 0.92) 100%),
    linear-gradient(90deg,
      rgba(200, 16, 46, 0.18) 0%,
      transparent 60%);
}

/* ── نویز ── */
.arsen-hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* ── محتوای اصلی ── */
.arsen-hero-inner {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 6% 80px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* ── تیتر ── */
.arsen-hero-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.8s ease 0.2s both;
  white-space: nowrap;
}

.arsen-hero-headline .word-accent {
  color: var(--red);
}

/* ── زیرتیتر ── */
.arsen-hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  line-height: 1.75;
  margin: 0 auto 15px;
  animation: fadeInUp 0.8s ease 0.3s both;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── نوار پایین (آمار + اعتماد) ── */
.arsen-hero-bottom-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: visible;
  animation: fadeInUp 0.8s ease 0.55s both;
  width: 100%;
  max-width: 700px;
}

/* ردیف آمار — در دسکتاپ contents میشه (بچه‌ها مستقیم داخل flex parent) */
.arsen-hero-stats-row {
  display: contents;
}

.arsen-hero-stat {
  flex: 1;
  text-align: center;
  padding: 22px 16px;
  position: relative;
  transition: var(--transition);
}

.arsen-hero-stat:hover {
  background: rgba(200, 16, 46, 0.12);
}

.arsen-hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.arsen-hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.arsen-hero-stat-num em {
  color: var(--red);
  font-style: normal;
}

.arsen-hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* خط جداکننده عمودی (بین آمار و اعتماد) */
.arsen-hero-bar-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
  flex-shrink: 0;
}

/* ستون موارد اعتماد */
.arsen-hero-trust-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: center;
  gap: 10px;
  padding: 18px 28px;
  min-width: 220px;
}

.arsen-hero-trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.arsen-hero-trust-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── نشانگر اسکرول ── */
.arsen-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 1.2s both;
}

.arsen-hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.arsen-hero-scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: arsenScrollWheel 2s ease infinite;
}

@keyframes arsenScrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.arsen-hero-scroll-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── موج پایین در هیرو ── */
.arsen-hero .wave-bottom svg {
  height: 160px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .arsen-hero-headline {
    font-size: clamp(1.5rem, 4vw, 2.4rem) !important;
    white-space: normal !important;
  }
}

@media (max-width: 768px) {
  .arsen-hero-bg .bg-desktop {
    display: none;
  }

  .arsen-hero-bg .bg-mobile {
    display: block;
  }

  .arsen-hero-sub {
    display: none;
  }

  .arsen-hero-inner {
    padding: 90px 5% 60px;
  }

  .arsen-hero-headline {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
    white-space: normal !important;
  }

  /* نوار آمار + اعتماد: عمودی */
  .arsen-hero-bottom-bar {
    flex-direction: column;
    max-width: 100%;
  }

  /* ردیف آمار: ۳ عدد کنار هم */
  .arsen-hero-stats-row {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .arsen-hero-stat {
    flex: 1;
    padding: 14px 8px;
  }

  .arsen-hero-stat-num {
    font-size: 1.45rem;
  }

  .arsen-hero-stat-label {
    font-size: 0.65rem;
  }

  .arsen-hero-stat:not(:last-child)::after {
    display: none;
  }

  .arsen-hero-stat:not(:last-child) {
    border-bottom: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* خط جداکننده افقی */
  .arsen-hero-bar-divider {
    display: block;
    width: auto;
    height: 1px;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
  }

  .arsen-hero-trust-col {
    padding: 14px 16px;
    min-width: unset;
    gap: 8px;
  }

  .arsen-hero-trust-row {
    font-size: 0.75rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   15. CARS SECTION & PORTFOLIO SLIDER
   ═══════════════════════════════════════════════════════════════ */

/* ── wrapper section ── */
.cars-section {
  padding: 80px 5% 80px !important;
  overflow: visible !important;
}

/* ── تب‌های دسته‌بندی — اسکرول و wrap توسط .tabs-slider-track در element.php ── */
.cars-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;     /* track padding را مدیریت می‌کند */
}

.cars-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cars-tab-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.cars-tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.3);
}

.cars-tab-btn.active .ctb-icon svg path,
.cars-tab-btn.active .ctb-icon svg rect,
.cars-tab-btn.active .ctb-icon svg circle {
  stroke: #fff !important;
}

.ctb-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── پنل‌های تب ── */
.cars-tab-panel {
  display: none;
}

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

/* ── swiper wrapper ── */
.cars-swiper {
  overflow: hidden;
  position: relative;
  padding-bottom: 48px !important;
}

/* ── کارت خودرو ── */
.car-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.car-card:hover {
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.car-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.car-card:hover .car-img img {
  transform: scale(1.04);
}

.car-body {
  padding: 16px 18px;
}

.car-model {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.car-service-type {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-pale);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.car-color {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 600;
}

.car-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Swiper Pagination (نقاط) ── */
.cars-swiper .swiper-pagination {
  bottom: 4px !important;
  position: absolute;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.cars-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--gray-300);
  opacity: 1;
  border-radius: 50%;
  transition: var(--transition);
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
}

.cars-swiper .swiper-pagination-bullet-active {
  background: var(--red);
  width: 22px;
  border-radius: 4px;
}

/* ── Swiper Navigation (فلش‌ها) ── */
.cars-swiper .swiper-button-prev,
.cars-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  top: 42%;
  z-index: 10;
}

.cars-swiper .swiper-button-prev:hover,
.cars-swiper .swiper-button-next:hover {
  background: var(--red);
  border-color: var(--red);
}

/* آیکون پیش‌فرض Swiper */
.cars-swiper .swiper-button-prev::after,
.cars-swiper .swiper-button-next::after {
  font-size: 14px !important;
  color: var(--gray-700);
  font-weight: 900;
}

.cars-swiper .swiper-button-prev:hover::after,
.cars-swiper .swiper-button-next:hover::after {
  color: #fff;
}

.cars-swiper .swiper-button-disabled {
  opacity: 0.35 !important;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   WHY US — TAB NAV
   اسکرول و drag توسط .tabs-slider-track در element.php انجام می‌شود
   ═══════════════════════════════════════════════════════════════ */

.why-tabs-nav {
  display: flex;
  flex-wrap: nowrap;           /* هرگز wrap نشه — track مدیریت می‌کند */
  gap: 10px;
  /* justify-content اینجا نباشه — track از margin:auto استفاده می‌کند */
  margin-bottom: 0;            /* margin روی track تعریف شده */
  position: relative;
  z-index: 1;
  /* overflow, cursor, scroll — همه روی .tabs-slider-track هستند */
}

.why-tab-btn {
  flex-shrink: 0;
  /* scroll-snap روی track هست، نه btn */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: 'Kalameh', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.why-tab-btn:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.12);
}

.why-tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}

.why-tab-btn .wtb-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.why-tab-btn.active .wtb-icon {
  background: rgba(255, 255, 255, 0.2);
}

.why-tab-btn.active .wtb-icon svg path,
.why-tab-btn.active .wtb-icon svg polyline,
.why-tab-btn.active .wtb-icon svg circle,
.why-tab-btn.active .wtb-icon svg rect,
.why-tab-btn.active .wtb-icon svg line {
  stroke: #fff;
}

/* موبایل */
@media (max-width: 600px) {
  .why-tab-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    box-shadow: none !important;
  }

  .why-tab-btn:hover {
    box-shadow: none !important;
  }
}

.gallery-section {
  background: #f9fafb !important;
}





/*
  wave.css — Auto Arsen
  ----------------------
  استفاده:
    · wavet1 … wavet7  → موج بالای section
    · waveb1 … waveb7  → موج پایین section

  فقط کافیه کلاس رو به section بدی:
    <section class="wavet3 waveb5"> … </section>

  نکته: section باید position: relative داشته باشه (اینجا set شده).
*/

/* ─── base ──────────────────────────────────────────────── */
[class*="wavet"],
[class*="waveb"] {
  position: relative;
}

[class*="wavet"]::before,
[class*="waveb"]::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  /* ارتفاع پیش‌فرض — در هر طرح override می‌شه */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 2;
}

/* موج بالا: چسبیده به لبه‌ی بالای section */
[class*="wavet"]::before {
  top: 0;
}

/* موج پایین: چسبیده به لبه‌ی پایین section */
[class*="waveb"]::after {
  bottom: -1px;
}


/* ═══════════════════════════════════════════════════════════
   طرح ۱  —  배경 تاریک (#1a2035)، موج روشن (#F9FAFB)
   ═══════════════════════════════════════════════════════════ */

.wavet1::before,
.waveb1::after {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' preserveAspectRatio='xMidYMax meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 C180,140 360,0 540,70 C720,140 900,10 1080,70 C1260,130 1380,30 1440,60 L1440,160 L0,160 Z' fill='%23F9FAFB' opacity='0.2'/%3E%3Cpath d='M0,85 C240,20 480,145 720,90 C960,35 1200,135 1440,90 L1440,160 L0,160 Z' fill='%23F9FAFB' opacity='0.55'/%3E%3Cpath d='M0,115 C200,60 500,158 800,112 C1050,72 1280,150 1440,115 L1440,160 L0,160 Z' fill='%23F9FAFB' opacity='1'/%3E%3C/svg%3E");
}

/* موج بالا — باید برعکس (flip) باشه */
.wavet1::before {
  transform: scaleY(-1);
}


/* ═══════════════════════════════════════════════════════════
   طرح ۲  —  배경 روشن (#f1f5f9)، موج سفید (#FFFFFF)
   ═══════════════════════════════════════════════════════════ */

.wavet2::before,
.waveb2::after {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' preserveAspectRatio='xMidYMax meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,80 C360,160 720,0 1080,80 C1260,120 1380,40 1440,80 L1440,160 L0,160 Z' fill='%23FFFFFF' opacity='0.2'/%3E%3Cpath d='M0,100 C200,35 500,155 800,100 C1050,48 1280,140 1440,100 L1440,160 L0,160 Z' fill='%23FFFFFF' opacity='0.5'/%3E%3Cpath d='M0,128 C300,75 600,160 900,122 C1150,88 1320,148 1440,128 L1440,160 L0,160 Z' fill='%23FFFFFF' opacity='1'/%3E%3C/svg%3E");
}

.wavet2::before {
  transform: scaleY(-1);
}


/* ═══════════════════════════════════════════════════════════
   طرح ۳  —  배경 سفید (#ffffff)، موج خاکستری (#f1f1f1)، 4 لایه
   ═══════════════════════════════════════════════════════════ */

.wavet3::before,
.waveb3::after {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' preserveAspectRatio='xMidYMax meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,55 C90,105 180,18 270,58 C360,98 450,14 540,55 C630,96 720,16 810,56 C900,96 990,16 1080,56 C1170,96 1260,18 1350,58 C1395,78 1420,65 1440,62 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='0.18'/%3E%3Cpath d='M0,82 C90,38 180,130 270,88 C360,46 450,135 540,90 C630,45 720,132 810,88 C900,44 990,130 1080,88 C1170,46 1260,130 1350,88 C1395,66 1420,95 1440,90 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='0.5'/%3E%3Cpath d='M0,112 C90,72 180,155 270,115 C360,75 450,155 540,115 C630,75 720,153 810,115 C900,77 990,153 1080,115 C1170,77 1260,152 1350,115 C1395,96 1420,122 1440,118 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='0.78'/%3E%3Cpath d='M0,140 C90,112 180,168 270,140 C360,112 450,168 540,140 C630,112 720,165 810,140 C900,115 990,165 1080,140 C1170,115 1260,165 1350,140 C1395,127 1420,148 1440,143 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='1'/%3E%3C/svg%3E");
}

.wavet3::before {
  transform: scaleY(-1);
}


/* ═══════════════════════════════════════════════════════════
   طرح ۴  —  배경 (#f1f1f1)، موج روشن‌تر (#F9FAFB)، 4 لایه
   ═══════════════════════════════════════════════════════════ */

.wavet4::before,
.waveb4::after {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 180' preserveAspectRatio='xMidYMax meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,52 C90,102 180,18 270,56 C360,94 450,14 540,54 C630,94 720,16 810,54 C900,92 990,16 1080,54 C1170,92 1260,16 1350,55 C1395,74 1420,62 1440,58 L1440,180 L0,180 Z' fill='%23F9FAFB' opacity='0.18'/%3E%3Cpath d='M0,80 C90,36 180,128 270,85 C360,42 450,132 540,88 C630,44 720,130 810,87 C900,44 990,130 1080,88 C1170,46 1260,128 1350,86 C1395,65 1420,94 1440,88 L1440,180 L0,180 Z' fill='%23F9FAFB' opacity='0.5'/%3E%3Cpath d='M0,108 C90,70 180,150 270,110 C360,70 450,152 540,110 C630,68 720,150 810,110 C900,70 990,150 1080,110 C1170,70 1260,150 1350,110 C1395,90 1420,118 1440,112 L1440,180 L0,180 Z' fill='%23F9FAFB' opacity='0.8'/%3E%3Cpath d='M0,135 C90,108 180,162 270,135 C360,108 450,162 540,135 C630,108 720,160 810,135 C900,110 990,160 1080,135 C1170,110 1260,160 1350,135 C1395,122 1420,142 1440,138 L1440,180 L0,180 Z' fill='%23F9FAFB' opacity='1'/%3E%3C/svg%3E");
}

.wavet4::before {
  transform: scaleY(-1);
}


/* ═══════════════════════════════════════════════════════════
   طرح ۵  —  배경 (#f9fafb)، موج خاکستری (#f1f1f1)، 4 لایه
   ═══════════════════════════════════════════════════════════ */

.wavet5::before,
.waveb5::after {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' preserveAspectRatio='xMidYMax meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,55 C90,105 180,18 270,58 C360,98 450,14 540,55 C630,96 720,16 810,56 C900,96 990,16 1080,56 C1170,96 1260,18 1350,58 C1395,78 1420,65 1440,62 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='0.18'/%3E%3Cpath d='M0,82 C90,38 180,130 270,88 C360,46 450,135 540,90 C630,45 720,132 810,88 C900,44 990,130 1080,88 C1170,46 1260,130 1350,88 C1395,66 1420,95 1440,90 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='0.5'/%3E%3Cpath d='M0,112 C90,72 180,155 270,115 C360,75 450,155 540,115 C630,75 720,153 810,115 C900,77 990,153 1080,115 C1170,77 1260,152 1350,115 C1395,96 1420,122 1440,118 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='0.78'/%3E%3Cpath d='M0,140 C90,112 180,168 270,140 C360,112 450,168 540,140 C630,112 720,165 810,140 C900,115 990,165 1080,140 C1170,115 1260,165 1350,140 C1395,127 1420,148 1440,143 L1440,200 L0,200 Z' fill='%23f1f1f1' opacity='1'/%3E%3C/svg%3E");
}

.wavet5::before {
  transform: scaleY(-1);
}


/* ═══════════════════════════════════════════════════════════
   طرح ۶  —  배경 (#f9fafb)، موج تاریک (#111827)
   ═══════════════════════════════════════════════════════════ */

.wavet6::before,
.waveb6::after {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' preserveAspectRatio='xMidYMax meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,80 C240,160 480,5 720,80 C960,155 1200,10 1440,80 L1440,160 L0,160 Z' fill='%23111827' opacity='0.25'/%3E%3Cpath d='M0,105 C300,30 600,155 900,100 C1100,55 1300,148 1440,105 L1440,160 L0,160 Z' fill='%23111827' opacity='0.6'/%3E%3Cpath d='M0,130 C360,75 720,160 1080,122 C1260,100 1380,148 1440,130 L1440,160 L0,160 Z' fill='%23111827' opacity='1'/%3E%3C/svg%3E");
}

.wavet6::before {
  transform: scaleY(-1);
}


/* ═══════════════════════════════════════════════════════════
   طرح ۷  —  배경 (#f9fafb)، موج سفید (#ffffff)
   ═══════════════════════════════════════════════════════════ */

.wavet7::before,
.waveb7::after {
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' preserveAspectRatio='xMidYMax meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 C180,140 360,0 540,70 C720,140 900,10 1080,70 C1260,130 1380,30 1440,60 L1440,160 L0,160 Z' fill='%23ffffff' opacity='0.25'/%3E%3Cpath d='M0,90 C300,20 600,150 900,90 C1100,50 1300,140 1440,90 L1440,160 L0,160 Z' fill='%23ffffff' opacity='0.6'/%3E%3Cpath d='M0,120 C360,65 720,158 1080,115 C1260,92 1380,145 1440,120 L1440,160 L0,160 Z' fill='%23ffffff' opacity='1'/%3E%3C/svg%3E");
}

.wavet7::before {
  transform: scaleY(-1);
}