/* ==========================================================================
   SINGLE COURSE / WOOCOMMERCE SINGLE PRODUCT STYLES (course.html)
   ========================================================================== */

/* ==========================================================================
   موسسه آموزش عالی آزاد نگاره — سیستم دیزاین محصول نهایی (course.html)
   ========================================================================== */

:root {
  --brand-cyan: #00CDD3;
  --brand-cyan-dark: #00A3A8;
  --brand-cyan-light: #EDFAFA;
  --brand-cyan-glow: rgba(0, 205, 211, 0.4);

  --brand-teal: #006872;
  --brand-teal-dark: #004D54;
  --brand-teal-deep: #012429;
  --brand-teal-light: #EBF4F5;
  --brand-teal-glow: rgba(0, 104, 114, 0.3);

  --brand-yellow: #FFB400;
  --brand-yellow-dark: #E09E00;
  --brand-yellow-light: #FFF9EC;
  --brand-yellow-border: rgba(255, 180, 0, 0.45);

  --brand-red: #CA0A0A;
  --brand-red-dark: #8A0000;
  --brand-red-light: #FDF1F1;

  --bg-primary: #F8FAFB;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F0F6F7;
  --bg-dark: #011E22;
  --bg-dark-card: #03363D;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --text-primary: #0A191D;
  --text-secondary: #385157;
  --text-muted: #68838A;
  --text-inverse: #FFFFFF;

  --border-subtle: rgba(0, 104, 114, 0.09);
  --border-medium: rgba(0, 104, 114, 0.16);
  --border-focus: var(--brand-cyan);


  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(0, 54, 59, 0.05);
  --shadow-md: 0 10px 30px -6px rgba(0, 54, 59, 0.09), 0 3px 10px rgba(0, 54, 59, 0.03);
  --shadow-lg: 0 20px 48px -10px rgba(0, 54, 59, 0.15);
  --shadow-float: 0 20px 45px -8px rgba(0, 54, 59, 0.18);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1280px;
}

[data-theme="dark"] {
  --bg-primary: #021215;
  --bg-surface: #052026;
  --bg-elevated: #082930;
  --bg-subtle: #0B353E;
  --bg-dark: #010C0E;
  --bg-dark-card: #041B1F;
  --bg-glass: rgba(5, 32, 38, 0.94);

  --text-primary: #F2FCFC;
  --text-secondary: #A0CBD1;
  --text-muted: #64969E;

  --border-subtle: rgba(0, 205, 211, 0.12);
  --border-medium: rgba(0, 205, 211, 0.24);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 48px -10px rgba(0, 0, 0, 0.75);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

/* بدنه با پشتیبانی کامل از position: sticky در دسکتاپ و مهار اسکرول افقی با overflow-x: clip */
body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  overflow-x: clip;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* تایپوگرافی */
h1 { font-size: clamp(1.4rem, 2.4vw, 2.15rem); font-weight: 900; line-height: 1.35; }
h2 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 800; line-height: 1.38; }
h3 { font-size: clamp(1.02rem, 1.4vw, 1.25rem); font-weight: 800; line-height: 1.45; }
p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.85; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.gradient-title {
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 65%, #008794 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-title {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================== ۱. هدر و ناوبری اصلی سایت ==================== */
.utility-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(0, 205, 211, 0.12);
  font-size: 0.78rem;
  padding: 6px 0;
  color: #ADC5B9;
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-cyan);
  font-weight: 800;
}

.navbar-wrapper {
  position: sticky;
  top: 10px;
  z-index: 2200;
  margin-bottom: 0;
}

.navbar-pill {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 26px;
  max-height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.03);
}

[data-theme="dark"] .brand-logo-img {
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(0, 205, 211, 0.4));
}

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-item {
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-teal);
  background: var(--brand-cyan-light);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

/* دراپ‌داون راهنمای کنکور — موقعیت دقیق زیر لینک و رفع قطع شدن hover */
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1050;
  animation: dropdownAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* پل نامرئی هاور برای جلوگیری از بسته شدن منو هنگام حرکت موس */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

