
:root {
  --amb-primary: #2563eb; /* blue-600 */
  --amb-primary-600: #1d4ed8; /* blue-700 */
  --amb-accent: #3b82f6; /* blue-500 */
  --amb-dark: #0f172a; /* slate-900 */
  --amb-muted: #64748b; /* slate-500 */
  --amb-bg: #f8fafc; /* light bg */
}



.light-style {
  --amb-primary: #2563eb;
  --amb-primary-600: #1d4ed8;
  --amb-accent: #3b82f6;
  --amb-dark: #0f172a;
  --amb-muted: #64748b;
  --amb-bg: #f8fafc;
}

  .light-style body {
    background: var(--amb-bg);
    color: #334155;
  }

  .light-style .hero {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.15), transparent), linear-gradient(180deg, #ffffff, #f6fcff);
    border-bottom: 1px solid #e2e8f0;
  }

  .light-style .badge-amb {
    background: rgba(37,99,235,.1);
    color: var(--amb-primary);
    border: 1px solid rgba(37,99,235,.25);
  }

  .light-style .text-title {
    color: var(--amb-dark);
  }

  .light-style .text-menu {
    color: #1f2937;
  }

  .light-style .buy-card {
    background: #fff;
    border: 1px solid #e2e8f0;
  }

  .light-style .price-tag {
    border: 1px dashed rgba(37,99,235,.45);
    background: rgba(37,99,235,.04);
  }

  .light-style .new-price {
    color: var(--amb-dark);
  }

.dark-style {
  --amb-primary: #3b82f6;
  --amb-primary-600: #2563eb;
  --amb-accent: #60a5fa;
  --amb-dark: #f1f5f9;
  --amb-muted: #94a3b8;
  --amb-bg: #0f172a;
}

  .dark-style body {
    background: var(--amb-bg);
    color: #e2e8f0;
  }

  .dark-style .hero {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,.25), transparent), radial-gradient(800px 400px at 20% 80%, rgba(96,165,250,.2), transparent), linear-gradient(180deg, #1e293b, #0f172a);
    border-bottom: 1px solid #334155;
  }

  .dark-style .badge-amb {
    background: rgba(59,130,246,.1);
    color: var(--amb-primary);
    border: 1px solid rgba(59,130,246,.25);
  }

  .dark-style .text-title {
    color: #f1f5f9;
  }

  .dark-style .text-menu {
    color: #e2e8f0;
  }

  .dark-style .buy-card {
    background: #1e293b;
    border: 1px solid #334155;
  }

  .dark-style .price-tag {
    border: 1px dashed rgba(59,130,246,.45);
    background: rgba(59,130,246,.04);
  }

  .dark-style .new-price {
    color: var(--amb-dark);
  }


.navbar-brand span {
  color: var(--amb-primary);
}

.light-style .hero {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.15), transparent), linear-gradient(180deg, #ffffff, #f6fcff);
  border-bottom: 1px solid #e2e8f0;
}

  .light-style .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(37,99,235,0.35);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(37,99,235,0);stop-opacity:0" /></radialGradient></defs><path d="M30,30 Q60,10 90,30 Q120,50 90,70 Q60,90 30,70 Q0,50 30,30 Z" fill="url(%23grad1)"/></svg>') no-repeat 15% 15% / 400px 400px, url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><radialGradient id="grad2" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(96,165,250,0.3);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(96,165,250,0);stop-opacity:0" /></radialGradient></defs><path d="M40,40 Q70,20 100,40 Q130,60 100,80 Q70,100 40,80 Q10,60 40,40 Z" fill="url(%23grad2)"/></svg>') no-repeat 70% 60% / 350px 350px;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
  }

.badge-amb {
  background: rgba(37,99,235,.1);
  color: var(--amb-primary);
  border: 1px solid rgba(37,99,235,.25)
}

.btn-amb {
  background: var(--amb-primary);
  border-color: var(--amb-primary);
  color: #fff;
}

  .btn-amb:hover {
    background: var(--amb-primary-600);
    border-color: var(--amb-primary-600);
    color: #fff;
  }

.price {
  font-weight: 800;
  color: var(--amb-dark);
}

.card-course {
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid #e2e8f0;
}

  .card-course:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(2,8,23,.08)
  }

.chip {
  font-size: .8rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: .25rem .6rem
}

.rating i {
  color: #f59e0b
}

.section-title .subtitle {
  color: var(--amb-primary);
  font-weight: 700;
  letter-spacing: .02em
}

.section-title h2 {
  font-weight: 800
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.1);
  color: var(--amb-primary);
  border-radius: 12px;
  font-size: 1.4rem
}

