/* ==========================================================================
   THEO MODERN DESIGN SYSTEM V2 (2026 Edition)
   Modern styles for: Store Hero, Udemy-style Courses, Sell Hub,
   How It Works, Community & Gamified JobQuest.
   ========================================================================== */

:root {
  --th-primary: #00a86b;
  --th-primary-hover: #008f5a;
  --th-primary-light: #e6f7f0;
  --th-accent: #3b82f6;
  --th-dark: #0f2237;
  --th-dark-soft: #172b42;
  --th-slate: #64748b;
  --th-slate-light: #f8fafc;
  --th-border: #e2e8f0;
  --th-border-dark: #1e3a5f;
  --th-gold: #f59e0b;
  --th-gold-light: #fef3c7;
  --th-purple: #8b5cf6;
  --th-purple-light: #f3e8ff;
  --th-shadow-sm: 0 1px 3px rgba(15, 34, 55, 0.06);
  --th-shadow-md: 0 4px 14px rgba(15, 34, 55, 0.08);
  --th-shadow-lg: 0 12px 30px rgba(15, 34, 55, 0.12);
  --th-radius: 12px;
  --th-radius-lg: 18px;
}

/* ==========================================================================
   1. STORE HERO SECTION (Modern E-commerce & Creator Goods)
   ========================================================================== */
.modern-store-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 168, 107, 0.14) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
              linear-gradient(135deg, #0a1828 0%, #0f2237 60%, #152e4a 100%);
  color: #ffffff;
  padding: 64px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

.modern-store-hero .container {
  position: relative;
  z-index: 2;
}

.store-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.modern-store-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  max-width: 820px;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.modern-store-hero h1 span {
  background: linear-gradient(90deg, #34d399, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modern-store-hero p.lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.store-search-wrap {
  max-width: 680px;
  margin-bottom: 28px;
}

.store-search-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.store-search-bar:focus-within {
  border-color: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25), 0 12px 35px rgba(0, 0, 0, 0.25);
}

.store-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
}

.store-search-bar input::placeholder {
  color: #94a3b8;
}

.store-search-bar button {
  background: #00a86b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.store-search-bar button:hover {
  background: #008f5a;
}

.store-quick-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.store-quick-pills span.label {
  font-weight: 700;
  color: #94a3b8;
  margin-right: 4px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
}

.store-pill:hover,
.store-pill.active {
  background: #ffffff;
  color: #0f2237;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.store-trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.store-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.store-trust-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.store-trust-text span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   2. UDEMY-STYLE COURSES PAGE
   ========================================================================== */
.udemy-hero-banner {
  background: linear-gradient(135deg, #1c1d1f 0%, #2d2f31 100%);
  color: #ffffff;
  padding: 48px 0;
  border-radius: 16px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid #3e4143;
}

.udemy-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 0 32px;
}

@media (max-width: 860px) {
  .udemy-hero-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .udemy-hero-card { display: none; }
}

.udemy-hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
}

.udemy-hero-content p {
  font-size: 1.05rem;
  color: #d1d7dc;
  margin: 0 0 24px;
  line-height: 1.5;
}

.udemy-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #a1a7b3;
}

.udemy-hero-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.udemy-hero-stats strong {
  color: #34d399;
}

.udemy-featured-billboard {
  background: #2d2f31;
  border: 1px solid #4a4d50;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}

.udemy-billboard-badge {
  display: inline-block;
  background: #fbf6c6;
  color: #3d3c0a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.udemy-featured-billboard h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}

.udemy-featured-billboard p.desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 14px;
}

.udemy-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}

.udemy-rating-num {
  font-weight: 800;
  color: #f59e0b;
}

.udemy-stars {
  color: #e59819;
  letter-spacing: 1px;
  font-size: 14px;
}

.udemy-rating-count {
  color: #94a3b8;
  font-size: 12px;
}

.udemy-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.udemy-price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.udemy-price-orig {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.udemy-discount-badge {
  background: #00a86b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Udemy Topic Filter Tabs */
.udemy-topic-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  scrollbar-width: none;
}

.udemy-topic-tabs::-webkit-scrollbar { display: none; }

.udemy-topic-tab {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.udemy-topic-tab:hover,
.udemy-topic-tab.active {
  background: #1c1d1f;
  color: #ffffff;
  border-color: #1c1d1f;
}

/* Udemy Course Card */
.udemy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.udemy-course-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.udemy-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 34, 55, 0.1);
  border-color: #cbd5e1;
}