@keyframes dropdownAnim {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-dropdown:hover { display: flex; }

.dropdown-chevron {
  font-size: 0.62rem;
  margin-right: 4px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  padding-right: 16px;
}

[data-theme="dark"] .dropdown-link:hover {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-cart-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.cart-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 205, 211, 0.35);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px var(--brand-teal-glow);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-toggle,
.mobile-drawer-header { display: none; }

/* ==================== هدر تیره محصول (الگوی دقیق Udemy) ==================== */
.udemy-dark-hero-strip {
  background: linear-gradient(135deg, #01181B 0%, #012429 55%, #00363D 100%);
  color: #ffffff;
  padding-top: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(0, 205, 211, 0.18);
  position: relative;
}

.udemy-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.udemy-hero-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

/* Breadcrumb تیره */
.breadcrumb-dark-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #A0CBD1;
  font-weight: 700;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.breadcrumb-dark-link {
  color: var(--brand-cyan);
  transition: color var(--transition-fast);
}

.breadcrumb-dark-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb-dark-sep {
  color: #55878F;
}

.breadcrumb-dark-active {
  color: #E6F7F8;
  font-weight: 800;
}

.udemy-hero-title {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.36;
}

.udemy-hero-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #C8E3E7;
}

/* ردیف متاداده و مدرس (بدون ایموجی) */
.udemy-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #E2F3F5;
  margin-top: 4px;
}

.bestseller-badge {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-yellow-dark) 100%);
  color: #011E22;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
}

.meta-item {
  font-weight: 700;
}

.meta-dot {
  color: #55878F;
  font-weight: 900;
}

/* ==================== المان‌های بنر و بج‌های پایینی (جلوگیری از پوشاندن چهره) ==================== */
.sidebar-thumb-wrap,
.mobile-hero-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  border: 1px solid var(--border-medium);
}

.mobile-hero-thumb-box {
  display: none;
  margin-bottom: 12px;
  border-color: rgba(0, 205, 211, 0.3);
}

.sidebar-thumb-img,
.mobile-hero-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* نوار بج‌های پایین عکس */
.thumb-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(1, 24, 27, 0.92) 0%, rgba(1, 24, 27, 0.6) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.thumb-stat-pill {
  background: rgba(1, 30, 34, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.thumb-type-pill {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.thumb-type-pill.full-class {
  background: var(--brand-teal);
  color: #ffffff;
  border: 1px solid rgba(0, 205, 211, 0.5);
}

.thumb-type-pill.test-notes {
  background: var(--brand-yellow);
  color: #0A191D;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==================== باکس قیمت و تخفیف کاملاً منطبق بر پالت رنگی رسمی نگاره ==================== */
.pricing-card-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .pricing-card-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 205, 211, 0.18);
}

/* کارت پیشنهاد ویژه در موبایل بر پایه قرمز رسمی نگاره #CA0A0A */
.mobile-pricing-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(202, 10, 10, 0.25);
  border-radius: 14px;
  padding: 18px 16px 14px 16px;
  margin-top: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(202, 10, 10, 0.08);
}

[data-theme="dark"] .mobile-pricing-card {
  background: rgba(202, 10, 10, 0.06);
  border-color: rgba(202, 10, 10, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* بج استیکری تخفیف ویژه بر پایه قرمز رسمی #CA0A0A */
.discount-sticker-pill {
  position: absolute;
  top: -11px;
  right: 14px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 8px rgba(202, 10, 10, 0.35);
  white-space: nowrap;
  letter-spacing: 0.2px;
  z-index: 2;
}

.pricing-horizontal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-final-group {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--brand-teal);
}

[data-theme="dark"] .price-final-group {
  color: var(--brand-cyan);
}

.price-final-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.price-final-currency {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
}

[data-theme="dark"] .price-final-currency {
  color: #A0CBD1;
}

.price-old-group {
  display: inline-flex;
  align-items: center;
}

.price-old-num {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
  white-space: nowrap;
}

[data-theme="dark"] .price-old-num {
  color: #8B9EA2;
}

/* چیپ تخفیف مستطیلی در دسکتاپ بر پایه قرمز رسمی #CA0A0A */
.single-course-page-wrapper .discount-chip {
  background: var(--brand-red-light);
  color: var(--brand-red);
  border: 1px solid rgba(202, 10, 10, 0.25);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.single-course-page-wrapper [data-theme="dark"] .discount-chip {
  background: rgba(202, 10, 10, 0.22);
  color: #ff8080;
  border-color: rgba(202, 10, 10, 0.45);
}

/* المان‌های خرید در هدر موبایل */
.mobile-hero-buy-box {
  display: none;
  flex-direction: column;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-hero-cta-btn {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.mobile-hero-reassurance-note {
  font-size: 0.78rem;
  color: #A0CBD1;
  text-align: center;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.mobile-hero-sub-btn {
  font-size: 0.85rem;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ==================== ۲. بدنه دو ستونه صفحه و سایدبار Sticky واقعی ==================== */
.product-body-section {
  padding-top: 24px;
  padding-bottom: 48px;
  position: relative;
}

.product-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: stretch;
  position: relative;
}

/* ستون اصلی محتوا (~۶۸٪) */
.product-main-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.content-card-box {
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.content-card-box.bg-white {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
}

.content-card-box.bg-subtle {
  background: var(--bg-subtle);
  border: 1px solid rgba(0, 205, 211, 0.2);
}

.block-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 6px;
}

.section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  border: 1px solid rgba(0, 205, 211, 0.35);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}

[data-theme="dark"] .section-tag-pill {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.desc-text-body {
  font-size: 0.96rem;
  line-height: 1.95;
  color: var(--text-secondary);
}

.desc-text-body p { margin-bottom: 12px; }

/* ۴. نوار ۴ ویژگی سریع */
.quick-features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.q-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-cyan-light);
  border: 1px solid rgba(0, 205, 211, 0.35);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .q-feature-icon {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.q-feature-text {
  display: flex;
  flex-direction: column;
}

.q-feature-text strong {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--text-primary);
}

.q-feature-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==================== دستور ۱ — سرفصل‌ها با فاصله ایمن از نوار چسبان پایین ==================== */
.curriculum-framed-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.curriculum-grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.curriculum-item-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.curriculum-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
  background: var(--bg-surface);
}

.curriculum-check-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-deep) 100%);
  border: 1.5px solid var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px var(--brand-teal-glow);
}

.curriculum-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  min-width: 0;
}

