/* ============================================
   PAGE-SPECIFIC STYLES — Homepage (Claymorphism)
   Loaded only on the front page.
   Design system: ivons-design-system.css (global)
   Shared rules (data-reveal, wave-divider, keyframes,
   prefers-reduced-motion) live in the design system.
   ============================================ */

/* ============================================
   PAGE-SPECIFIC KEYFRAMES
   Not in design system — used only on homepage.
   ============================================ */

@keyframes floatUp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-2deg); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(45,212,191,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 16px rgba(45,212,191,0.3); }
}

/* ============================================
   1. HERO SECTION — Aurora Gradient
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a3d38 0%, #0F766E 25%, #0D9488 50%, #7C3AED 100%);
  background-size: 300% 300%;
  animation: auroraShift 10s ease infinite;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: var(--iv-radius-full);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: var(--iv-radius-full);
  pointer-events: none;
}

/* Dot pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Floating decorative shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  top: 10%;
  left: -5%;
  filter: blur(60px);
  animation: floatUp 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 250px;
  height: 250px;
  background: rgba(124,58,237,0.12);
  bottom: 5%;
  right: 5%;
  filter: blur(50px);
  animation: floatDown 7s ease-in-out infinite;
}

.hero-shape-3 {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.08);
  top: 20%;
  right: 15%;
  border-radius: var(--iv-radius-xl);
  opacity: 0.5;
  transform: rotate(15deg);
  animation: floatUp 6s ease-in-out infinite 1s;
}

.hero-shape-4 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255,255,255,0.08);
  top: 60%;
  left: 8%;
  border-radius: var(--iv-radius-xl);
  opacity: 0.4;
  transform: rotate(-10deg);
  animation: floatDown 9s ease-in-out infinite 0.5s;
}

.hero-shape-5 {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  top: 35%;
  right: 25%;
  border-radius: 50%;
  opacity: 0.6;
  animation: floatUp 5s ease-in-out infinite 2s;
}

.hero-shape-6 {
  width: 60px;
  height: 60px;
  background: rgba(212,168,83,0.15);
  bottom: 30%;
  left: 20%;
  border-radius: var(--iv-radius-xl);
  opacity: 0.5;
  transform: rotate(25deg);
  animation: floatDown 7s ease-in-out infinite 1.5s;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 8px 20px;
  border-radius: var(--iv-radius-pill);
  font-size: var(--iv-text-small);
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #2DD4BF;
  border-radius: var(--iv-radius-full);
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 8px rgba(45,212,191,0.5);
}

.hero-title {
  font-size: var(--iv-text-hero);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: white;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #2DD4BF, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: calc(var(--iv-text-body) + 1px);
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Hero primary button — white on aurora */
.hero .iv-btn-primary {
  background: white;
  color: var(--iv-primary-900);
  font-weight: 700;
  box-shadow: var(--iv-shadow-cta);
  padding: 14px 32px;
  font-size: 16px;
}
.hero .iv-btn-primary:hover {
  background: #F0FDFA;
  transform: translateY(-2px);
  box-shadow: var(--iv-shadow-cta-hover);
}

/* Hero outline button — glassmorphic on aurora */
.hero .iv-btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 14px 32px;
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero .iv-btn-outline:hover {
  border-color: transparent;
  background: rgba(255,255,255,0.9);
  color: var(--iv-primary-900);
  text-shadow: none;
}

/* Hero trust items */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: var(--iv-text-small);
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-item i {
  color: #2DD4BF;
}

/* ============================================
   HERO VISUAL — Dashboard Mockup
   ============================================ */
.hero-visual {
  flex-shrink: 0;
  width: 440px;
  position: relative;
}

.hero-mockup {
  background: var(--iv-glass-bg);
  border: var(--iv-glass-border);
  backdrop-filter: var(--iv-glass-blur);
  -webkit-backdrop-filter: var(--iv-glass-blur);
  border-radius: var(--iv-radius-3xl);
  padding: 24px;
  box-shadow: var(--iv-shadow-glass), 0 0 60px rgba(15,118,110,0.1);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mockup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--iv-text-primary);
}

.mockup-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--iv-primary-900);
  background: var(--iv-primary-100);
  padding: 4px 12px;
  border-radius: var(--iv-radius-pill);
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.mockup-stat {
  background: var(--iv-bg-page);
  border-radius: var(--iv-radius-xl);
  padding: 16px;
  text-align: center;
}

.mockup-stat-value {
  font-family: var(--iv-font-en);
  font-size: 24px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.mockup-stat:nth-child(1) .mockup-stat-value { color: var(--iv-primary-900); }
.mockup-stat:nth-child(2) .mockup-stat-value { color: var(--iv-accent-700); }

.mockup-stat-label {
  font-size: 12px;
  color: var(--iv-text-light);
  font-weight: 500;
}

.mockup-courses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-course {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--iv-bg-page);
  border-radius: var(--iv-radius-lg);
  transition: all 0.2s;
}

