/* علی حور — تم زنده، پس‌زمینه‌های متنوع، رنگ و افکت شبیه قالب‌های وردپرس */

:root {
  --ah-primary: #0d9488;
  --ah-primary-hover: #0f766e;
  --ah-primary-light: rgba(13, 148, 136, 0.08);
  --ah-accent: #ea580c;
  --ah-accent-light: rgba(234, 88, 12, 0.08);
  --ah-text: #1e293b;
  --ah-text-muted: #64748b;
  --ah-bg-1: #ffffff;
  --ah-bg-2: #f8fafc;
  --ah-bg-3: #f0fdfa;
  --ah-bg-4: #fffbeb;
  --ah-bg-5: #f1f5f9;
  --ah-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --ah-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --ah-radius: 12px;
  --ah-radius-lg: 16px;
}

html {
  touch-action: manipulation;
}
body {
  font-family: 'Vazirmatn', 'Tahoma', 'Segoe UI', sans-serif;
  color: var(--ah-text);
  background: var(--ah-bg-2);
}

/* ورودی‌ها: فقط border سبز در focus/hover، بدون box-shadow */
.form-control:hover,
.form-control:focus {
  border-color: var(--ah-primary);
  box-shadow: none;
}

/* هدر ثابت: محتوای صفحات دیگر زیر منو نرود؛ هیرو با margin منفی زیر منو می‌رود */
.site-main {
  padding-top: 72px;
}

/* ---------- پس‌زمینه‌های سکشن (تنوع مثل قالب وردپرس) ---------- */
.section-bg-1 { background: var(--ah-bg-1); }
.section-bg-2 { background: var(--ah-bg-2); }
.section-bg-3 { background: var(--ah-bg-3); }
.section-bg-4 { background: var(--ah-bg-4); }

/* بخش خدمات: پس‌زمینه سفید */
.section-services {
  background: #fff !important;
}

/* فاصله اسکرول برای دیده شدن عنوان سکشن زیر منوی ثابت */
.site-main section[id],
.site-main > section {
  scroll-margin-top: 5.5rem;
}
.section-bg-5 { background: var(--ah-bg-5); }

/* ---------- هیرو تمام‌صفحه: پس‌زمینه کل صفحه، متن وسط ---------- */
.hero-section.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: -72px;
  padding: calc(5rem + 72px) 0 5rem;
  box-sizing: border-box;
}
.hero-section-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform: translateY(0); /* بلوک متن ۲۰۰px بالاتر تا روی تصویر نیفتد */
}

/* هیرو (بدون تصویر): گرادینت زنده */
.hero-section.hero-default {
  background: linear-gradient(135deg, var(--ah-bg-3) 0%, var(--ah-bg-2) 50%, #e0f2fe 100%);
  overflow: hidden;
}
.hero-section.hero-default::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, var(--ah-primary-light) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section.hero-default .container {
  position: relative;
  z-index: 1;
}
.hero-section.hero-default h1 {
  color: var(--ah-text) !important;
}
.hero-section.hero-default .lead {
  color: var(--ah-text-muted) !important;
}

/* هیرو با تصویر پس‌زمینه */
.hero-section.hero-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-section.hero-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 0;
}
.hero-section.hero-with-bg .hero-section-inner,
.hero-section.hero-with-bg .container {
  position: relative;
  z-index: 1;
}
.hero-section.hero-with-bg h1,
.hero-section.hero-with-bg .lead,
.hero-section.hero-with-bg .btn {
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.hero-section.hero-with-bg h1 { color: #fff !important; }
.hero-section.hero-with-bg .lead { color: rgba(255,255,255,0.95) !important; }

/* فلش‌های پایین هیرو — سفید، انیمیشن حرکت به پایین، کلیک = اسکرول به بخش بعد */
.hero-scroll-down {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: #fff;
  text-decoration: none;
  z-index: 2;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.hero-scroll-down:hover {
  color: #fff;
  opacity: 0.85;
}
.hero-scroll-down-icon {
  display: block;
  font-size: 1.25rem;
  color: inherit;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
.hero-scroll-down-icon:nth-child(1) { animation-delay: 0s; }
.hero-scroll-down-icon:nth-child(2) { animation-delay: 0.2s; }
.hero-scroll-down-icon:nth-child(3) { animation-delay: 0.4s; }
@keyframes hero-scroll-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(6px); opacity: 0.7; }
}

/* ---------- دکمه‌ها با سایه و افکت ---------- */
.btn-primary {
  background: var(--ah-primary);
  border-color: var(--ah-primary);
  box-shadow: var(--ah-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover {
  background: var(--ah-primary-hover);
  border-color: var(--ah-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--ah-shadow-lg);
}
.btn-outline-primary {
  color: var(--ah-primary);
  border-color: var(--ah-primary);
  transition: all 0.2s ease;
}
.btn-outline-primary:hover {
  background: var(--ah-primary);
  border-color: var(--ah-primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-dark:hover {
  transform: translateY(-1px);
}

/* ---------- شیشه شفاف iOS 26: پس‌زمینه خیلی پیدا (شفاف‌تر) ---------- */
.hero-section .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.hero-section .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: inset 0 6px 20px rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
}
.hero-section .btn::after {
  content: "";
  position: absolute;
  top: -12%;
  left: -10%;
  width: 40%;
  height: 35%;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(255, 255, 255, 0.6) 0%, transparent 65%);
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.hero-section .btn-primary {
  color: var(--ah-text) !important;
}
.hero-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ah-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hero-section .btn:active {
  transform: scale(0.98);
}
.hero-section .btn-outline-dark {
  color: var(--ah-text) !important;
  border-color: rgba(255, 255, 255, 0.15);
}
.hero-section .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ah-text) !important;
}
.hero-section.hero-with-bg .btn {
  background: rgba(255, 255, 255, 0.025) !important;
  border-color: rgba(255, 255, 255, 0.14);
}
.hero-section.hero-with-bg .btn-primary,
.hero-section.hero-with-bg .btn-outline-dark {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero-section.hero-with-bg .btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

/* دکمه ثبت‌نام در هدر — وقتی اسکرول نشده مثل دکمه‌های هیرو (شیشه‌ای) */
.site-header .site-auth-register {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.site-header .site-auth-register::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: inset 0 6px 20px rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
}
.site-header .site-auth-register::after {
  content: "";
  position: absolute;
  top: -12%;
  left: -10%;
  width: 40%;
  height: 35%;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(255, 255, 255, 0.6) 0%, transparent 65%);
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.site-header .site-auth-register:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.site-header .site-auth-register:active {
  transform: scale(0.98);
}
/* بعد از اسکرول: دکمه ثبت‌نام مثل قبل — پس‌زمینه روشن، هاور سبز */
.site-header.scrolled .site-auth-register {
  background: var(--ah-primary) !important;
  color: #fff !important;
  border: 1px solid var(--ah-primary) !important;
  box-shadow: 0 1px 4px rgba(13, 148, 136, 0.25);
  backdrop-filter: none;
}
.site-header.scrolled .site-auth-register::before,
.site-header.scrolled .site-auth-register::after {
  display: none;
}
.site-header.scrolled .site-auth-register:hover {
  background: var(--ah-primary-hover) !important;
  color: #fff !important;
  border-color: var(--ah-primary-hover) !important;
}

/* ---------- عنوان سکشن با خط تزئینی ---------- */
.section-title {
  font-weight: 700;
  color: var(--ah-text);
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--ah-primary), var(--ah-accent));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ---------- کارت فیچر با هاور و رنگ ---------- */
.card-feature {
  border: 0;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: var(--ah-bg-1);
}
.card-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--ah-shadow-lg);
}
.card-feature .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ah-primary-light);
  color: var(--ah-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.card-feature:hover .card-icon {
  background: var(--ah-primary);
  color: #fff;
}

/* ---------- کارت خدمات با هاور و تصویر ---------- */
.card-service {
  border: 0;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: var(--ah-bg-1);
}
.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--ah-shadow-lg);
}
.card-service .card-img-top {
  transition: transform 0.4s ease;
}
.card-service:hover .card-img-top {
  transform: scale(1.05);
}
/* کارت به‌صورت لینک به صفحه خدمت — بدون استایل پیش‌فرض لینک */
.card-service-link {
  color: inherit;
}
.card-service-link:hover {
  color: inherit;
}
/* لینک «مشاهده بیشتر» داخل کارت */
.service-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ah-primary);
  transition: color 0.2s ease, gap 0.2s ease;
}
.card-service-link:hover .service-more-link {
  color: var(--ah-primary-hover);
}
.service-more-link::after {
  content: "\f284";
  font-family: "bootstrap-icons";
  font-size: 0.85rem;
}
.card-service-link:hover .service-more-link::after {
  transform: translateX(-2px);
}
.card-img-top.object-fit-cover {
  object-fit: cover;
}

/* کارت خدمات در اسلایدر: ناحیه تصویر مربع (۱:۱) تا تصاویر مربع آپلودشده کامل نمایش داده شوند */
.card-service-slider .card-service-img-wrap {
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  background: var(--ah-bg-5);
}
.card-service-slider .card-service-img-wrap .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-service-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--ah-bg-5);
}

/* شماره خدمات: دایره بین تصویر و عنوان — سبز، بولد، بوردر ۳px */
.card-service-number-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.card-service-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid var(--ah-primary);
  background: #fff;
  color: var(--ah-primary);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* اسلایدر خدمات — یک بخش، سه کارت در هر نما */
