/* ==========================================================================
   Negareh Courses Archive Dedicated Stylesheet (courses.css)
   Scoped strictly under .negareh-courses-archive
   Source of Truth: courses.html
   ========================================================================== */

/* Page Root Wrapper & Design System Tokens Fallback */
.negareh-courses-archive {
  --brand-cyan: #00CDD3;
  --brand-cyan-dark: #00A3A8;
  --brand-cyan-light: #EDFAFA;
  --brand-cyan-glow: rgba(0, 205, 211, 0.45);

  --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: #012429;
  --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: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --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: 1240px;

  font-family: var(--font-main);
  margin-top: 10px;
  margin-bottom: 60px;
}

.negareh-courses-archive button,
.negareh-courses-archive input,
.negareh-courses-archive select,
.negareh-courses-archive textarea {
  font-family: inherit;
}

[data-theme="dark"] .negareh-courses-archive {
  --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);
}

.negareh-courses-archive .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"] .negareh-courses-archive .gradient-title {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.negareh-courses-archive .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.negareh-courses-archive .section-tag {
  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: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 205, 211, 0.1);
}

[data-theme="dark"] .negareh-courses-archive .section-tag {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.negareh-courses-archive .section-subtitle {
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==================== هیرو کوچک بالای صفحه دوره‌ها ==================== */
.negareh-courses-archive .courses-hero-section {
  padding-block: 16px 24px;
}

.negareh-courses-archive .courses-hero-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.negareh-courses-archive .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.negareh-courses-archive .breadcrumb-separator {
  color: var(--brand-cyan);
}

.negareh-courses-archive .courses-hero-title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.negareh-courses-archive .courses-hero-subtitle {
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 700px;
}

/* ==================== نوار فیلتر هوشمند دوره‌ها (Source of Truth: V03 courses.html) ==================== */
.negareh-courses-archive .course-filter-section {
  padding-block: 6px 18px;
}

.negareh-courses-archive .course-filter-card,
.negareh-courses-archive .filter-accordion-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.negareh-courses-archive .course-filter-card:hover,
.negareh-courses-archive .filter-accordion-card:hover {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
}

.negareh-courses-archive .filter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: linear-gradient(180deg, rgba(0, 205, 211, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.negareh-courses-archive .filter-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.negareh-courses-archive .filter-header-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 205, 211, 0.35);
  flex-shrink: 0;
}

[data-theme="dark"] .negareh-courses-archive .filter-header-icon-box {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.negareh-courses-archive .filter-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.negareh-courses-archive .filter-header-title {
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--text-primary);
}

.negareh-courses-archive .filter-summary-pill {
  font-size: 0.8rem;
  color: var(--brand-teal);
  background: var(--brand-cyan-light);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  border: 1px solid rgba(0, 205, 211, 0.25);
}

[data-theme="dark"] .negareh-courses-archive .filter-summary-pill {
  color: var(--brand-cyan);
  background: rgba(0, 205, 211, 0.12);
  border-color: rgba(0, 205, 211, 0.3);
}

.negareh-courses-archive .filter-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.negareh-courses-archive .filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.negareh-courses-archive .filter-reset-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .negareh-courses-archive .filter-reset-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.negareh-courses-archive .filter-card-body,
.negareh-courses-archive .filter-accordion-body {
  padding: 16px 20px 18px 20px;
  display: block;
  opacity: 1;
  max-height: none;
  overflow: visible;
}

.negareh-courses-archive .filter-chips-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.negareh-courses-archive .filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.negareh-courses-archive .filter-row::-webkit-scrollbar {
  display: none;
}

.negareh-courses-archive .filter-label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 72px;
  white-space: nowrap;
}

.negareh-courses-archive .filter-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.negareh-courses-archive .filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.negareh-courses-archive .filter-chip:hover {
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  border-color: var(--brand-cyan);
}

.negareh-courses-archive .filter-chip.active {
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  color: #ffffff;
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 12px var(--brand-teal-glow);
  font-weight: 800;
}

[data-theme="dark"] .negareh-courses-archive .filter-chip.active {
  background: linear-gradient(135deg, #004D54 0%, var(--brand-teal) 100%);
  color: #ffffff;
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 14px var(--brand-cyan-glow);
}

.negareh-courses-archive .filter-accordion-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

/* خط وضعیت تعداد نتایج */
.negareh-courses-archive .filter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.negareh-courses-archive .filter-status-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.negareh-courses-archive .filter-status-badge {
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  margin-right: 6px;
}

[data-theme="dark"] .negareh-courses-archive .filter-status-badge {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

/* ==================== گرید کارت‌های دوره (Redesigned Cards) ==================== */
.negareh-courses-archive .courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.negareh-courses-archive .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;
}

.negareh-courses-archive .course-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-float);
}

/* ۱. ناحیه تصویر — نسبت ثابت 16/10 با object-fit: cover */
.negareh-courses-archive .course-thumbnail-box {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.negareh-courses-archive .course-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.negareh-courses-archive .course-card:hover .course-thumbnail-img {
  transform: scale(1.04);
}

/* بنر پس‌زمینه برندی برای کارت‌های بدون عکس مستقیم */
.negareh-courses-archive .course-placeholder-banner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 205, 211, 0.2) 0%, rgba(1, 36, 41, 0.95) 75%);
  color: #ffffff;
}

.negareh-courses-archive .course-placeholder-emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  border: 2px solid var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 4px 16px var(--brand-cyan-glow);
}

.negareh-courses-archive .course-thumbnail-overlay-turbo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 180, 0, 0.15) 0%, rgba(1, 36, 41, 0.4) 100%);
  pointer-events: none;
}

