/* Add responsiveness */
@media (max-width: 768px) {
    .course-header {
      flex-direction: column;
      gap: 20px;
    }
  
    .course-info {
      padding-right: 0;
    }
  
    .course-sidebar {
      width: 100%;
      margin-top: 20px;
    }
  
    .curriculum-frame {
      padding: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .course-title {
      font-size: 24px;
    }
  
    .instructor-name {
      font-size: 14px;
    }
  
    .curriculum-title {
      font-size: 18px;
    }
  
    .meta-item {
      font-size: 14px;
      padding: 8px;
    }
  
    .buy-now-btn {
      padding: 10px 20px;
      font-size: 14px;
    }
  
    .voucher-section input {
      width: 100%;
      margin-bottom: 10px;
    }
  
    .voucher-section button {
      width: 100%;
    }
  }
  

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.course-info {
    flex: 1;
    padding-right: 20px;
}
.course-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.instructor-name {
    font-size: 16px;
    color: #555; /* Subtle gray color */
    margin-bottom: 10px;
    font-weight: bold; /* Emphasize the instructor's name */
    display: flex;
    align-items: center;
    gap: 5px;
}

.instructor-name::before {
    content: "Instructor: "; /* Add a label before the name */
    font-size: 14px;
    color: #aaa; /* Light gray for the label */
    font-weight: normal;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.course-meta div {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #555;
}
.course-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}
.course-sidebar {
    max-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.course-sidebar img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}
.course-price {
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
}
.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #aaa;
}
.featured-review {
    padding: 20px;
}
.featured-review p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.review-stars {
    color: #f1c40f;
    font-size: 16px;
}
.voucher-section {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}
.voucher-section input {
    width: calc(100% - 120px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}
.voucher-section button {
    padding: 10px 20px;
    background-color: teal;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}
.voucher-section button:hover {
    background-color: #005f4f;
}
.buy-now-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.buy-now-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.course-overview-frame {
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.course-overview-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.course-overview-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Curriculum Frame Styling */
.curriculum-frame {
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.curriculum-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-arrow {
    font-size: 18px;
    color: #555;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.toggle-arrow.collapsed {
    transform: rotate(-90deg); /* Rotate arrow when collapsed */
}

.curriculum-content {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    display: none; /* Hidden by default */
}

/* Course Meta Section Styling */
.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    justify-content: space-around;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meta-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.meta-icon {
    font-size: 18px;
    color: #3498db; /* Light blue icon color */
}

.meta-text {
    font-size: 16px;
    color: #555;
    font-weight: normal;
}

.watch-now-container {
    text-align: center; /* Center-align the button */
    margin-top: 10px; /* Add spacing above the button */
}

.watch-now-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.watch-now-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.course-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px; /* Add rounded corners to the image */
    margin-bottom: 20px; /* Add space below the image */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.course-image-container img {
    width: 100%;
    height: auto;
    display: block;
}