.services-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.services-slider {
  flex: 1;
  overflow: hidden;
  margin: 0 -0.25rem;
}
.services-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  direction: rtl;
}
.services-slider-track::-webkit-scrollbar {
  display: none;
}
/* عرض کارت طوری که در هر نما فقط ۳ کارت دیده شود (با فاصله بین آن‌ها) */
.services-slider-item {
  flex: 0 0 360px;
  scroll-snap-align: start;
}
.services-slider-item .card { min-width: 0; }
.services-slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ah-primary);
  background: #fff;
  color: var(--ah-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.services-slider-btn:hover {
  background: var(--ah-primary);
  color: #fff;
}
.services-slider-btn .bi { font-size: 1.25rem; position: relative; top:2px;}

@media (max-width: 991.98px) {
  .services-slider-item { flex: 0 0 300px; }
}
@media (max-width: 575.98px) {
  .services-slider-item { flex: 0 0 260px; }
}

/* ---------- آمار با پس‌زمینه رنگی و عدد برجسته (هم‌خون: عنوان بالا، عدد/متن پایین) ---------- */
.section-stats {
  background: linear-gradient(135deg, var(--ah-primary) 0%, var(--ah-primary-hover) 100%);
  color: #fff;
}
.section-stats .stat-item {
  padding: 0.5rem 0;
}
.section-stats .stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.section-stats .stat-value-wrap {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.section-stats .stat-value-wrap.stat-value-static {
  font-size: 1.5rem;
  font-weight: 700;
}
.section-stats .stat-prefix,
.section-stats .stat-suffix {
  font-weight: 700;
  font-size: inherit;
}
.section-stats .text-muted {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.9rem;
}

/* ---------- سوالات متداول: گرادینت مثل هیرو (بدون تصویر) ---------- */
.section-faq {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ah-bg-3) 0%, var(--ah-bg-2) 50%, #e0f2fe 100%) !important;
}
.section-faq::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, var(--ah-primary-light) 0%, transparent 70%);
  pointer-events: none;
}
.section-faq .container {
  position: relative;
  z-index: 1;
}

.accordion-faq .accordion-item {
  border: 0;
  border-radius: var(--ah-radius) !important;
  margin-bottom: 0.5rem;
  box-shadow: var(--ah-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.accordion-faq .accordion-item:hover {
  box-shadow: var(--ah-shadow-lg);
}
.accordion-faq .accordion-button {
  font-weight: 600;
  color: var(--ah-text);
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.accordion-faq .accordion-button:not(.collapsed) {
  background: rgba(13, 148, 136, 0.08);
  color: var(--ah-primary);
  box-shadow: none;
}
.accordion-faq .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.accordion-faq .accordion-body {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  padding-inline: 1.25rem;
  background: #fff;
  border-top: 1px solid rgba(13, 148, 136, 0.08);
}

/* ---------- منو: در حالت هیرو (صفحهٔ اول، بالای صفحه) همان استایل شیشه‌ای هیرو؛ با اسکرول یا در صفحات داخلی سفید می‌شود ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  isolation: isolate;
  overflow: visible;
  /* همان شیشهٔ دکمه‌های هیرو: پس‌زمینه شفاف + بلور */
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  box-shadow: inset 0 6px 20px rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
}
.site-header::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -5%;
  width: 35%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(255, 255, 255, 0.6) 0%, transparent 65%);
  filter: blur(12px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.site-header .navbar {
  position: relative;
  z-index: 1;
}
.site-header.scrolled {
  background: #fff !important;
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--ah-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.scrolled::before,
.site-header.scrolled::after {
  display: none;
}

/* وقتی اسکرول نشده: متن منو سفید */
.site-header .site-brand {
  color: #fff !important;
}
.site-header .site-brand:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}
.site-header .site-nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}
.site-header .site-nav-link:hover,
.site-header .site-nav-link:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}
.site-header .site-nav-link::after {
  background: #fff;
}
.site-header .site-auth-link {
  color: rgba(255, 255, 255, 0.9) !important;
}
.site-header .site-auth-link:hover {
  color: #fff !important;
}
/* رنگ/حاشیه سفید برای دکمه ثبت‌نام در حالت بدون اسکرول در بلوک بالا (شیشه‌ای) تعریف شده */
.site-header .site-header-auth {
  border-inline-start-color: rgba(255, 255, 255, 0.25);
}
.site-header .site-toggler .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}
.site-header .site-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* بعد از اسکرول: برگشت به رنگ قبلی (تیره) */
.site-header.scrolled .site-brand {
  color: var(--ah-text) !important;
}
.site-header.scrolled .site-brand:hover {
  color: var(--ah-primary) !important;
}
.site-header.scrolled .site-nav-link {
  color: var(--ah-text-muted) !important;
}
.site-header.scrolled .site-nav-link:hover,
.site-header.scrolled .site-nav-link:focus-visible {
  color: var(--ah-primary) !important;
  background: var(--ah-primary-light);
}
.site-header.scrolled .site-nav-link::after {
  background: var(--ah-primary);
}
.site-header.scrolled .site-auth-link {
  color: var(--ah-text-muted) !important;
}
.site-header.scrolled .site-auth-link:hover {
  color: var(--ah-primary) !important;
}
.site-header.scrolled .site-auth-register {
  color: #fff !important;
  border-color: var(--ah-primary) !important;
}
.site-header.scrolled .site-auth-register:hover {
  color: #fff !important;
  background: var(--ah-primary-hover) !important;
  border-color: var(--ah-primary-hover) !important;
}
.site-header.scrolled .site-header-auth {
  border-inline-start-color: rgba(0, 0, 0, 0.08);
}
.site-header.scrolled .site-toggler .navbar-toggler-icon {
  filter: none;
}
.site-header.scrolled .site-toggler:hover {
  background: var(--ah-primary-light);
}

@media (min-width: 992px) {
  .mobile-menu-overlay {
    display: none !important;
  }
  .site-header .navbar-toggler .mobile-menu-icon {
    display: none !important;
  }
}

.site-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-brand:hover {
  transform: translateY(-1px);
}
.site-nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav-link::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  left: 0.75rem;
  bottom: 0.4rem;
  height: 2px;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.site-nav-link:hover::after,
.site-nav-link:focus-visible::after {
  transform: scaleX(1);
}
.site-toggler {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.site-toggler:focus {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.25);
}

