/* ============================================================
   ARIO — 16 LEARN PRO
   Main title: navy → blue (middle) → navy · animated flow ✨
   Dept titles: Black ⇄ Blue animated (via JS)
   ============================================================ */

/* ============================================================
   PAGE-WIDE WHITE BACKGROUND
   ============================================================ */
body:has(.learn-catalog-hero) {
  background: #ffffff !important;
  background-attachment: initial !important;
}
body:has(.learn-catalog-hero)::before,
body:has(.learn-catalog-hero)::after {
  display: none !important;
  content: none !important;
}

/* ============================================================
   HERO — text + search right · illustration left
   ============================================================ */
.learn-catalog-hero {
  position: relative;
  padding: 4rem 1.5rem 2.5rem;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
}

.learn-catalog-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.learn-catalog-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 150, 243, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.learn-catalog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  text-align: right;
}

/* ────────── TEXT column (right in RTL) ────────── */
.learn-catalog-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-width: 0;
}

/* ────────── VISUAL column (left in RTL) ────────── */
.learn-catalog-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.learn-catalog-hero-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(15, 23, 42, .12));
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.learn-catalog-hero-visual:hover .learn-catalog-hero-img {
  transform: translateY(-6px) scale(1.02);
}

/* ---------- HEADER BLOCK ---------- */
.learn-catalog-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.6rem;
}

/* Tag — English · Blue → Yellow */
.learn-catalog-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--blue-600), var(--yellow-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* ✅ Main title — navy → blue (middle) → navy · ANIMATED FLOW
   → همان افکت «From Origin to Impact» */
.learn-catalog-title {
  font-family: var(--font-fa);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0;
  background: linear-gradient(90deg,
    #1e3a8a 0%,
    #1e40af 20%,
    #1d4ed8 35%,
    #2563eb 45%,
    #3b82f6 50%,
    #2563eb 55%,
    #1d4ed8 65%,
    #1e40af 80%,
    #1e3a8a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: arioTitleFlow 6s ease-in-out infinite;
}

/* ✅ keyframe مشترک — هم‌سبک با acadAcronymShine */
@keyframes arioTitleFlow {
  0%, 100% { background-position:   0% center; }
  50%      { background-position: 100% center; }
}

/* Sub */
.learn-catalog-sub {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 2;
  max-width: 520px;
  margin: 0 0 1.8rem;
  font-weight: 500;
}

/* ============================================================
   SEARCH
   ============================================================ */
.learn-search {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0;
}

.learn-search-icon {
  position: absolute;
  top: 50%; right: 1.1rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-soft);
  pointer-events: none;
  transition: color .25s;
  z-index: 2;
}

.learn-search input {
  width: 100%;
  padding: 1rem 3rem;
  border-radius: 100px;
  border: 1.5px solid rgba(33, 150, 243, .28);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-fa);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow:
    0 8px 24px rgba(33, 150, 243, .1),
    0 0 0 1px rgba(255, 255, 255, .6) inset;
}
.learn-search input::placeholder {
  color: var(--text-soft);
  font-weight: 500;
}
.learn-search input:focus {
  border-color: #2196F3;
  background: #ffffff;
  box-shadow:
    0 12px 32px rgba(33, 150, 243, .2),
    0 0 0 4px rgba(33, 150, 243, .12);
}
.learn-search:focus-within .learn-search-icon { color: #2196F3; }

.learn-search-clear {
  position: absolute;
  top: 50%; left: .8rem;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, .06);
  color: #64748b;
  cursor: pointer;
  display: none;
  place-items: center;
  transition: all .2s;
  z-index: 2;
}
.learn-search-clear.active { display: grid; }
.learn-search-clear:hover {
  background: rgba(239, 68, 68, .15);
  color: #dc2626;
  transform: translateY(-50%) rotate(90deg);
}
.learn-search-clear svg { width: 12px; height: 12px; }

/* ============================================================
   TABS
   ============================================================ */
