/* Lessons Page Styles */

/* Page Header */
.lessons-page-header {
  text-align: center;
  margin-bottom: 50px;
}

.lessons-page-header h2 {
  font-size: 38px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.lessons-page-header p {
  font-size: 18px;
  color: #666;
  font-weight: 500;
}

/* Lessons Grid */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Lesson Item */
.lesson-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lesson-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.lesson-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
}

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

.lesson-item:hover .lesson-image-wrapper img {
  transform: scale(1.15);
}

/* Featured Label */
.featured-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.featured-label i {
  margin-right: 6px;
}

/* Overlay */
.lesson-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lesson-item:hover .lesson-overlay {
  opacity: 1;
}

.view-details-btn {
  background: white;
  color: #2c3e50;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.lesson-item:hover .view-details-btn {
  transform: translateY(0);
}

.view-details-btn:hover {
  background: #4caf50;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.view-details-btn i {
  margin-left: 6px;
  font-size: 12px;
}

/* Content */
.lesson-content {
  padding: 30px;
}

/* Info Bar */
.lesson-info-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f0f8f0;
  color: #4caf50;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.info-badge i {
  margin-right: 6px;
  font-size: 14px;
}

/* Lesson Name */
.lesson-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.lesson-name a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lesson-name a:hover {
  color: #4caf50;
}

/* Excerpt */
.lesson-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
}

/* Bottom Section */
.lesson-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.instructor-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.instructor-info i {
  color: #4caf50;
  font-size: 16px;
}

/* Price and Book */
.price-book-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lesson-price-tag {
  font-size: 28px;
  font-weight: 700;
  color: #4caf50;
}

.book-now-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.book-now-btn:hover {
  background: linear-gradient(135deg, #388e3c, #2e7d32);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* Empty State */
.empty-state-wrapper {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-content {
  text-align: center;
  max-width: 500px;
  background: white;
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.empty-icon {
  width: 100px;
  height: 100px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.empty-icon i {
  font-size: 48px;
  color: #bbb;
}

.empty-state-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.empty-state-content p {
  color: #666;
  margin-bottom: 25px;
  font-size: 16px;
  font-weight: 500;
}

/* Back Buttons */
.back-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.btn-back-all,
.btn-back-categories {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-back-all:hover,
.btn-back-categories:hover {
  background: #2c3e50;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-back-all i,
.btn-back-categories i {
  margin-right: 8px;
}

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

@media (max-width: 768px) {
  .lessons-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .lesson-image-wrapper {
    height: 250px;
  }

  .lesson-bottom {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .price-book-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .lessons-page-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .lesson-content {
    padding: 20px;
  }

  .lesson-name {
    font-size: 20px;
  }

  .empty-state-content {
    padding: 40px 25px;
  }
}
