/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

:root {
  --primary-color: #1cc8d7;
  --secondary-color: #0f172a;
  --dark-blue: #0b1120;
  --darker-blue: #060912;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --border-color: #1e293b;
  --card-bg: #0f1729;
  --gradient-start: #1cc8d7;
  --gradient-end: #0891b2;
}

/* @font-face {
  font-family: "IRANSans";
  src: url("https://cdn.fontcdn.ir/Font/Persian/IRANSans/IRANSansWeb.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
} */

@font-face {
  font-family: "BeniVaZiR";
  src: url("../BYekan.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "BeniVaZiR";
  background-color: var(--darker-blue);
  background-image: radial-gradient(circle at 20% 30%,
      rgba(28, 200, 215, 0.03) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 70%,
      rgba(28, 200, 215, 0.03) 0%,
      transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

/* تمپلیت‌های کلاسیک تم: Vazirmatn مثل کراتو و لیزر */
.royal-vazirmatn-page {
  font-family: "Vazirmatn", sans-serif !important;
}

.royal-vazirmatn-page .btn-primary,
.royal-vazirmatn-page .btn-cta,
.royal-vazirmatn-page .btn-primary-outline,
.royal-vazirmatn-page .btn-secondary,
.royal-vazirmatn-page .btn-read-more,
.royal-vazirmatn-page .faq-question,
.royal-vazirmatn-page .hero-modern-label,
.royal-vazirmatn-page .hero-modern-input,
.royal-vazirmatn-page .hero-modern-textarea,
.royal-vazirmatn-page .hero-modern-button,
.royal-vazirmatn-page .newsletter-input,
.royal-vazirmatn-page .newsletter-btn,
.royal-vazirmatn-page .sidebar-search-input,
.royal-vazirmatn-page .sidebar-search-submit,
.royal-vazirmatn-page .hero-title-line--brand .brand-name {
  font-family: "Vazirmatn", sans-serif !important;
}

.royal-vazirmatn-page a.btn-cta,
.royal-vazirmatn-page a.btn-primary-outline,
.royal-vazirmatn-page a.btn-secondary,
.royal-vazirmatn-page a.btn-read-more {
  text-decoration: none;
}

.royal-vazirmatn-page a.btn-read-more {
  display: inline-block;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header Styles */
.header {
  background-color: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  font-family: "Vazirmatn", sans-serif !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* پوسته منوی کشویی موبایل — در دسکتاپ مثل قبل در مرکز نوار */
.mobile-nav-shell {
  flex: 1 1 0%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  position: relative;
}

.mobile-nav-backdrop {
  display: none;
}

.mobile-nav-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.mobile-nav-panel__head {
  display: none;
}

.mobile-nav-panel__body {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  position: relative;
}

.mobile-nav-panel__glow,
.mobile-nav-panel__grid {
  display: none;
}

.mobile-nav-close {
  display: none;
}

/* فوتر و هدر توسعه‌یافته کشو فقط در breakpoint موبایل فعال می‌شود */
.mobile-nav-panel__head-top,
.mobile-nav-panel__head-main,
.mobile-nav-panel__brand,
.mobile-nav-panel__footer {
  display: none;
}

.logo img {
  height: 50px;
  width: auto;
}

/* منوی اصلی: یکسان برای فهرست وردپرس و fallback */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li,
.nav-menu .menu-item {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* لینک‌های منو: هم از فهرست وردپرس و هم منوی fallback */
.nav-menu a,
.nav-menu .nav-link,
.nav-menu .menu-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.3s ease, background-color 0.2s ease;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-family: inherit;
}

.nav-menu a:hover,
.nav-menu .nav-link:hover,
.nav-menu .menu-item a:hover {
  color: var(--primary-color);
  background-color: rgba(28, 200, 215, 0.08);
}

/* نگه‌داشتن سازگاری با کلاس nav-link در جاهای دیگر */
.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.3s ease, background-color 0.2s ease;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(28, 200, 215, 0.08);
}

/* ---- منوی چندسطحی (دو و سه سطح) - دسکتاپ ---- */
.nav-menu > li.menu-item-has-children,
.nav-menu > .menu-item-has-children {
  position: relative;
}

/* آیکون فلش کنار آیتم دارای زیرمنو */
.nav-menu > li.menu-item-has-children > a::after,
.nav-menu > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-inline-start: 6px;
  margin-top: -0.1em;
  vertical-align: middle;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.nav-menu > li.menu-item-has-children:hover > a::after,
.nav-menu > .menu-item-has-children:hover > a::after {
  transform: rotate(-225deg);
}

/* دراپ‌داون سطح اول */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(15, 23, 41, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001;
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

/* آیتم‌های داخل دراپ‌داون */
.nav-menu .sub-menu li {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.nav-menu .sub-menu li a {
  display: block;
  position: relative;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text-primary);
  border-radius: 0;
  border: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, padding-inline-start 0.2s ease;
}

.nav-menu .sub-menu li a:hover {
  background: rgba(28, 200, 215, 0.12);
  color: var(--primary-color);
  padding-inline-start: 24px;
}

.nav-menu .sub-menu li:not(:last-child) a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* سطح سوم: زیرمنو داخل زیرمنو (فل‌اوت به سمت راست در RTL) */
.nav-menu .sub-menu .menu-item-has-children {
  position: relative;
}

.nav-menu .sub-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  margin-top: -0.35em;
  width: 0.35em;
  height: 0.35em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  opacity: 0.7;
}

.nav-menu .sub-menu .sub-menu {
  top: 0;
  inset-inline-start: 100%;
  inset-inline-end: auto;
  margin-inline-start: 6px;
  margin-top: 0;
}

.nav-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
  transform: translateY(0) translateX(0);
}

/* لایه نازک درخشش روی دراپ‌داون */
.nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(160deg,
      rgba(28, 200, 215, 0.2) 0%,
      transparent 50%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* دکمه تاگل زیرمنو فقط در موبایل نمایش داده می‌شود */
.nav-submenu-toggle {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 24px;
  line-height: 0;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.mobile-menu-btn__icon {
  display: block;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  border-color: var(--primary-color);
  background: rgba(28, 200, 215, 0.1);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--primary-color);
  background: rgba(28, 200, 215, 0.1);
}

.btn-icon img {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(135deg,
      var(--gradient-start),
      var(--gradient-end));
  color: var(--text-primary);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "BeniVaZiR", "Vazirmatn", sans-serif;
}

/* دکمه هدر واتساپ: طراحی زیبا و تراز کامل */
.header .nav-actions .btn-primary.header-cta-btn {
  font-family: "Vazirmatn", sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none !important;
  text-decoration-line: none;
  border-radius: 50px;
  padding: 14px 26px;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(28, 200, 215, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header .nav-actions .btn-primary.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(28, 200, 215, 0.4);
}

.header .nav-actions .header-cta-btn .header-cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.header .nav-actions .header-cta-btn .whatsapp-icon,
.header .nav-actions .header-cta-btn .phone-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.header .nav-actions .header-cta-btn .header-cta-text {
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
  vertical-align: middle;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(28, 200, 215, 0.4);
}

/* Hero Section */
.hero {
  padding: 100px 0;
  background: radial-gradient(ellipse at 30% 50%,
      rgba(28, 200, 215, 0.15) 0%,
      rgba(28, 200, 215, 0.05) 30%,
      transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(28, 200, 215, 0.1) 0%,
      transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  direction: ltr;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eye-image {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 30px 60px rgba(28, 200, 215, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.rating-badge {
  position: absolute;
  bottom: 25px;
  left: 30%;
  transform: translateX(-20%);
  background: rgba(6, 9, 18, 0.266);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.089);
  animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

.rating-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-align: center;
  letter-spacing: 1px;
}

.stars {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 400;
}

.stats-badge {
  position: absolute;
  top: 250px;
  left: 30px;
  background: rgba(6, 9, 18, 0.266);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.083);
  animation: fadeInLeft 1s ease-out 0.7s both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.stat-number {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.hero-text {
  text-align: right;
}

/* Hero title: H1 فقط «تغییر رنگ چشم»؛ دو خط بعدی span — سه ردیف زیرهم، همگی RTL */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.45rem, 1.5vw, 0.85rem);
  width: 100%;
  max-width: min(100%, 52rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  color: #ffffff;
  text-align: right;
  direction: rtl;
}

.hero-title .hero-title-main {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: clamp(1.85rem, 1.1rem + 3.6vw, 3.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
  text-align: right;
  direction: rtl;
}

.hero-title-line--tagline {
  width: 100%;
  line-height: 1.35;
  text-align: right;
  direction: rtl;
}

.hero-title-line--tagline .highlight {
  color: var(--primary-color);
  font-size: clamp(1.05rem, 0.6rem + 1.4vw, 1.9rem);
  font-weight: 600;
  text-shadow: 0 0 28px rgba(28, 200, 215, 0.35);
}

.hero-title-line--brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.45rem 0.85rem;
  width: 100%;
  line-height: 1.25;
  text-align: right;
  direction: rtl;
}

.hero-title-prefix {
  font-size: clamp(0.92rem, 0.75rem + 0.65vw, 1.2rem);
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-brand-group {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em 0.55em;
  direction: ltr;
  unicode-bidi: embed;
}

.hero-title-line--brand .brand-name {
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 0.85rem + 2.1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  direction: ltr;
  display: inline-block;
  unicode-bidi: embed;
  text-shadow: 0 0 36px rgba(28, 200, 215, 0.15);
}

.hero-title-line--brand .brand-location {
  font-family: inherit;
  font-size: clamp(0.72rem, 0.55rem + 0.45vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.95);
  direction: rtl;
  display: inline-block;
  line-height: 1.2;
  vertical-align: baseline;
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.8;
}

/* دسکتاپ: بلوک عنوان محدود به max-width در سلول LTR پیش‌فرض به چپ می‌چسبد؛ راست‌چین تا لبهٔ راست با پاراگراف و دکمه‌ها یکی شود */
@media (min-width: 993px) {
  .hero-text > .hero-title {
    margin-inline-start: auto;
  }
}

/* دسکتاپ: دکمه‌ها هم‌راستا با شروع متن RTL (لبه راست بلوک متن) — والد hero-content جهت ltr دارد */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: flex-end;
  width: 100%;
}

.hero-buttons .hero-buttons__btn {
  margin-bottom: 0;
}

.btn-cta {
  background: linear-gradient(135deg,
      var(--gradient-start),
      var(--gradient-end));
  color: var(--text-primary);
  border: none;
  padding: 16px 48px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "IRANSans", sans-serif;
  margin-bottom: 40px;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(28, 200, 215, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(28, 200, 215, 0.5),
    0 0 60px rgba(28, 200, 215, 0.3);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(28, 200, 215, 0.4);
  background: rgba(28, 200, 215, 0.08);
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-hero {
  padding: 140px 0 80px;
  background: radial-gradient(circle at 50% 0%,
      rgba(80, 0, 130, 0.25) 0%,
      transparent 45%),
    radial-gradient(circle at 20% 30%,
      rgba(28, 200, 215, 0.12) 0%,
      transparent 40%);
}

.hero-form-wrapper {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-form-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero-form-subtitle {
  font-size: 18px;
  color: #e1a86e;
  margin-bottom: 40px;
  line-height: 2;
}

.hero-modern-form {
  width: 100%;
}

.hero-form-card {
  position: relative;
  padding: 44px 40px 36px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 41, 0.88) 0%,
    rgba(8, 12, 24, 0.92) 45%,
    rgba(11, 17, 32, 0.9) 100%
  );
  border: 1px solid rgba(28, 200, 215, 0.22);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(28, 200, 215, 0.12) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 95% 55% at 50% -30%,
    rgba(28, 200, 215, 0.16) 0%,
    rgba(80, 0, 130, 0.06) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-modern-field {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: right;
  min-width: 0;
}

.hero-modern-row.single .hero-modern-field {
  width: 100%;
}

.hero-modern-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(165, 243, 252, 0.92);
  line-height: 1.5;
}

.hero-label-required {
  color: rgba(251, 113, 133, 0.95);
  text-decoration: none;
  font-weight: 700;
  margin-inline-start: 3px;
}

.hero-label-optional {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-modern-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-modern-row.single {
  flex-direction: column;
}

.hero-modern-input,
.hero-modern-textarea {
  flex: 1;
  background: rgba(6, 10, 20, 0.72);
  border: 1px solid rgba(28, 200, 215, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-size: 16px;
  text-align: right;
  font-family: "IRANSans", sans-serif;
  outline: none;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-modern-textarea {
  min-height: 132px;
  resize: vertical;
}

.hero-modern-input::placeholder,
.hero-modern-textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.hero-modern-input:hover:not(:focus),
.hero-modern-textarea:hover:not(:focus) {
  border-color: rgba(28, 200, 215, 0.32);
  background: rgba(8, 14, 26, 0.78);
}

.hero-modern-input:focus,
.hero-modern-textarea:focus {
  border-color: rgba(28, 200, 215, 0.65);
  background: rgba(8, 16, 28, 0.88);
  box-shadow:
    0 0 0 3px rgba(28, 200, 215, 0.15),
    0 12px 36px rgba(28, 200, 215, 0.12);
}

.hero-modern-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
  padding-top: 4px;
}

.hero-modern-button {
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    #14b8bf 50%,
    var(--gradient-end) 100%
  );
  color: var(--text-primary);
  border: none;
  padding: 15px 40px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  margin-right: auto;
  box-shadow:
    0 4px 20px rgba(28, 200, 215, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.hero-modern-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(28, 200, 215, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.hero-modern-button:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.hero-modern-button:focus-visible {
  outline: 2px solid rgba(165, 243, 252, 0.9);
  outline-offset: 3px;
}

.contact-info-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(28, 200, 215, 0.14);
  background: rgba(15, 23, 41, 0.72);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-hero .contact-info-card:hover {
  border-color: rgba(28, 200, 215, 0.26);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.contact-hero .info-label {
  color: rgba(165, 243, 252, 0.72);
}

.contact-hero .info-icon {
  border: 1px solid rgba(28, 200, 215, 0.14);
  box-shadow: 0 2px 12px rgba(28, 200, 215, 0.08);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(28, 200, 215, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon img {
  width: 24px;
  height: 24px;
}

.info-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.info-value {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

/* شماره تماس: مانند متن معمولی نمایش داده شود، نه لینک آبی/زیرخط‌دار */
.info-value .contact-whatsapp-link,
.contact-info-card .contact-whatsapp-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.info-value .contact-whatsapp-link:hover,
.contact-info-card .contact-whatsapp-link:hover {
  color: #25d366;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  flex-direction: row;
  justify-content: flex-start;
}

.feature-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(66%) sepia(74%) saturate(466%) hue-rotate(138deg) brightness(95%) contrast(92%);
}

/* Stats Section */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(28, 200, 215, 0.05) 100%);
}

.stats-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.stats-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  order: 2;
}

.stat-progress {
  display: flex;
  align-items: center;
  gap: 25px;
  background: rgba(15, 23, 41, 0.5);
  padding: 20px 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(28, 200, 215, 0.2),
      transparent);
  transition: left 0.6s;
}

.stat-progress:hover::before {
  left: 100%;
}

.stat-progress:hover {
  transform: translateX(-10px);
  border-color: var(--primary-color);
  background: rgba(15, 23, 41, 0.8);
  box-shadow: 0 0 20px rgba(28, 200, 215, 0.3);
}

.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.progress-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.progress-circle-bg {
  fill: none;
  stroke: transparent;
  /* Hide solid background ring to show only dots */
  stroke-width: 0;
}

.progress-circle-fill {
  fill: none;
  stroke: #5dd5e8;
  stroke-width: 13;
  stroke-linecap: round;
  filter: none;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  /* Remove background and box-shadow to match design */
  background: transparent;
  box-shadow: none;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-value {
  font-size: 34px;
  font-weight: 700;
  color: #5dd5e8;
  text-shadow: none;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: right;
}

.stats-right {
  text-align: right;
  order: 1;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 2;
}

.commitment-section {
  padding: 80px 0;
}

.commitment-card {
  background: rgba(15, 23, 41, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.commitment-card h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.commitment-card p {
  color: var(--text-secondary);
  line-height: 2.2;
}

.contact-highlight {
  padding: 80px 0;
}

.highlight-content {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px) 1fr;
  grid-template-areas: "left image right";
  gap: 40px;
  align-items: stretch;
}

.highlight-image-center {
  grid-area: image;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-image-center img,
.highlight-image img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  object-fit: cover;
}

.highlight-panel {
  background: rgba(15, 23, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 30px;
  display: flex;
  gap: 14px;
  color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.highlight-panel-left {
  order: 1;
  display: flexbox;
  flex-direction: column;
  justify-content: flex-start;
  text-align: right;
  line-height: 2;
}

.highlight-panel-left h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.highlight-panel-left p {
  font-size: 15px;
  color: var(--text-secondary);
}

.panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(28, 200, 215, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(66%) sepia(74%) saturate(466%) hue-rotate(138deg) brightness(95%) contrast(92%);
}

.highlight-panel-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: right;
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 24px;
  margin-bottom: 0;
}

.panel-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.highlight-list li {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(28, 200, 215, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(66%) sepia(74%) saturate(466%) hue-rotate(138deg) brightness(95%) contrast(92%);
}

.highlight-list h4 {
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text-primary);
}

.highlight-list p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Services Section */
.services-section {
  padding: 100px 0;
}

.services-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Service Create and Chande manual from VaZiR */
/* Service Create and Chande manual from VaZiR */
/* Service Create and Chande manual from VaZiR */
/* Service Create and Chande manual from VaZiR */

.eyes-wrapper {
  width: 90%;
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  gap: 28px;
  background: radial-gradient(circle at 50% 10%,
      rgba(0, 65, 169, 0.354) 5%,
      transparent 80%);
}

.eye-card {
  width: 220px;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: #0d1b3d;
  box-shadow: 0 0 80px rgba(120, 201, 255, 0.408);
  transition: .3s ease;
}

.eye-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* card-0 */
.eye-card-0 img {
  width: 278px;
  height: 133px;
  border-radius: 22px;
  object-fit: cover;
  overflow: hidden;
  background: #0d1b3d;
  box-shadow: 0 0 80px rgba(120, 201, 255, 0.408);
  transition: .3s ease;
}

/* card-1 */
.eye-card-1 img {
  width: 206px;
  height: 244px;
  border-radius: 22px;
  object-fit: cover;
  overflow: hidden;
  background: #0d1b3d;
  box-shadow: 0 0 80px rgba(120, 201, 255, 0.408);
  transition: .3s ease;
}

/* card-2 */
.eye-card-2 img {
  width: 268px;
  height: 279px;
  border-radius: 22px;
  object-fit: cover;
  overflow: hidden;
  background: #0d1b3d;
  box-shadow: 0 0 80px rgba(120, 201, 255, 0.408);
  transition: .3s ease;
}

/* card-3 */
.eye-card-3 img {
  width: 206px;
  height: 254px;
  border-radius: 22px;
  object-fit: cover;
  overflow: hidden;
  background: #0d1b3d;
  box-shadow: 0 0 80px rgba(120, 201, 255, 0.408);
  transition: .3s ease;
}

/* card-4 */
.eye-card-4 img {
  width: 206px;
  height: 364px;
  border-radius: 22px;
  object-fit: cover;
  overflow: hidden;
  background: #0d1b3d;
  box-shadow: 0 0 80px rgba(120, 201, 255, 0.408);
  transition: .3s ease;
}

/* card-5 */
.eye-card-5 img {
  width: 177px;
  height: 206px;
  border-radius: 22px;
  object-fit: cover;
  overflow: hidden;
  background: #0d1b3d;
  box-shadow: 0 0 80px rgba(120, 201, 255, 0.408);
  transition: .3s ease;
}

/* Line */
.eye-card-0:nth-child(1) {
  transform: translateY(90px) translateX(-835px);
}

.eye-card-1:nth-child(2) {
  transform: translateY(230px) translateX(-602px);
}

.eye-card-2:nth-child(3) {
  transform: translateY(12px) translateX(-580px);
}

.eye-card-3:nth-child(4) {
  transform: translateY(297px) translateX(-284px);
}

.eye-card-4:nth-child(5) {
  transform: translateY(230px) translateX(377px);
}

.eye-card-5:nth-child(6) {
  transform: translateY(-383px) translateX(-650px);
}

/* .eye-card:nth-child(7) */
/* Grid positioning */
/* .eye-card-0 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.eye-card:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.eye-card-2 {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

.eye-card:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.eye-card-4 {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
}

.eye-card-5 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
} */


/* Service Create and Chande manual from VaZiR */
/* Service Create and Chande manual from VaZiR */
/* Service Create and Chande manual from VaZiR */

/* Services Hero Text Section */
.services-hero-text-section {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(closest-side, rgba(96, 255, 242, 0.12) 0%, rgba(96, 255, 242, 0) 105%);
}

.services-hero-text-content {
  max-width: 800px;
  margin-top: -300px;
  margin-right: -150px;
}

.services-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.services-hero-subtitle {
  font-size: 18px;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: 400;
}

.services-hero-cta {
  padding: 16px 60px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 60px;
  border-radius: 12px;
}

.services-hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.hero-feature-item {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: right;
}

.hero-feature-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(100%);
}

.hero-feature-item span {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
}


.service-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(15, 23, 41, 0.5);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

a.service-item.service-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-item:hover {
  transform: translateX(-10px);
  border-color: var(--primary-color);
  background: rgba(15, 23, 41, 0.8);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(28, 200, 215, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon img {
  width: 24px;
  height: 24px;
  /* filter: brightness(0) saturate(100%) invert(66%) sepia(74%) saturate(466%) hue-rotate(138deg) brightness(95%) contrast(92%); */
}

.service-text h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.service-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(15, 23, 41, 0.3);
  border: 1px solid transparent blue;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-item:hover {
  background: rgba(15, 23, 41, 0.5);
  border-color: rgba(28, 200, 215, 0.3);
  transform: translateX(-5px);
}

.service-item.active {
  background: rgba(15, 23, 41, 0.7);
  border-color: var(--primary-color);
}

.doctor-card {
  position: relative;
  background: rgba(15, 23, 41, 0.5);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.doctor-card img {
  width: 40%;
  max-width: 300px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.doctor-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg,
      var(--gradient-start),
      var(--gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.doctor-badge img {
  width: 30px;
  height: 30px;
  margin: 0;
}

.doctor-info {
  flex: 1;
  text-align: right;
}

.doctor-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.doctor-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 20px;
  text-align: justify;
}

/* Medical team intro — home services block */
.doctor-intro {
  margin-top: 4px;
  margin-bottom: 22px;
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(28, 200, 215, 0.07) 0%,
    rgba(15, 23, 41, 0.65) 45%,
    rgba(15, 23, 41, 0.85) 100%
  );
  border: 1px solid rgba(28, 200, 215, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.doctor-intro::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--gradient-start, #1cc8d7),
    var(--gradient-end, #0066cc)
  );
  border-radius: 0 16px 16px 0;
  opacity: 0.95;
}

.doctor-intro__lead {
  margin: 0;
  padding-bottom: 18px;
  font-size: 15px;
  line-height: 2.05;
  color: var(--text-primary);
  text-align: justify;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.doctor-intro__badge {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(28, 200, 215, 0.12);
  border: 1px solid rgba(28, 200, 215, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: baseline;
}

.doctor-intro__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.doctor-intro__step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0 0;
}

.doctor-intro__step--final {
  padding-bottom: 2px;
}

.doctor-intro__step-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: rgba(28, 200, 215, 0.35);
  border: 2px solid rgba(28, 200, 215, 0.65);
  box-shadow: 0 0 12px rgba(28, 200, 215, 0.35);
}

.doctor-intro__step-dot--accent {
  background: rgba(28, 200, 215, 0.55);
  border-color: var(--primary-color);
}

.doctor-intro__step-text {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  text-align: justify;
}

.doctor-intro__step-text--emphasis {
  color: var(--text-primary);
  font-weight: 500;
}

.btn-read-more {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "IRANSans", sans-serif;
}

.btn-read-more:hover {
  background: var(--primary-color);
  color: var(--text-primary);
}

/* Eye Scanning Section */
.eye-scanning {
  padding: 60px 0;
}

.scanning-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.scanning-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  position: relative;
}

.section-title-center {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-primary);
}

.testimonials-slider {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  justify-content: center;
  align-items: stretch;
  min-height: 350px;
}

.testimonial-card {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.5s ease;
  opacity: 0.6;
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
  max-width: 400px;
  display: block;
}

.testimonial-card.active {
  opacity: 1;
  background: rgba(15, 23, 41, 0.9);
  transform: scale(1.05);

}

.testimonial-card:hover {
  opacity: 1;
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

/* Testimonial Card Animations */
.testimonial-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* Testimonial Card Wheel Animation (Mobile) */



.testimonial-card.slide-in-left {
  animation: slideInFromLeft 0.6s ease-out forwards;
}

.testimonial-card.slide-in-right {
  animation: slideInFromRight 0.6s ease-out forwards;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg,
      var(--gradient-start),
      var(--gradient-end));
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar img {
  width: 40px;
  height: 40px;
}

.testimonial-name {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.slider-btn {
  width: 45px;
  height: 45px;
  background: rgba(15, 23, 41, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.slider-btn:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-content {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
}

.newsletter-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.newsletter-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-secondary {
  background: linear-gradient(135deg,
      var(--gradient-start),
      var(--gradient-end));
  color: var(--text-primary);
  border: none;
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "IRANSans", sans-serif;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(28, 200, 215, 0.5);
}

.btn-primary-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "IRANSans", sans-serif;
}

.btn-primary-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
}

.faq-items {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--primary-color);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 16px;
  font-family: "IRANSans", sans-serif;
  text-align: right;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(66%) sepia(74%) saturate(466%) hue-rotate(138deg) brightness(95%) contrast(92%);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 30px 25px 30px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
}

/* Footer */
.footer {
  background: rgba(11, 17, 32, 0.9);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
  font-family: "Vazirmatn", sans-serif !important;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(28, 200, 215, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.social-link:hover {
  background: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px rgba(28, 200, 215, 0.32);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.social-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(28, 200, 215, 0.25);
}

/* یکسان‌سازی رنگ همهٔ آیکون‌ها (SVGها رنگ/ابعاد متفاوت دارند) */
.social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

.social-link:hover img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .social-link,
  .social-link:hover,
  .social-link:active {
    transition: none;
    transform: none;
  }
}

.footer-title {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright,
.developer {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Services Page Styles */
.services-hero {
  padding: 80px 0 40px;
  /* Further reduced padding */
  background: radial-gradient(circle at 50% 0%,
      rgba(80, 0, 130, 0.25) 0%,
      transparent 45%),
    radial-gradient(circle at 80% 70%,
      rgba(28, 200, 215, 0.12) 0%,
      transparent 40%);
  min-height: 100vh;
  /* Ensure it takes full height but content fits */
  display: flex;
  align-items: center;
}

.services-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  direction: ltr;
  width: 100%;
}

.image-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 10px;
  /* Tighter gap */
  max-width: 450px;
  /* Smaller grid */
  margin: 0 auto;
  /* Center grid in its column */
}

.grid-item {
  border-radius: 16px;
  /* Slightly smaller radius */
  overflow: hidden;
  box-shadow: 0 0 20px rgba(28, 200, 215, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(28, 200, 215, 0.8);
  /* Thinner border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(28, 200, 215, 0.7),
    0 15px 40px rgba(0, 0, 0, 0.4);
}

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

/* Large square - top left (2x2) */
.grid-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* Horizontal wide - top right (2x1) */
.grid-small-1 {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
}

/* Small square - middle right (1x1) */
.grid-small-2 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

/* Bottom left square (1x1) */
.grid-small-3 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

/* Bottom middle wide (2x1) - Fills the gap */
.grid-small-4 {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

/* Tall vertical - right side (1x2) */
.grid-small-5 {
  grid-column: 4 / 5;
  grid-row: 2 / 4;
}

.services-hero-text {
  padding-right: 0;
  text-align: right;
  direction: rtl;
}

.services-title {
  font-size: 32px;
  /* Reduced font size */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  /* Reduced margin */
  line-height: 1.4;
  text-align: right;
}

.services-subtitle {
  font-size: 14px;
  /* Reduced font size */
  color: var(--text-secondary);
  margin-bottom: 20px;
  /* Reduced margin */
  line-height: 1.6;
  text-align: right;
}

.services-cta-btn {
  margin-bottom: 25px;
  /* Reduced margin */
  padding: 12px 30px;
  /* Smaller button */
  font-size: 14px;
}

.services-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  /* Reduced gap */
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Reduced gap */
  font-size: 12px;
  /* Smaller font */
  color: var(--text-secondary);
  text-align: right;
  justify-content: flex-start;
}

.feature-badge .check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(68%) sepia(75%) saturate(3448%) hue-rotate(155deg) brightness(95%) contrast(89%);
}

.services-features-list {
  list-style: none;
  margin-top: 30px;
}

.check-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(68%) sepia(75%) saturate(3448%) hue-rotate(155deg) brightness(95%) contrast(89%);
}

/* Gallery Page Styles */
.gallery-page {
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 10%,
      rgba(80, 0, 130, 0.15) 5%,
      transparent 50%);
}

.gallery-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  /* Increased gap */
  align-items: start;
}

/* Sidebar Styles */
.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  order: 2;
}

/* بلاگ/گالری: سایدبار — خوانایی RTL، سلسله‌مراتب تیتر، لیست ویجت‌ها */
.gallery-page .sidebar {
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

.gallery-page .sidebar .widget-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  position: relative;
}

.gallery-page .sidebar .widget-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  opacity: 0.95;
}

.gallery-page .sidebar .widget-description,
.gallery-page .sidebar .author-subtitle {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.82);
}

.gallery-page .sidebar .author-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #f1f5f9;
}

.gallery-page .sidebar .widget ul,
.gallery-page .sidebar .widget ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-page .sidebar .widget li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.gallery-page .sidebar .widget li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gallery-page .sidebar .widget li a {
  color: rgba(241, 245, 249, 0.92);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, padding-inline 0.2s ease;
  display: inline-block;
}

.gallery-page .sidebar .widget li a:hover {
  color: var(--accent-color);
  padding-inline-end: 4px;
}

.gallery-page .sidebar .widget p,
.gallery-page .sidebar .widget .textwidget {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.88);
  margin: 0 0 12px;
}

.gallery-page .sidebar .widget p:last-child {
  margin-bottom: 0;
}

.gallery-page .sidebar .related-article-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.gallery-page .sidebar .related-article-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.gallery-page .sidebar .newsletter-message {
  font-size: 0.8125rem;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  text-align: right;
}

.gallery-page .sidebar .newsletter-message-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.gallery-page .sidebar .newsletter-message-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}

.gallery-page .sidebar .newsletter-message-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.gallery-page .sidebar .newsletter-input {
  font-size: 0.9375rem;
}

.gallery-page .sidebar .newsletter-btn {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* سایدبار: جستجو */
.sidebar-search-widget {
  background: rgba(15, 23, 41, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 22px 22px 24px;
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.45);
}

.sidebar-search-form {
  margin: 0;
}

.sidebar-search-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
}

.sidebar-search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sidebar-search-input::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

.sidebar-search-input:focus {
  outline: none;
  border-color: rgba(28, 200, 215, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-search-submit {
  flex-shrink: 0;
  width: auto;
  min-width: 5.5rem;
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sidebar-search-widget .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* صفحهٔ نتایج جستجو (هم‌سبک بلاگ) */
.gallery-page--search .search-results-header {
  margin-bottom: 4px;
}

.search-results-title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.search-query-mark {
  color: var(--accent-color);
  font-weight: 800;
}

.search-results-meta {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.88);
  margin: 0 0 28px;
}

.search-empty-state {
  text-align: center;
  padding: 48px 24px;
  border-radius: 18px;
  background: rgba(15, 23, 41, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.search-empty-state__text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.9);
  margin: 0 0 20px;
}

.search-empty-state__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.article-badge--search {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 41, 0.75);
  border: 1px solid rgba(28, 200, 215, 0.35);
}

@media (max-width: 480px) {
  .sidebar-search-inner {
    flex-direction: column;
  }

  .sidebar-search-submit {
    width: 100%;
    min-width: 0;
  }
}

/* Main Gallery Content */
.gallery-main {
  order: 1;
}

/* Author Card */
.author-card {
  background: rgba(15, 23, 41, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

.author-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(28, 200, 215, 0.5);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.author-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

.author-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.author-social .social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 200, 215, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.author-social .social-link:hover {
  background: rgba(28, 200, 215, 0.2);
  transform: translateY(-2px);
}

.author-social .social-link img {
  width: 18px;
  height: 18px;
}

/* Newsletter Widget */
.newsletter-widget {
  background: rgba(15, 23, 41, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.widget-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

.newsletter-form-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(28, 200, 215, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
}

.newsletter-btn {
  width: 100%;
  padding: 12px;
  font-size: 13px;
}

/* Video Widget */
.video-widget {
  background: rgba(15, 23, 41, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
}

.video-player {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-player video {
  width: 100%;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.video-link {
  font-size: 12px;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.video-link:hover {
  color: var(--accent-hover);
}

/* Related Articles Widget */
.related-articles-widget {
  background: rgba(15, 23, 41, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
}

.related-article-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.related-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-article-item:first-child {
  padding-top: 0;
}

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

.related-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-article-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article-date {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Article Detail Sidebar Widgets */
/* Author Card Widget */
.author-card {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

.author-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.author-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.author-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.author-social .social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.author-social .social-link:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.author-social .social-link img {
  width: 18px;
  height: 18px;
}

/* Newsletter Widget */
.newsletter-widget {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: right;
}

.widget-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: right;
}

.newsletter-form-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.newsletter-btn {
  padding: 12px 20px;
  font-size: 13px;
}

@media (max-width: 991px) {
  .feature-badge {
    padding: 10px 15px;
    font-size: 12px;
  }

  /* Article Detail Page Mobile */
  .article-detail-page {
    padding: 120px 0 50px;
  }

  .article-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-sidebar {
    display: none !important;
    position: static;
    order: 2;
  }

  .article-detail-main {
    padding: 30px 20px;
    order: 1;
    width: 187%;
  }

  .article-detail-title {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: center;
  }

  .article-detail-subtitle {
    font-size: 14px;
    text-align: justify;
  }

  .article-detail-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
  }

  .article-detail-content p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 20px;
  }

  .article-content-image {
    margin: 30px 0;
  }

  /* Sidebar Widgets Mobile */
  .author-card,
  .newsletter-widget,
  .video-widget,
  .related-articles-widget {
    padding: 20px;
  }

  .author-image {
    width: 80px;
    height: 80px;
  }

  .widget-title {
    font-size: 15px;
  }

  .widget-description {
    font-size: 12px;
  }

  /* Article Detail Hero Mobile */
  .article-detail-hero {
    padding: 100px 0 30px !important;
  }

  .article-detail-hero-container {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    display: grid !important;
  }

  .article-hero-featured-image {
    order: 1 !important;
    border-radius: 12px !important;
    margin: 0 !important;
  }

  .article-hero-featured-image img {
    width: 100%;
    height: auto;
  }

  .article-hero-info {
    order: 2 !important;
    gap: 15px !important;
  }

  .article-hero-badge {
    font-size: 10px !important;
    padding: 4px 12px !important;
  }

  .article-hero-meta-title {
    gap: 6px !important;
  }

  .meta-subtitle {
    font-size: 13px !important;
  }

  .article-hero-main-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  .article-hero-author {
    gap: 12px !important;
  }

  .hero-author-avatar {
    width: 35px !important;
    height: 35px !important;
  }

  .hero-author-name {
    font-size: 12px !important;
  }

  .hero-meta-details {
    font-size: 11px !important;
    flex-wrap: wrap;
  }

  .article-hero-description {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  .article-hero-social {
    gap: 10px !important;
  }

  .hero-social-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .hero-social-icon img {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Tablet Responsive (768px - 992px) */
@media (min-width: 577px) and (max-width: 992px) {

  /* Article Detail Hero Tablet */
  .article-detail-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-hero-main-title {
    font-size: 28px;
  }

  .article-detail-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
    order: 2;
  }

  .article-detail-main {
    order: 1;
  }
}

/* HD Display (1366px - 1919px) */
@media (min-width: 1366px) and (max-width: 1919px) {
  .article-detail-hero-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Full HD and larger (1920px+) */
@media (min-width: 1920px) {
  .article-detail-hero-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .article-detail-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .article-hero-main-title {
    font-size: 36px;
  }

  .article-detail-title {
    font-size: 40px;
  }
}

/* Video Widget */
.video-widget {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
}

.video-player {
  position: relative;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
}

.video-player video {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-button {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: right;
}

.video-link {
  font-size: 13px;
  color: var(--accent-color);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.video-link:hover {
  opacity: 0.8;
  transform: translateX(-3px);
}

/* Related Articles Widget */
.related-articles-widget {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
}

.related-article-item {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-article-item:last-child {
  border-bottom: none;
}

.related-article-item:hover {
  transform: translateX(-5px);
}

.related-article-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.related-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Main Gallery Content */
.gallery-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Article Card */
.article-card {
  background: rgba(15, 23, 41, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(28, 200, 215, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Article Detail Hero Section */
.article-detail-hero {
  padding: 140px 0 60px;
  background: radial-gradient(circle at 50% 0%,
      rgba(80, 0, 130, 0.2) 0%,
      transparent 50%);
}

.article-detail-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Featured Image Left */
.article-hero-featured-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  order: 2;
}

.article-hero-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Info Right */
.article-hero-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
  order: 1;
}

.article-hero-badge {
  display: inline-block;
  /* padding: 6px 6px; */
  background: var(--accent-color);
  color: var(--background-color);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  width: fit-content;
  /* margin-right: auto; */
  direction: ltr;
}

.article-hero-meta-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.article-hero-main-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

/* Author Info */
.article-hero-author {
  display: flex;
  gap: 15px;
  align-items: center;
}

.hero-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.hero-author-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-meta-details {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-category {
  color: var(--text-secondary);
}

.hero-category-name {
  color: var(--accent-color);
}

.hero-separator {
  color: var(--text-secondary);
  opacity: 0.5;
}

.hero-date {
  color: var(--text-secondary);
}

/* Article Description */
.article-hero-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin: 0;
  text-align: right;
}

/* Social Share Icons */
.article-hero-social {
  display: flex;
  gap: 12px;
  margin-right: auto;
}

.hero-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-social-icon:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-social-icon img {
  width: 18px;
  height: 18px;
}

/* Article Detail Page with Sidebar */
.article-detail-page {
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 0%,
      rgba(80, 0, 130, 0) 0%,
      transparent 50%);
}

.article-detail-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 50px;
  align-items: start;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Main Content */
.article-detail-main {
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 25px;
}

.article-detail-header {
  margin-bottom: 40px;
  text-align: right;
}

.article-detail-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.5;
}

.article-detail-subtitle {
  font-size: 16px;
  color: var(--accent-color);
  line-height: 1.8;
}

.article-detail-featured-image {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.article-detail-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-detail-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 25px;
  text-align: justify;
}

.article-detail-content p:last-child {
  margin-bottom: 0;
}

.article-content-image {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.article-content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

.article-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-color);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.article-content {
  padding: 20px;
}

.article-title-card {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.article-title-card a,
.article-title-card a:visited {
  color: var(--text-primary);
  text-decoration: none;
}

.article-title-card a:hover,
.article-title-card a:focus-visible {
  color: var(--primary-color);
}

.article-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.meta-item img {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(68%) sepia(75%) saturate(3448%) hue-rotate(155deg) brightness(95%) contrast(89%);
}

/* Pagination — خروجی paginate_links (لیست page-numbers) + دکمه‌های قدیمی gallery.html */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  padding: 18px 16px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 41, 0.55) 0%, rgba(15, 23, 41, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 48px -24px rgba(0, 0, 0, 0.5);
}

.pagination ul.page-numbers,
.pagination ol.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 17, 32, 0.65);
  color: rgba(241, 245, 249, 0.95);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pagination a.page-numbers:hover {
  background: rgba(28, 200, 215, 0.14);
  border-color: rgba(28, 200, 215, 0.45);
  color: #f8fafc;
  transform: translateY(-1px);
}

.pagination span.page-numbers.current {
  background: linear-gradient(145deg, var(--accent-color) 0%, #0e7490 100%);
  border-color: rgba(28, 200, 215, 0.65);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(28, 200, 215, 0.45);
  cursor: default;
}

.pagination span.page-numbers.dots {
  min-width: auto;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 500;
  cursor: default;
}

.pagination a.page-numbers.prev,
.pagination a.page-numbers.next,
.pagination a.prev,
.pagination a.next {
  padding-inline: 16px;
  font-weight: 700;
  gap: 6px;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background: rgba(15, 23, 41, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: rgba(28, 200, 215, 0.1);
  border-color: rgba(28, 200, 215, 0.3);
}

.pagination-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.pagination-prev,
.pagination-next {
  font-weight: 600;
}

.services-description {
  padding: 80px 0;
}

.section-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-description-center {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  text-align: center;
}

.services-features-section {
  padding: 80px 0;
  background: rgba(15, 23, 41, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.features-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(28, 200, 215, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(28, 200, 215, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(28, 200, 215, 0.1);
  border-color: rgba(28, 200, 215, 0.3);
  transform: translateX(-5px);
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(68%) sepia(75%) saturate(3448%) hue-rotate(155deg) brightness(95%) contrast(89%);
}

.feature-text h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.cta-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 50%,
      rgba(28, 200, 215, 0.1) 0%,
      transparent 60%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cta-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Article/Blog Page Styles */
.article-hero {
  padding: 140px 0 60px;
  background: radial-gradient(circle at 50% 0%,
      rgba(80, 0, 130, 0.25) 0%,
      transparent 45%),
    radial-gradient(circle at 20% 30%,
      rgba(28, 200, 215, 0.12) 0%,
      transparent 40%);
}

.article-hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.article-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: right;
}

.article-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 50px;
  line-height: 1.8;
  text-align: right;
}

.article-hero-image {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content-section {
  padding: 80px 0;
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 60px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2.2;
  margin-bottom: 30px;
  text-align: justify;
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-image-wrapper {
  margin: 50px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */

@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }

  .testimonials-slider {
    /* grid-template-columns: 1fr; Remove this as it conflicts with flex */
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .testimonial-card {
    opacity: 1;
    /* display: none !important; Removed to let JS handle it */
    /* Hide all cards by default on mobile to override JS inline styles */
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0;
  }

  .testimonial-card.active {
    /* display: block !important; Removed to let JS handle it */
    /* Only show the active card */
    transform: none !important;
    /* Reset transform to avoid scaling issues */
  }
}

@media (max-width: 992px) {

  .hero-content,
  .stats-content,
  .services-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  /* موبایل/تبلت: اول پیام و CTA، بعد تصویر — بدون تغییر DOM */
  .hero-content {
    grid-template-areas:
      "hero-text"
      "hero-image";
  }

  .hero-content > .hero-text {
    grid-area: hero-text;
  }

  .hero-content > .hero-image {
    grid-area: hero-image;
  }

  .hero-text,
  .stats-right {
    text-align: center;
  }

  .hero-text .hero-title {
    text-align: center;
    direction: rtl;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-inline-start: auto;
    margin-inline-end: auto;
  }

  .hero-text .hero-title .hero-title-main {
    text-align: center;
  }

  .hero-text .hero-title-line--tagline {
    text-align: center;
  }

  .hero-title-line--brand {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .doctor-card {
    flex-direction: column;
  }

  .doctor-card img {
    width: 100%;
    max-width: 100%;
  }

  .highlight-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "right"
      "image"
      "left";
  }

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

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

  .hero-form-title {
    font-size: 40px;
  }

  .hero-modern-row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {

  /* Gallery Grid Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 15px;
  }

  .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 300px;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(11, 17, 32, 0.95);
    /* backdrop-filter روی نیاکان، بلوک مرجع position:fixed را عوض می‌کند و کشوی منو فقط زیر هدر دیده می‌شد */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Slightly more opaque for mobile */
  }

  body {
    padding-top: 90px;
    /* Compensate for fixed header height */
  }

  .navbar {
    position: relative;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
  }

  /* سه ناحیه جدا: همبرگر | لوگو (وسط) | دکمه مشاوره — بدون overlap */
  .mobile-menu-btn {
    flex: 0 0 auto;
    order: 1;
  }

  .nav-actions {
    flex: 0 0 auto;
    order: 3;
    min-width: 0;
  }

  .logo {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    left: auto;
    transform: none;
    z-index: 0;
  }

  .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .logo img {
    max-height: 38px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
  }

  .header .nav-actions .header-cta-btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* منوی کشویی موبایل — الهام: صفحه اصلی (فیروزه) + کراتو/لیزر (گرید، blur، آبی #1754cf) */
  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .mobile-nav-shell {
    position: fixed;
    inset: 0;
    z-index: 10000;
    flex: none;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.45s ease;
  }

  .mobile-nav-shell.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-nav-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background-color: rgba(6, 9, 18, 0.97);
    background: linear-gradient(
      145deg,
      rgba(6, 9, 18, 0.97) 0%,
      rgba(11, 17, 32, 0.94) 45%,
      rgba(17, 24, 39, 0.96) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-nav-shell.is-open .mobile-nav-backdrop {
    opacity: 1;
  }

  .mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92vw, 420px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: #0b1120;
    background: linear-gradient(
      195deg,
      rgba(22, 28, 45, 0.98) 0%,
      rgba(11, 17, 32, 0.99) 55%,
      rgba(8, 12, 22, 1) 100%
    );
    border-left: 1px solid rgba(30, 41, 59, 0.85);
    box-shadow:
      -16px 0 48px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(28, 200, 215, 0.12);
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0 0 0 22px;
  }

  .mobile-nav-shell.is-open .mobile-nav-panel {
    transform: translateX(0);
  }

  .mobile-nav-panel__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 18px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.75);
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.65) 0%,
      rgba(11, 17, 32, 0.35) 100%
    );
  }

  .mobile-nav-panel__head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .mobile-nav-panel__head-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .mobile-nav-panel__brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    border-radius: 8px;
    transition: opacity 0.2s ease;
  }

  .mobile-nav-panel__brand:hover {
    opacity: 0.9;
  }

  .mobile-nav-panel__brand-img {
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .mobile-nav-panel__accent {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(28, 200, 215, 0.45) 25%,
      rgba(23, 84, 207, 0.55) 75%,
      transparent 100%
    );
    box-shadow: 0 0 16px rgba(28, 200, 215, 0.25);
  }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid rgba(28, 200, 215, 0.35);
    border-radius: 12px;
    background: rgba(28, 200, 215, 0.08);
    color: var(--primary-color);
    cursor: pointer;
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      transform 0.2s ease,
      box-shadow 0.25s ease;
  }

  .mobile-nav-close:hover {
    background: rgba(28, 200, 215, 0.18);
    border-color: rgba(28, 200, 215, 0.55);
    box-shadow: 0 0 24px rgba(28, 200, 215, 0.2);
  }

  .mobile-nav-close:active {
    transform: scale(0.96);
  }

  .mobile-nav-panel__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 18px 16px;
    margin-top: 0;
    overscroll-behavior: contain;
    align-items: stretch;
    justify-content: flex-start;
  }

  .mobile-nav-panel__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    flex-shrink: 0;
    padding: 18px 18px 24px;
    border-top: 1px solid rgba(30, 41, 59, 0.85);
    background: linear-gradient(
      0deg,
      rgba(8, 12, 22, 0.98) 0%,
      rgba(11, 17, 32, 0.92) 100%
    );
  }

  /* CTA مشاوره: کارت برجسته، هماهنگ با تم فیروزه‌ای */
  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    padding: 16px 22px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-decoration: none;
    color: #f8fafc;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.18) inset,
      0 10px 36px rgba(28, 200, 215, 0.28),
      0 4px 14px rgba(0, 0, 0, 0.4);
    transition:
      transform 0.2s ease,
      box-shadow 0.25s ease,
      border-color 0.2s ease;
  }

  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.14) 0%,
      transparent 42%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 0;
  }

  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary .header-cta-icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary .whatsapp-icon,
  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary .phone-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary .header-cta-text {
    position: relative;
    z-index: 1;
  }

  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.2) inset,
      0 14px 44px rgba(28, 200, 215, 0.38),
      0 6px 20px rgba(0, 0, 0, 0.35);
  }

  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary:active {
    transform: scale(0.98) translateY(0);
  }

  .mobile-nav-panel__footer .mobile-nav-panel__cta.btn-primary:focus-visible {
    outline: 2px solid rgba(28, 200, 215, 0.85);
    outline-offset: 3px;
  }

  .mobile-nav-panel__phone-link:focus-visible {
    outline: 2px solid rgba(28, 200, 215, 0.85);
    outline-offset: 3px;
  }

  /* تماس مستقیم: کارت ثانویه با آیکن */
  .mobile-nav-panel__phone-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    text-align: start;
    border-radius: 18px;
    border: 1px solid rgba(28, 200, 215, 0.22);
    background: linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.95) 0%,
      rgba(17, 26, 46, 0.88) 50%,
      rgba(11, 17, 32, 0.92) 100%
    );
    color: var(--text-primary);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 6px 24px rgba(0, 0, 0, 0.28);
    transition:
      border-color 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease,
      transform 0.2s ease;
  }

  .mobile-nav-panel__phone-link:hover {
    border-color: rgba(28, 200, 215, 0.5);
    background: linear-gradient(
      145deg,
      rgba(20, 32, 52, 0.98) 0%,
      rgba(15, 28, 48, 0.92) 100%
    );
    box-shadow:
      0 1px 0 rgba(28, 200, 215, 0.12) inset,
      0 8px 28px rgba(28, 200, 215, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.32);
    color: #fff;
    transform: translateY(-1px);
  }

  .mobile-nav-panel__phone-link:active {
    transform: scale(0.99);
  }

  .mobile-nav-panel__phone-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
      160deg,
      rgba(28, 200, 215, 0.2) 0%,
      rgba(23, 84, 207, 0.12) 100%
    );
    border: 1px solid rgba(28, 200, 215, 0.35);
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(28, 200, 215, 0.15);
  }

  .mobile-nav-panel__phone-icon svg {
    display: block;
    width: 24px;
    height: 24px;
  }

  .mobile-nav-panel__phone-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
  }

  .mobile-nav-panel__phone-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(148, 163, 184, 0.92);
    text-transform: uppercase;
  }

  .mobile-nav-panel__phone-link:hover .mobile-nav-panel__phone-label {
    color: rgba(226, 232, 240, 0.95);
  }

  .mobile-nav-panel__phone-value {
    font-size: 17px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.02em;
    direction: ltr;
    unicode-bidi: embed;
  }

  .mobile-nav-panel__phone-link:hover .mobile-nav-panel__phone-value {
    color: var(--primary-color);
  }

  .mobile-nav-panel__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .mobile-nav-panel__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(30, 41, 59, 0.75);
    background: rgba(15, 23, 42, 0.5);
    transition:
      border-color 0.2s ease,
      background 0.2s ease,
      transform 0.2s ease;
  }

  .mobile-nav-panel__social-link:hover {
    border-color: rgba(28, 200, 215, 0.45);
    background: rgba(28, 200, 215, 0.12);
    transform: translateY(-1px);
  }

  .mobile-nav-panel__social-link img {
    display: block;
    opacity: 0.9;
  }

  .mobile-nav-panel__glow {
    display: block;
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
    pointer-events: none;
    z-index: 0;
  }

  .mobile-nav-panel__glow--cyan {
    width: 200px;
    height: 200px;
    top: 8%;
    left: -35%;
    background: radial-gradient(circle, rgba(28, 200, 215, 0.35) 0%, transparent 70%);
  }

  .mobile-nav-panel__glow--blue {
    width: 220px;
    height: 220px;
    bottom: 12%;
    right: -40%;
    background: radial-gradient(circle, rgba(23, 84, 207, 0.28) 0%, transparent 70%);
  }

  .mobile-nav-panel__grid {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
      linear-gradient(to right, #1e293b 1px, transparent 1px),
      linear-gradient(to bottom, #1e293b 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
  }

  .mobile-nav-panel__body .nav-menu {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    list-style: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-menu-btn.is-open {
    border-color: rgba(28, 200, 215, 0.55);
    background: rgba(28, 200, 215, 0.15);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(28, 200, 215, 0.15);
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-nav-shell,
    .mobile-nav-backdrop,
    .mobile-nav-panel {
      transition-duration: 0.01ms !important;
    }
  }

  .section-title,
  .section-title-center {
    font-size: 32px;
  }

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

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form button {
    width: 100%;
    max-width: 300px;
  }

  .contact-hero {
    padding-top: 120px;
  }

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

  .commitment-card {
    padding: 40px 30px;
  }

  .contact-hero-text h1 {
    font-size: 32px;
  }

  .hero-form-card {
    padding: 40px 28px 30px;
  }

  .hero-form-title {
    font-size: 32px;
  }

  .hero-modern-button {
    width: 100%;
    margin-right: 0;
  }

  .hero-modern-actions {
    justify-content: center;
  }

  .highlight-content {
    gap: 25px;
  }

  .highlight-panel {
    padding: 24px;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .stats-section {
    padding: 60px 0;
  }

  .stats-content {
    gap: 30px;
  }

  /* آیتم‌های منو داخل کشو */
  .mobile-nav-panel__body .nav-menu li,
  .mobile-nav-panel__body .nav-menu .menu-item {
    width: 100%;
    text-align: right;
    position: relative;
  }

  /* لینک + دکمهٔ تاگل در یک ردیف؛ ul.sub-menu در ردیف بعد تمام‌عرض (رفع چیدمان کناری زیرمنو) */
  .mobile-nav-panel__body .nav-menu > li.menu-item-has-children,
  .mobile-nav-panel__body .nav-menu > .menu-item-has-children,
  .mobile-nav-panel__body .nav-menu .sub-menu .menu-item-has-children {
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
  }

  .mobile-nav-panel__body .nav-menu li.menu-item-has-children > .sub-menu,
  .mobile-nav-panel__body .nav-menu .menu-item-has-children > .sub-menu {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .mobile-nav-panel__body .nav-menu .nav-link,
  .mobile-nav-panel__body .nav-menu .menu-item a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 600;
    min-height: 48px;
    line-height: 1.45;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(30, 41, 59, 0.6);
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.45) 0%,
      rgba(11, 17, 32, 0.35) 100%
    );
    white-space: normal;
    transition:
      border-color 0.25s ease,
      background 0.25s ease,
      color 0.2s ease,
      box-shadow 0.25s ease;
  }

  .mobile-nav-panel__body .nav-menu .nav-link:hover,
  .mobile-nav-panel__body .nav-menu .menu-item a:hover {
    border-color: rgba(28, 200, 215, 0.45);
    background: linear-gradient(
      135deg,
      rgba(28, 200, 215, 0.12) 0%,
      rgba(23, 84, 207, 0.1) 100%
    );
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  /* زیرمنوها در موبایل: آکاردئون */
  .mobile-nav-panel__body .nav-menu .sub-menu::before {
    display: none;
  }

  .nav-menu .sub-menu {
    position: static;
    display: none;
    min-width: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    padding-inline-start: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-inline-end: 2px solid rgba(28, 200, 215, 0.4);
    margin-top: 6px;
    top: auto;
    right: auto;
    left: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
  }

  .nav-menu li.sub-menu-open > .sub-menu,
  .nav-menu .menu-item.sub-menu-open > .sub-menu {
    display: block;
  }

  .nav-menu .sub-menu .sub-menu {
    position: static;
    margin-inline-end: 0;
    margin-inline-start: 0;
    margin-top: 4px;
    padding-inline-end: 12px;
    border-inline-end-color: rgba(28, 200, 215, 0.25);
    top: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
  }

  .nav-menu .sub-menu li a {
    padding: 12px 16px;
    font-size: 15px;
  }

  .nav-menu .sub-menu .sub-menu li a {
    padding: 10px 14px;
    font-size: 14px;
  }

  /*
   * موبایل: فلش‌های ::after مخصوص دسکتاپ را حذف می‌کنیم؛ فقط nav-submenu-toggle
   * بماند تا برای سطح دوم (و اول) دو فلش (بالا/پایین یا کنار هم) دیده نشود.
   */
  .mobile-nav-panel__body .nav-menu .menu-item-has-children > a::after {
    content: none;
    display: none;
  }

  /* دکمه باز/بسته کردن زیرمنو در موبایل */
  .nav-menu .nav-submenu-toggle {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 200, 215, 0.15);
    border: 1px solid rgba(28, 200, 215, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.2s ease;
  }

  .nav-menu .nav-submenu-toggle:hover {
    background: rgba(28, 200, 215, 0.25);
  }

  .nav-menu li.sub-menu-open > .nav-submenu-toggle,
  .nav-menu .menu-item.sub-menu-open > .nav-submenu-toggle {
    transform: translateY(-50%) rotate(180deg);
  }

  /* وسط‌چین فقط نسبت به ردیف اول (لینک)، نه کل ارتفاع بعد از باز شدن زیرمنو */
  .mobile-nav-panel__body .nav-menu .nav-submenu-toggle {
    top: 24px;
    transform: translateY(-50%);
  }

  .mobile-nav-panel__body .nav-menu li.sub-menu-open > .nav-submenu-toggle,
  .mobile-nav-panel__body .nav-menu .menu-item.sub-menu-open > .nav-submenu-toggle {
    transform: translateY(-50%) rotate(180deg);
  }

  .nav-menu .nav-submenu-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* آیتم دارای زیرمنو در موبایل: فضای برای دکمه (سمت دکمه) */
  .nav-menu li.menu-item-has-children > a,
  .nav-menu .menu-item-has-children > a {
    padding-inline-end: 52px;
  }

  /* Gallery Page Tablet */
  .gallery-container {
    grid-template-columns: 240px 1fr;
    /* Proportional sidebar for tablet */
    gap: 30px;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sidebar {
    gap: 25px;
  }

  .author-card,
  .newsletter-widget,
  .video-widget,
  .related-articles-widget {
    padding: 20px;
  }
}

@media (max-width: 576px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    padding: 0 20px;
    width: 100%;
    /* Removed overflow-x: hidden to prevent menu clipping */
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .section-title,
  .section-title-center {
    font-size: 24px;
  }

  .stats-item h3 {
    font-size: 32px;
  }

  .stats-item p {
    font-size: 14px;
  }


  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .service-items {
    gap: 20px;
  }

  /*  .services-hero-text-section .services-hero-title {
    font-size: 32px;
  } */

  /* Eye Cards Grid for Mobile */
  .eyes-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 40px 0 !important;
    padding: 0 15px !important;
  }

  .eye-card-0,
  .eye-card-1,
  .eye-card-2,
  .eye-card-3,
  .eye-card-4,
  .eye-card-5 {
    transform: none !important;
    margin: 0 !important;
  }

  .eye-card-0 img,
  .eye-card-1 img,
  .eye-card-2 img,
  .eye-card-3 img,
  .eye-card-4 img,
  .eye-card-5 img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }

  /* Hide hero text on mobile as it's inside eyes-wrapper */
  .services-hero-text-section {
    display: none !important;
  }

  /* Services Description Section Mobile */
  .services-description {
    padding: 50px 0;
  }

  .section-description-center {
    font-size: 14px;
    line-height: 1.8;
    padding: 0 10px;
  }

  /* Services Features Section Mobile */
  .services-features-section {
    padding: 50px 0;
  }

  .features-content {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .feature-image {
    order: 2;
  }

  .features-list {
    order: 1;
  }

  .features-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .feature-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .feature-text h4 {
    font-size: 16px;
  }

  .feature-text p {
    font-size: 13px;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .cta-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Services Hero Text Responsive */
  .services-hero-title {
    font-size: 32px;
  }

  .services-hero-subtitle {
    font-size: 16px;
  }

  .services-hero-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hero-content {
    gap: 40px;
  }

  .hero-image .eye-image {
    max-width: 100%;
  }

  .rating-badge,
  .stats-badge {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 10px auto;
    display: inline-block;
    width: auto;
  }

  .hero-image {
    flex-direction: column;
    gap: 10px;
  }

  .btn-cta {
    width: 100%;
  }

  /* همراستا با دکمهٔ CTA: هر دو در موبایل یک عرض (تمام ستون) */
  .hero-buttons .btn-primary-outline {
    width: 100%;
    box-sizing: border-box;
  }

  .hero-features {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feature-item {
    justify-content: center;
  }

  /* Stats Section Mobile Improvements */
  .stat-progress {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .stat-progress::before {
    display: none;
    /* Remove hover effect on mobile to prevent sticky states */
  }

  .progress-circle {
    width: 120px;
    height: 120px;
  }

  .progress-svg {
    width: 120px;
    height: 120px;
  }

  .progress-circle-bg,
  .progress-circle-fill {
    r: 50;
    cx: 60;
    cy: 60;
  }

  .progress-text {
    width: 80px;
    height: 80px;
  }

  .progress-value {
    font-size: 28px;
  }

  .stat-label {
    text-align: center;
    font-size: 14px;
  }

  /* Hero Badges Mobile Improvements */
  .hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rating-badge,
  .stats-badge {
    position: static;
    /* Use static to stack naturally */
    transform: none;
    margin: 10px 0;
    width: 100%;
    max-width: 280px;
    /* Limit width for better look */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Contact Page Mobile Improvements */
  .contact-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-form-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .hero-form-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .hero-form-card {
    padding: 30px 20px;
  }

  .hero-modern-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }

  .hero-modern-input,
  .hero-modern-textarea {
    width: 100%;
  }

  .hero-modern-actions {
    justify-content: center;
    margin-top: 10px;
  }

  .hero-modern-button {
    width: 100%;
    margin-right: 0;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }

  .contact-info-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 15px;
  }

  .highlight-content.highlight-center-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .highlight-panel-left,
  .highlight-panel-right {
    order: unset;
  }

  .highlight-image-center {
    order: -1;
    /* Show image first or second depending on preference, here top */
    margin-bottom: 0;
  }

  .highlight-panel {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .highlight-panel-left {
    text-align: center;
    align-items: center;
  }

  .panel-icon {
    margin-bottom: 15px;
  }

  .highlight-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .list-icon {
    margin-bottom: 10px;
  }

  /* Article Page Mobile Improvements */
  .article-hero {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .article-title {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .article-subtitle {
    font-size: 13px;
    margin-bottom: 25px;
  }

  .article-hero-image {
    max-width: 100%;
    margin-top: 20px;
  }

  .article-content-section {
    padding: 40px 0;
  }

  .article-content {
    padding: 25px 15px;
  }

  .article-content p {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 20px;
  }

  .article-image-wrapper {
    margin: 25px 0;
  }

  /* Services Page Mobile Improvements */
  .services-hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .services-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    max-width: 100%;
  }

  .grid-large,
  .grid-small-1,
  .grid-small-2,
  .grid-small-3,
  .grid-small-4,
  .grid-small-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .services-hero-text {
    padding-right: 0;
    text-align: right;
  }

  .services-title {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: right;
  }

  .services-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
    text-align: right;
  }

  .services-cta-btn {
    width: 100%;
    margin-bottom: 25px;
  }

  .services-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-badge {
    justify-content: flex-start;
    font-size: 12px;
    text-align: right;
  }

  .services-features-list {
    margin-top: 20px;
  }

  .services-features-list li {
    justify-content: center;
  }

  .services-description {
    padding: 50px 0;
  }

  .services-features-section {
    padding: 50px 0;
  }

  .features-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 15px;
  }

  .feature-text h4 {
    font-size: 16px;
  }

  .feature-text p {
    font-size: 13px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .cta-description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons button {
    width: 100%;
  }

  /* Gallery Page Mobile */
  .gallery-page {
    padding: 80px 0 50px;
  }

  .gallery-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .gallery-main {
    order: 1;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 12px 16px;
  }

  .pagination a.page-numbers,
  .pagination span.page-numbers {
    min-width: 38px;
    min-height: 38px;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .pagination-btn {
    min-width: 35px;
    height: 35px;
    font-size: 13px;
  }

  .related-articles-widget {
    display: none;
  }

}

/* SVG Gradient Definition */
svg defs {
  display: none;
}
























/* New Design For HD and Full HD */

/* کانتینر اصلی گرید */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* ۳ ستون با عرض مساوی */
  grid-template-rows: 200px 250px 200px;
  /* ارتفاع سطرها (قابل تنظیم) */
  gap: 15px;
  /* فاصله بین عکس‌ها */
  max-width: 1200px;
  background: radial-gradient(circle at 50% 10%,
      rgba(0, 65, 169, 0.354) 5%,
      transparent 80%);
}


/* استایل کلی عکس‌ها */
.gallery-item {
  border-radius: 15px;
  /* گرد کردن گوشه‌ها */
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(96, 255, 242, 0.42);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* باعث می‌شود عکس دفرمه نشود و قاب را پر کند */
  transition: transform 0.3s ease;
}

/* افکت هاور (اختیاری) */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- تنظیمات اختصاصی برای چیدمان نامنظم (مشابه عکس شما) --- */

/* عکس ۱: بالا چپ (آبی بزرگ) */
.item-1 {
  grid-column: 1;
  grid-row: 1 / span 2;
  /* دو سطر فضا می‌گیرد */
}

/* عکس ۲: بالا وسط (پروفایل باریک) */
.item-2 {
  grid-column: 2;
  grid-row: 1;
  /* ارتفاع کوتاه */
}

/* عکس ۳: بالا راست (قهوه‌ای) */
.item-3 {
  grid-column: 3;
  grid-row: 1;
}

/* عکس ۴: پایین چپ (قرمز) */
.item-4 {
  grid-column: 1;
  grid-row: 3;
}

/* عکس ۵: وسط (صورت) */
.item-5 {
  grid-column: 2;
  grid-row: 2 / span 2;
  /* ارتفاع بلندتر در وسط */
}

/* عکس ۶: راست (ابرو) */
.item-6 {
  grid-column: 3;
  grid-row: 2 / span 2;
  /* ارتفاع بلند در سمت راست */
}

/* --- ریسپانسیو برای موبایل --- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    /* در موبایل تک ستونه شود */
    grid-template-rows: auto;
  }

  .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 300px;
    /* ارتفاع ثابت در موبایل */
  }
}

/* --- HD (1280px تا 1919px) --- */
@media (min-width: 1366px) and (max-width: 1919px) {
  body {
    overflow-x: hidden;
  }

  .eyes-wrapper {
    display: none;
  }

  .gallery-grid {
    display: grid;
    max-width: 600px;
    grid-template-rows: 130px 160px 130px;
    gap: 10px;
    margin: 1% auto 0 2%;
    /* چپ چین با فاصله */
  }

  .services-hero-text-section {
    position: absolute;
    top: 150px;
    right: 2%;
    width: 45%;
    padding: 0;
    text-align: right;
  }

  .services-hero-text-content {
    margin: 0;
    max-width: 100%;
  }
}

/* --- Full HD (1920px و بالاتر) --- */
@media (min-width: 1920px) {
  body {
    overflow-x: hidden;
  }

  .eyes-wrapper {
    display: none;
  }

  .gallery-grid {
    display: grid;
    max-width: 700px;
    grid-template-rows: 150px 190px 150px;
    gap: 12px;
    margin: 2% auto 0 5%;
    /* چپ چین با فاصله */
  }

  .services-hero-text-section {
    position: absolute;
    top: 250px;
    right: 15%;
    width: 40%;
    padding: 0;
    text-align: right;
  }

  .services-hero-text-content {
    margin-top: 0;
    max-width: 100%;
  }
}

/* --- My Screen --- */
/* --- My Screen (Default/Laptop < 1366px) --- */
@media (max-width: 1365px) {
  .gallery-grid {
    display: none;
  }

  .eyes-wrapper {
    display: flex;
  }
}