.mockup-course:hover {
  background: var(--iv-primary-100);
}

.mockup-course-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--iv-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.mockup-course-info {
  flex: 1;
}

.mockup-course-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--iv-text-primary);
  margin-bottom: 2px;
}

.mockup-course-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-course-bar {
  flex: 1;
  height: 5px;
  background: var(--iv-border-light);
  border-radius: 3px;
  overflow: hidden;
}

.mockup-course-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s ease-out 0.8s;
}

.mockup-course-percent {
  font-family: var(--iv-font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--iv-primary-900);
  min-width: 28px;
  text-align: left;
}

/* Floating mini-cards beside mockup */
.hero-float-card {
  position: absolute;
  background: var(--iv-glass-bg);
  border: var(--iv-glass-border);
  backdrop-filter: var(--iv-glass-blur);
  -webkit-backdrop-filter: var(--iv-glass-blur);
  border-radius: var(--iv-radius-xl);
  padding: 14px 18px;
  box-shadow: var(--iv-shadow-glass);
  z-index: 5;
}

.hero-float-card.card-top {
  top: -16px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-float-card.card-bottom {
  bottom: -16px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--iv-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.float-text-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--iv-text-primary);
}

.float-text-sub {
  font-size: 11px;
  color: var(--iv-text-light);
}

/* ============================================
   STATS BAR — Glassmorphic
   ============================================ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--iv-glass-bg);
  border: var(--iv-glass-border);
  backdrop-filter: var(--iv-glass-blur);
  border-radius: var(--iv-radius-3xl);
  padding: 6px;
  max-width: 800px;
  margin: 40px auto 0;
  box-shadow: var(--iv-shadow-glass);
  position: relative;
  z-index: 1;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--iv-radius-2xl);
  transition: all 0.3s ease;
  cursor: default;
}

.stat-item:hover {
  background: rgba(255,255,255,0.6);
  transform: scale(1.03);
}

.stat-number {
  font-family: var(--iv-font-en);
  font-size: 30px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  animation: countUp 0.6s ease-out;
}

.stat-item:nth-child(1) .stat-number { color: var(--iv-primary-900); }
.stat-item:nth-child(2) .stat-number { color: var(--iv-accent-700); }
.stat-item:nth-child(3) .stat-number { color: var(--iv-gold); }
.stat-item:nth-child(4) .stat-number { color: var(--iv-primary-700); }

.stat-label {
  font-size: var(--iv-text-small);
  color: var(--iv-text-secondary);
  font-weight: 500;
}

.stat-icon {
  font-size: 18px;
  margin-bottom: 6px;
  opacity: 0.5;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.home-page section {
  position: relative;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.section-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--iv-radius-full);
  background: var(--iv-primary-700);
  opacity: 0.3;
}

.section-divider-dot:first-child {
  opacity: 1;
  width: 8px;
  height: 8px;
  background: var(--iv-gradient-primary);
}

/* ============================================
   2. FEATURES — Dot Pattern + Clay Cards
   ============================================ */
.features {
  padding: var(--iv-section-py) 0;
  background: var(--iv-bg-page);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15,118,110,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--iv-bg-white);
  border: 1.5px solid var(--iv-border-light);
  border-radius: var(--iv-radius-2xl);
  padding: 32px 26px;
  transition: all 0.35s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: var(--iv-shadow-clay);
  cursor: pointer;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 0 0 80px;
  opacity: 0.03;
  transition: opacity 0.3s;
}

.feature-card:nth-child(1)::after { background: var(--iv-primary-900); }
.feature-card:nth-child(2)::after { background: var(--iv-accent-700); }
.feature-card:nth-child(3)::after { background: var(--iv-gold); }
.feature-card:nth-child(4)::after { background: var(--iv-primary-700); }

.feature-card:hover::after { opacity: 0.06; }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--iv-shadow-clay-hover);
  border-color: transparent;
}

/* Colored glow rings on hover */
.feature-card:nth-child(1):hover { box-shadow: var(--iv-shadow-clay-hover), 0 0 0 2px rgba(15,118,110,0.15); }
.feature-card:nth-child(2):hover { box-shadow: var(--iv-shadow-clay-hover), 0 0 0 2px rgba(124,58,237,0.15); }
.feature-card:nth-child(3):hover { box-shadow: var(--iv-shadow-clay-hover), 0 0 0 2px rgba(212,168,83,0.15); }
.feature-card:nth-child(4):hover { box-shadow: var(--iv-shadow-clay-hover), 0 0 0 2px rgba(15,118,110,0.15); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--iv-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  color: white;
  transition: transform 0.3s ease;
}