.curriculum-item-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
}

.curriculum-item-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* اساتید دوره */
.instructors-grid-balanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.instructor-compact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.instructor-compact-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-cyan);
  box-shadow: 0 10px 24px rgba(0, 104, 114, 0.12);
  background: var(--bg-surface-elevated, var(--bg-surface));
}

.instructor-compact-card:hover .instructor-name-title {
  color: var(--brand-teal);
}

[data-theme="dark"] .instructor-compact-card:hover {
  box-shadow: 0 10px 24px rgba(0, 205, 211, 0.16);
}

[data-theme="dark"] .instructor-compact-card:hover .instructor-name-title {
  color: var(--brand-cyan);
}

.instructor-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  color: #ffffff;
  border: 2px solid var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--brand-cyan-glow);
}

.instructor-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.instructor-name-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-primary);
}

.instructor-bio-text {
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instructor-text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 205, 211, 0.4);
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.instructor-text-link:hover {
  color: var(--brand-cyan);
  text-decoration-color: var(--brand-cyan);
}

/* باکس سلب مسئولیت / شفاف‌سازی آزمون آزمایشی (رنگ زرد / کهربایی ملایم) */
.exam-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-right: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.06);
}

[data-theme="dark"] .exam-disclaimer-box {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
  border-right-color: #fbbf24;
}

.disclaimer-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.disclaimer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.disclaimer-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #b45309;
}

[data-theme="dark"] .disclaimer-title {
  color: #fbbf24;
}

.disclaimer-text {
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin: 0;
}

/* لیست اساتید طراح سوالات آزمون */
.exam-designers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.exam-designer-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.exam-designer-chip:hover {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  transform: translateY(-2px);
}

[data-theme="dark"] .exam-designer-chip:hover {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.designer-icon {
  font-size: 1.1rem;
}

/* بخش تضمین و مزایا */
.guarantee-bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.benefit-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.benefit-box-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
}

.benefit-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-cyan-light);
  border: 1px solid rgba(0, 205, 211, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  margin-bottom: 2px;
}

[data-theme="dark"] .benefit-icon-badge {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.benefit-box-card h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-primary);
}

.benefit-box-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==================== ستون سایدبار و کارت Sticky دسکتاپ ==================== */
.product-sidebar-column {
  position: relative;
  align-self: stretch;
  height: 100%;
}

@media (min-width: 1025px) {
  .product-sidebar-column {
    margin-top: -240px;
    z-index: 50;
  }
}

.sticky-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  z-index: 100;
}

.sidebar-guarantee-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-teal);
  background: var(--brand-cyan-light);
  border: 1px solid rgba(0, 205, 211, 0.35);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