/* دراپ‌داون خدمات، وبلاگ و درباره من در منوی دسکتاپ — فلش به پایین، هاور = نمایش لیست */
.site-nav-services-dropdown .dropdown-toggle::after,
.site-nav-blog-dropdown .dropdown-toggle::after,
.site-nav-about-dropdown .dropdown-toggle::after {
  display: none;
}
.site-nav-services-dropdown button.nav-link,
.site-nav-blog-dropdown button.nav-link,
.site-nav-about-dropdown button.nav-link {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.site-nav-chevron {
  font-size: 0.7em;
  opacity: 0.9;
  transition: transform 0.2s ease;
}
.site-nav-services-dropdown,
.site-nav-blog-dropdown,
.site-nav-about-dropdown {
  position: relative;
}
.site-nav-services-dropdown .dropdown-menu,
.site-nav-blog-dropdown .dropdown-menu,
.site-nav-about-dropdown .dropdown-menu {
  margin-top: 0.25rem;
  padding: 0.35rem 0;
  min-width: 12rem;
  border-radius: var(--ah-radius);
  z-index: 1050;
  position: absolute;
  left: auto;
  right: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
/* حالت هیرو: دراپ‌داون همان ظاهر شیشه‌ای منو */
.site-header:not(.scrolled) .site-nav-services-dropdown .dropdown-menu,
.site-header:not(.scrolled) .site-nav-blog-dropdown .dropdown-menu,
.site-header:not(.scrolled) .site-nav-about-dropdown .dropdown-menu {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.site-header:not(.scrolled) .site-nav-services-dropdown .dropdown-item,
.site-header:not(.scrolled) .site-nav-blog-dropdown .dropdown-item,
.site-header:not(.scrolled) .site-nav-about-dropdown .dropdown-item {
  color: rgba(255, 255, 255, 0.95);
}
.site-header:not(.scrolled) .site-nav-services-dropdown .dropdown-item:hover,
.site-header:not(.scrolled) .site-nav-blog-dropdown .dropdown-item:hover,
.site-header:not(.scrolled) .site-nav-about-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.site-header:not(.scrolled) .site-nav-services-dropdown .dropdown-divider,
.site-header:not(.scrolled) .site-nav-blog-dropdown .dropdown-divider,
.site-header:not(.scrolled) .site-nav-about-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.2);
}
/* حالت اسکرول/صفحات داخلی: دراپ‌داون سفید مثل منو */
.site-header.scrolled .site-nav-services-dropdown .dropdown-menu,
.site-header.scrolled .site-nav-blog-dropdown .dropdown-menu,
.site-header.scrolled .site-nav-about-dropdown .dropdown-menu {
  background: #fff !important;
  box-shadow: var(--ah-shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header.scrolled .site-nav-services-dropdown .dropdown-item,
.site-header.scrolled .site-nav-blog-dropdown .dropdown-item,
.site-header.scrolled .site-nav-about-dropdown .dropdown-item {
  color: var(--ah-text);
}
.site-header.scrolled .site-nav-services-dropdown .dropdown-item:hover,
.site-header.scrolled .site-nav-blog-dropdown .dropdown-item:hover,
.site-header.scrolled .site-nav-about-dropdown .dropdown-item:hover {
  background: var(--ah-primary-light);
  color: var(--ah-primary);
}
.site-nav-services-dropdown .dropdown-item,
.site-nav-blog-dropdown .dropdown-item,
.site-nav-about-dropdown .dropdown-item {
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.site-nav-services-dropdown .dropdown-divider,
.site-nav-blog-dropdown .dropdown-divider,
.site-nav-about-dropdown .dropdown-divider {
  margin: 0.35rem 0;
}
@media (min-width: 992px) {
  .site-nav-services-dropdown:hover .dropdown-menu,
  .site-nav-blog-dropdown:hover .dropdown-menu,
  .site-nav-about-dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* بخش ورود و ثبت‌نام مشتریان در هدر */
.site-header-auth {
  border-inline-start: 1px solid rgba(0, 0, 0, 0.08);
  padding-inline-start: 1rem;
  margin-inline-start: 0.25rem;
}
@media (max-width: 991.98px) {
  .site-header .navbar {
    z-index: 1031;
  }
  .site-header .navbar-toggler.mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1032;
    background: rgba(0, 0, 0, 0.08);
  }
  .site-header.scrolled .navbar-toggler.mobile-menu-btn {
    background: var(--ah-primary-light);
  }
  .site-header .site-toggler .navbar-toggler-icon {
    display: none !important;
  }
  .site-header .site-toggler .mobile-menu-icon {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 20px;
    gap: 5px;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .site-header .site-toggler .mobile-menu-icon span {
    display: block !important;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .site-header .site-toggler .mobile-menu-icon {
    color: #1e293b;
  }
  .site-header.scrolled .site-toggler .mobile-menu-icon {
    color: var(--ah-text);
  }
  body.mobile-menu-open .site-header .site-toggler .mobile-menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    transform-origin: center center;
  }
  body.mobile-menu-open .site-header .site-toggler .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0);
    width: 0;
    min-width: 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  body.mobile-menu-open .site-header .site-toggler .mobile-menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    transform-origin: center center;
  }

  /* منوی موبایل: overlay خارج از هدر است؛ z-index بالاتر از پلیر (1060) تا روی همه چیز نمایش داده شود */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
  }
  .mobile-menu-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
  }
  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-overlay.is-open .mobile-menu-backdrop {
    opacity: 1;
  }
  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    padding: 5rem 1.5rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .mobile-menu-overlay.is-open .mobile-menu-panel {
    transform: translateX(0);
  }
  .mobile-menu-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--ah-radius);
    background: rgba(0, 0, 0, 0.06);
    color: var(--ah-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
  }
  .mobile-menu-close-btn:hover,
  .mobile-menu-close-btn:focus-visible {
    background: var(--ah-primary-light);
    color: var(--ah-primary);
  }
  .mobile-menu-close-btn .bi {
    font-size: 1.35rem;
  }
  .mobile-menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .mobile-menu-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--ah-text);
    text-decoration: none;
    border-radius: var(--ah-radius);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .mobile-menu-nav a:hover,
  .mobile-menu-nav a:focus-visible {
    background: var(--ah-primary-light);
    color: var(--ah-primary);
  }
  .mobile-menu-services-item,
  .mobile-menu-blog-item,
  .mobile-menu-about-item {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mobile-menu-services-trigger,
  .mobile-menu-blog-trigger,
  .mobile-menu-about-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--ah-text);
    background: none;
    border: none;
    font-size: inherit;
    font-weight: 500;
    text-align: right;
    cursor: pointer;
    border-radius: var(--ah-radius);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .mobile-menu-services-trigger:hover,
  .mobile-menu-services-trigger:focus-visible,
  .mobile-menu-blog-trigger:hover,
  .mobile-menu-blog-trigger:focus-visible,
  .mobile-menu-about-trigger:hover,
  .mobile-menu-about-trigger:focus-visible {
    background: var(--ah-primary-light);
    color: var(--ah-primary);
  }
  .mobile-menu-chevron {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
  }
  .mobile-menu-services-trigger[aria-expanded="true"] .mobile-menu-chevron,
  .mobile-menu-blog-trigger[aria-expanded="true"] .mobile-menu-chevron,
  .mobile-menu-about-trigger[aria-expanded="true"] .mobile-menu-chevron {
    transform: rotate(180deg);
  }
  .mobile-menu-services-list,
  .mobile-menu-blog-list,
  .mobile-menu-about-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    border-right: 2px solid var(--ah-primary-light);
  }
  .mobile-menu-services-list li,
  .mobile-menu-blog-list li,
  .mobile-menu-about-list li {
    margin: 0;
  }
  .mobile-menu-services-list a,
  .mobile-menu-blog-list a,
  .mobile-menu-about-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: var(--ah-text-muted);
  }
  .mobile-menu-services-list a:hover,
  .mobile-menu-services-list a:focus-visible,
  .mobile-menu-blog-list a:hover,
  .mobile-menu-blog-list a:focus-visible,
  .mobile-menu-about-list a:hover,
  .mobile-menu-about-list a:focus-visible {
    color: var(--ah-primary);
  }
  .mobile-menu-auth {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .mobile-menu-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ah-radius);
    border: 2px solid rgba(20, 184, 166, 0.35);
    background: rgba(20, 184, 166, 0.12);
    color: #0d7377;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    min-height: 48px;
  }
  .mobile-menu-auth-link:hover,
  .mobile-menu-auth-link:focus-visible {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.5);
    color: #0f5f62;
  }
  .mobile-menu-auth-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ah-radius);
    min-height: 48px;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .mobile-menu-auth-register:hover,
  .mobile-menu-auth-register:focus-visible {
    background: var(--ah-primary-hover);
    color: #fff;
  }

  .site-header-auth {
    border-inline-start: none !important;
    padding-inline-start: 0;
    margin-inline-start: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .site-header .site-header-auth {
    border-top-color: rgba(255, 255, 255, 0.2);
  }
  .site-header.scrolled .site-header-auth {
    border-top-color: rgba(0, 0, 0, 0.06);
  }
}
.site-auth-register {
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
/* دکمهٔ سبز یکسان در کل سایت (خارج از هدر): همان ظاهر و هاور */
body .site-auth-register.btn-primary {
  border-radius: var(--ah-radius);
}
body .site-auth-register.btn-primary:hover {
  background: var(--ah-primary-hover) !important;
  border-color: var(--ah-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--ah-shadow-lg);
}
.site-auth-link .bi,
.site-auth-register .bi {
  font-size: 1.05em;
  opacity: 0.95;
}
.site-auth-register .bi {
  font-size: 1.1em;
}

/* ---------- فوتر با گرادینت تیره — طراحی کاربردی و منظم ---------- */
.site-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9375rem;
}
.site-footer a {
  color: #cbd5e1;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.site-footer a:hover {
  color: #fff;
}

.site-footer__main { }
.site-footer__brand { }
.site-footer__brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}
.site-footer__brand-tagline {
  display: block;
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.site-footer__label {
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.site-footer__links a {
  text-decoration: none;
  color: #cbd5e1;
}
.site-footer__links a:hover {
  color: #fff;
}
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 0.35rem;
}
.site-footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #cbd5e1;
}
.site-footer__contact-item i {
  color: #94a3b8;
  font-size: 0.9em;
}
.site-footer__contact-item:hover {
  color: #fff;
}
.site-footer__contact-item:hover i {
  color: #e2e8f0;
}
.site-footer__social {
  display: flex;
  gap: 0.75rem;
}
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  padding-top : 4px;
}
.site-footer__social-link:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.site-footer__social-link i {
  font-size: 1.1rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0;
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  text-align: center;
}
.site-footer__copyright {
  color: #94a3b8;
  font-size: 0.8125rem;
}
.site-footer__enamad {
  display: inline-block;
  line-height: 0;
}
.site-footer__enamad img {
  display: block;
  width: auto;
}

@media (max-width: 991.98px) {
  .site-footer__main .row > div {
    text-align: center;
  }
  .site-footer__links {
    justify-content: center;
  }
  .site-footer__contact {
    align-items: center;
  }
  .site-footer__social {
    justify-content: center;
  }
  }

.site-footer .text-secondary {
  color: #94a3b8 !important;
}

/* ---------- Breadcrumb صفحه سرویس: صفحه اصلی / خدمات / عنوان خدمت ---------- */
.breadcrumb-wrap .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
.breadcrumb-wrap .breadcrumb-item {
  color: var(--ah-text-muted);
}
.breadcrumb-wrap .breadcrumb-item a {
  color: var(--ah-primary);
  text-decoration: none;
}
.breadcrumb-wrap .breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-wrap .breadcrumb-item.active {
  color: var(--ah-text);
  font-weight: 500;
}
.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before {
  content: " / ";
  color: var(--ah-text-muted);
  padding-inline: 0.35rem;
}

/* ---------- کارت جزئیات سرویس: ۱ قسمت تصویر، ۲ قسمت وسط، ۱ قسمت قیمت و CTA ---------- */
.service-detail-card {
  background: #fff;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow-lg);
  overflow: hidden;
}
.service-detail-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 260px;
}
/* نسبت ۱:۲:۱ — تصویر کوچک‌تر */
.service-detail-image-col {
  flex: 0 0 25%;
  max-width: 25%;
}
.service-detail-info-col {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-detail-price-col {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.06);
}
.service-detail-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  background: var(--ah-bg-5);
}
.service-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-detail-image-placeholder {
  min-height: 260px;
  background: var(--ah-bg-5);
}
.service-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ah-text);
  margin: 0 0 0.75rem 0;
  line-height: 1.35;
}
.service-detail-summary {
  color: var(--ah-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}
.service-detail-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* متن نمایشی قیمت (کوچک) */
.service-detail-price-description {
  font-size: 0.8125rem;
  color: var(--ah-text-muted);
  line-height: 1.45;
}
/* خود مبلغ — برجسته */
.service-detail-price-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ah-primary);
}
.service-detail-cta {
  display: inline-block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--ah-radius);
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.service-detail-cta:hover {
  background: var(--ah-primary-hover) !important;
  border-color: var(--ah-primary-hover) !important;
  transform: translateY(-1px);
}