/* Icon bounce on hover */
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-card:nth-child(1) .feature-icon { background: var(--iv-gradient-primary); }
.feature-card:nth-child(2) .feature-icon { background: var(--iv-gradient-accent); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, var(--iv-gold), var(--iv-gold-light)); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, var(--iv-primary-900), var(--iv-accent-700)); }

.feature-title {
  font-size: var(--iv-text-h3);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--iv-text-primary);
}

.feature-desc {
  font-size: var(--iv-text-small);
  color: var(--iv-text-secondary);
  line-height: 1.7;
}

/* ============================================
   3. FIELDS — Clay Cards + Top Bar Accents
   ============================================ */
.fields {
  padding: var(--iv-section-py) 0;
  background: #F8FAFC;
}

.fields-header {
  text-align: center;
  margin-bottom: 48px;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.field-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--iv-radius-2xl);
  border: 1.5px solid var(--iv-border-light);
  background: var(--iv-bg-white);
  transition: all 0.35s ease-out;
  cursor: pointer;
  box-shadow: var(--iv-shadow-clay);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}

/* Colored top bar on hover */
.field-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--iv-radius-2xl) var(--iv-radius-2xl) 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.field-card:nth-child(1)::before { background: var(--iv-gradient-primary); }
.field-card:nth-child(2)::before { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.field-card:nth-child(3)::before { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.field-card:nth-child(4)::before { background: var(--iv-gradient-accent); }
.field-card:nth-child(5)::before { background: linear-gradient(135deg, #1E293B, #475569); }
.field-card:nth-child(6)::before { background: linear-gradient(135deg, var(--iv-gold), #D97706); }

.field-card:hover::before { opacity: 1; }

.field-card:hover {
  border-color: transparent;
  background: white;
  transform: translateY(-6px);
  box-shadow: var(--iv-shadow-clay-hover);
}

.field-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--iv-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
  color: white;
  transition: transform 0.3s;
}

/* Icon bounce on hover */
.field-card:hover .field-icon { transform: scale(1.1); }

.field-card:nth-child(1) .field-icon { background: var(--iv-gradient-primary); }
.field-card:nth-child(2) .field-icon { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.field-card:nth-child(3) .field-icon { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.field-card:nth-child(4) .field-icon { background: var(--iv-gradient-accent); }
.field-card:nth-child(5) .field-icon { background: linear-gradient(135deg, #1E293B, #475569); }
.field-card:nth-child(6) .field-icon { background: linear-gradient(135deg, var(--iv-gold), #D97706); }

.field-name {
  font-size: var(--iv-text-small);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--iv-text-primary);
}

.field-count {
  font-size: var(--iv-text-xs);
  color: var(--iv-text-light);
}

.fields-cta {
  text-align: center;
  margin-top: 32px;
}

/* ============================================
   4. FEATURED COURSES — Clay + Glow
   ============================================ */
.courses {
  padding: var(--iv-section-py) 0;
  background: var(--iv-bg-page);
}

.courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  background: var(--iv-bg-white);
  border-radius: var(--iv-radius-2xl);
  overflow: hidden;
  border: 1.5px solid var(--iv-border-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--iv-shadow-clay);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--iv-shadow-clay-hover), var(--iv-shadow-glow-primary);
  border-color: transparent;
}

.course-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.course-image-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-image-bg {
  transform: scale(1.05);
}

.course-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.4) 0%, transparent 60%);
}

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--iv-radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: white;
}

.course-badge.popular { background: var(--iv-accent-700); }
.course-badge.free { background: var(--iv-primary-900); }
.course-badge.new { background: var(--iv-gold); color: #1E293B; }

.course-body {
  padding: 20px;
}

.course-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--iv-primary-900);
  background: var(--iv-primary-100);
  padding: 3px 10px;
  border-radius: var(--iv-radius-sm);
  margin-bottom: 10px;
}

.course-title {
  font-size: var(--iv-text-h4);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--iv-text-primary);
}

.course-instructor {
  font-size: var(--iv-text-xs);
  color: var(--iv-text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-instructor-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--iv-radius-full);
  background: var(--iv-bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: var(--iv-text-xs);
  color: var(--iv-text-light);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-stars {
  color: var(--iv-gold);
  font-size: var(--iv-text-xs);
  letter-spacing: 1px;
}

.course-rating-num {
  font-family: var(--iv-font-en);
  font-size: var(--iv-text-xs);
  font-weight: 600;
  color: var(--iv-text-primary);
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--iv-border-light);
}

.course-price {
  font-family: var(--iv-font-en);
  font-size: 20px;
  font-weight: 800;
  color: var(--iv-primary-900);
}

.course-price .currency {
  font-size: var(--iv-text-small);
  font-weight: 600;
}

.course-price.free-price {
  color: var(--iv-primary-700);
  font-size: 16px;
  font-weight: 700;
}

.course-enroll {
  padding: 8px 18px;
  font-size: var(--iv-text-xs);
  font-weight: 600;
  border-radius: var(--iv-radius-md);
  background: var(--iv-primary-900);
  color: white;
  transition: all 0.2s;
}

.course-enroll:hover { background: #0D6B63; }

/* ============================================
   5. HOW IT WORKS — Warm BG + Clay Steps
   ============================================ */
.how-it-works {
  padding: var(--iv-section-py) 0;
  background: var(--iv-bg-warm);
}

.how-header {
  text-align: center;
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: var(--iv-border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: var(--iv-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--iv-font-en);
  font-size: 22px;
  font-weight: 800;
  background: var(--iv-bg-white);
  border: 3px solid var(--iv-primary-100);
  color: var(--iv-primary-900);
  transition: all 0.4s ease;
  box-shadow: var(--iv-shadow-clay);
}

.step-card:hover .step-number {
  background: linear-gradient(135deg, var(--iv-primary-900), var(--iv-primary-700));
  color: white;
  border-color: transparent;
  box-shadow: var(--iv-shadow-primary);
  transform: scale(1.1);
}

.step-title {
  font-size: var(--iv-text-h4);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--iv-text-primary);
}

.step-desc {
  font-size: var(--iv-text-small);
  color: var(--iv-text-secondary);
  line-height: 1.7;
}

/* ============================================
   6. WORKSHOPS PREVIEW (ورشات العمل)
   ============================================ */
.workshops-preview {
  padding: var(--iv-section-py) 0;
  background: linear-gradient(160deg, #0F766E 0%, #0D9488 50%, #14B8A6 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.workshops-preview::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: var(--iv-radius-full);
}

.workshops-preview::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: var(--iv-radius-full);
}

/* Subtle pattern overlay */
.workshops-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.workshops-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.workshops-text { flex: 1; }

.workshops-text .iv-section-label {
  background: rgba(255,255,255,0.15);
  color: white;
}

.workshops-text .iv-section-title {
  color: white;
  font-size: 28px;
  margin-bottom: 16px;
}

.workshops-text .iv-section-desc {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.workshops-visual {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workshop-mini-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--iv-radius-xl);
  padding: 16px;
  backdrop-filter: blur(8px);
}

.workshop-mini-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.workshop-mini-title {
  font-size: var(--iv-text-small);
  font-weight: 700;
  margin-bottom: 4px;
}

.workshop-mini-type {
  font-size: var(--iv-text-xs);
  opacity: 0.7;
}

.btn-white {
  background: white;
  color: var(--iv-primary-900);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--iv-radius-lg);
  transition: all 0.2s;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ============================================
   7. JOBS PREVIEW (الوظائف)
   ============================================ */
.jobs-preview {
  padding: var(--iv-section-py) 0;
  background: var(--iv-bg-white);
}

.jobs-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.jobs-text { flex: 1; }

.jobs-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 380px;
}

.job-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--iv-bg-page);
  border: 1px solid var(--iv-border-light);
  border-radius: var(--iv-radius-lg);
  padding: 14px 16px;
  transition: all 0.2s;
}

.job-mini-card:hover {
  background: white;
  box-shadow: var(--iv-shadow-sm);
  border-color: var(--iv-border);
}

.job-mini-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--iv-radius-md);
  background: var(--iv-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.job-mini-info { flex: 1; }

.job-mini-title {
  font-size: var(--iv-text-small);
  font-weight: 700;
  color: var(--iv-text-primary);
  margin-bottom: 2px;
}

.job-mini-meta {
  font-size: var(--iv-text-xs);
  color: var(--iv-text-light);
}

.job-mini-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--iv-primary-900);
  background: var(--iv-primary-100);
  padding: 3px 8px;
  border-radius: var(--iv-radius-sm);
  flex-shrink: 0;
}

