/* Course Details Page Styles */

/* Breadcrumb */
.breadcrumb {
  background: #f8f9fa;
  padding: 1rem 0;
  margin-top: 70px;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #0056b3;
}

.separator {
  color: #6c757d;
}

.current {
  color: #6c757d;
  font-weight: 500;
}

/* Course Hero Section */
.course-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.course-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.course-badge {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.level-badge,
.category-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.level-badge {
  background: #e3f2fd;
  color: #1976d2;
}

.category-badge {
  background: #f3e5f5;
  color: #7b1fa2;
}

.course-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.course-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

.meta-item i {
  color: #007bff;
  width: 16px;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.original-price {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
}

.discount {
  background: #28a745;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.course-actions {
  display: flex;
  gap: 1rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.course-hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.course-hero-image:hover {
  transform: scale(1.02);
}

.course-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-hero-image:hover .image-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button i {
  font-size: 2rem;
  color: #007bff;
  margin-left: 5px;
}

.preview-text {
  color: white;
  font-weight: 500;
}

/* Course Overview */
.course-overview {
  padding: 80px 0;
  background: white;
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.overview-content h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.overview-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.overview-highlights h3,
.overview-features h3 {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin-bottom: 3rem;
}

.highlights-list li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 2rem;
}

.highlights-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Course Info Card */
.course-info-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.course-info-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-of-type {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #333;
}

.info-value {
  color: #666;
  text-align: right;
}

.next-batch {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #007bff;
  text-align: center;
}

.next-batch h4 {
  color: #007bff;
  margin-bottom: 1rem;
}

.batch-date {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.batch-time {
  color: #666;
  font-size: 0.9rem;
}

/* Course Modules */
.course-modules {
  padding: 80px 0;
  background: #f8f9fa;
}

.modules-container {
  display: grid;
  gap: 2rem;
}

.module-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.module-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.module-number {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.module-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.module-duration {
  opacity: 0.9;
  font-size: 0.9rem;
}

.module-content {
  padding: 2rem;
}

.module-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.module-topics {
  list-style: none;
  padding: 0;
}

.module-topics li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.module-topics li:last-child {
  border-bottom: none;
}

.module-topics li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
}

/* Course Timeline */
.course-timeline {
  padding: 80px 0;
  background: white;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #007bff;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 15px;
  top: 0;
  width: 30px;
  height: 30px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Course CTA */
.course-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: #007bff;
}

.cta-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .course-hero-grid,
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .course-title {
    font-size: 2.5rem;
  }

  .course-meta {
    grid-template-columns: 1fr;
  }

  .course-actions {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .course-info-card {
    position: static;
    order: -1;
  }

  .timeline-container::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  .course-title {
    font-size: 2rem;
  }

  .course-badge {
    flex-direction: column;
    gap: 0.5rem;
  }

  .course-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .module-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .module-content,
  .course-info-card {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .course-actions,
  .cta-buttons {
    display: none;
  }

  .course-hero,
  .course-modules,
  .course-timeline {
    background: white !important;
  }

  .module-header {
    background: #f8f9fa !important;
    color: #333 !important;
  }
}
