/* Header Section */
.course-header {
  background: #002f2f;
  padding: 40px 20px;
  border-bottom: 1px solid #e6e6e6;
  color: #fff;
}

.course-container {
  max-width: 1000px;
  margin: auto;
  color: #fff;
}

.course-category {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 10px;
}

.course-container h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.course-desc {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.course-features span {
  margin-right: 20px;
  font-weight: 500;
  color: #fff;
}

.course-pricing {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.old-price {
  text-decoration: line-through;
  color: #fff;
  font-size: 1.1rem;
}

.new-price {
  background: #ffeb3b;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 1.3rem;
  color: #000;
  border-radius: 4px;
}

.enroll-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.enroll-btn:hover {
  background: #0056b3;
}

/* Features Section */
.features-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  width: 60px;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
}

/* Layout: two-column structure */
.course-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between; /* ensures both sides align perfectly */
  gap: 40px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Left side fixed/sticky */
.left-course {
  position: sticky;
  top: 100px; /* distance from top during scroll */
  flex: 0 0 35%; /* slightly smaller for balance */
  max-width: 380px;
  height: fit-content;
  background: linear-gradient(135deg, #0b7dda 0%, #36c3f0 100%);
  padding: 25px;
  border-radius: 12px;
  color: #fff;
  box-sizing: border-box;
}

/* Video Container */
.video-container {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 240px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Course Benefits */
.benefits-title {
  font-weight: 600;
  font-size: 1.3rem;
  margin: 20px 0 15px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  padding: 6px 0;
}

.benefits-list i {
  color: #fff;
  font-size: 1rem;
  margin-right: 8px;
}

/* Right side takes remaining space perfectly */
.right-course {
  flex: 1;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-right: 0;
}

.course-category {
  color: #137fcf;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.right-course h1 {
  font-size: 2.2rem;
  color: #000;
  margin-bottom: 10px;
}

.course-desc {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 20px;
}

.course-features span {
  margin-right: 20px;
  font-weight: 500;
  color: #333;
  background: #f0f8ff;
  padding: 6px 12px;
  border-radius: 6px;
}

.course-pricing {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 1.1rem;
}

.new-price {
  background: #ffeb3b;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 1.3rem;
  color: #000;
  border-radius: 4px;
}

.enroll-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.enroll-btn:hover {
  background: #0056b3;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 992px) {
  .course-top {
    flex-direction: column;
    padding: 20px;
  }

  .left-course {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .right-course {
    width: 100%;
    max-width: 100%;
  }
}