/* ============================================
   8. PRICING PREVIEW — Gradient BG + Clay + Glow
   ============================================ */
.pricing-preview {
  padding: var(--iv-section-py) 0;
  background: linear-gradient(160deg, #F5F3FF 0%, #EDE9FE 40%, #F5F3FF 100%);
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pricing-toggle-label {
  font-size: var(--iv-text-small);
  color: var(--iv-text-secondary);
  font-weight: 500;
}

.pricing-toggle-label.active {
  color: var(--iv-primary-900);
  font-weight: 700;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--iv-border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-switch.active { background: var(--iv-primary-900); }

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--iv-radius-full);
  transition: transform 0.2s;
}

.toggle-switch.active::after { transform: translateX(-22px); }

.save-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--iv-accent-700);
  background: var(--iv-accent-100);
  padding: 3px 10px;
  border-radius: var(--iv-radius-pill);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--iv-bg-white);
  border: 1.5px solid var(--iv-border-light);
  border-radius: var(--iv-radius-3xl);
  padding: 36px 28px;
  position: relative;
  transition: all 0.4s ease-out;
  box-shadow: var(--iv-shadow-clay);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--iv-shadow-clay-hover);
}

/* Featured card — glow effect */
.pricing-card.featured {
  border-color: var(--iv-accent-700);
  box-shadow: var(--iv-shadow-accent), 0 0 60px rgba(124,58,237,0.12);
  background: linear-gradient(160deg, #FFFFFF, #FAF5FF);
  transform: scale(1.04);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow: var(--iv-shadow-accent), 0 0 80px rgba(124,58,237,0.2);
}

.pricing-card.featured::before {
  content: '\0627\0644\0623\0643\062B\0631 \0637\0644\0628\0627\064B';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--iv-accent-700);
  color: white;
  padding: 4px 14px;
  border-radius: var(--iv-radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--iv-text-primary);
}