[data-theme="dark"] .sidebar-guarantee-line {
  color: var(--brand-cyan);
  background: rgba(0, 205, 211, 0.12);
  border-color: rgba(0, 205, 211, 0.3);
}

.sidebar-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-course-page-wrapper a.btn-teal,
.single-course-page-wrapper button.btn-teal,
.single-course-page-wrapper .btn-teal {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-deep) 100%);
  color: #ffffff;
  border: 1px solid var(--brand-cyan);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  box-shadow: 0 4px 16px var(--brand-teal-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.single-course-page-wrapper a.btn-teal:hover,
.single-course-page-wrapper button.btn-teal:hover,
.single-course-page-wrapper .btn-teal:hover {
  background: linear-gradient(135deg, var(--brand-teal-dark) 0%, var(--brand-teal-deep) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--brand-cyan-glow);
}

.single-course-page-wrapper a.btn-outline-light,
.single-course-page-wrapper button.btn-outline-light,
.single-course-page-wrapper .btn-outline-light {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

.single-course-page-wrapper a.btn-outline-light:hover,
.single-course-page-wrapper button.btn-outline-light:hover,
.single-course-page-wrapper .btn-outline-light:hover {
  background: var(--brand-cyan-light);
  border-color: var(--brand-cyan);
  color: var(--brand-teal);
}

.sidebar-trust-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--border-medium);
  padding-top: 12px;
}

.trust-check-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== دوره‌های مرتبط ==================== */
.single-course-page-wrapper .related-section-block {
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.single-course-page-wrapper .related-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.single-course-page-wrapper .course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-course-page-wrapper .course-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-float);
}

.single-course-page-wrapper .course-thumbnail-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  display: block;
}

.single-course-page-wrapper .course-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.single-course-page-wrapper .course-card:hover .course-thumbnail-img {
  transform: scale(1.04);
}

/* پس‌زمینه خنثی و ساده برای کارت‌های بدون عکس مستقیم در محیط لوکال */
.single-course-page-wrapper .course-thumbnail-placeholder,
.single-course-page-wrapper .course-placeholder-banner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
}

.single-course-page-wrapper .placeholder-emblem,
.single-course-page-wrapper .course-placeholder-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  background: transparent;
}

/* بج ساعت آموزش یا تعداد مراحل آزمون — گوشه بالا-چپ با پس‌زمینه نیمه‌شفاف تیره */
.single-course-page-wrapper .hours-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 25, 29, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* بج نوع دوره یا آزمون — گوشه بالا-راست */
.single-course-page-wrapper .course-type-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.single-course-page-wrapper .course-type-pill.full-class {
  background: var(--brand-teal);
  color: #ffffff;
  border: 1px solid rgba(0, 205, 211, 0.5);
}

.single-course-page-wrapper .course-type-pill.turbo {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-yellow-dark) 100%);
  color: #011E22;
}

.single-course-page-wrapper .course-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.single-course-page-wrapper .course-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.single-course-page-wrapper .course-instructor {
  font-size: 0.82rem;
  color: var(--brand-teal);
  font-weight: 700;
  margin-bottom: 8px;
}

.single-course-page-wrapper [data-theme="dark"] .course-instructor { color: var(--brand-cyan); }

.single-course-page-wrapper .course-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: 12px;
}

.single-course-page-wrapper .course-footer-row {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-course-page-wrapper .course-pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.single-course-page-wrapper .product-price-old {
  font-size: 0.85rem;
  color: var(--brand-red);
  text-decoration: line-through;
  opacity: 0.8;
}

.single-course-page-wrapper .price-current {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--brand-teal);
}

.single-course-page-wrapper [data-theme="dark"] .price-current { color: var(--brand-cyan); }

@media (max-width: 768px) {
  .single-course-page-wrapper .related-section-block {
    overflow-x: hidden;
    max-width: 100%;
  }

  .single-course-page-wrapper .related-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .single-course-page-wrapper .related-courses-grid .course-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* ==================== نوار CTA چسبان پایین در موبایل ==================== */
.mobile-sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-medium);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
  z-index: 1200;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-cta-bar.visible {
  transform: translateY(0);
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-sticky-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}

.mobile-sticky-price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1;
}

.mobile-sticky-price-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-teal);
  white-space: nowrap;
}

[data-theme="dark"] .mobile-sticky-price-val { color: var(--brand-cyan); }