.footer a {
  color: #cbd5e1;
  text-decoration: none
}

  .footer a:hover {
    color: #fff
  }

.filter-pill {
  cursor: pointer
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.floating-cta {
  position: sticky;
  bottom: 1rem;
  z-index: 1030;
}

.form-check-input:checked {
  background-color: var(--amb-primary);
  border-color: var(--amb-primary)
}

.buy-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(2,8,23,.06)
}

  .buy-card.sticky {
    position: sticky;
    top: 1.25rem
  }

.btn-buy-course {
  background: var(--amb-primary);
  color: #fff
}

  .btn-buy-course:hover {
    background: var(--amb-primary-600);
    color: #fff
  }

.price-tag {
  border: 1px dashed rgba(37,99,235,.45);
  background: rgba(37,99,235,.04)
}

.discount-badge {
  background: #ef4444;
  padding: .1rem .6rem;
  font-weight: 700
}

.old-price {
  text-decoration: line-through;
  color: #94a3b8
}

.new-price {
  font-size: 1.25rem;
  color: var(--amb-dark)
}

.text-title {
  color: var(--amb-dark)
}

.text-menu {
  color: #334155
}

.boldest-text {
  font-weight: bold;
}

.border-title-course {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.btn-register {
  background-color: #e62d7a !important;
  color: white !important;
  border: none !important;
}

  .btn-register:hover {
    background-color: #d11a6a !important;
    color: white !important;
  }

.btn-installment {
  background-color: #26abbd !important;
  color: white !important;
  border: none !important;
}

  .btn-installment:hover {
    background-color: #1e9bb0 !important;
    color: white !important;
  }


.light-style .badge-primary {
  background: rgba(37,99,235,.15);
  color: #1e40af;
  border: 1px solid rgba(37,99,235,.4);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.light-style .badge-success {
  background: rgba(34,197,94,.15);
  color: #166534;
  border: 1px solid rgba(34,197,94,.4);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.light-style .badge-warning {
  background: rgba(245,158,11,.15);
  color: #92400e;
  border: 1px solid rgba(245,158,11,.4);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.light-style .badge-info {
  background: rgba(6,182,212,.15);
  color: #0e7490;
  border: 1px solid rgba(6,182,212,.4);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.dark-style .badge-primary {
  background: rgba(59,130,246,.2);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.5);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.dark-style .badge-success {
  background: rgba(34,197,94,.2);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.5);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.dark-style .badge-warning {
  background: rgba(245,158,11,.2);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,.5);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.dark-style .badge-info {
  background: rgba(6,182,212,.2);
  color: #22d3ee;
  border: 1px solid rgba(6,182,212,.5);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

/* Custom Sections */
.custom-section {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 20px;
}

.dark-style .custom-section {
  background: #1e293b;
}

[dir="rtl"] .section-header {
  text-align: right;
}

[dir="ltr"] .section-header {
  text-align: left;
}

.section-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(59,130,246,.08));
  border-bottom: 2px solid rgba(37,99,235,.2);
  font-weight: 600;
  color: #374151;
}

.dark-style .section-header {
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(59,130,246,.12));
  border-color: rgba(37,99,235,.3);
  color: #e2e8f0;
}

.section-header i {
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--amb-primary), var(--amb-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

  .section-header i:hover {
    transform: scale(1.1);
  }

.lead-custom {
  color: #1f2937 !important;
  margin-top: 2rem;
}

.short-link-input {
  direction: ltr;
  text-align: left;
  border-color: #1e40af;
  border-style: dashed;
}

.btn-dashed {
  border-style: dashed;
}

[dir="rtl"] .section-content {
  text-align: right;
}

[dir="ltr"] .section-content {
  text-align: left;
}

.section-content {
  padding: 20px;
  display: block;
  border: 0.1rem solid #222b3833;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

[dir="rtl"] .session-item {
  border-right: 4px solid var(--amb-primary);
  border-left: none;
}

[dir="ltr"] .session-item {
  border-left: 4px solid var(--amb-primary);
  border-right: none;
}

.session-item {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
}

.dark-style .session-item {
  background: #334155;
  color: #e2e8f0;
}

[dir="rtl"] .contact-info p {
  text-align: right;
}

[dir="ltr"] .contact-info p {
  text-align: left;
}

.contact-info p {
  margin-bottom: 8px;
}

.qr-code {
  margin: 20px 0;
  text-align: center;
}

/* Navigation */
.section-nav {
  margin-bottom: 20px;
  text-align: start;
  padding: 15px;
  border-bottom: 2px solid rgba(37,99,235,.2);
  position: relative;
}

  .section-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient( 90deg, #1e40af 0px, #1e40af 1px, transparent 1px, transparent 4px );
    border-radius: 1px;
  }

.dark-style .section-nav {
  border-color: rgba(59,130,246,.3);
}

.section-nav-link {
  display: inline-block;
  padding: 4px 8px;
  margin: 5px 1px;
  background: rgba(37,99,235,.05);
  color: var(--amb-primary);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(37,99,235,.1);
  position: relative;
}

.dark-style .section-nav-link {
  background: rgba(59,130,246,.15);
  color: var(--amb-primary);
  border-color: rgba(59,130,246,.3);
}

.section-nav-link:hover {
  background: var(--amb-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.section-nav-link i {
  margin-left: 4px;
}

/* Toast Styles */
.custom-toast {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  max-width: 300px;
}

  .custom-toast.show {
    transform: translateX(0);
  }

  .custom-toast.toast-success {
    background: #10b981;
    color: white;
    border-left: 4px solid #059669;
  }

  .custom-toast.toast-error {
    background: #ef4444;
    color: white;
    border-left: 4px solid #dc2626;
  }

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

  .toast-content i {
    font-size: 16px;
  }

/* Additional Gradients */
.custom-section {
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(248,250,252,.95));
}

.dark-style .custom-section {
  background: linear-gradient(135deg, rgba(30,41,59,.9), rgba(15,23,42,.95));
}

.section-header {
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(59,130,246,.08));
}

.dark-style .section-header {
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(59,130,246,.12));
}

.course-image {
  height: auto !important;
 /* object-fit: cover !important;*/
  max-height :750px!important;
  border-radius: 12px !important;
}
.light-style .btn-buy-course {
  background-color: #e1306c !important;
  color: #ffff !important;
  max-height: 40px !important;
}

.dark-style .btn-buy-course {
  background-color: #e1306c !important;
  color: #ffff !important;
}

  .dark-style .btn-buy-course:hover {
    background-color: #e1006c !important;
    color: #ffff !important;
  }

.light-style .btn-buy-course:hover {
  background-color: #e1006c !important;
  color: #ffff !important;
}

.light-style .section-top-course {
  border: solid;
}

.light-style .btn-onilne-course-link {
  background-color: royalblue;
  color: #ffff;
}

  .light-style .btn-onilne-course-link:hover {
    background-color: mediumblue;
    color: #ffff;
  }

.dark-style .btn-onilne-course-link {
  background-color: royalblue;
  color: #ffff;
}

  .dark-style .btn-onilne-course-link:hover {
    background-color: mediumblue;
    color: #ffff;
  }


/* ---------------------- */
/*   تم روشن (Light)      */
/* ---------------------- */
.light-style .box-wrapper {
  background: #ffffff;
  border: 1px dashed #001f3f; /* سورمه‌ای */
  border-radius: 12px;
  padding: 20px 22px;
}

.light-style .info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 0;
  font-size: 1rem;
}

.light-style .label {
  color: #444;
  font-weight: 600;
}

.light-style .value {
  color: #222;
}

.light-style .icon {
  margin-left: 6px;
  color: #555;
}

.light-style .mobile-section,
.light-style .desktop-section {
  padding: 16px;
}

/* دسکتاپ: فونت بزرگ‌تر */
.light-style .desktop-line {
  font-size: 1.15rem;
}

  .light-style .desktop-line .label {
    font-weight: normal !important;
  }



/* ---------------------- */
/*    تم تاریک (Dark)     */
/* ---------------------- */
.dark-style {
  background: #0d1117; /* پس‌زمینه کلی اختیاری */
  color: #e6e6e6;
}

  .dark-style .box-wrapper {
    background: #161b22;
    border: 1px dashed #1f6feb; /* سورمه‌ای روشن‌تر برای دید بهتر */
    border-radius: 12px;
    padding: 20px 22px;
  }

  .dark-style .info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3px 0;
    font-size: 1rem;
  }

  .dark-style .label {
    color: #9bb1c9; /* خاکستری ـ آبی برای خوانایی */
    font-weight: 500;
  }

  .dark-style .value {
    color: #e6e6e6;
  }

  .dark-style .icon {
    margin-left: 6px;
    color: #58a6ff; /* آبی مناسب dark mode */
  }

  .dark-style .mobile-section,
  .dark-style .desktop-section {
    padding: 16px;
  }

  /* دسکتاپ */
  .dark-style .desktop-line {
    font-size: 1.15rem;
  }

    .dark-style .desktop-line .label {
      font-weight: normal !important;
    }