.pricing-desc {
  font-size: var(--iv-text-xs);
  color: var(--iv-text-light);
  margin-bottom: 20px;
}

.pricing-amount {
  margin-bottom: 24px;
}

.pricing-value {
  font-family: var(--iv-font-en);
  font-size: 40px;
  font-weight: 800;
  color: var(--iv-text-primary);
}

.pricing-period {
  font-size: var(--iv-text-small);
  color: var(--iv-text-light);
  font-weight: 500;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: var(--iv-text-small);
  color: var(--iv-text-secondary);
}

.pricing-feature .check {
  width: 18px;
  height: 18px;
  border-radius: var(--iv-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.pricing-card .pricing-feature .check {
  background: var(--iv-primary-100);
  color: var(--iv-primary-900);
}

.pricing-card.featured .pricing-feature .check {
  background: var(--iv-accent-100);
  color: var(--iv-accent-700);
}

.pricing-card .pricing-cta {
  width: 100%;
  padding: 12px;
  border-radius: var(--iv-radius-lg);
  font-size: var(--iv-text-small);
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}

.pricing-card .pricing-cta.btn-outline-teal {
  border: 1.5px solid var(--iv-primary-900);
  color: var(--iv-primary-900);
}
.pricing-card .pricing-cta.btn-outline-teal:hover {
  background: var(--iv-primary-900);
  color: white;
}

.pricing-card.featured .pricing-cta {
  background: var(--iv-accent-700);
  color: white;
  box-shadow: var(--iv-shadow-accent);
}
.pricing-card.featured .pricing-cta:hover { background: #6D28D9; }

/* ============================================
   9. B2B CTA — Glass Visual
   ============================================ */
.b2b-cta {
  padding: var(--iv-section-py) 0;
  background: var(--iv-bg-white);
}

.b2b-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.b2b-text { flex: 1; }

.b2b-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.b2b-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--iv-text-small);
  font-weight: 500;
  color: var(--iv-text-secondary);
}

.b2b-perk-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--iv-radius-md);
  background: var(--iv-primary-100);
  color: var(--iv-primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* B2B mockup — Glassmorphic */
.b2b-visual {
  flex-shrink: 0;
  width: 400px;
  background: var(--iv-glass-bg);
  border: var(--iv-glass-border);
  backdrop-filter: var(--iv-glass-blur);
  border-radius: var(--iv-radius-3xl);
  padding: 28px;
  box-shadow: var(--iv-shadow-glass);
}

.b2b-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.b2b-mock-title {
  font-size: var(--iv-text-small);
  font-weight: 700;
  color: var(--iv-text-primary);
}

.b2b-mock-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--iv-primary-900);
  background: var(--iv-primary-100);
  padding: 3px 10px;
  border-radius: var(--iv-radius-pill);
}

.b2b-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--iv-border-light);
}

.b2b-mock-row:last-child { border-bottom: none; }

.b2b-mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--iv-radius-full);
  background: var(--iv-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--iv-text-small);
  flex-shrink: 0;
}

.b2b-mock-name {
  font-size: var(--iv-text-xs);
  font-weight: 600;
  color: var(--iv-text-primary);
  flex: 1;
}

.b2b-mock-progress {
  width: 80px;
  height: 6px;
  background: var(--iv-border-light);
  border-radius: 3px;
  overflow: hidden;
}

/* Progress bar fill animation */
.b2b-mock-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--iv-gradient-primary);
}

.b2b-mock-percent {
  font-family: var(--iv-font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--iv-primary-900);
  width: 36px;
  text-align: left;
}

/* ============================================
   10. TESTIMONIALS — Clay + Quote Mark
   ============================================ */