/* ==================== فوتر ==================== */
.site-footer {
  background: var(--bg-dark);
  color: #ffffff;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 205, 211, 0.12);
  margin-top: 40px;
}

.footer-grid-simplified {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand h4 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #ADC5B9;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-col h5 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background: var(--brand-cyan);
  border-radius: var(--radius-pill);
}

.footer-links-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: #ADC5B9; font-size: 0.9rem; }
.footer-link:hover { color: var(--brand-cyan); padding-right: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 16px;
  text-align: center;
  font-size: 0.84rem;
  color: #7D9F95;
}

/* ==================== ریسپانسیو و موبایل ==================== */
@media (max-width: 1024px) {
  /* فاصله مناسب بین هدر چسبان و شروع محتوای صفحه */
  .navbar-wrapper {
    margin-bottom: 14px;
  }

  /* تبدیل پس‌زمینه هدر محصول در موبایل به سفید تمیز با پدینگ استاندارد */
  .udemy-dark-hero-strip {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .breadcrumb-dark-list {
    color: var(--text-muted);
    margin-bottom: 14px;
  }

  .breadcrumb-dark-link {
    color: var(--brand-teal);
  }
  [data-theme="dark"] .breadcrumb-dark-link {
    color: var(--brand-cyan);
  }

  .breadcrumb-dark-link:hover {
    color: var(--brand-teal-dark);
  }

  .breadcrumb-dark-sep {
    color: var(--text-muted);
  }

  .breadcrumb-dark-active {
    color: var(--text-primary);
    font-weight: 800;
  }

  .udemy-hero-title {
    color: var(--text-primary);
  }

  .udemy-hero-desc {
    color: var(--text-secondary);
  }

  .udemy-hero-meta-row {
    color: var(--text-secondary);
  }

  .meta-dot {
    color: var(--text-muted);
  }

  .mobile-hero-buy-box {
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-hero-reassurance-note {
    color: var(--brand-teal);
  }
  [data-theme="dark"] .mobile-hero-reassurance-note {
    color: var(--brand-cyan);
  }

  .mobile-hero-sub-btn {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
  }
  .mobile-hero-sub-btn:hover {
    background: var(--brand-cyan-light);
    border-color: var(--brand-cyan);
    color: var(--brand-teal);
  }

  .udemy-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }

  .udemy-hero-sidebar-space {
    display: none !important;
  }

  .udemy-hero-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-layout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  .product-main-column {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-sidebar-column {
    display: none !important;
  }

  .mobile-hero-thumb-box {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .mobile-hero-buy-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .quick-features-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
  }

  .content-card-box {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 960px) {
  .utility-bar { display: none; }
  
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-grid-simplified { grid-template-columns: 1fr; gap: 8px; }
  .footer-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
  }

  .navbar-wrapper {
    top: 6px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100vw;
    z-index: 2200;
  }

  .navbar-wrapper .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar-pill {
    padding: 6px 12px;
    width: 100%;
    max-width: 100%;
  }

  .brand-logo-img {
    height: 22px;
    max-height: 22px;
    max-width: 140px;
  }

  .nav-auth-btn { display: none !important; }
  .theme-toggle-btn { display: none !important; }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-cart-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    padding: 0;
    cursor: pointer;
  }
  
  .nav-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: var(--bg-surface) !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.28) !important;
    padding: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    z-index: 2300 !important;
    overflow-y: auto !important;
  }

  .nav-menu.mobile-open {
    display: flex !important;
    animation: drawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes drawerSlideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 12px;
  }

  .nav-dropdown {
    position: static;
    display: flex;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    min-width: 100%;
  }

  .nav-dropdown::before {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 85px;
  }

  .udemy-dark-hero-strip {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .udemy-hero-title {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .udemy-hero-desc {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .mobile-sticky-cta-bar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  /* سرفصل‌ها و مراحل آزمون در موبایل */
  #curriculum-block {
    padding-bottom: 18px;
    margin-bottom: 12px;
  }

  .curriculum-grid-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .curriculum-item-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    gap: 12px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }

  .curriculum-check-badge {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .curriculum-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    min-width: 0;
  }

  .curriculum-item-name {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.4;
    word-break: break-word;
  }

  .curriculum-item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
  }

  /* کارت‌های اساتید در موبایل */
  .instructors-grid-balanced {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .instructor-compact-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
  }

  .guarantee-bonus-grid { grid-template-columns: 1fr; }

  .product-body-section,
  .udemy-dark-hero-strip,
  .related-section-block {
    overflow-x: hidden;
    max-width: 100%;
  }

  .related-courses-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

