/**
 * COURSES PAGE REDESIGN - Perfect Chess Academy
 * Following 2025 UX best practices with parent-friendly design
 * Research-backed decision-making tools and clear information architecture
 */

:root {
  /* Course Level Colors */
  --beginner-color: #10b981;
  --beginner-light: rgba(16, 185, 129, 0.1);
  --intermediate-color: #f59e0b;
  --intermediate-light: rgba(245, 158, 11, 0.1);
  --advanced-color: #8b5cf6;
  --advanced-light: rgba(139, 92, 246, 0.1);

  /* Spacing */
  --section-spacing: clamp(3rem, 8vw, 6rem);
  --card-spacing: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================
   HERO SECTION
   ============================================ */
.courses-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  padding: var(--section-spacing) 0 4rem;
  position: relative;
}

.hero-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.separator {
  opacity: 0.5;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-primary);
}

.hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-stats .stat-item i {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   FILTER BAR - Sticky
   ============================================ */
.filter-sticky-bar {
  position: relative;
  top: 70px;
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-primary);
  padding: 1.5rem 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.filter-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent-primary);
  background: rgba(212, 175, 55, 0.1);
}

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.badge-icon {
  font-size: 1.1rem;
}

.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* ============================================
   HOW TO CHOOSE SECTION
   ============================================ */
.how-to-choose-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-secondary);
}

.section-header.centered {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p,
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.decision-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.decision-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid var(--border-primary);
  text-align: center;
  transition: all 0.3s ease;
}

.decision-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.decision-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 50%;
  font-size: 2rem;
  color: var(--bg-primary);
}

.decision-card h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.decision-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ============================================
   COURSE CARDS
   ============================================ */
.courses-grid-section {
  padding: var(--section-spacing) 0;
}

.course-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.course-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Featured Course */
.course-card.featured {
  position: relative;
  border-width: 3px;
  border-color: var(--accent-primary);
}

.featured-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Course Card Header */
.course-card-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-level.beginner {
  background: var(--beginner-light);
  color: var(--beginner-color);
  border: 1px solid var(--beginner-color);
}

.badge-level.intermediate {
  background: var(--intermediate-light);
  color: var(--intermediate-color);
  border: 1px solid var(--intermediate-color);
}

.badge-level.advanced {
  background: var(--advanced-light);
  color: var(--advanced-color);
  border: 1px solid var(--advanced-color);
}

.badge-format {
  background: rgba(100, 100, 100, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
}

.badge-popular,
.badge-exclusive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
}

.course-icon-wrapper {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 2rem;
  flex-shrink: 0;
}

.beginner-color {
  background: var(--beginner-light);
  color: var(--beginner-color);
}

.intermediate-color {
  background: var(--intermediate-light);
  color: var(--intermediate-color);
}

.advanced-color {
  background: var(--advanced-light);
  color: var(--advanced-color);
}

/* Course Card Body */
.course-card-body {
  padding: 0 2rem 2rem;
}

.course-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.course-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.course-meta-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.course-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* What's Included Section */
.whats-included,
.learning-outcomes,
.schedule-section {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-primary);
}

.included-title,
.outcomes-title,
.schedule-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.included-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.included-list li i {
  color: var(--beginner-color);
  font-size: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Learning Outcomes */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.outcome-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.outcome-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.outcome-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Success Metric */
.success-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--accent-primary);
  margin-bottom: 1.5rem;
}