/* ---------- لایه توضیحات: راست ۳ قسمت (مارک‌داون)، چپ ۱ قسمت (سایدبار چسبان با قیمت و CTA) ---------- */
.service-detail-content-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.service-detail-content-main {
  flex: 3 1 0;
  min-width: 0;
  min-height: 0;
}
.service-detail-video-wrap {
  margin-bottom: 1.5rem;
  border-radius: var(--ah-radius-lg);
  overflow: hidden;
}
.service-detail-video {
  width: 100%;
  max-width: 100%;
  border-radius: var(--ah-radius-lg);
  background: #000;
  display: block;
}
/* ---------- بخش نظرات کاربران ---------- */
.comments-section {
  background: #fff;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.comments-section .comments-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ah-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ah-primary);
}
.comments-form-wrap {
  background: var(--ah-bg-1);
  border-radius: var(--ah-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--ah-shadow);
  margin-bottom: 1.5rem;
}
.comments-form-wrap .form-label {
  font-weight: 600;
  color: var(--ah-text);
  margin-bottom: 0.5rem;
}
.comments-form-wrap textarea.form-control {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  resize: vertical;
  min-height: 80px;
}
.comments-form-wrap textarea.form-control:focus {
  border-color: var(--ah-primary);
  box-shadow: 0 0 0 3px var(--ah-primary-light);
}
.comments-submit-new {
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}
.comments-section .comments-login-prompt {
  background: var(--ah-bg-2);
  border-radius: var(--ah-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px dashed rgba(0, 0, 0, 0.12);
}
.comments-section .comments-login-prompt a {
  font-weight: 600;
  color: var(--ah-primary);
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.comment-item {
  background: var(--ah-bg-1);
  border-radius: var(--ah-radius);
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid rgba(0, 0, 0, 0.12);
  box-shadow: var(--ah-shadow);
  transition: box-shadow 0.2s ease;
  margin-bottom: 1rem;
}
.comment-item:hover {
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08);
}
.comment-item-admin {
  border-inline-start-color: var(--ah-primary);
  background: linear-gradient(to left, var(--ah-primary-light), var(--ah-bg-1));
}
.comment-meta .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.comment-meta .comment-date {
  color: var(--ah-text-muted);
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ah-text-muted);
}
.comment-meta .comment-author {
  font-weight: 600;
  color: var(--ah-text);
}
.comment-item .comment-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ah-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-edited-tag {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--ah-text-muted);
}
.comment-actions {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.comment-actions .btn-link,
.comment-actions .comment-edit-btn,
.comment-actions .comment-delete-btn {
  font-size: 0.8125rem !important;
  padding: 0.35rem 0.65rem !important;
  text-decoration: none !important;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.comment-actions .comment-edit-btn {
  color: var(--ah-primary) !important;
  border-color: var(--ah-primary);
  background: transparent;
}
.comment-actions .comment-edit-btn:hover {
  background: var(--ah-primary-light);
  color: var(--ah-primary-hover) !important;
}
.comment-actions .comment-delete-btn.text-danger,
.comment-actions .btn-link.text-danger {
  color: #b91c1c !important;
  border-color: rgba(185, 28, 28, 0.4);
  background: transparent;
}
.comment-actions .comment-delete-btn.text-danger:hover,
.comment-actions .btn-link.text-danger:hover {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b !important;
}
.comment-actions .btn-link:not(.text-danger):hover {
  background: var(--ah-bg-2);
}
.comment-reply-btn {
  font-size: 0.8125rem !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 8px;
  border: 1px solid var(--ah-primary);
  color: var(--ah-primary);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.comment-reply-btn:hover {
  background: var(--ah-primary-light);
  color: var(--ah-primary-hover);
}
.comment-replies {
  margin-top: 0.75rem;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid rgba(0, 0, 0, 0.08);
}
.comment-replies .comment-item {
  padding: 0.75rem 1rem;
}
.comment-reply-form {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--ah-bg-2);
  border-radius: 10px;
}
.comment-reply-form textarea {
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.comment-load-replies-btn {
  margin-top: 0.5rem;
  border-radius: 8px;
  font-size: 0.8125rem;
}
.comments-load-more-wrap {
  margin-top: 1rem;
}
.comments-load-more {
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
}
.comments-empty,
.comments-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ah-text-muted);
  background: var(--ah-bg-2);
  border-radius: var(--ah-radius);
}
.comments-form-error {
  margin-top: 0.5rem !important;
}
/* مودال‌های ویرایش و حذف نظر */
.comments-modal .modal-content {
  border-radius: var(--ah-radius-lg);
  overflow: hidden;
}
.comments-modal .modal-header .modal-title {
  color: var(--ah-text);
}
.comments-modal .comment-edit-modal-body,
.comments-modal textarea.form-control {
  border-radius: 10px;
  resize: vertical;
}
.comments-modal .btn-primary {
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
}
.comments-modal .btn-danger {
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
}
.comments-modal .btn-outline-secondary {
  border-radius: 10px;
}
.service-detail-content-main .service-content {
  background: #fff;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow-lg);
  padding: 1.75rem 2rem;
}
.service-detail-sidebar {
  flex: 1 0 260px;
  max-width: 320px;
  position: sticky;
  top: calc(72px + 1rem);
}
.service-detail-sidebar-inner {
  background: #fff;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* دیو ثابت زیر مارک‌داون (همان استایل قیمت + CTA) — فقط در موبایل؛ در دسکتاپ فقط سایدبار دیده می‌شود */
.service-detail-cta-bottom .service-detail-sidebar-inner {
  max-width: 320px;
}
@media (min-width: 992px) {
  .service-detail-cta-bottom {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .service-detail-row {
    flex-direction: column;
    min-height: 0;
  }
  .service-detail-image-col,
  .service-detail-info-col,
  .service-detail-price-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .service-detail-image-wrap,
  .service-detail-image-placeholder {
    min-height: 220px;
  }
  .service-detail-info-col,
  .service-detail-price-col {
    padding: 1.25rem 1.25rem;
  }
  .service-detail-price-col {
    border-inline-start: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .service-detail-title {
    font-size: 1.35rem;
  }
  /* سایدبار (قیمت + CTA) در موبایل ثابت به پایین صفحه */
  .service-detail-content-row {
    padding-bottom: 0.75rem;
  }
  .service-detail-sidebar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    z-index: 900;
    flex: none;
    width: 100% !important;
    max-width: none !important;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  }
  .service-detail-sidebar-inner {
    border-radius: var(--ah-radius-lg) var(--ah-radius-lg) 0 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
  }
  .service-detail-sidebar-inner .service-detail-price-block {
    flex: 1;
    min-width: 0;
  }
  .service-detail-sidebar-inner .service-detail-price-value {
    font-size: 1.15rem;
  }
  .service-detail-sidebar-inner .service-detail-cta {
    flex-shrink: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
  /* نوار CTA در موبایل: تا رسیدن به مارک‌داون مخفی؛ با رسیدن به فوتر مخفی می‌شود (تا روی فوتر نرود) */
  .service-detail-sidebar {
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .service-detail-sidebar.service-cta-bar-hidden {
    visibility: hidden !important;
    opacity: 0;
    transform: translateY(100%) !important;
    pointer-events: none;
  }
  /* دیو CTA زیر مارک‌داون در موبایل — همان ظاهر نوار؛ فاصله با مارک‌داون کم */
  .service-detail-cta-bottom {
    margin-top: 0.75rem;
  }
  .service-detail-cta-bottom .service-detail-sidebar-inner {
    max-width: none;
    border-radius: var(--ah-radius-lg);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
  }
  .service-detail-cta-bottom .service-detail-sidebar-inner .service-detail-price-block {
    flex: 1;
    min-width: 0;
  }
  .service-detail-cta-bottom .service-detail-sidebar-inner .service-detail-price-value {
    font-size: 1.15rem;
  }
  .service-detail-cta-bottom .service-detail-sidebar-inner .service-detail-cta {
    flex-shrink: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* وقتی نوار CTA موبایل نمایش داده می‌شود، دکمه برگشت به بالا بالای آن قرار بگیرد */
body.service-cta-bar-visible .back-to-top {
  bottom: 9rem;
}

@media (max-width: 575.98px) {
  .service-detail-image-wrap,
  .service-detail-image-placeholder {
    min-height: 200px;
  }
  .service-detail-title {
    font-size: 1.2rem;
  }
  .service-detail-summary {
    font-size: 0.9375rem;
  }
  .service-detail-sidebar-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .service-detail-sidebar-inner .service-detail-cta {
    width: 100%;
  }
  .service-detail-content-main .service-content {
    padding: 1.25rem 1rem;
  }
  .breadcrumb-wrap .breadcrumb {
    font-size: 0.8125rem;
  }
}

/* محتوای صفحه خدمت (مارک‌داون) — استایل عنوان و زیرعنوان و متن */
.service-content.markdown-body {
  color: var(--ah-text);
  line-height: 1.75;
}
/* عنوان سطح ۱ (# در مارک‌داون) */
.service-content.markdown-body h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ah-text);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ah-primary);
  line-height: 1.35;
}
/* زیرعنوان سطح ۲ (## در مارک‌داون) */
.service-content.markdown-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ah-text);
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.4;
}
.service-content.markdown-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ah-text);
  margin: 1.25rem 0 0.5rem 0;
  line-height: 1.4;
}
.service-content.markdown-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ah-text-muted);
  margin: 1rem 0 0.5rem 0;
}
.service-content.markdown-body p {
  margin: 0 0 1rem 0;
  color: var(--ah-text);
}
.service-content.markdown-body ul,
.service-content.markdown-body ol {
  margin: 0 0 1rem 0;
  padding-inline-start: 1.5rem;
}
.service-content.markdown-body li {
  margin-bottom: 0.35rem;
}
.service-content.markdown-body a {
  color: var(--ah-primary);
  text-decoration: none;
}
.service-content.markdown-body a:hover {
  text-decoration: underline;
}
.service-content.markdown-body strong {
  font-weight: 700;
  color: var(--ah-text);
}
.service-content.markdown-body blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-inline-start: 4px solid var(--ah-primary);
  background: var(--ah-primary-light);
  border-radius: 0 var(--ah-radius) var(--ah-radius) 0;
  color: var(--ah-text-muted);
}
.service-content.markdown-body code {
  font-size: 0.9em;
  padding: 0.15rem 0.4rem;
  background: var(--ah-bg-5);
  border-radius: 6px;
  color: var(--ah-text);
}
.service-content.markdown-body pre {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--ah-bg-5);
  border-radius: var(--ah-radius);
  overflow-x: auto;
}
.service-content.markdown-body pre code {
  padding: 0;
  background: none;
}