.single-course-page-wrapper .related-courses-grid .course-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}


/* ==================== EXACT COURSE.HTML PORTED SIDEBAR & CARD STYLES ==================== */
.single-course-page-wrapper .sidebar-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  margin-bottom: 16px;
}

.single-course-page-wrapper .sidebar-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.single-course-page-wrapper .sidebar-thumb-badges {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.single-course-page-wrapper .bestseller-badge {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-yellow-dark) 100%);
  color: #011E22;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.single-course-page-wrapper .pricing-card-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

[data-theme="dark"] .single-course-page-wrapper .pricing-card-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 205, 211, 0.18);
}

.single-course-page-wrapper .pricing-horizontal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.single-course-page-wrapper .price-final-group {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--brand-teal);
}

[data-theme="dark"] .single-course-page-wrapper .price-final-group {
  color: var(--brand-cyan);
}

.single-course-page-wrapper .price-final-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.single-course-page-wrapper .price-final-currency {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
}

[data-theme="dark"] .single-course-page-wrapper .price-final-currency {
  color: #A0CBD1;
}

.single-course-page-wrapper .price-old-group {
  display: inline-flex;
  align-items: center;
}

.single-course-page-wrapper .price-old-num {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
  white-space: nowrap;
}

[data-theme="dark"] .single-course-page-wrapper .price-old-num {
  color: #8B9EA2;
}

.single-course-page-wrapper .discount-chip {
  background: var(--brand-red-light);
  color: var(--brand-red);
  border: 1px solid rgba(202, 10, 10, 0.25);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .single-course-page-wrapper .discount-chip {
  background: rgba(202, 10, 10, 0.22);
  color: #ff8080;
  border-color: rgba(202, 10, 10, 0.45);
}

.single-course-page-wrapper .sidebar-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.single-course-page-wrapper .sidebar-guarantee-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-teal);
  background: var(--brand-cyan-light);
  border: 1px solid rgba(0, 205, 211, 0.35);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

[data-theme="dark"] .single-course-page-wrapper .sidebar-guarantee-line {
  color: var(--brand-cyan);
  background: rgba(0, 205, 211, 0.12);
  border-color: rgba(0, 205, 211, 0.3);
}

.single-course-page-wrapper .sidebar-trust-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--border-medium);
  padding-top: 12px;
}

.single-course-page-wrapper .trust-check-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-course-page-wrapper .course-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 54, 59, 0.85);
  color: var(--brand-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 205, 211, 0.3);
  z-index: 2;
}

/* Scoped WooCommerce Resets */
.single-course-page-wrapper .woocommerce-Price-amount,
.single-course-page-wrapper .amount {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.single-course-page-wrapper .button.alt,
.single-course-page-wrapper .single_add_to_cart_button {
  font-family: inherit;
  margin: 0;
}

/* Coefficient Badge Chips Presentation */
.coeff-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.coeff-badge-chip {
  background: var(--brand-teal-light);
  border: 1px solid rgba(0, 104, 114, 0.18);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-teal-dark);
}

.coeff-chip-subject {
  color: var(--text-primary);
  font-weight: 800;
}

.coeff-chip-value {
  color: var(--brand-teal);
  font-weight: 900;
}

[data-theme="dark"] .coeff-badge-chip {
  background: rgba(0, 205, 211, 0.12);
  border-color: rgba(0, 205, 211, 0.25);
  color: var(--brand-cyan);
}

[data-theme="dark"] .coeff-chip-subject {
  color: #ffffff;
}

[data-theme="dark"] .coeff-chip-value {
  color: var(--brand-cyan);
}

/* Instructor Monogram Fallback */
.instructor-avatar-monogram {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  border: 1.5px solid var(--brand-cyan);
  color: var(--brand-teal);
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .instructor-avatar-monogram {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}


/* Use the Homepage contract instead of legacy Elementor product typography. */
body.single-product .single-course-page-wrapper,
body.single-product .single-course-page-wrapper :is(a, h2, h4, h6) {
  font-family: var(--font-main);
}

/* Cancel Homepage badge offsets so related-card badges cannot stretch. */
.single-course-page-wrapper .related-courses-grid .course-type-pill {
  bottom: auto;
  left: auto;
}