.learn-tabs-wrap {
  position: sticky;
  top: 96px;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(33, 150, 243, .1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
  padding: .8rem 0;
  transition: top .3s;
}
@media (max-width: 860px) { .learn-tabs-wrap { top: 84px; } }
@media (max-width: 640px) { .learn-tabs-wrap { top: 76px; } }

.learn-tabs {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 1280px;
  margin-inline: auto;
  padding: .15rem 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.learn-tabs::-webkit-scrollbar { display: none; }

.learn-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(232, 236, 243, .95);
  background: #ffffff;
  font-family: var(--font-fa);
  font-size: .85rem;
  font-weight: 800;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.learn-tab:hover {
  border-color: rgba(33, 150, 243, .5);
  color: #1976D2;
  background: #f5fbff;
}
.learn-tab.active {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(33, 150, 243, .4);
}

.learn-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(33, 150, 243, .1);
  font-family: var(--font-fa);
  font-size: .7rem;
  font-weight: 900;
  color: #1976D2;
  transition: background .2s, color .2s;
}
.learn-tab.active .learn-tab-count {
  background: rgba(255, 255, 255, .28);
  color: #fff;
}
.learn-tab-count-soon {
  background: rgba(251, 191, 36, .18);
  color: #b45309;
}

/* ============================================================
   COURSE GROUPS
   ============================================================ */
.learn-catalog-body {
  padding: 3rem 2rem 5rem;
  max-width: 1280px;
  margin-inline: auto;
  background: #ffffff;
}

.course-group {
  margin-bottom: 4rem;
  scroll-margin-top: 180px;
  animation: fadeIn .45s ease;
}
.course-group:last-child { margin-bottom: 0; }

.course-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  border-bottom: 2px dashed rgba(33, 150, 243, .2);
  position: relative;
}
.course-group-head::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 80px;
  height: 2px;
  border-radius: 100px;
  background: linear-gradient(90deg, #2196F3, #3b82f6);
  background-size: 200% 100%;
  animation: borderShine 4s linear infinite;
}

.course-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.course-group-title-inner { min-width: 0; }

.course-group-title {
  font-family: var(--font-fa);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin: 0 0 .35rem;
  background-image: linear-gradient(120deg,
    #334155 0%,
    #475569 20%,
    #2563eb 40%,
    #3b82f6 50%,
    #2563eb 60%,
    #475569 80%,
    #334155 100%);
  background-size: 200% auto;
  background-repeat: no-repeat;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.course-group-desc {
  font-family: var(--font-fa);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

.course-group-count {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 10px;
  background: rgba(33, 150, 243, .08);
  border: 1px solid rgba(33, 150, 243, .22);
  font-family: var(--font-fa);
  font-size: .78rem;
  font-weight: 800;
  color: #1976D2;
  flex-shrink: 0;
}
.course-group-count b {
  font-family: var(--font-fa);
  font-size: .95rem;
  font-weight: 900;
  color: #2196F3;
}
.course-group-count-soon {
  background: rgba(251, 191, 36, .12);
  border-color: rgba(251, 191, 36, .35);
  color: #b45309;
}

.course-group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1220px;
  margin-inline: auto;
}
@media (max-width: 1024px) {
  .course-group-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .course-group-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ============================================================
   ADD-TO-CART — Simple white
   ============================================================ */
.course-group .course-add,
body.guest-mode .course-group .course-add {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  width: 100% !important;
  padding: .7rem 1rem !important;
  margin-top: .1rem !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(33, 150, 243, .35) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #1976D2 !important;
  font-family: var(--font-fa) !important;
  font-size: .85rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: border-color .2s, color .2s, background .2s !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.course-group .course-add svg,
body.guest-mode .course-group .course-add svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  color: currentColor !important;
  transform: none !important;
  animation: none !important;
}
.course-group .course-add:hover,
body.guest-mode .course-group .course-add:hover {
  background: #f5fbff !important;
  background-image: none !important;
  border-color: rgba(33, 150, 243, .7) !important;
  color: #0D47A1 !important;
  transform: none !important;
  box-shadow: none !important;
}
.course-group .course-add:active,
body.guest-mode .course-group .course-add:active {
  background: #e3f2fd !important;
  transform: none !important;
}
body.guest-mode .course-group .course-add::before,
body.guest-mode .course-group .course-add::after {
  display: none !important;
  content: none !important;
}

/* ============================================================
   COMING SOON STATE
   ============================================================ */
.course-group-soon-inner {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 60% at 20% 20%, rgba(33, 150, 243, .06), transparent 65%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(251, 191, 36, .05), transparent 65%),
    linear-gradient(160deg, #ffffff 0%, #fafdff 100%);
  border: 2px dashed rgba(33, 150, 243, .3);
  overflow: hidden;
  isolation: isolate;
}
.course-group-soon-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounceIcon 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(33, 150, 243, .35));
}
@keyframes bounceIcon {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  50%      { transform: translateY(-14px) rotate(5deg) scale(1.08); }
}
.course-group-soon-title {
  font-family: var(--font-fa);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink-900);
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
.course-group-soon-text {
  font-family: var(--font-fa);
  font-size: .92rem;
  line-height: 1.9;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 auto 1.4rem;
  max-width: 460px;
}
.course-group-soon-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.course-group-soon-chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .8);
  border: 1.5px solid rgba(33, 150, 243, .22);
  font-family: var(--font-fa);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-700);
  transition: transform .25s, border-color .25s;
}
.course-group-soon-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 150, 243, .5);
}

