/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  text-align: center;
  padding: 3rem 0;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to right, #4690d4, #8726b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.header p {
  font-size: 1.25rem;
  color: #d1d5db;
  max-width: 800px;
  margin: 0 auto;
}

/* Course Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Course Card */
.course-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  border-color: #8726b7;
}

.course-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #4690d4, #8726b7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

.course-content {
  padding: 1.5rem;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.course-badge {
  background: #8726b7;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-description {
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.course-duration {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.course-highlights {
  margin-bottom: 1.5rem;
}

.course-highlights h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.course-highlights ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

.course-highlights li {
  margin-bottom: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(to right, #4690d4, #8726b7);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #374151;
  color: #ffffff;
}

.btn-outline:hover {
  background: linear-gradient(to right, #4690d4, #8726b7);
  border-color: transparent;
}

/* Course Detail Page */
.course-detail {
  display: none;
  padding: 2rem 2rem;
  margin-bottom: 10rem;
}

.course-detail.active {
  display: block;
}

.back-button {
  margin-bottom: 2rem;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .course-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.course-detail-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(45deg, #4690d4, #8726b7);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.course-detail-description {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  color: #d1d5db;
}

.course-meta-item strong {
  color: #4690d4;
  margin-right: 0.5rem;
}

/* Timeline */
.timeline-section {
  margin-top: 3rem;
}

.timeline-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
}

.timeline-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.timeline-nav-btn {
  background: #374151;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-nav-btn:hover {
  background: linear-gradient(to right, #4690d4, #8726b7);
}

.timeline-current {
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

.timeline-container {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-scroll {
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-scroll::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  display: flex;
  align-items: center;
  min-width: max-content;
  position: relative;
  padding: 0 2rem;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #374151;
  transform: translateY(-50%);
}

.timeline-points {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 10;
}

.timeline-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-point:hover {
  transform: scale(1.1);
}

.timeline-point.active {
  transform: scale(1.15);
}

.timeline-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #374151;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.timeline-point.active .timeline-circle {
  background: linear-gradient(to right, #4690d4, #8726b7);
  color: white;
  box-shadow: 0 0 0 4px rgba(135, 38, 183, 0.3);
}

.timeline-label {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.timeline-point.active .timeline-label {
  color: #ffffff;
}

/* Module Content */
.module-content {
  background: rgba(55, 65, 81, 0.5);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.module-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.module-topics {
  list-style: none;
  padding: 0;
}

.module-topics li {
  display: flex;
  align-items: flex-start;
  color: #d1d5db;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.module-topics li:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.module-topics li::before {
  content: "✓";
  color: #4690d4;
  font-weight: bold;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
}

/* Enrollment Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #4690d4, #8726b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.modal-description {
  color: #d1d5db;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #4690d4;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
}

.radio-option input {
  margin-right: 0.5rem;
}

.radio-option label {
  color: #d1d5db;
  font-weight: normal;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-footer .btn {
  flex: 1;
}

/* Success State */
.success-content {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #22c55e;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.success-description {
  color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-detail-title {
    font-size: 2rem;
  }

  .timeline-points {
    gap: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

/* Loading State */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  height: 80vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 8rem;
  }

  .hero-content p {
    font-size: 6rem;
    font-weight: 500;
  }
}

#coursesGrid {
  margin-bottom: 15rem;
}