.udemy-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0f2237;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.udemy-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.udemy-course-card:hover .udemy-card-thumb img {
  transform: scale(1.04);
}

.udemy-play-badge {
  position: absolute;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.udemy-course-card:hover .udemy-play-badge {
  opacity: 1;
  transform: scale(1.08);
}

.udemy-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.udemy-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.udemy-category-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
}

.udemy-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.udemy-card-title a {
  color: inherit;
  text-decoration: none;
}

.udemy-card-title a:hover {
  color: #00a86b;
}

.udemy-card-instructor {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.udemy-card-specs {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.udemy-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Udemy Trust Strip */
.udemy-guarantees-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px 24px;
  margin-top: 48px;
}

.udemy-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.udemy-guarantee-item {
  display: flex;
  gap: 14px;
}

.udemy-guarantee-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.udemy-guarantee-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.udemy-guarantee-item p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   3. MODERN SELL PAGE (Creator Economy & Multi-earning Hub)
   ========================================================================== */
.modern-sell-hero {
  background: radial-gradient(circle at 85% 15%, rgba(0, 168, 107, 0.15) 0%, transparent 60%),
              linear-gradient(135deg, #0f2237 0%, #173250 100%);
  color: #ffffff;
  padding: 60px 0 48px;
  border-radius: 20px;
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 34, 55, 0.15);
}

.modern-sell-hero-inner {
  padding: 0 40px;
}

@media (max-width: 640px) {
  .modern-sell-hero-inner { padding: 0 20px; }
}

.modern-sell-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 16px;
}

.modern-sell-hero h1 span {
  background: linear-gradient(90deg, #34d399, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modern-sell-hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.sell-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: #94a3b8;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sell-perks-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}

.sell-perks-row strong {
  color: #34d399;
}

/* 3-Path Arrangement */
.modern-path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .modern-path-grid { grid-template-columns: 1fr; }
}

.modern-path-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.modern-path-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 16px 32px rgba(15, 34, 55, 0.08);
}

.modern-path-card.featured {
  border: 2px solid #00a86b;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 35%);
}

.path-badge-featured {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #00a86b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.path-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.modern-path-card.featured .path-card-icon {
  background: #dcfce7;
  color: #15803d;
}

.modern-path-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.modern-path-card p.path-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 20px;
  min-height: 40px;
}

.path-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 13px;
  color: #334155;
}

.path-feature-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.path-feature-list li::before {
  content: "✓";
  color: #00a86b;
  font-weight: 800;
}

.modern-path-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Modern Creator Earnings Calculator */
.creator-calc-card {
  background: #0f2237;
  color: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 800px) {
  .creator-calc-card { grid-template-columns: 1fr; padding: 24px; }
}

.calc-box-result {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.calc-box-result small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-box-result .calc-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
  margin-bottom: 6px;
}

/* ==========================================================================
   4. MODERN HOW IT WORKS PAGE
   ========================================================================== */
.modern-hiw-hero {
  text-align: center;
  padding: 56px 0 40px;
  max-width: 800px;
  margin: 0 auto 36px;
}

.modern-hiw-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 16px;
}

.modern-hiw-hero h1 span {
  color: #00a86b;
}

.modern-hiw-hero p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 auto 28px;
}

.modern-hiw-role-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.hiw-role-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hiw-role-btn:hover,
.hiw-role-btn.active {
  background: #0f2237;
  color: #ffffff;
  border-color: #0f2237;
  box-shadow: 0 4px 14px rgba(15, 34, 55, 0.15);
}

.modern-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
  margin-bottom: 56px;
}

.timeline-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.timeline-step-card:hover {
  transform: translateY(-4px);
  border-color: #00a86b;
  box-shadow: 0 12px 24px rgba(0, 168, 107, 0.08);
}

.timeline-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}

.timeline-step-time {
  float: right;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
}

.timeline-step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.timeline-step-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
}

.timeline-step-tip {
  background: #f8fafc;
  border-left: 3px solid #38bdf8;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: #334155;
}

/* ==========================================================================
   5. MODERN COMMUNITY HUB
   ========================================================================== */
.modern-comm-hero {
  background: linear-gradient(135deg, #0e1e30 0%, #152d47 100%);
  color: #ffffff;
  padding: 48px 0 36px;
  border-radius: 18px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.modern-comm-hero-inner {
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

@media (max-width: 800px) {
  .modern-comm-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }
}

.modern-comm-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}

.modern-comm-hero h1 span {
  color: #34d399;
}

.modern-comm-hero p {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.comm-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #94a3b8;
}

.comm-stats-row strong {
  color: #ffffff;
}

.modern-comm-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modern-comm-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 34, 55, 0.06);
}