/* کلاس‌های کمکی در مارک‌داون — با یک تگ HTML ساده در متن استفاده می‌شوند */
/* تیک سبز کنار متن (مثلاً «این خدمت برای … مناسب است») */
.service-content.markdown-body .md-tick {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.service-content.markdown-body .md-tick::before {
  content: "✓";
  color: var(--ah-primary);
  font-weight: 700;
  flex-shrink: 0;
}
/* متن قرمز/هشدار (مثلاً «مناسب یک‌سری از افراد نیست») */
.service-content.markdown-body .md-warn {
  color: #dc2626;
}
/* متن نارنجی/تأکید */
.service-content.markdown-body .md-highlight {
  color: var(--ah-accent);
  font-weight: 500;
}
/* بلوک با تیک سبز (برای یک پاراگراف کامل) */
.service-content.markdown-body .md-tick-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
}
.service-content.markdown-body .md-tick-block::before {
  content: "✓";
  color: var(--ah-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
/* بلوک با علامت هشدار قرمز */
.service-content.markdown-body .md-warn-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(220, 38, 38, 0.08);
  border-inline-start: 4px solid #dc2626;
  border-radius: 0 var(--ah-radius) var(--ah-radius) 0;
}
.service-content.markdown-body .md-warn-block::before {
  content: "!";
  color: #dc2626;
  font-weight: 700;
  flex-shrink: 0;
}

/* لیست موردبه‌مورد با تیک سبز (مثل - ولی به‌جای نقطه، تیک سبز کنار هر مورد) */
.service-content.markdown-body .md-tick-list ul {
  list-style: none;
  padding-inline-start: 0;
  margin: 0.5rem 0 1rem 0;
}
.service-content.markdown-body .md-tick-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.4rem;
}
.service-content.markdown-body .md-tick-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--ah-primary);
  font-weight: 700;
}

/* لیست موردبه‌مورد با علامت قرمز کنار هر مورد (متن خود مورد عادی، فقط علامت قرمز) */
.service-content.markdown-body .md-warn-list ul {
  list-style: none;
  padding-inline-start: 0;
  margin: 0.5rem 0 1rem 0;
}
.service-content.markdown-body .md-warn-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--ah-text);
}
.service-content.markdown-body .md-warn-list li::before {
  content: "✕";
  position: absolute;
  inset-inline-start: 0;
  color: #dc2626;
  font-weight: 700;
}

/* بخش‌های باز و بسته (آکاردئون) — مثل سوالات متداول یا فصول دوره */
.service-content.markdown-body .md-accordion {
  margin: 1.5rem 0;
}
.service-content.markdown-body .md-accordion details {
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--ah-radius);
  background: #fff;
  overflow: hidden;
}
.service-content.markdown-body .md-accordion details:last-child {
  margin-bottom: 0;
}
.service-content.markdown-body .md-accordion details[open] {
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
}
.service-content.markdown-body .md-accordion summary {
  padding: 0.85rem 1rem;
  padding-inline-start: 2.5rem;
  font-weight: 600;
  color: var(--ah-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
.service-content.markdown-body .md-accordion summary::-webkit-details-marker {
  display: none;
}
.service-content.markdown-body .md-accordion summary::before {
  content: "";
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: var(--ah-text-muted);
  margin-top: -2px;
  transition: transform 0.2s ease;
}
.service-content.markdown-body .md-accordion details[open] summary::before {
  margin-top: -5px;
  border-top-color: transparent;
  border-bottom-color: var(--ah-primary);
  transform: rotate(0deg);
}
.service-content.markdown-body .md-accordion summary:hover,
.service-content.markdown-body .md-accordion summary:focus-visible {
  background: var(--ah-primary-light);
  color: var(--ah-primary);
}
.service-content.markdown-body .md-accordion details[open] summary {
  color: var(--ah-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.service-content.markdown-body .md-accordion .md-accordion-body {
  padding: 1rem;
  padding-inline-start: 2.5rem;
}
.service-content.markdown-body .md-accordion .md-accordion-body h3,
.service-content.markdown-body .md-accordion .md-accordion-body h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}
.service-content.markdown-body .md-accordion .md-accordion-body h3:first-child,
.service-content.markdown-body .md-accordion .md-accordion-body h4:first-child {
  margin-top: 0;
}
.service-content.markdown-body .md-accordion .md-accordion-body p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--ah-text-muted);
}

/* ---------- دکمه برگشت به بالا (سمت راست پایین، فقط فلش بالا) ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-primary);
  color: #fff !important;
  border-radius: 50%;
  box-shadow: var(--ah-shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--ah-primary-hover);
  color: #fff !important;
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--ah-primary);
  outline-offset: 2px;
}
.back-to-top .bi {
  font-size: 1.35rem;
}

/* صفحه درباره من — دو ستون: راست مارک‌داون (کارت)، چپ تصویر + CTA (sticky) */
.about-page-row {
  align-items: stretch;
  overflow: visible;
}
.about-left-col {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
@media (min-width: 992px) {
  .about-page-row {
    align-items: stretch;
  }
  .about-cta-wrap {
    position: sticky;
    top: calc(72px + 1rem);
    flex-shrink: 0;
    align-self: flex-start;
  }
}
.about-cta-wrap {
  flex-shrink: 0;
}
/* عنوان سکشن در صفحه درباره من — هم‌سبک با عنوان مارک‌داون (بولد، خط فیروزه زیر) */
.about-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ah-text);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ah-primary);
  line-height: 1.35;
}

.about-card {
  background: #fff !important;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
  overflow: visible;
}
.about-card .card-body {
  background: #fff !important;
  border-radius: inherit;
}
.about-cta-wrap .service-detail-sidebar-inner {
  margin-bottom: 0;
}
.about-cta-wrap .about-cta-description {
  font-size: 0.95rem;
}
.about-cta-wrap .about-cta-description p:last-child {
  margin-bottom: 0;
}
/* در موبایل/تبلت CTA درباره‌من همان ظاهر دسکتاپ را داشته باشد (استایل‌های صفحه سرویس رویش اعمال نشود) */
@media (max-width: 991.98px) {
  .about-cta-wrap .service-detail-sidebar-inner {
    border-radius: var(--ah-radius-lg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ah-shadow);
    gap: 1rem;
  }
  .about-cta-wrap .service-detail-cta {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: inherit;
  }
}