/* ============================================================
   EMPTY SEARCH
   ============================================================ */
.learn-empty {
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, .5);
  border: 2px dashed rgba(33, 150, 243, .25);
  max-width: 520px;
  margin-inline: auto;
  animation: fadeIn .3s ease;
}
.learn-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounceIcon 3s ease-in-out infinite;
}
.learn-empty-title {
  font-family: var(--font-fa);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink-900);
  margin: 0 0 .5rem;
}
.learn-empty-text {
  font-family: var(--font-fa);
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin: 0;
}
.learn-empty-text b { color: #1976D2; font-weight: 900; }

/* ============================================================
   EVENTS SECTION
   ============================================================ */
html:not(.dark-mode) .learn-events {
  position: relative;
  margin: 0 auto 3.5rem;
  padding: 2.6rem 2rem 2.6rem;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 110% at 6% 30%,  rgba(33, 150, 243, .16), transparent 65%),
    radial-gradient(ellipse 70% 110% at 94% 70%, rgba(251, 191, 36, .18), transparent 65%),
    radial-gradient(ellipse 60% 90% at 50% 100%, rgba(33, 150, 243, .06), transparent 70%),
    radial-gradient(ellipse 60% 90% at 50% 0%,   rgba(6, 182, 212, .07), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, #f6fbff 45%, #fffdf6 100%);
  border: 1.5px solid rgba(33, 150, 243, .22);
  box-shadow:
    0 20px 55px rgba(33, 150, 243, .12),
    0 0 60px rgba(251, 191, 36, .08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  max-width: 1220px;
  margin-inline: auto;
}
html:not(.dark-mode) .learn-events::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #2196F3 0%,
    #3b82f6 25%,
    #1976D2 50%,
    #FBBF24 75%,
    #2196F3 100%);
  background-size: 200% 100%;
  animation: borderShine 5s linear infinite;
  z-index: 3;
}
html:not(.dark-mode) .learn-events::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 150, 243, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
html:not(.dark-mode) .learn-events > * {
  position: relative;
  z-index: 2;
}

html:not(.dark-mode) .learn-events-tag {
  background: linear-gradient(135deg,
    rgba(33, 150, 243, .14),
    rgba(251, 191, 36, .16));
  border: 1.5px solid rgba(33, 150, 243, .4);
  color: #1976D2;
  box-shadow:
    0 6px 20px rgba(33, 150, 243, .18),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
html:not(.dark-mode) .learn-events-tag-dot {
  background: #2196F3;
  box-shadow: 0 0 10px #2196F3, 0 0 20px rgba(33, 150, 243, .7);
}
html:not(.dark-mode) .learn-events-title-emoji {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .95) 0%, transparent 45%),
    linear-gradient(135deg, #2196F3 0%, #3b82f6 35%, #FBBF24 75%, #F59E0B 100%);
  box-shadow:
    0 8px 22px rgba(33, 150, 243, .5),
    0 0 0 3px rgba(255, 255, 255, .9),
    0 0 32px rgba(251, 191, 36, .45);
}
html:not(.dark-mode) .learn-events-title-emoji::before {
  border-color: rgba(255, 255, 255, .7);
}
html:not(.dark-mode) .learn-events-title-text {
  background: linear-gradient(135deg,
    #2196F3 0%,
    #3b82f6 35%,
    #F59E0B 70%,
    #FBBF24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
  filter: none;
}

/* ============================================================
   EVENT CARDS — WHITE
   ============================================================ */
html:not(.dark-mode) .event-card {
  background: #ffffff;
  color: var(--ink-800);
  box-shadow:
    0 20px 50px rgba(33, 150, 243, .12),
    0 0 0 1px rgba(33, 150, 243, .18) inset;
}
html:not(.dark-mode) .event-card::before {
  background: conic-gradient(
    from 0deg,
    #2196F3 0%,
    #3B82F6 15%,
    #FBBF24 30%,
    #F59E0B 45%,
    #2196F3 60%,
    #FBBF24 75%,
    #2196F3 100%);
}
html:not(.dark-mode) .event-card::after {
  background: #ffffff;
}
html:not(.dark-mode) .event-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 70px rgba(33, 150, 243, .18),
    0 0 40px rgba(251, 191, 36, .12),
    0 0 0 1px rgba(33, 150, 243, .3) inset;
}
html:not(.dark-mode) .event-chain {
  background-image:
    radial-gradient(circle, rgba(33, 150, 243, .55) 0 1.5px, transparent 1.5px 3.5px),
    radial-gradient(circle, rgba(33, 150, 243, .55) 0 1.5px, transparent 1.5px 3.5px);
}
html:not(.dark-mode) .event-title {
  background: linear-gradient(135deg, #1e293b 0%, #2563eb 45%, #3b82f6 100%);
  background-size: auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
  filter: none;
}
html:not(.dark-mode) .event-desc { color: #64748b; }
html:not(.dark-mode) .event-price-row {
  background: linear-gradient(135deg,
    rgba(33, 150, 243, .08),
    rgba(251, 191, 36, .08));
  border: 1px solid rgba(33, 150, 243, .25);
}
html:not(.dark-mode) .event-price-label { color: #1976D2; }
html:not(.dark-mode) .event-price-old {
  color: #94a3b8;
  text-decoration-color: rgba(239, 68, 68, .7);
}
html:not(.dark-mode) .event-price-new {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  background-size: auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
  filter: none;
}
html:not(.dark-mode) .event-btn {
  background: #ffffff;
  border: 1.5px dashed rgba(33, 150, 243, .5);
  color: #1976D2;
  box-shadow: 0 4px 12px rgba(33, 150, 243, .1);
}
html:not(.dark-mode) .event-btn:hover {
  background: #f5fbff;
  border-color: rgba(33, 150, 243, .9);
  box-shadow: 0 8px 20px rgba(33, 150, 243, .22);
}

/* ============================================================
   ONLINE NOTE — LIGHT
   ============================================================ */
.online-note-card {
  background:
    radial-gradient(ellipse 60% 120% at 5% 50%,  rgba(16, 185, 129, .14), transparent 65%),
    radial-gradient(ellipse 60% 120% at 95% 50%, rgba(6, 182, 212, .12), transparent 65%),
    linear-gradient(160deg, #ffffff 0%, #f0fdf4 55%, #ecfeff 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, .35) !important;
  box-shadow:
    0 20px 55px rgba(16, 185, 129, .15),
    0 0 60px rgba(16, 185, 129, .06),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  color: var(--ink-800) !important;
}
.online-note-card::before {
  background: linear-gradient(120deg,
    #10b981, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #10b981) !important;
  background-size: 300% 100% !important;
}
.online-note-card::after {
  background: linear-gradient(120deg,
    transparent, rgba(16, 185, 129, .14) 50%, transparent) !important;
}
.online-note-scanline { display: none !important; }
.online-note-particles span {
  background: #10b981 !important;
  box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, .5) !important;
  opacity: .55 !important;
}
.online-note-particles span:nth-child(1),
.online-note-particles span:nth-child(9) {
  background: #06b6d4 !important;
  box-shadow: 0 0 10px #06b6d4 !important;
}
.online-note-particles span:nth-child(3),
.online-note-particles span:nth-child(11) {
  background: #3b82f6 !important;
  box-shadow: 0 0 10px #3b82f6 !important;
}
.online-note-particles span:nth-child(5) {
  background: #8b5cf6 !important;
  box-shadow: 0 0 10px #8b5cf6 !important;
}
.online-note-particles span:nth-child(7) {
  background: #ec4899 !important;
  box-shadow: 0 0 10px #ec4899 !important;
}
.online-note-icon {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  box-shadow:
    0 14px 32px rgba(16, 185, 129, .35),
    0 0 32px rgba(16, 185, 129, .2),
    inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
.online-note-icon-ring {
  border-color: rgba(16, 185, 129, .6) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, .5) !important;
}
.online-note-icon-ring-2 {
  border-color: rgba(6, 182, 212, .55) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, .5) !important;
}
.online-note-badge {
  background: linear-gradient(135deg,
    rgba(16, 185, 129, .16),
    rgba(6, 182, 212, .12)) !important;
  border: 1px solid rgba(16, 185, 129, .45) !important;
  box-shadow:
    0 4px 14px rgba(16, 185, 129, .18),
    inset 0 0 12px rgba(52, 211, 153, .1) !important;
}
.online-note-badge::before {
  background: linear-gradient(120deg,
    transparent, rgba(110, 231, 183, .7) 50%, transparent) !important;
}
.online-note-badge-text {
  background: linear-gradient(90deg,
    #047857 0%, #0891b2 35%, #10b981 70%, #059669 100%) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 1px 3px rgba(16, 185, 129, .3)) !important;
}
.online-note-live-dot {
  background: #ef4444 !important;
  box-shadow:
    0 0 8px #ef4444,
    0 0 16px rgba(239, 68, 68, .65),
    0 0 28px rgba(239, 68, 68, .35) !important;
}
.online-note-body h3 {
  background: linear-gradient(135deg,
    #047857 0%, #10b981 55%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, .2)) !important;
}
.online-note-body p { color: #475569 !important; }
.online-note-body b {
  background: linear-gradient(135deg, #047857, #10b981) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.online-note-feature {
  background: rgba(255, 255, 255, .85) !important;
  border: 1px solid rgba(16, 185, 129, .3) !important;
  color: #047857 !important;
  backdrop-filter: blur(8px);
}
.online-note-feature svg {
  color: #10b981 !important;
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, .5)) !important;
}
.online-note-feature:hover {
  background: rgba(16, 185, 129, .12) !important;
  border-color: rgba(16, 185, 129, .5) !important;
  box-shadow: 0 8px 18px rgba(16, 185, 129, .25) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .course-group-title { font-size: 1.3rem; }

  /* Hero → single column, text center */
  .learn-catalog-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .learn-catalog-hero-text {
    align-items: center;
    order: 1;
  }
  .learn-catalog-hero-visual {
    order: 2;
  }
  .learn-catalog-hero-img { max-width: 420px; }
  .learn-catalog-head { align-items: center; }
  .learn-catalog-sub  { margin-inline: auto; }
  .learn-search       { margin-inline: auto; }
}

@media (max-width: 640px) {
  .learn-catalog-hero { padding: 2.5rem 1rem 2rem; }
  .learn-catalog-title { font-size: 1.75rem; }
  .learn-catalog-sub { font-size: .9rem; }
  .learn-catalog-hero-img { max-width: 320px; }
  .learn-search input { padding: .85rem 2.7rem; font-size: .88rem; }
  .learn-search-icon { right: .9rem; width: 16px; height: 16px; }

  .learn-tabs { padding: .15rem 1rem; gap: .4rem; }
  .learn-tab { padding: .5rem .9rem; font-size: .78rem; gap: .35rem; border-radius: 10px; }
  .learn-tab-count { min-width: 18px; height: 18px; font-size: .65rem; border-radius: 5px; }

  .learn-catalog-body { padding: 2rem 1rem 3.5rem; }
  .course-group { margin-bottom: 3rem; scroll-margin-top: 160px; }
  .course-group-head { padding-bottom: 1rem; margin-bottom: 1.5rem; gap: .7rem; }
  .course-group-title { font-size: 1.2rem; }
  .course-group-desc { font-size: .82rem; }
  .course-group-count { padding: .35rem .85rem; font-size: .72rem; }
  .course-group-grid { grid-template-columns: 1fr; gap: 1.1rem; }

  .course-group-soon-inner { padding: 2rem 1.2rem; }
  .course-group-soon-icon { font-size: 2.4rem; }
  .course-group-soon-title { font-size: 1rem; }
  .course-group-soon-text { font-size: .86rem; }

  html:not(.dark-mode) .learn-events { padding: 1.8rem 1rem 1.8rem; border-radius: 22px; }
  .online-note-card { padding: 1.6rem 1.2rem !important; }
}

/* ============================================================
   DARK MODE
   ============================================================ */
html.dark-mode body:has(.learn-catalog-hero) {
  background: #05080f !important;
}
html.dark-mode .learn-catalog-hero { background: transparent; }
html.dark-mode .learn-catalog-hero-grid {
  background-image:
    linear-gradient(rgba(33, 150, 243, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 150, 243, .07) 1px, transparent 1px);
}
html.dark-mode .learn-catalog-tag {
  background: linear-gradient(135deg, #3b82f6, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ✅ Dark mode — light-blue → soft-white · ANIMATED FLOW */
html.dark-mode .learn-catalog-title {
  background: linear-gradient(90deg,
    #3b82f6 0%,
    #60a5fa 20%,
    #93c5fd 35%,
    #bfdbfe 45%,
    #dbeafe 50%,
    #bfdbfe 55%,
    #93c5fd 65%,
    #60a5fa 80%,
    #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: arioTitleFlow 6s ease-in-out infinite;
}

html.dark-mode .learn-catalog-sub { color: #94a3b8; }

html.dark-mode .learn-catalog-hero-img {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .55)) brightness(1.05);
}

html.dark-mode .learn-search input {
  background: rgba(13, 20, 36, .85);
  border-color: rgba(33, 150, 243, .3);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04);
}
html.dark-mode .learn-search input:focus {
  border-color: #60a5fa;
  background: var(--surface-2);
  box-shadow: 0 12px 32px rgba(33, 150, 243, .35), 0 0 0 4px rgba(33, 150, 243, .15);
}
html.dark-mode .learn-search input::placeholder { color: #64748b; }
html.dark-mode .learn-search-icon { color: #94a3b8; }
html.dark-mode .learn-search:focus-within .learn-search-icon { color: #60a5fa; }
html.dark-mode .learn-search-clear {
  background: rgba(255, 255, 255, .08);
  color: #94a3b8;
}
html.dark-mode .learn-search-clear:hover {
  background: rgba(248, 113, 113, .25);
  color: #fca5a5;
}

html.dark-mode .learn-tabs-wrap {
  background: rgba(8, 12, 22, .95);
  border-bottom-color: rgba(33, 150, 243, .18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}
html.dark-mode .learn-tab {
  background: rgba(13, 20, 36, .7);
  border-color: rgba(26, 39, 64, .95);
  color: #94a3b8;
}
html.dark-mode .learn-tab:hover {
  border-color: rgba(33, 150, 243, .5);
  color: #60a5fa;
  background: rgba(18, 27, 46, .95);
}
html.dark-mode .learn-tab.active {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(33, 150, 243, .55);
}
html.dark-mode .learn-tab-count {
  background: rgba(33, 150, 243, .16);
  color: #60a5fa;
}
html.dark-mode .learn-tab.active .learn-tab-count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}
html.dark-mode .learn-tab-count-soon {
  background: rgba(251, 191, 36, .18);
  color: #fcd34d;
}

html.dark-mode .learn-catalog-body { background: transparent; }
html.dark-mode .course-group-head { border-bottom-color: rgba(33, 150, 243, .25); }
html.dark-mode .course-group-title {
  background-image: linear-gradient(120deg,
    #94a3b8 0%,
    #cbd5e1 20%,
    #3b82f6 40%,
    #60a5fa 50%,
    #3b82f6 60%,
    #cbd5e1 80%,
    #94a3b8 100%);
  background-size: 200% auto;
  background-repeat: no-repeat;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html.dark-mode .course-group-desc { color: #94a3b8; }
html.dark-mode .course-group-count {
  background: rgba(33, 150, 243, .14);
  border-color: rgba(33, 150, 243, .3);
  color: #60a5fa;
}
html.dark-mode .course-group-count b { color: #93c5fd; }
html.dark-mode .course-group-count-soon {
  background: rgba(251, 191, 36, .14);
  border-color: rgba(251, 191, 36, .35);
  color: #fcd34d;
}

html.dark-mode .course-group .course-add,
html.dark-mode body.guest-mode .course-group .course-add {
  background: transparent !important;
  background-image: none !important;
  border-color: rgba(33, 150, 243, .4) !important;
  color: #60a5fa !important;
  box-shadow: none !important;
  transform: none !important;
}
html.dark-mode .course-group .course-add:hover,
html.dark-mode body.guest-mode .course-group .course-add:hover {
  background: rgba(33, 150, 243, .08) !important;
  border-color: rgba(96, 165, 250, .75) !important;
  color: #93c5fd !important;
  transform: none !important;
  box-shadow: none !important;
}
html.dark-mode .course-group .course-add:active,
html.dark-mode body.guest-mode .course-group .course-add:active {
  background: rgba(33, 150, 243, .15) !important;
  transform: none !important;
}

html.dark-mode .course-group-soon-inner {
  background:
    radial-gradient(ellipse 60% 60% at 20% 20%, rgba(33, 150, 243, .1), transparent 65%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(251, 191, 36, .06), transparent 65%),
    linear-gradient(160deg, #0d1424 0%, #080d1a 100%);
  border-color: rgba(33, 150, 243, .35);
}
html.dark-mode .course-group-soon-title { color: var(--text); }
html.dark-mode .course-group-soon-text  { color: #94a3b8; }
html.dark-mode .course-group-soon-chip {
  background: rgba(13, 20, 36, .8);
  border-color: rgba(33, 150, 243, .35);
  color: #cbd5e1;
}
html.dark-mode .course-group-soon-chip:hover {
  border-color: rgba(96, 165, 250, .7);
  box-shadow: 0 8px 20px rgba(33, 150, 243, .25);
}

html.dark-mode .learn-empty {
  background: rgba(13, 20, 36, .6);
  border-color: rgba(33, 150, 243, .3);
}
html.dark-mode .learn-empty-title { color: var(--text); }
html.dark-mode .learn-empty-text  { color: #94a3b8; }
html.dark-mode .learn-empty-text b { color: #60a5fa; }

html.dark-mode .learn-events-title-text {
  background: linear-gradient(135deg,
    #60a5fa 0%,
    #3b82f6 35%,
    #fbbf24 70%,
    #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
  filter: none;
}

html.dark-mode .online-note-card {
  background:
    radial-gradient(ellipse 60% 120% at 5% 50%,  rgba(16, 185, 129, .28), transparent 65%),
    radial-gradient(ellipse 60% 120% at 95% 50%, rgba(6, 182, 212, .22), transparent 65%),
    linear-gradient(135deg, #0a1a2e 0%, #06101f 55%, #0a1a2e 100%) !important;
  border-color: rgba(52, 211, 153, .4) !important;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .4),
    0 0 60px rgba(16, 185, 129, .12),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  color: #fff !important;
}
html.dark-mode .online-note-body h3 {
  background: linear-gradient(135deg, #6ee7b7 0%, #22d3ee 60%, #a5f3fc 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, .35)) !important;
}
html.dark-mode .online-note-body p { color: #e2e8f0 !important; }
html.dark-mode .online-note-body b {
  background: linear-gradient(135deg, #6ee7b7, #34d399) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
html.dark-mode .online-note-feature {
  background: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #ffffff !important;
}
html.dark-mode .online-note-feature svg { color: #6ee7b7 !important; }
html.dark-mode .online-note-scanline { display: none !important; }

/* ============================================================
   Reduced motion — گرادیان بمونه، انیمیشن بره
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .learn-catalog-title,
  html.dark-mode .learn-catalog-title {
    animation: none !important;
    background-position: 50% center !important;
  }
}