.negareh-courses-archive .course-thumbnail-overlay-class {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 205, 211, 0.12) 0%, rgba(1, 36, 41, 0.4) 100%);
  pointer-events: none;
}

/* بج ساعت آموزش — گوشه بالا-چپ با پس‌زمینه نیمه‌شفاف تیره */
.negareh-courses-archive .hours-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  line-height: normal;
  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;
}

/* بج نوع دوره — گوشه بالا-راست */
.negareh-courses-archive .course-type-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  line-height: normal;
  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);
}

.negareh-courses-archive .course-type-pill.full-class {
  background: var(--brand-teal);
  color: #ffffff;
  border: 1px solid rgba(0, 205, 211, 0.5);
}

.negareh-courses-archive .course-type-pill.test-notes {
  background: var(--brand-yellow);
  color: #0A191D;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ۲. ناحیه محتوا — padding یکنواخت ۲۰px */
.negareh-courses-archive .course-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.negareh-courses-archive .course-title {
  font-size: 1.05rem;
  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;
}

.negareh-courses-archive .course-instructor {
  font-size: 0.83rem;
  color: var(--brand-teal);
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .negareh-courses-archive .course-instructor { color: var(--brand-cyan); }

.negareh-courses-archive .course-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.7em;
  margin-bottom: 14px;
}

/* ۳. ناحیه قیمت و دکمه CTA — چسبیده به پایین */
.negareh-courses-archive .course-footer-row {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.negareh-courses-archive .course-pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.negareh-courses-archive .price-original {
  font-size: 0.84rem;
  color: var(--brand-red-dark);
  text-decoration: line-through;
  font-weight: 700;
  margin-left: 8px;
}

.negareh-courses-archive .price-current {
  font-size: 1.16rem;
  font-weight: 900;
  color: var(--brand-teal);
}

[data-theme="dark"] .negareh-courses-archive .price-current { color: var(--brand-cyan); }

.negareh-courses-archive .price-free {
  font-size: 1.16rem;
  font-weight: 900;
  color: var(--brand-yellow-dark);
}

[data-theme="dark"] .negareh-courses-archive .price-free { color: var(--brand-yellow); }

.negareh-courses-archive .btn-teal {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-deep) 100%);
  color: #ffffff;
  border: 1px solid var(--brand-cyan);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px var(--brand-teal-glow);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.negareh-courses-archive .btn-teal:hover {
  background: linear-gradient(135deg, var(--brand-teal-dark) 0%, var(--brand-teal-deep) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-cyan-glow);
}

.negareh-courses-archive .btn-outline-teal {
  background: transparent;
  color: var(--brand-teal);
  border: 1px solid var(--brand-teal);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.negareh-courses-archive .btn-outline-teal:hover {
  background: var(--brand-cyan-light);
  border-color: var(--brand-cyan);
  color: var(--brand-teal);
}

[data-theme="dark"] .negareh-courses-archive .btn-outline-teal {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
}

/* صفحه بندی دینامیک (Pagination) */
.negareh-courses-archive .courses-pagination-wrap {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.negareh-courses-archive .courses-pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.negareh-courses-archive .courses-pagination-wrap .page-numbers.current,
.negareh-courses-archive .courses-pagination-wrap .page-numbers:hover {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-cyan);
}

/* ==================== ۵. بخش جلسات رایگان ==================== */
.negareh-courses-archive .free-sessions-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 40px;
  padding-block: 48px;
}

.negareh-courses-archive .free-sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.negareh-courses-archive .free-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.negareh-courses-archive .free-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-yellow);
  box-shadow: var(--shadow-md);
}

.negareh-courses-archive .free-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.negareh-courses-archive .free-badge-discount {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-yellow-dark) 100%);
  color: #000000;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.negareh-courses-archive .free-badge-field {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.negareh-courses-archive .free-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.negareh-courses-archive .free-card-instructor {
  font-size: 0.83rem;
  color: var(--brand-teal);
  font-weight: 800;
  margin-bottom: 8px;
}

[data-theme="dark"] .negareh-courses-archive .free-card-instructor { color: var(--brand-cyan); }

.negareh-courses-archive .free-card-desc {
  font-size: 0.84rem;
  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: 14px;
}

.negareh-courses-archive .free-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.negareh-courses-archive .free-card-pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.negareh-courses-archive .price-free-highlight {
  font-size: 1.18rem;
  font-weight: 900;
  color: #10B981;
}

/* ==================== ۶. بنر مشاوره سریع ==================== */
.negareh-courses-archive .courses-cta-banner {
  background: linear-gradient(135deg, #01272C 0%, #004F57 70%, #006872 100%);
  border: 1px solid rgba(0, 205, 211, 0.35);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
}

.negareh-courses-archive .courses-cta-text h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: #ffffff;
  margin-bottom: 6px;
}

.negareh-courses-archive .courses-cta-text p {
  color: #E2ECEE;
  font-size: 0.94rem;
}

/* ==================== ریسپانسیو و موبایل ==================== */
@media (max-width: 960px) {
  .negareh-courses-archive .courses-grid,
  .negareh-courses-archive .free-sessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .negareh-courses-archive .courses-grid,
  .negareh-courses-archive .free-sessions-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 6px 16px 16px 16px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    scrollbar-width: none !important;
  }

  .negareh-courses-archive .courses-grid::-webkit-scrollbar,
  .negareh-courses-archive .free-sessions-grid::-webkit-scrollbar {
    display: none !important;
  }

  .negareh-courses-archive .courses-grid .course-card,
  .negareh-courses-archive .free-sessions-grid .free-card {
    flex: 0 0 84% !important;
    max-width: 84% !important;
    width: 84% !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .negareh-courses-archive .courses-cta-banner {
    padding: 26px 20px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
