* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #3a3a59;
  background-color: #fff;
}

.container-fluid {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 20px;
}

.main-content {
  padding: 60px 0 60px 0;
}

.header-text {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.header-text h1 {
  font-size: 32px;
  color: #6a4d8a;
  margin-bottom: 10px;
  font-weight: 700;
}

.header-text p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.courses-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #f0f0f0;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #6a4d8a;
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.stat-value {
  font-size: 42px;
  font-weight: 800;
  color: #6a4d8a;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 16px;
  color: #555;
  font-weight: 500;
}

.courses-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 0 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.courses-header-left {
  flex: 1;
  min-width: 200px;
}

.courses-header-left h1 {
  font-size: 28px;
  color: #6a4d8a;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.courses-header-left p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.course-toggle {
  padding: 10px 20px;
  background: white;
  border: 2px solid #6a4d8a;
  border-radius: 8px;
  color: #6a4d8a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.course-toggle:hover {
  background: #6a4d8a;
  color: white;
  transform: translateY(-2px);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  /* Neutralize .courses-grid rules from topics.css */
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.courses-grid .course-card {
  max-width: none;
  margin: 0;
}

.course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #f0f0f0;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #6a4d8a;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
}

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

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

.course-content {
  padding: 25px;
}

.course-content h3 {
  margin: 0 0 10px 0;
  font-size: 22px;
  color: #6a4d8a;
  font-weight: 700;
}

.course-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.course-price {
  font-size: 24px;
  font-weight: 700;
  color: #6a4d8a;
}

.btn-course {
  display: inline-block;
  background-color: #f1d204;
  color: #0a0707;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-course:hover {
  background-color: #6a4d8a;
  color: white;
  transform: translateY(-2px);
}

.my-courses-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px 20px;
  border-radius: 12px;
  margin: 40px 0;
  border: 2px dashed #6a4d8a;
}

.my-courses-section h3 {
  color: #6a4d8a;
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 700;
}

.footer {
  background: #0a0707;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer .footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer .footer-links a:hover {
  color: #f1d204;
}

.info-box {
  padding: 20px 25px;
  margin: 30px 0;
}

.info-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.info-box strong {
  color: #6a4d8a;
}

@media (min-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .courses-header {
    padding: 0 20px;
    margin: 0 0 30px 0;
  }

  .courses-header-left h1 {
    font-size: 32px;
  }

  .stat-card {
    padding: 40px;
  }

  .stat-value {
    font-size: 48px;
  }

  .stat-icon {
    font-size: 56px;
  }
}

@media (min-width: 1200px) {
.container-fluid {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 20px;
}

  .main-content {
    padding-top: 20px;
  }
}

/* Mobile lesson title padding */
@media (max-width: 768px) {
  #lesson-show {
    padding-left: 0;
    padding-right: 0;
  }

  #lesson-show h1 {
    padding: 16px;
    margin-bottom: 20px;
  }
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.nav-link:hover {
  background-color: #6a4d8a;
}

.nav-link.active {
  background-color: #6a4d8a;
}

.course-toggle {
  display: inline-block;
}

.course-toggle:hover {
  background-color: #6a4d8a;
  color: white;
}