.testimonials {
  padding: var(--iv-section-py) 0;
  background: #F8FAFC;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--iv-bg-white);
  border: 1.5px solid var(--iv-border-light);
  border-radius: var(--iv-radius-2xl);
  padding: 32px 28px;
  transition: all 0.35s ease-out;
  box-shadow: var(--iv-shadow-clay);
  position: relative;
}

/* Decorative quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 72px;
  font-family: Georgia, serif;
  color: var(--iv-primary-100);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--iv-shadow-clay-hover);
  border-color: transparent;
}

.testimonial-stars {
  color: var(--iv-gold);
  font-size: var(--iv-text-small);
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: var(--iv-text-small);
  color: var(--iv-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--iv-radius-full);
  background: var(--iv-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid var(--iv-primary-50);
}

.testimonial-name {
  font-size: var(--iv-text-small);
  font-weight: 700;
  color: var(--iv-text-primary);
}

.testimonial-role {
  font-size: 11px;
  color: var(--iv-text-light);
}

/* ============================================
   11. INSTRUCTORS — Clay Cards
   ============================================ */
.instructors {
  padding: var(--iv-section-py) 0;
  background: var(--iv-bg-white);
}

.instructors-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.instructor-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--iv-radius-2xl);
  border: 1.5px solid var(--iv-border-light);
  background: var(--iv-bg-white);
  transition: all 0.4s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: var(--iv-shadow-clay);
}

.instructor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  opacity: 0;
  transition: opacity 0.3s;
}

.instructor-card:nth-child(1)::before { background: var(--iv-gradient-primary); }
.instructor-card:nth-child(2)::before { background: var(--iv-gradient-accent); }
.instructor-card:nth-child(3)::before { background: linear-gradient(135deg, var(--iv-gold), var(--iv-gold-light)); }
.instructor-card:nth-child(4)::before { background: linear-gradient(135deg, var(--iv-primary-900), var(--iv-accent-700)); }

.instructor-card:hover::before { opacity: 0.08; }

.instructor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--iv-shadow-clay-hover);
  border-color: transparent;
}

.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--iv-radius-full);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid var(--iv-primary-100);
  transition: border-color 0.3s;
}

.instructor-card:hover .instructor-avatar {
  border-color: var(--iv-primary-700);
}

.instructor-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--iv-text-primary);
}

.instructor-specialty {
  font-size: var(--iv-text-xs);
  color: var(--iv-primary-900);
  font-weight: 500;
  margin-bottom: 8px;
}

.instructor-stats {
  font-size: 11px;
  color: var(--iv-text-light);
}

/* ============================================
   12. TRUST BAR (شعارات الثقة)
   ============================================ */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--iv-border-light);
  border-bottom: 1px solid var(--iv-border-light);
  background: var(--iv-bg-white);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: var(--iv-text-small);
  color: var(--iv-text-light);
  font-weight: 500;
  margin-left: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--iv-text-light);
  font-size: var(--iv-text-small);
  font-weight: 600;
}

.trust-logo {
  height: 36px;
  padding: 6px 18px;
  background: var(--iv-bg-page);
  border-radius: var(--iv-radius-lg);
  border: 1px solid var(--iv-border-light);
  font-family: var(--iv-font-en);
  font-size: var(--iv-text-small);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--iv-text-secondary);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.trust-logo svg {
  height: 18px;
  width: auto;
}

.trust-logo:hover {
  border-color: var(--iv-primary-50);
  background: var(--iv-primary-100);
  color: var(--iv-primary-900);
  transform: translateY(-2px);
  box-shadow: var(--iv-shadow-sm);
}

/* ============================================
   13. FINAL CTA — Aurora Gradient
   ============================================ */
.final-cta {
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a3d38 0%, #0F766E 25%, #0D9488 50%, #7C3AED 100%);
  background-size: 300% 300%;
  animation: auroraShift 10s ease infinite;
  color: white;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: var(--iv-radius-full);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  border-radius: var(--iv-radius-full);
  pointer-events: none;
}

.final-cta .iv-section-label {
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
}

.final-cta .iv-section-title {
  font-size: var(--iv-text-h2);
  margin-bottom: 16px;
  color: white;
}