.metric-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-radius: 12px;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.metric-stat {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0 0 0.25rem 0;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Schedule Options */
.schedule-options {
  display: grid;
  gap: 1rem;
}

.schedule-option {
  position: relative;
}

.schedule-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.schedule-option label {
  display: block;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.schedule-option input[type="radio"]:checked + label {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-primary);
}

.schedule-option label strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.schedule-option.full-width {
  grid-column: 1 / -1;
}

.availability {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.availability.available {
  background: rgba(16, 185, 129, 0.2);
  color: var(--beginner-color);
}

.availability.filling-fast {
  background: rgba(245, 158, 11, 0.2);
  color: var(--intermediate-color);
}

/* Eligibility Notice */
.eligibility-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(139, 92, 246, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--advanced-color);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.eligibility-notice i {
  color: var(--advanced-color);
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

/* Course Card Footer */
.course-card-footer {
  padding: 2rem;
  background: var(--bg-primary);
  border-top: 2px solid var(--border-primary);
}

.pricing-section {
  margin-bottom: 1.5rem;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.price-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.price-period {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.price-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.action-buttons {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--beginner-color);
}




/* ============================================
   COMPARISON TABLE - Pixel Perfect Redesign
   ============================================ */
.comparison-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.comparison-wrapper {
  overflow-x: auto;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  margin-top: 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-primary) transparent;
}

.comparison-wrapper::-webkit-scrollbar {
  height: 8px;
}

.comparison-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.comparison-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border-primary);
  border-radius: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

/* Headers */
.comparison-table thead tr {
  background: rgba(255, 255, 255, 0.02);
}

.feature-col-header {
  width: 250px;
  padding: 2rem;
  text-align: left;
}

.plan-col-header {
  width: calc((100% - 250px) / 3);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  position: relative;
  vertical-align: bottom;
  border-left: 1px solid var(--border-primary);
}

.plan-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.plan-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.plan-icon svg {
  width: 32px;
  height: 32px;
}

.plan-beginner {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.plan-intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.plan-advanced {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.plan-col-header:hover .plan-icon {
  transform: translateY(-5px) scale(1.05);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.plan-price .currency {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan-price .period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Featured Header */
.featured-header {
  background: rgba(245, 158, 11, 0.05);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f59e0b;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

/* Body Rows */
.comparison-table tbody tr {
  border-top: 1px solid var(--border-primary);
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr.action-row:hover {
  background: transparent;
}

/* Feature Cell */
.feature-cell {
  padding: 1.25rem 2rem;
  text-align: left;
}

.feature-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  min-width: 20px;
}

/* Value Cells */
.value-cell {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 1px solid var(--border-primary);
}

.featured-cell {
  background: rgba(245, 158, 11, 0.02);
}

.comparison-table tbody tr:hover .featured-cell {
  background: rgba(245, 158, 11, 0.04);
}

/* Icons */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.check-icon svg {
  width: 18px;
  height: 18px;
}

.cross-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.cross-icon svg {
  width: 18px;
  height: 18px;
}

/* Action Row */
.action-row td {
  padding: 2rem 1rem;
  border-top: none;
  background: transparent !important;
}

.btn-select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-select:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-featured-action {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-featured-action:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.mobile-hint {
  display: none;
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .comparison-wrapper {
    margin: 2rem -1rem 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .feature-col-header, 
  .feature-cell {
    position: sticky;
    left: 0;
    background: var(--bg-secondary);
    z-index: 20;
    border-right: 1px solid var(--border-primary);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }

  .mobile-hint {
    display: block;
  }
}


/* ============================================
   FAQ SECTION
   ============================================ */
.parent-faq-section {
  padding: var(--section-spacing) 0;
}

.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
}

.faq-icon {
  color: var(--accent-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-text {
  flex: 1;
}

.faq-arrow {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 4rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.faq-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  border-radius: 16px;
  border: 2px solid var(--accent-primary);
}

.faq-cta p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid var(--border-primary);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: var(--accent-primary);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.author-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-primary);
}

.cta-content-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  border-radius: 24px;
  border: 2px solid var(--accent-primary);
}

.cta-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 50%;
  font-size: 3rem;
  color: var(--bg-primary);
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

.modal-container.modal-large {
  max-width: 800px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-primary);
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.modal-body {
  padding: 2rem;
}

/* Trial Form */
.trial-form .form-group {
  margin-bottom: 1.5rem;
}

.trial-form label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.trial-form input,
.trial-form select,
.trial-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.trial-form input:focus,
.trial-form select:focus,
.trial-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.radio-group {
  display: grid;
  gap: 0.75rem;
}

.radio-option {
  position: relative;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-label {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-primary);
}

.form-info-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(16, 185, 129, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--beginner-color);
  margin-bottom: 1.5rem;
}

.form-info-box i {
  color: var(--beginner-color);
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.form-info-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Enrollment Redirect */
.enrollment-redirect {
  text-align: center;
  padding: 3rem 1rem;
}

.enrollment-redirect i {
  font-size: 4rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.enrollment-redirect h4 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.enrollment-redirect p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.redirect-note {
  font-size: 0.9rem !important;
  margin-top: 1.5rem !important;
}

/* ============================================
   STICKY WHATSAPP BUTTON
   ============================================ */
.whatsapp-sticky {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
  font-size: 1.5rem;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-spacing: clamp(2rem, 5vw, 4rem);
  }

  .comparison-table-wrapper {
    display: block;
  }

  .mobile-comparison {
    display: block;
  }
}

@media (max-width: 768px) {
  .filter-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .filter-group {
    width: 100%;
    min-width: auto;
  }

  .hero-actions,
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-buttons .btn {
    width: 100%;
  }

  .btn-xl {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .decision-tree {
    grid-template-columns: 1fr;
  }

  .course-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-indicators {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-content-box {
    padding: 2rem 1.5rem;
  }

  .cta-trust-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .whatsapp-btn .whatsapp-text {
    display: none;
  }

  .whatsapp-btn {
    width: 60px;
    height: 60px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .faq-answer p {
    padding: 0 1rem 1.5rem 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .hero-stats .stat-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .course-card-body,
  .course-card-footer {
    padding: 1.5rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .filter-sticky-bar {
    position: relative;
    top: 0;
  }
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ============================================
   COURSES FILTER SECTION - 2025 DESIGN
   ============================================ */
.courses-filter-section {
  padding: 2rem 0;
  background: var(--bg-secondary);
  position: relative;
  top: 70px;
  z-index: 100;
  border-bottom: 1px solid var(--border-primary);
}

.filter-bar-2025 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.25rem;
  background: rgba(17, 24, 39, 0.8);
  border-radius: 16px;
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(12px);
}

/* Search Input */
.search-wrapper-enhanced {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.search-icon-enhanced {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input-enhanced {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input-enhanced::placeholder {
  color: var(--text-secondary);
}

.search-input-enhanced:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-clear:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* Category Pills */
.category-pills-2025 {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem 0;
}

.category-pills-2025::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-pill.active {
  background: linear-gradient(135deg, var(--accent-primary), #d97706);
  border-color: transparent;
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.category-pill i {
  font-size: 0.9rem;
}

.pill-label {
  white-space: nowrap;
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.category-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.2);
}

/* Format Toggle */
.format-toggle-2025 {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-primary);
  padding: 0.375rem;
  border-radius: 10px;
  border: 1px solid var(--border-primary);
}

.format-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.format-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.format-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Sort Dropdown */
.sort-wrapper-2025 {
  position: relative;
  min-width: 150px;
}

.sort-select-enhanced {
  width: 100%;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

.sort-select-enhanced:hover,
.sort-select-enhanced:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.sort-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.75rem;
  pointer-events: none;
}

/* Results Info */
.results-info {
  margin-top: 1rem;
}

.results-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.results-text strong {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   COMPARISON TABLE - 2025 REDESIGN
   ============================================ */
.comparison-section {
  padding: var(--section-spacing) 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: 20px;
  border: 2px solid var(--border-primary);
  background: var(--bg-secondary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  min-width: 800px;
}

.comparison-table thead tr {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(31, 41, 55, 0.95) 100%);
}

.comparison-table th {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-bottom: 3px solid var(--border-primary);
  position: relative;
}

.comparison-table th.feature-column {
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 28%;
  padding-left: 2rem;
}

.comparison-table .course-column {
  width: 24%;
  transition: all 0.3s ease;
}

/* Course Headers with Level Colors */
.beginner-col .course-header i {
  color: var(--beginner-color);
}

.intermediate-col .course-header i {
  color: var(--intermediate-color);
}

.advanced-col .course-header i {
  color: var(--advanced-color);
}

.course-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.course-header i {
  font-size: 2.25rem;
  transition: transform 0.3s ease;
}

.course-column:hover .course-header i {
  transform: scale(1.15) rotate(5deg);
}

.course-header h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
}

.badge-small {
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.beginner-col .badge-small {
  background: rgba(16, 185, 129, 0.15);
  color: var(--beginner-color);
  border: 1px solid var(--beginner-color);
}

.intermediate-col .badge-small {
  background: rgba(245, 158, 11, 0.15);
  color: var(--intermediate-color);
  border: 1px solid var(--intermediate-color);
}

.advanced-col .badge-small {
  background: rgba(139, 92, 246, 0.15);
  color: var(--advanced-color);
  border: 1px solid var(--advanced-color);
}

/* Featured Column - Premium Glassmorphism */
.featured-col {
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0.12) 0%,
    rgba(245, 158, 11, 0.04) 100%
  );
  position: relative;
}

.featured-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), #fbbf24, var(--accent-primary));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.featured-star {
  background: linear-gradient(135deg, var(--accent-primary), #fbbf24);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  animation: pulse-star 2s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { 
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
    transform: scale(1.02);
  }
}

/* Table Body */
.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-secondary);
  transition: all 0.3s ease;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.06);
}

.comparison-table td {
  padding: 1.125rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.comparison-table td.feature-name {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 2rem;
  font-size: 0.9rem;
}

.comparison-table td.feature-name i {
  color: var(--accent-primary);
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.comparison-table td.featured-cell {
  background: rgba(245, 158, 11, 0.06);
  font-weight: 600;
  color: var(--text-primary);
}

/* Enhanced Check/X Icons */
.check-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  border: 2px solid var(--beginner-color);
  border-radius: 50%;
  color: var(--beginner-color);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.comparison-table tbody tr:hover .check-yes {
  background: rgba(16, 185, 129, 0.25);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.check-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  color: rgba(239, 68, 68, 0.7);
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.comparison-table tbody tr:hover .check-no {
  background: rgba(239, 68, 68, 0.12);
}

/* Action Row */
.action-row {
  background: var(--bg-secondary) !important;
}

.action-row td {
  padding: 1.75rem 1.25rem;
  border-top: 2px solid var(--border-primary);
}

.action-row .btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.action-row .btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.action-row .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.action-row .btn-primary-outline {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
}

.action-row .btn-primary-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.mobile-comparison {
  display: none;
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
}

/* ============================================
   COURSE CARDS - PROFESSIONAL REDESIGN
   ============================================ */
.courses-grid-section {
  padding: var(--section-spacing) 0;
  background: var(--bg-primary);
}

.course-card {
  background: linear-gradient(145deg, var(--bg-secondary), rgba(31, 41, 55, 0.95));
  border: 2px solid var(--border-primary);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--beginner-color), var(--intermediate-color), var(--advanced-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.course-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(245, 158, 11, 0.08);
}

/* Featured Card - Premium Look */
.course-card.featured {
  border-color: var(--accent-primary);
  border-width: 3px;
}

.course-card.featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent-primary), #fbbf24, var(--accent-primary));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.featured-badge {
  position: absolute;
  top: 0;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent-primary), #fbbf24);
  color: var(--bg-primary);
  padding: 0.625rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Course Card Header */
.course-card-header {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-level.beginner {
  background: rgba(16, 185, 129, 0.15);
  color: var(--beginner-color);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-level.intermediate {
  background: rgba(245, 158, 11, 0.15);
  color: var(--intermediate-color);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-level.advanced {
  background: rgba(139, 92, 246, 0.15);
  color: var(--advanced-color);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-format {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.badge-popular {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.course-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 2.25rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.course-icon-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(20px);
  opacity: 0.5;
}

.beginner-color {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: var(--beginner-color);
}

.intermediate-color {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  color: var(--intermediate-color);
}

.advanced-color {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  color: var(--advanced-color);
}

/* Course Card Body */
.course-card-body {
  padding: 0 2rem 2rem;
}

.course-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.course-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-primary);
}

.course-meta-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.meta-item i {
  color: var(--accent-primary);
  font-size: 1rem;
}

/* Course Card Footer - Clear Pricing */
.course-card-footer {
  padding: 2rem;
  background: linear-gradient(180deg, var(--bg-primary), rgba(17, 24, 39, 0.95));
  border-top: 2px solid var(--border-primary);
}

.pricing-section {
  margin-bottom: 1.5rem;
  text-align: center;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.price-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-period {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--beginner-color);
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
}

.price-note i {
  color: var(--beginner-color);
}

.action-buttons {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.action-buttons .btn {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
}

.action-buttons .btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #d97706);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.3s ease;
}

.action-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45);
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.trust-item i {
  color: var(--beginner-color);
  font-size: 1rem;
}

/* Filter Responsive */
@media (max-width: 992px) {
  .filter-bar-2025 {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  
  .search-wrapper-enhanced {
    max-width: 100%;
  }
  
  .category-pills-2025 {
    order: -1;
    justify-content: flex-start;
  }
  
  .format-toggle-2025,
  .sort-wrapper-2025 {
    width: 100%;
  }
  
  .format-toggle-2025 {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .comparison-table-wrapper {
    border-radius: 12px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.875rem 0.75rem;
  }
  
  .course-header h4 {
    font-size: 1rem;
  }
  
  .course-header i {
    font-size: 1.75rem;
  }
  
  .mobile-comparison {
    display: block;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-primary-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-secondary-outline {
  background: transparent;
  border: 2px solid var(--border-primary);
  color: var(--text-primary);
}

.btn-secondary-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
}

.btn-enroll {
  position: relative;
  overflow: hidden;
}

.btn-enroll::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-enroll:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   FIX: COURSE CARDS GRID LAYOUT
   Prevent stretching on large screens
   ============================================ */
.courses-grid-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 550px), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  margin-bottom: 0; /* Remove margin since grid handles gaps */
  max-width: 100%; /* Prevent overflow */
}

/* For single column on smaller screens */
@media (max-width: 1200px) {
  .courses-grid-section .container {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
}

/* ============================================
   FIX: FILTER BAR MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 768px) {
  .courses-filter-section {
    position: relative;
    top: 0;
    padding: 1rem 0;
  }
  
  .filter-bar-2025 {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
  }
  
  .search-wrapper-enhanced {
    max-width: 100%;
    width: 100%;
  }
  
  .category-pills-2025 {
    width: 100%;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .category-pill {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .category-pill i {
    display: none; /* Hide icons on mobile to save space */
  }
  
  .pill-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    padding: 0 0.375rem;
  }
  
  .format-toggle-2025 {
    width: 100%;
    justify-content: center;
  }
  
  .format-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .sort-wrapper-2025 {
    width: 100%;
  }
  
  .results-info {
    margin-top: 0.75rem;
  }
  
  .results-text {
    font-size: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .filter-bar-2025 {
    padding: 0.75rem;
  }
  
  .category-pills-2025 {
    gap: 0.25rem;
  }
  
  .category-pill {
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
    border-width: 1px;
  }
  
  .pill-label {
    font-size: 0.7rem;
  }
  
  .format-btn {
    padding: 0.375rem;
    font-size: 0.65rem;
  }
  
  .format-btn i {
    font-size: 0.75rem;
  }
  
  .search-input-enhanced {
    padding: 0.625rem 2rem 0.625rem 2.5rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   FIX: COMPARISON TABLE MOBILE
   ============================================ */
@media (max-width: 900px) {
  .comparison-table-wrapper {
    margin-top: 1.5rem;
  }
  
  .comparison-table th.feature-column,
  .comparison-table td.feature-name {
    padding-left: 1rem;
    font-size: 0.8rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .course-header h4 {
    font-size: 0.9rem;
  }
  
  .course-header i {
    font-size: 1.5rem;
  }
  
  .badge-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
  }
  
  .featured-star {
    padding: 0.35rem 0.6rem;
    font-size: 0.6rem;
  }
  
  .check-yes,
  .check-no {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .action-row .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}
 
/* ========================================== 
   MINIMAL CARD COMPONENT (Added) 
   ========================================== */ 
.course-card-minimal { 
  background: var(--card-bg, #ffffff); 
  border-radius: 1.5rem; 
  overflow: hidden; 
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1)); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  border: 1px solid var(--border-light, #e5e7eb); 
  height: 100%; 
} 
 
.course-card-minimal:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1)); 
} 
 
/* === CARD VISUAL HEADER === */ 
.card-visual { 
  height: 180px; 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  z-index: 1; 
} 
 
/* Gradients */ 
.visual-beginner { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); } 
.visual-intermediate { background: linear-gradient(135deg, #fbad41 0%, #f59e0b 100%); } 
.visual-advanced { background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); } 
 
.card-overlay { 
  position: absolute; 
  top: 0; left: 0; right: 0; bottom: 0; 
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 20%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 20%); 
  opacity: 0.6; 
} 
 
.level-badge { 
  position: absolute; 
  top: 1.25rem; 
  left: 1.25rem; 
  padding: 0.35rem 0.75rem; 
  background: rgba(255, 255, 255, 0.25); 
  backdrop-filter: blur(8px); 
  border-radius: 99px; 
  color: white; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  border: 1px solid rgba(255,255,255,0.4); 
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
  display: flex; 
  align-items: center; 
  gap: 0.4rem; 
} 
 
.main-icon { 
  font-size: 5rem; 
  color: rgba(255, 255, 255, 0.9); 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); 
  transform: translateY(10px); 
  transition: transform 0.4s ease; 
} 
 
.course-card-minimal:hover .main-icon { 
  transform: translateY(0) scale(1.1); 
} 
 
.popular-tag { 
  position: absolute; 
  top: 1.25rem; 
  right: 1.25rem; 
  background: white; 
  color: #ef4444; 
  padding: 0.35rem 0.75rem; 
  border-radius: 99px; 
  font-size: 0.75rem; 
  font-weight: 800; 
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); 
  display: flex; 
  align-items: center; 
  gap: 0.4rem; 
  animation: pulse 2s infinite; 
} 
 
/* === CARD BODY === */ 
.card-body { 
  padding: 2rem; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
} 
 
.card-header-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  margin-bottom: 0.5rem; 
} 
 
.card-title { 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: var(--text-main, #1f2937); 
  line-height: 1.2; 
} 
 
.rating-pill { 
  display: flex; 
  align-items: center; 
  gap: 0.25rem; 
  font-weight: 700; 
  font-size: 0.9rem; 
  color: #f59e0b; 
  background: #fffbeb; 
  padding: 0.2rem 0.5rem; 
  border-radius: 6px; 
} 
 
.card-tagline { 
  font-size: 0.9rem; 
  font-weight: 600; 
  color: var(--primary, #ff6b35); 
  margin-bottom: 1rem; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
} 
 
.card-desc { 
  font-size: 0.95rem; 
  color: var(--text-muted, #6b7280); 
  line-height: 1.6; 
  margin-bottom: 2rem; 
  display: -webkit-box; 
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
} 
 
/* Specs Grid */ 
.specs-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem; 
  margin-bottom: 2rem; 
  padding: 1rem 0; 
  border-top: 1px solid var(--border-light, #e5e7eb); 
  border-bottom: 1px solid var(--border-light, #e5e7eb); 
} 
 
.spec-item { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  gap: 0.4rem; 
  color: var(--text-main, #1f2937); 
  font-size: 0.85rem; 
  font-weight: 600; 
} 
 
.spec-item i { 
  color: var(--text-muted, #6b7280); 
  font-size: 1.1rem; 
} 
 
/* === CARD FOOTER === */ 
.card-footer { 
  margin-top: auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
} 
 
.price-container { 
  display: flex; 
  align-items: baseline; 
  color: var(--text-main, #1f2937); 
} 
 
.currency { 
  font-size: 1rem; 
  font-weight: 600; 
  vertical-align: top; 
} 
 
.amount { 
  font-size: 1.75rem; 
  font-weight: 800; 
  line-height: 1; 
} 
 
.period { 
  font-size: 0.85rem; 
  color: var(--text-muted, #6b7280); 
  font-weight: 500; 
  margin-left: 2px; 
} 
 
.btn-details { 
  background: white; 
  color: var(--text-main, #1f2937); 
  border: 1px solid var(--border-light, #e5e7eb); 
  padding: 0.75rem 1.25rem; 
  border-radius: 99px; 
  font-weight: 600; 
  font-size: 0.9rem; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
} 
 
.btn-details:hover { 
  background: var(--bg-tertiary, #f1f5f9); 
  border-color: #cbd5e1; 
  transform: translateX(2px); 
} 
 
.btn-details.primary { 
  background: var(--dark-gradient, linear-gradient(135deg, #1e293b 0%, #334155 100%)); 
  color: white; 
  border: none; 
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2); 
} 
 
.btn-details.primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 15px rgba(15, 23, 42, 0.25); 
} 
 
/* Course Cards Container Grid override */ 
.course-cards-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 2.5rem; 
  max-width: 1280px; 
  margin: 0 auto; 
} 


/* Added by Antigravity for background images - Premium Look */
.card-visual {
  position: relative;
  overflow: hidden;
}

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Dim the image */
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.course-card-minimal:hover .card-bg-img {
  transform: scale(1.1);
  opacity: 0.5;
}

.card-overlay {
  z-index: 1;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.card-visual > *:not(.card-bg-img):not(.card-overlay) {
  position: relative;
  z-index: 2;
}