/* صفحه تماس — دو ستون مثل درباره من: راست مارک‌داون (توضیحات)، چپ تصویر + اطلاعات تماس + CTA (sticky) */
.contact-page-row {
  align-items: stretch;
  overflow: visible;
}
.contact-left-col {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
@media (min-width: 992px) {
  .contact-page-row {
    align-items: stretch;
  }
  .contact-cta-wrap {
    position: sticky;
    top: calc(72px + 1rem);
    flex-shrink: 0;
    align-self: flex-start;
  }
}
.contact-cta-wrap {
  flex-shrink: 0;
}
/* کارت ورود / ثبت‌نام — هم‌خوان با contact-card */
.auth-card {
  background: #fff !important;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
  overflow: visible;
}
.auth-card .card-body {
  background: #fff !important;
  border-radius: inherit;
}
.auth-card .form-control,
.auth-card .phone-dial-trigger,
.auth-card .password-toggle {
  font-size: 1rem;
}

/* کارت چرخشی ورود / ثبت‌نام؛ overflow: visible تا دراپ‌داون پیش‌شماره بریده نشود */
.auth-flip-wrapper {
  perspective: 1000px;
  transition: height 0.4s ease;
  overflow: visible;
}
.auth-flip-inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.auth-flip-inner.flipped {
  transform: rotateY(180deg);
}
.auth-flip-front,
.auth-flip-back {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.auth-flip-front {
  transform: rotateY(0deg);
  z-index: 1;
}
.auth-flip-back {
  transform: rotateY(180deg);
  z-index: 0;
}
.auth-flip-inner.flipped .auth-flip-front {
  z-index: 0;
}
.auth-flip-inner.flipped .auth-flip-back {
  z-index: 1;
}
.auth-flip-link {
  cursor: pointer;
}
/* پیش‌شماره: سمت چپ (در RTL دومین المان)، دراپ‌داون با جستجو */
.phone-input-group > .form-control:first-child {
  border-left-radius: 0;
}
.phone-input-group .phone-dial-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  min-width: 4.5rem;
}
.phone-input-group .phone-dial-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 4.5rem;
  text-align: right;
  white-space: nowrap;
}
.phone-input-group .phone-dial-trigger .phone-dial-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* دراپ‌داون پیش‌شماره: باز شدن به سمت راست (در RTL دکمه چپ است؛ left:0 تا از کادر بیرون نزند) و z-index بالا تا زیر div نرود */
.phone-input-group .phone-dial-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  margin-top: 2px;
  width: 280px;
  max-height: 320px;
  background: var(--ah-bg-1);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--ah-radius);
  box-shadow: var(--ah-shadow-lg);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  padding: 8px;
  box-sizing: border-box;
}
.phone-input-group .phone-dial-search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0 0 8px 0;
}
.phone-input-group .phone-dial-options {
  overflow-y: auto;
  max-height: 260px;
  padding: 0;
  margin: 0 -4px 0 0;
}
/* هر گزینه: دو بلوک — پیش‌شماره سمت چپ (ستون ثابت)، پرچم+نام سمت راست؛ direction:rtl تا عدد چپ بیفتد */
.phone-input-group .phone-dial-option {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  gap: 0.75rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.phone-input-group .phone-dial-option-label {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.phone-input-group .phone-dial-option-code {
  flex-shrink: 0;
  width: 4ch;
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: left;
}
.phone-input-group .phone-dial-option:hover {
  background: var(--ah-primary-light);
}
.phone-input-group .phone-dial-option.hidden {
  display: none !important;
}
/* دکمه پیش‌شماره (فقط پرچم + پیش‌شماره): باکس کوچک، border هم‌رنگ input */
.phone-input-group .phone-dial-trigger {
  border-color: #ced4da;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
/* هاور/فوکوس دکمه پیش‌شماره: سبز مثل دکمه ورود منو (بدون tooltip ناخواسته) */
.phone-input-group .phone-dial-trigger:hover,
.phone-input-group .phone-dial-trigger:focus,
.phone-input-group .phone-dial-trigger:focus-visible {
  border-color: var(--ah-primary);
  background: var(--ah-primary);
  color: #fff;
  box-shadow: none;
  outline: none;
}
.phone-input-group .phone-dial-trigger:hover .phone-dial-trigger-text,
.phone-input-group .phone-dial-trigger:focus .phone-dial-trigger-text,
.phone-input-group .phone-dial-trigger:focus-visible .phone-dial-trigger-text {
  color: inherit;
}
.phone-input-group .phone-dial-trigger:hover .bi,
.phone-input-group .phone-dial-trigger:focus .bi,
.phone-input-group .phone-dial-trigger:focus-visible .bi {
  color: inherit;
}
.phone-input-group.has-invalid .form-control.is-invalid,
.phone-input-group.has-invalid .phone-dial-trigger {
  border-color: #dc3545;
}
.phone-input-group.has-invalid .form-control.is-invalid:focus,
.phone-input-group.has-invalid .phone-dial-trigger:focus {
  border-color: #dc3545;
  box-shadow: none;
}
/* خطای اعتبارسنجی: border قرمز برای فیلدهای دارای خطا (مثلاً صفحه مشاوره تلفنی) */
.form-control.is-invalid,
.form-control.border-danger {
  border-color: #dc3545 !important;
}
.form-control.is-invalid:focus,
.form-control.border-danger:focus {
  border-color: #dc3545;
  box-shadow: none;
}
/* دکمه نمایش رمز: هاور/فوکوس سبز مثل دکمه ورود منو (بدون tooltip ناخواسته) */
.password-input-group .password-toggle {
  flex-shrink: 0;
  border-color: #ced4da;
}
.password-input-group .password-toggle:hover,
.password-input-group .password-toggle:focus,
.password-input-group .password-toggle:focus-visible {
  border-color: var(--ah-primary);
  background: var(--ah-primary);
  color: #fff;
  box-shadow: none;
  outline: none;
}
.password-input-group .password-toggle:hover .bi,
.password-input-group .password-toggle:focus .bi,
.password-input-group .password-toggle:focus-visible .bi {
  color: inherit;
}
/* دکمه ورود با رمز عبور: سبز کم‌رنگ مثل دکمه ورود منوی موبایل */
.btn-auth-secondary {
  background: var(--ah-primary-light);
  color: var(--ah-primary);
  border: 1px solid rgba(13, 148, 136, 0.3);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-auth-secondary:hover,
.btn-auth-secondary:focus-visible {
  background: rgba(13, 148, 136, 0.15);
  color: var(--ah-primary-hover);
  border-color: var(--ah-primary);
}
/* ورود با کد OTP: ۶ باکس رقم — چپ به راست (اولین باکس چپ، ورود رقم از چپ به راست) */
.otp-inputs {
  direction: ltr;
  flex-direction: row;
}
.otp-inputs .otp-digit,
.otp-inputs .register-otp-digit {
  width: 2.75rem;
  max-width: 2.75rem;
  font-size: 1.25rem;
  padding: 0.5rem;
}
.contact-card {
  background: #fff !important;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
  overflow: visible;
}
.contact-card .card-body {
  background: #fff !important;
  border-radius: inherit;
}
.contact-info-card {
  background: #fff !important;
  border-radius: var(--ah-radius-lg);
}
.contact-cta-wrap .service-detail-sidebar-inner {
  margin-bottom: 0;
}
.contact-cta-wrap .contact-cta-description {
  font-size: 0.95rem;
}
.contact-cta-wrap .contact-cta-description p:last-child {
  margin-bottom: 0;
}
/* لینک شماره موبایل: هم‌رنگ بقیه متن، کمی بزرگ‌تر و بولد */
.contact-phone-link {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.05em;
}
.contact-phone-link:hover {
  color: var(--ah-primary) !important;
}
.contact-email-link {
  color: inherit !important;
  text-decoration: none !important;
}
.contact-email-link:hover {
  color: var(--ah-primary) !important;
}
@media (max-width: 991.98px) {
  .contact-cta-wrap .service-detail-sidebar-inner {
    border-radius: var(--ah-radius-lg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ah-shadow);
    gap: 1rem;
  }
  .contact-cta-wrap .service-detail-cta {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: inherit;
  }
}

/* ---------- وبلاگ: لیست و جزئیات (متمایز از کارت خدمات) ---------- */
.blog-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--ah-radius);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(13, 148, 136, 0.2);
}
.blog-card-body {
  line-height: 1.65;
}
.blog-card-meta {
  gap: 0.5rem;
  flex-wrap: wrap;
}
.blog-card-meta .bi {
  font-size: 0.95em;
  opacity: 0.85;
}
/* عنوان با بوردر سبز ۳px سمت راست — هم‌راستا با بوردر کارت */
.blog-card-title {
  border-right: 3px solid var(--ah-primary);
  padding-right: 0.75rem;
  margin-right: -1px; /* تا با لبهٔ کارت هم‌بیفتد */
  line-height: 1.45;
  min-height: 1.2em;
}
.blog-card-excerpt {
  line-height: 1.7;
  margin-bottom: 0;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* باکس و عنوان پست‌های مرتبط — هم‌سبک با بخش نظرات */
.related-posts {
  background: #fff;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.related-posts .related-posts-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ah-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ah-primary);
}
.related-posts .blog-card .card-body {
  padding: 0.75rem 1rem;
}
.related-posts .blog-card-title {
  padding-right: 0.5rem;
}

/* صفحه جزئیات وبلاگ: عنوان در کارت سفید و کوچک‌تر */
.blog-detail-title-card {
  border-radius: var(--ah-radius-lg);
  max-width: 100%;
}
/* کارت محتوای مقاله و مارک‌داون — همان border-radius تماس/درباره‌من */
.blog-detail-content {
  border-radius: var(--ah-radius-lg);
  overflow: hidden;
}
.blog-detail-content .card-body {
  border-radius: inherit;
}
.blog-detail-title {
  font-size: 1.25rem;
  line-height: 1.4;
}

/* کاور پست با نسبت ۱۶:۹ — کل تصویر نمایش داده می‌شود، بدون برش */
/* کاور مقاله — فریم تمیز، سایه، نسبت ۱۶:۹ */
.blog-detail-cover-wrap {
  margin: 0;
}
.blog-detail-cover-wrap .blog-detail-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-bg-5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.blog-detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* در موبایل گوشه‌ها کمی کوچک‌تر */
@media (max-width: 575.98px) {
  .blog-detail-cover-wrap .blog-detail-cover {
    border-radius: var(--ah-radius);
  }
}
.blog-post-meta .bi {
  font-size: 1em;
  opacity: 0.9;
}

/* CTA بعد از محتوای مقاله */
.blog-detail-cta {
  border-radius: var(--ah-radius-lg);
  background: linear-gradient(135deg, var(--ah-primary-light) 0%, var(--ah-bg-2) 100%);
}
.blog-detail-cta-text {
  font-size: 1.1rem;
  color: var(--ah-text);
  line-height: 1.6;
  margin: 0;
}
.blog-detail-cta-btn {
  min-width: 160px;
}/* اشتراک‌گذاری — کارت جدا، پس‌زمینه سفید، همان border-radius تماس/درباره‌من */
.blog-share-card {
  background: #fff !important;
  border-radius: var(--ah-radius-lg);
  overflow: visible;
}
.blog-share-card .card-body {
  background: #fff !important;
  border-radius: inherit;
}
.blog-share-input {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size: 0.875rem;
  direction: ltr;
  text-align: left;
}
.blog-share-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-share-copy-btn.blog-share-copied {
  background: var(--ah-primary-hover);
  border-color: var(--ah-primary-hover);
}

/* ---------- پروفایل: باکس و عنوان هم‌سبک با بقیه سایت، منوی کناری و تب پایین موبایل ---------- */
.profile-content-box {
  background: #fff;
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
/* هدر و بدنه یکسان همه باکس‌های پروفایل (الگو: درخواست مشاوره) */
.profile-card-header {
  padding: 0.75rem 1.5rem;
}
.profile-card-body {
  padding: 1.25rem 1.5rem;
}
.profile-card-body-inner {
  padding: 1.25rem 1.5rem;
}
.profile-card-footer {
  padding: 0.75rem 1.5rem;
}
.profile-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ah-text);
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ah-primary);
  display: block;
}
.profile-comments-entity-link {
  color: var(--ah-primary) !important;
}
.profile-comments-entity-link:hover {
  text-decoration: underline !important;
  color: var(--ah-primary-hover) !important;
}
/* پاسخ‌ها در نظرات من — همان استایل بخش نظرات سایت */
.profile-mycomment-replies {
  margin-top: 0.75rem;
  padding-inline-start: 1rem;
  border-inline-start: 2px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
.profile-mycomment-replies .comment-item.profile-mycomment-reply-item {
  padding: 0.75rem 1rem;
}
.profile-comments-empty {
  border-radius: 0 0 var(--ah-radius-lg) var(--ah-radius-lg);
}
.profile-page-article {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 767.98px) {
  .profile-page-article {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
  }
}

.profile-layout.row {
  align-items: flex-start;
}
.profile-sidebar {
  position: sticky;
  top: 5.5rem;
}
.profile-menu {
  background: var(--ah-bg-1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--ah-radius);
  padding: 0.5rem;
  box-shadow: var(--ah-shadow);
}
.profile-menu-item {
  color: var(--ah-text);
  margin-bottom: 2px;
}
.profile-menu-item:hover {
  background: var(--ah-bg-2);
  color: var(--ah-text);
}
.profile-menu-item.active {
  background: var(--ah-primary-light);
  color: var(--ah-primary);
  font-weight: 600;
}
.profile-menu-item.profile-menu-logout {
  color: #dc2626;
}
.profile-menu-item.profile-menu-logout:hover {
  background: rgba(220, 38, 38, 0.08);
}

.profile-content .card {
  border-radius: var(--ah-radius);
}

/* فضای پایین صفحه پروفایل در موبایل تا محتوا زیر منوی تب نرود */
@media (max-width: 767.98px) {
  .profile-page-article {
    padding-bottom: 5.5rem;
  }
}

/* منوی پایین موبایل — تب‌های کنار هم */
.profile-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--ah-bg-1);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1030;
}
.profile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  color: var(--ah-text-muted);
}
.profile-bottom-nav-item i {
  font-size: 1.25rem;
}
.profile-bottom-nav-item.active {
  color: var(--ah-primary);
  font-weight: 600;
}
/* دکمه منو (همبرگر) در تب پایین */
.profile-bottom-nav-menu-btn {
  cursor: pointer;
  font-family: inherit;
  color: var(--ah-text-muted);
}
.profile-bottom-nav-menu-btn .profile-menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 20px;
}
.profile-bottom-nav-menu-btn .profile-menu-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.profile-menu-open .profile-bottom-nav-menu-btn .profile-menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.profile-menu-open .profile-bottom-nav-menu-btn .profile-menu-icon span:nth-child(2) {
  opacity: 0;
}
body.profile-menu-open .profile-bottom-nav-menu-btn .profile-menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* منوی کشویی پروفایل (موبایل) — شبیه منوی اصلی سایت */
@media (max-width: 767.98px) {
  .profile-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
  }
  .profile-mobile-menu-overlay.is-open {
    pointer-events: auto;
    visibility: visible;
  }
  .profile-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .profile-mobile-menu-overlay.is-open .profile-mobile-menu-backdrop {
    opacity: 1;
  }
  .profile-mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    max-width: 100%;
    height: 100%;
    background: var(--ah-bg-1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    padding: 5rem 1.5rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .profile-mobile-menu-overlay.is-open .profile-mobile-menu-panel {
    transform: translateX(0);
  }
  .profile-mobile-menu-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--ah-radius);
    background: rgba(0, 0, 0, 0.06);
    color: var(--ah-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
  }
  .profile-mobile-menu-close:hover,
  .profile-mobile-menu-close:focus-visible {
    background: var(--ah-primary-light);
    color: var(--ah-primary);
  }
  .profile-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .profile-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--ah-text);
    text-decoration: none;
    border-radius: var(--ah-radius);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .profile-mobile-menu-link:hover,
  .profile-mobile-menu-link:focus-visible {
    background: var(--ah-primary-light);
    color: var(--ah-primary);
  }
  .profile-mobile-menu-link.active {
    background: var(--ah-primary-light);
    color: var(--ah-primary);
    font-weight: 600;
  }
  .profile-mobile-menu-link.text-danger:hover,
  .profile-mobile-menu-link.text-danger:focus-visible {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1);
  }
  .profile-mobile-menu-link i {
    font-size: 1.25rem;
  }
}

