/* ============================================
   HOME PAGE STYLES - ENHANCED
   ============================================ */

/* Hero Section */
.hero-section {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 2rem;
}

.trust-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-500);
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.hero-image-container {
  position: relative;
  text-align: center;
}

.hero-image {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
  animation: floatCard 6s ease-in-out infinite;
}

.assessment-card {
  bottom: -10px;
  left: -20px;
  animation-delay: -2s;
}

.floating-card .card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-50);
  color: var(--primary-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-card .card-content h6 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.floating-card .card-content p {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
}

/* Assessment Banner */
.assessment-banner {
  background: var(--primary-50);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--primary-100);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-icon {
  font-size: 2rem;
  color: var(--primary-500);
}

.banner-content h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-700);
  font-weight: 700;
}

.banner-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Category Section */
.category-section {
  padding: 2rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-pill {
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.category-pill:hover,
.category-pill.active {
  background: #0056d2;
  color: white;
  border-color: #0056d2;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Courses Section */
.courses-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.course-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

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

.course-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 2rem;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #16a34a;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.course-content {
  padding: 1.5rem;
}

.course-category {
  color: #0056d2;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.course-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.course-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.course-title a:hover {
  color: #0056d2;
}

.course-instructor {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #fbbf24;
  font-size: 0.875rem;
}

.rating-text {
  color: #6b7280;
  font-size: 0.875rem;
}

.course-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.course-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Learning Paths Section */
.learning-paths-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.section-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.learning-path-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.learning-path-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.path-header {
  margin-bottom: 1.5rem;
}

.path-badge {
  display: inline-block;
  background: var(--primary-500);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.path-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.path-description {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.path-progress {
  margin-bottom: 1.5rem;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.progress-item.completed {
  color: #16a34a;
}

.progress-item.current {
  color: #0056d2;
  font-weight: 500;
}

.progress-item i {
  font-size: 1rem;
}

.progress-more {
  margin-top: 0.5rem;
  margin-left: 1.75rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.path-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.path-price {
  display: flex;
  flex-direction: column;
}

.path-price .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.path-price .courses-count {
  font-size: 0.875rem;
  color: #6b7280;
}

/* CTA Section */
.cta-section {
  background: var(--primary-900);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  display: none;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.feature-item i {
  color: #fbbf24;
  font-size: 1.1rem;
}

.cta-action {
  text-align: center;
}

.cta-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background: white;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
  margin: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  color: #374151;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(1deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-1deg);
  }
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .learning-paths-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-stats {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-header-with-action {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .learning-path-card {
    padding: 1.5rem;
  }

  .path-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

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

  .floating-card {
    display: none;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .assessment-banner .row {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .category-pills {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

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

  .category-pill {
    flex-shrink: 0;
  }

  .path-title {
    font-size: 1.25rem;
  }
}