.final-cta .iv-section-desc {
  margin: 0 auto 32px;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Final CTA primary button — white on aurora */
.final-cta .iv-btn-primary {
  background: white;
  color: var(--iv-primary-900);
  font-weight: 700;
  box-shadow: var(--iv-shadow-cta);
  padding: 14px 32px;
  font-size: 16px;
}
.final-cta .iv-btn-primary:hover {
  background: #F0FDFA;
  transform: translateY(-2px);
  box-shadow: var(--iv-shadow-cta-hover);
}

/* Final CTA outline button — glassmorphic on aurora */
.final-cta .iv-btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 14px 32px;
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.final-cta .iv-btn-outline:hover {
  border-color: transparent;
  background: rgba(255,255,255,0.9);
  color: var(--iv-primary-900);
  text-shadow: none;
}

/* ============================================
   MASTERSTUDY SHORTCODE OVERRIDES — Homepage
   Styling the dynamic shortcode output to match
   the Ivons Claymorphism design system.
   ============================================ */

/* --- Courses Carousel --- */
.courses-dynamic .stm_lms_courses_carousel_wrapper {
  margin: 0;
  position: relative;
}

.courses-dynamic .stm_lms_courses_carousel__top {
  display: none !important;
}

/* Course card — clay style */
.courses-dynamic .stm_lms_courses__single {
  border-radius: var(--iv-radius-2xl) !important;
  border: 1.5px solid var(--iv-border-light) !important;
  box-shadow: var(--iv-shadow-clay) !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  background: var(--iv-bg-white) !important;
}

.courses-dynamic .stm_lms_courses__single:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--iv-shadow-clay-hover), var(--iv-shadow-glow-primary) !important;
  border-color: transparent !important;
}

/* Course image */
.courses-dynamic .stm_lms_courses__single--image {
  border-radius: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.courses-dynamic .stm_lms_courses__single--image__container img {
  transition: transform 0.4s ease;
  width: 100%;
  display: block;
}

.courses-dynamic .stm_lms_courses__single:hover .stm_lms_courses__single--image__container img {
  transform: scale(1.05);
}

/* Hide featured badge container */
.courses-dynamic .featured-course-container {
  display: none !important;
}

/* Course inner content */
.courses-dynamic .stm_lms_courses__single--inner {
  padding: 16px 20px 12px !important;
}

/* Course category badge */
.courses-dynamic .stm_lms_courses__single--terms {
  margin-bottom: 8px !important;
}

.courses-dynamic .stm_lms_courses__single--term {
  font-family: var(--iv-font-ar) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--iv-primary-900) !important;
  background: var(--iv-primary-100) !important;
  padding: 3px 10px !important;
  border-radius: var(--iv-radius-sm) !important;
  display: inline-block !important;
  line-height: 1.4 !important;
}

/* Course title */
.courses-dynamic .stm_lms_courses__single--title h5 {
  font-family: var(--iv-font-ar) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--iv-text-primary) !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

/* Course meta row (price) */
.courses-dynamic .stm_lms_courses__single--meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--iv-border-light) !important;
}

.courses-dynamic .stm_lms_courses__single--price {
  font-family: var(--iv-font-en) !important;
  direction: ltr !important;
}

.courses-dynamic .stm_lms_courses__single--price span {
  font-size: 13px !important;
  color: var(--iv-text-light) !important;
  text-decoration: line-through !important;
  font-weight: 400 !important;
}

.courses-dynamic .stm_lms_courses__single--price strong {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--iv-primary-900) !important;
}

/* Hide the duplicate info section (bottom overlay) */
.courses-dynamic .stm_lms_courses__single--info {
  display: none !important;
}

/* Remove preview tooltip text — keep the link for the image */
.courses-dynamic .heading_font[data-preview]::after {
  display: none !important;
}

/* Navigation arrows — clay style */
.courses-dynamic .stm_lms_courses_carousel__button {
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--iv-radius-full) !important;
  background: var(--iv-bg-white) !important;
  border: 1.5px solid var(--iv-border-light) !important;
  box-shadow: var(--iv-shadow-clay) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

.courses-dynamic .stm_lms_courses_carousel__button:first-of-type {
  right: -22px !important;
}

.courses-dynamic .stm_lms_courses_carousel__button:last-of-type {
  left: -22px !important;
}

.courses-dynamic .stm_lms_courses_carousel__button:hover {
  background: var(--iv-primary-900) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: var(--iv-shadow-glow-primary) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.courses-dynamic .stm_lms_courses_carousel__button i {
  color: var(--iv-text-secondary) !important;
  transition: color 0.2s !important;
}

.courses-dynamic .stm_lms_courses_carousel__button:hover i {
  color: white !important;
}

/* --- Instructors Carousel --- */
.instructors-dynamic .stm_lms_instructors_carousel_wrapper {
  margin: 0;
  position: relative;
}

.instructors-dynamic .stm_lms_instructors_carousel__top {
  display: none !important;
}

/* Instructor card — clay style */
.instructors-dynamic .stm_lms_instructors__single {
  text-align: center !important;
  padding: 36px 24px 28px !important;
  border-radius: var(--iv-radius-2xl) !important;
  border: 1.5px solid var(--iv-border-light) !important;
  background: var(--iv-bg-white) !important;
  box-shadow: var(--iv-shadow-clay) !important;
  transition: all 0.4s ease-out !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Gradient header overlay on hover */
.instructors-dynamic .stm_lms_instructors__single::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  opacity: 0;
  transition: opacity 0.3s;
  background: var(--iv-gradient-primary);
  border-radius: var(--iv-radius-2xl) var(--iv-radius-2xl) 0 0;
}

.instructors-dynamic .stm_lms_instructors__single:hover::before {
  opacity: 1;
}

.instructors-dynamic .stm_lms_instructors__single:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--iv-shadow-clay-hover) !important;
  border-color: transparent !important;
}