.comm-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comm-badge-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.comm-badge-question { background: #e0e7ff; color: #4338ca; }
.comm-badge-experience { background: #dcfce7; color: #15803d; }
.comm-badge-tip { background: #fef3c7; color: #b45309; }

.comm-expert-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}

.comm-expert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comm-expert-badge {
  background: #00a86b;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   6. GAMIFIED JOBQUEST LEARNING LAB
   ========================================================================== */
.modern-jq-hero {
  background: linear-gradient(135deg, #09131f 0%, #0f2237 70%, #1a385c 100%);
  color: #ffffff;
  padding: 44px 0 36px;
  border-radius: 20px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modern-jq-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.jq-hud-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.jq-hud-badge {
  background: #00a86b;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}

.jq-hud-streak {
  color: #f97316;
  font-weight: 800;
}

.jq-interactive-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: 0 12px 30px rgba(15, 34, 55, 0.06);
  transition: all 0.2s ease;
}

.jq-progress-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.jq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00a86b, #38bdf8);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.jq-option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.jq-option-btn:hover:not(:disabled) {
  background: #ffffff;
  border-color: #00a86b;
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.12);
  transform: translateY(-2px);
}

.jq-option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.jq-option-btn.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

.jq-option-btn.correct .jq-option-letter {
  background: #10b981;
  color: #ffffff;
}

.jq-option-btn.incorrect {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.jq-option-btn.incorrect .jq-option-letter {
  background: #ef4444;
  color: #ffffff;
}

.jq-feedback-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.jq-feedback-box.show {
  display: block;
}

/* Olympic Podium for Leaderboard */
.jq-podium-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 32px 0 24px;
  padding-bottom: 16px;
}

.jq-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
}

.jq-podium-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
  border: 3px solid;
}

.jq-podium-1 { order: 2; }
.jq-podium-1 .jq-podium-avatar { border-color: #eab308; background: #fef08a; color: #854d0e; }
.jq-podium-1 .jq-podium-block { height: 110px; background: linear-gradient(180deg, #fef08a, #ca8a04); }

.jq-podium-2 { order: 1; }
.jq-podium-2 .jq-podium-avatar { border-color: #94a3b8; background: #e2e8f0; color: #334155; }
.jq-podium-2 .jq-podium-block { height: 80px; background: linear-gradient(180deg, #e2e8f0, #94a3b8); }

.jq-podium-3 { order: 3; }
.jq-podium-3 .jq-podium-avatar { border-color: #f97316; background: #ffedd5; color: #9a3412; }
.jq-podium-3 .jq-podium-block { height: 60px; background: linear-gradient(180deg, #fed7aa, #ea580c); }

.jq-podium-block {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 800;
  font-size: 18px;
}


/* ==========================================================================
   MOBILE-OPTIMIZED UDEMY-STYLE SEARCH & FILTER BAR
   ========================================================================== */
.modern-course-filter-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(15, 34, 55, 0.04);
}

.course-search-row {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.course-search-row:focus-within {
  background: #ffffff;
  border-color: #00a86b;
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}

.course-search-row svg {
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 8px;
}

.course-search-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 4px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  width: 100%;
}

.course-search-row button {
  background: #0f2237;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}

.course-search-row button:hover {
  background: #00a86b;
}

.course-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.is-active {
  background: #0f2237;
  color: #ffffff;
  border-color: #0f2237;
}

.filter-count-badge {
  background: #00a86b;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.course-sort-select {
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 28px 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.course-active-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #f1f5f9;
  scrollbar-width: none;
}

.course-active-chips::-webkit-scrollbar { display: none; }

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e6f7f0;
  color: #008f5a;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.active-chip-clear {
  color: #008f5a;
  font-size: 13px;
  font-weight: 800;
  margin-left: 2px;
}

.clear-all-link {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
  white-space: nowrap;
}

.course-filter-drawer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  transition: all 0.25s ease;
}

.filter-drawer-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.drawer-select-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.drawer-select {
  width: 100%;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 28px 9px 12px;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.drawer-select:focus {
  border-color: #00a86b;
  background-color: #ffffff;
}

@media (max-width: 640px) {
  .course-filter-drawer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .filter-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
  }
  .filter-drawer-actions button,
  .filter-drawer-actions a {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
}