/* کارت مدارک/دوره (صفحه درباره من) — هاور مثل کارت خدمات */
.about-certificate-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ah-shadow-lg);
}
.about-certificate-card .about-certificate-card-img {
  transition: transform 0.4s ease;
}
.about-certificate-card:hover .about-certificate-card-img {
  transform: scale(1.05);
}

/* صفحه نظرات شاگردان — تصویر/ویدیو عمودی (۹:۱۶) مثل اسکرین‌شات موبایل */
.testimonial-media-grid {
  display: flex;
  flex-wrap: wrap;
}
.testimonial-media-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-media-content {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.testimonial-media-card .card-body {
  flex-shrink: 0;
}

/* دکمهٔ زوم روی کارت‌های مدارک (صفحه درباره من) — گرد کامل */
.about-certificate-zoom-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  pointer-events: none;
}
.about-certificate-zoom-btn .bi {
  font-size: 1.15rem;
}

/* دکمهٔ بستن لایتباکس مدارک — گرد کامل */
.certificate-lightbox-close-btn {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #333;
  box-shadow: var(--ah-shadow-lg);
  z-index: 1055;
}
.certificate-lightbox-close-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.certificate-lightbox-close-btn .bi {
  font-size: 1.25rem;
}

/* ---------- لودینگ مشترک محتوا (مقالات، پادکست‌ها) — باکس سفید، border-radius، رنگ سایت ---------- */
.content-loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem 0;
}
.content-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 2.5rem;
  background: var(--ah-bg-1);
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.content-loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--ah-bg-5);
  border-top-color: var(--ah-primary);
  border-radius: 50%;
  animation: content-loading-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes content-loading-spin {
  to { transform: rotate(360deg); }
}
.content-loading-text {
  font-size: 1rem;
  color: var(--ah-text-muted);
  margin: 1rem 0 0;
}
.content-empty-msg {
  text-align: center;
  padding: 2.5rem;
  color: var(--ah-text-muted);
  background: var(--ah-bg-1);
  border-radius: var(--ah-radius-lg);
  box-shadow: var(--ah-shadow);
}

/* ---------- پادکست‌ها: کارت سه‌بخشی (کاور راست، اطلاعات وسط، پخش و جزئیات چپ) ---------- */
.podcast-card-wrapper {
  border-radius: var(--ah-radius);
}
.podcast-card {
  transition: box-shadow 0.2s ease;
}
.podcast-card:hover {
  box-shadow: var(--ah-shadow-lg) !important;
}
.podcast-card-row {
  min-height: 200px;
}
.podcast-card-col-cover {
  order: 1;
  max-height: 200px;
  overflow: hidden;
}
.podcast-card-col-info {
  order: 2;
}
.podcast-card-col-actions {
  order: 3;
  position: relative;
}
.podcast-card-col-actions::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: var(--ah-border-color, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}
.podcast-card-col-actions .card-body {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
[dir="rtl"] .podcast-card-row {
  flex-direction: row;
}
.podcast-card-img-wrap {
  height: 100%;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  background: var(--ah-bg-5);
}
.podcast-card-img-wrap .podcast-card-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.2s ease;
}
.podcast-card-link-cover {
  color: inherit;
}
.podcast-card-link-cover:hover .podcast-card-img {
  opacity: 0.92;
}
.podcast-card-title a:hover {
  color: var(--ah-primary) !important;
}
.podcast-card-placeholder {
  min-height: 200px;
  max-height: 200px;
  background: var(--ah-bg-5);
}
.podcast-card-title {
  line-height: 1.4;
}
.podcast-card-meta {
  color: var(--ah-text-muted);
}
.podcast-card-summary {
  line-height: 1.6;
}
.podcast-card-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--ah-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}
.podcast-card-play-btn:hover {
  background: var(--ah-primary-hover);
  color: #fff;
  transform: scale(1.05);
}
.podcast-card-play-btn:active {
  background: var(--ah-primary-hover);
  color: #fff;
}
.podcast-card-play-btn .bi {
  font-size: 1.5rem;
  margin-top: 6px;
}
.podcast-card-play-btn .podcast-card-pause-icon {
  font-size: 1.5rem;
}
/* آکاردئون جزئیات زیر کارت — Bootstrap Collapse */
.podcast-detail-collapse .podcast-detail-body {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
  border-radius: 0 0 var(--ah-radius) var(--ah-radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}
.podcast-card-wrapper:has(.podcast-detail-collapse.show) .podcast-card {
  border-radius: var(--ah-radius) var(--ah-radius) 0 0 !important;
}
.podcast-details-btn .bi-chevron-down {
  transition: transform 0.3s ease;
}
.podcast-card-wrapper:has(.podcast-detail-collapse.show) .podcast-details-btn .bi-chevron-down {
  transform: rotate(180deg);
}
.podcast-detail-content audio {
  max-width: 100%;
}

/* ---------- صفحه‌بندی (پادکست، ویدیو، مقالات) — هماهنگ با رنگ سایت و ظاهر بهتر ---------- */
.site-pagination-wrap {
  margin-top: 2rem;
}
.site-pagination-wrap .site-pagination-list {
  gap: 0;
  border-radius: var(--ah-radius);
  overflow: hidden;
  box-shadow: var(--ah-shadow);
  border: 1px solid rgba(13, 148, 136, 0.12);
  background: var(--ah-bg-1);
}
.site-pagination-wrap .site-pagination-list .page-item {
  margin: 0;
}
.site-pagination-wrap .site-pagination-list .page-item .page-link {
  padding: 0.6rem 1.25rem;
  min-width: 2.75rem;
  color: var(--ah-text);
  background: var(--ah-bg-1);
  border: none;
  border-inline-start: 1px solid rgba(13, 148, 136, 0.12);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-pagination-wrap .site-pagination-list .page-item:first-child .page-link {
  border-inline-start: none;
  border-start-start-radius: var(--ah-radius);
  border-end-start-radius: var(--ah-radius);
}
.site-pagination-wrap .site-pagination-list .page-item:last-child .page-link {
  border-start-end-radius: var(--ah-radius);
  border-end-end-radius: var(--ah-radius);
}
.site-pagination-wrap .site-pagination-list .page-item .page-link:hover:not(.disabled) {
  background: var(--ah-primary-light);
  color: var(--ah-primary-hover);
}
.site-pagination-wrap .site-pagination-list .page-item.active .page-link {
  background: var(--ah-primary);
  color: #fff;
  border-color: var(--ah-primary);
}
.site-pagination-wrap .site-pagination-list .page-item.active .page-link:hover {
  background: var(--ah-primary-hover);
  color: #fff;
}
.site-pagination-wrap .site-pagination-list .page-item.disabled .page-link {
  background: var(--ah-bg-5);
  color: var(--ah-text-muted);
  pointer-events: none;
  opacity: 0.8;
}
.site-pagination-wrap .page-link:focus {
  box-shadow: none !important;
}

/* موبایل: کارت ساده — همان سه‌ستون دسکتاپ با سایز کوچک‌تر */
@media (max-width: 767.98px) {
  .podcast-card-wrapper.mb-4 {
    margin-bottom: 0.875rem !important;
  }
  .podcast-card-row {
    min-height: 114px;
  }
  .podcast-card-col-cover {
    flex: 0 0 98px;
    width: 98px;
    max-width: 98px;
    max-height: 114px;
    overflow: hidden;
  }
  .podcast-card-col-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .podcast-card-col-actions {
    flex: 0 0 auto;
  }
  .podcast-card-col-actions::before {
    top: 0.5rem;
    bottom: 0.5rem;
  }
  .podcast-card-img-wrap {
    width: 98px;
    height: 114px;
    min-height: 114px;
    max-height: 114px;
    overflow: hidden;
  }
  .podcast-card-img-wrap .podcast-card-img {
    width: 98px;
    height: 114px;
    min-height: 114px;
    max-height: 114px;
    object-fit: cover;
    object-position: center;
  }
  .podcast-card-placeholder {
    width: 98px;
    height: 114px;
    min-height: 114px;
    max-height: 114px;
  }
  .podcast-card-col-info .card-body {
    padding: 0.75rem 0.875rem !important;
  }
  .podcast-card-col-actions .card-body {
    min-height: 114px;
    padding: 0.5rem 0.75rem !important;
  }
  .podcast-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem !important;
    line-height: 1.3;
  }
  .podcast-card-meta {
    font-size: 0.7rem;
    margin-bottom: 0.3rem !important;
    gap: 0.5rem !important;
  }
  .podcast-card-summary {
    display: none !important;
  }
  .podcast-card-details-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
    margin-top: 0.35rem !important;
    white-space: nowrap;
    line-height: 1.2;
  }
  .podcast-card-play-btn {
    width: 40px;
    height: 40px;
  }
  .podcast-card-play-btn .bi {
    font-size: 1rem;
  }
  .podcast-detail-collapse .podcast-detail-body {
    padding: 0.875rem 1rem;
  }
}