/* Avatar container — position above the gradient */
.instructors-dynamic .stm_lms_user_side {
  position: relative !important;
  z-index: 2 !important;
}

/* Avatar image */
.instructors-dynamic .stm-lms-user_avatar img {
  width: 80px !important;
  height: 80px !important;
  border-radius: var(--iv-radius-full) !important;
  object-fit: cover !important;
  border: 3px solid var(--iv-primary-100) !important;
  margin: 0 auto 16px !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.instructors-dynamic .stm_lms_instructors__single:hover .stm-lms-user_avatar img {
  border-color: white !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Instructor name */
.instructors-dynamic .stm-lms-user_avatar .user-name h3,
.instructors-dynamic .user-name h3,
.instructors-dynamic .stm_lms_instructors__single h3 {
  font-family: var(--iv-font-ar) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--iv-text-primary) !important;
  margin-bottom: 4px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Position / specialty */
.instructors-dynamic .user-position {
  font-family: var(--iv-font-ar) !important;
  font-size: var(--iv-text-xs) !important;
  color: var(--iv-primary-900) !important;
  font-weight: 500 !important;
  margin-bottom: 12px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Rating & stats */
.instructors-dynamic .stm-lms-user_rating {
  font-size: 12px !important;
  color: var(--iv-text-light) !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Star color */
.instructors-dynamic .stm-lms-user_rating .star-rating,
.instructors-dynamic .star-rating {
  color: var(--iv-gold) !important;
}

/* View profile link — style as clay button */
.instructors-dynamic .stm_lms_instructors__single .stm_lms_instructors__single_view {
  display: inline-block !important;
  margin-top: 16px !important;
  padding: 8px 20px !important;
  border-radius: var(--iv-radius-lg) !important;
  background: var(--iv-primary-100) !important;
  color: var(--iv-primary-900) !important;
  font-family: var(--iv-font-ar) !important;
  font-size: var(--iv-text-xs) !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  position: relative !important;
  z-index: 2 !important;
  text-decoration: none !important;
}

.instructors-dynamic .stm_lms_instructors__single:hover .stm_lms_instructors__single_view {
  background: white !important;
  box-shadow: var(--iv-shadow-clay) !important;
}

/* Navigation arrows — clay style */
.instructors-dynamic .stm_lms_instructors_carousel__button,
.instructors-dynamic .stm_lms_courses_carousel__button {
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--iv-radius-full) !important;
  background: var(--iv-bg-white) !important;
  border: 1.5px solid var(--iv-border-light) !important;
  box-shadow: var(--iv-shadow-clay) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

.instructors-dynamic .stm_lms_instructors_carousel__button:first-of-type,
.instructors-dynamic .stm_lms_courses_carousel__button:first-of-type {
  right: -22px !important;
}

.instructors-dynamic .stm_lms_instructors_carousel__button:last-of-type,
.instructors-dynamic .stm_lms_courses_carousel__button:last-of-type {
  left: -22px !important;
}

.instructors-dynamic .stm_lms_instructors_carousel__button:hover,
.instructors-dynamic .stm_lms_courses_carousel__button:hover {
  background: var(--iv-primary-900) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: var(--iv-shadow-glow-primary) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.instructors-dynamic .stm_lms_instructors_carousel__button i,
.instructors-dynamic .stm_lms_courses_carousel__button i {
  color: var(--iv-text-secondary) !important;
  transition: color 0.2s !important;
}

.instructors-dynamic .stm_lms_instructors_carousel__button:hover i,
.instructors-dynamic .stm_lms_courses_carousel__button:hover i {
  color: white !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; gap: 40px; text-align: center; }
  .hero-text { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { width: 100%; max-width: 400px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .fields-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .workshops-inner, .jobs-inner, .b2b-inner { flex-direction: column; gap: 40px; }
  .workshops-visual { width: 100%; max-width: 360px; }
  .jobs-visual { width: 100%; max-width: 400px; }
  .b2b-visual { width: 100%; max-width: 400px; }
  .hero-title { font-size: 44px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: var(--iv-text-h2); }
  .hero-subtitle { font-size: 16px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .instructors-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .b2b-perks { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; }
  /* Featured card scale reset on mobile */
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-8px); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .iv-btn { width: 100%; }
  .fields-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .field-card { padding: 20px 12px; }
  .field-icon { width: 44px; height: 44px; font-size: 20px; }
}