/* ---------- پلیر ثابت پایین صفحه (راست=کاور و اطلاعات، وسط=کنترل و تایم‌لاین، چپ=آیکون‌ها) ---------- */
.podcast-global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #252525;
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  font-family: var(--bs-body-font-family);
}
.podcast-player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.podcast-player-info-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}
.podcast-player-cover-wrap {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #333;
  flex-shrink: 0;
}
.podcast-player-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.podcast-player-info {
  min-width: 0;
}
.podcast-player-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.podcast-player-category {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.podcast-player-times-mini {
  display: none;
}
.podcast-player-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}
.podcast-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.podcast-player-ctrl {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.podcast-player-ctrl:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.podcast-player-ctrl .bi {
  font-size: 1.15rem;
}
.podcast-player-ctrl span {
  font-size: 0.6rem;
  margin-right: 1px;
}
/* دکمه‌های دایره‌ای ۱۰ و ۳۰ ثانیه (پس‌زمینه خاکستری روشن، فلش دورانی و عدد داخل) */
.podcast-player-ctrl-circle {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
  position: relative;
}
.podcast-player-ctrl-circle:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.podcast-player-ctrl-circle .bi {
  font-size: 1.4rem;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.podcast-player-ctrl-circle span {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}
.podcast-player-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  margin: 0 0.25rem;
}
.podcast-player-play-btn:hover {
  background: #eee;
  transform: scale(1.06);
}
.podcast-player-play-btn .bi {
  font-size: 1.5rem;
}
.podcast-player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  direction: ltr;
}
.podcast-player-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  min-width: 2.8rem;
  flex-shrink: 0;
}
.podcast-player-seek-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  direction: ltr;
}
.podcast-player-seek {
  --seek-pct: 0%;
  width: 100%;
  direction: ltr;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
}
.podcast-player-seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #fff var(--seek-pct), rgba(255, 255, 255, 0.3) var(--seek-pct));
}
.podcast-player-seek::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}
.podcast-player-seek::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: #fff;
}
.podcast-player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  margin-top: -4px;
}
.podcast-player-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.podcast-player-utils {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.podcast-player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  direction: ltr;
}
.podcast-player-volume-slider {
  --vol-pct: 100%;
  width: 80px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
}
.podcast-player-volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #fff var(--vol-pct), rgba(255, 255, 255, 0.35) var(--vol-pct));
}
.podcast-player-volume-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.podcast-player-volume-slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: #fff;
}
.podcast-player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-top: -4px;
}
.podcast-player-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.podcast-player-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.podcast-player-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.podcast-player-icon-btn .bi {
  font-size: 1.2rem;
}
/* دکمهٔ مینی‌سازی/بزرگنمایی موبایل — فقط در موبایل نمایش داده می‌شود */
@media (min-width: 768px) {
  .podcast-player-mobile-toggle {
    display: none !important;
  }
}
.podcast-player-mobile-toggle {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 40px;
  height: 40px;
  border: none;
  background: #252525;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s, background 0.2s;
}
.podcast-player-mobile-toggle:hover {
  color: #fff;
  background: #3a3a3a;
}
.podcast-player-mobile-toggle .bi {
  font-size: 1.25rem;
}

body.podcast-player-expanded-open {
  overflow: hidden;
  touch-action: none;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
.podcast-global-player.podcast-player-expanded {
  touch-action: manipulation;
}

@media (max-width: 767.98px) {
  .podcast-global-player.podcast-player-expanded {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 1060;
    display: flex !important;
    flex-direction: column;
    overflow-y: visible;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
  }
  .podcast-player-mobile-toggle {
    display: flex !important;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-mobile-toggle {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    top: -15px;;
    transform: translateX(-50%);
    background: #252525;
  }
  .podcast-player-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .podcast-player-main {
    order: 10;
    width: 100%;
    padding: 0;
  }
  .podcast-player-progress-wrap {
    max-width: none;
  }
  .podcast-player-info-block {
    min-width: 0;
  }
  /* مرحلهٔ مینی — نمای جمع‌شده موبایل */
  .podcast-global-player:not(.podcast-player-expanded) {
    padding: 0.5rem 0.75rem 1.5rem;
    padding-top: 2rem;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-info-block {
    order: 2;
    flex: 1;
    min-width: 0;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-cover-wrap {
    flex-shrink: 0;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-main {
    order: 3;
    width: auto;
    flex: 0 0 auto;
    padding: 0;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-progress-wrap {
    display: none;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-times-mini {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-time-sep {
    color: rgba(255, 255, 255, 0.5);
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-times-mini .podcast-player-time {
    font-size: 0.7rem;
    min-width: auto;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-controls {
    gap: 0.75rem;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-ctrl,
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-ctrl-circle {
    width: 36px;
    height: 36px;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-ctrl-circle .bi {
    font-size: 1.1rem;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-ctrl-circle span {
    font-size: 0.55rem;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-play-btn {
    width: 44px;
    height: 44px;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-play-btn .bi {
    font-size: 1.25rem;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-next,
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-prev {
    display: none;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-cover-wrap {
    width: 42px;
    height: 42px;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-title {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20ch;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-category {
    display: none;
  }
  .podcast-global-player:not(.podcast-player-expanded) .podcast-player-utils {
    order: 4;
    display: none;
  }
  /* مرحلهٔ باز — نمای تمام‌صفحه موبایل */
  .podcast-global-player.podcast-player-expanded .podcast-player-inner {
    flex-direction: column;
    flex: 1;
    padding: 0 1rem 1rem;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-info-block {
    order: 1;
    flex-direction: column;
    width: 100%;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-cover-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-info {
    width: 100%;
    text-align: center;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-title {
    font-size: 1.1rem;
    white-space: normal;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-category {
    display: block;
    text-align: center;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-main {
    order: 2;
    width: 100%;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-progress-wrap {
    display: flex;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-times-mini {
    display: none;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-utils {
    order: 3;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.5rem;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-volume-wrap {
    display: flex;
  }
  .podcast-global-player.podcast-player-expanded .podcast-player-next,
  .podcast-global-player.podcast-player-expanded .podcast-player-prev {
    display: inline-flex;
  }
}

/* ---------- پاپ‌آپ سرعت پخش ---------- */
.podcast-speed-popup {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.podcast-speed-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.podcast-speed-popup-box {
  position: relative;
  background: #2d2d2d;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.podcast-speed-popup-close {
  position: absolute;
  top: 1rem;
  left: 1.5em;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.podcast-speed-popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.podcast-speed-popup-close .bi {
  font-size: 1.1rem;
}
.podcast-speed-popup-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  color: #fff;
  text-align: right;
}
.podcast-speed-popup-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.podcast-speed-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
}
.podcast-speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.podcast-speed-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.podcast-speed-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 2px;
}

/* ---------- صفحه وبلاگ: دو باکس مقالات و پادکست ---------- */
.weblog-box .card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.weblog-box:hover .card {
  box-shadow: var(--ah-shadow-lg) !important;
  transform: translateY(-4px);
}
.weblog-box-img-wrap {
  height: 220px;
  background: var(--ah-bg-5);
  overflow: hidden;
}
.weblog-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.weblog-box-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--ah-text-muted);
}
.weblog-box-placeholder-articles { background: var(--ah-bg-3); }
.weblog-box-placeholder-podcasts { background: var(--ah-bg-4); }

/* Toast notifications — گوشه پایین راست، زیر دکمه برگشت به بالا */
#site-toast-container {
  max-width: min(100vw - 2rem, 380px);
}
#site-toast-container .toast { font-size: 0.95rem; }
