/* Course Details Page Styles */

/* Course Header */
.course-header {
  background-color: var(--bg-alt);
  padding: 60px 0;
}

.course-header-content {
  display: flex;
  gap: 40px;
}

.course-title-section {
  flex: 1;
}

.course-title-section h1 {
  margin-bottom: 15px;
  font-size: 2.2rem;
}

.course-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.meta-item i {
  margin-left: 5px;
  color: var(--primary-color);
}

.course-image {
  flex: 1;
  position: relative;
}

.course-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Price Card */
.course-price-card {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.enroll-btn {
  font-size: 1.1rem;
  padding: 15px;
}

.price-features {
  margin-top: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.feature-item i {
  margin-left: 10px;
  color: var(--success);
}

/* Course Content Tabs */
.course-content {
  padding: 60px 0;
}

.content-layout {
  display: flex;
  gap: 40px;
}

.main-content {
  flex: 2;
}

.sidebar-content {
  flex: 1;
}

.content-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  padding: 15px 25px;
  font-family: "Vazirmatn", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -1px;
  right: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active:after {
  width: 100%;
}

.tab-content {
  padding: 20px 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.tab-pane h3:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  right: 0;
}

.tab-pane p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Course Features */
.course-features,
.prerequisites,
.target-audience {
  margin-top: 40px;
}

.course-features ul,
.prerequisites ul,
.target-audience ul {
  padding-right: 20px;
}

.course-features li,
.prerequisites li,
.target-audience li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 10px;
  list-style: none;
}

.course-features li:before,
.prerequisites li:before,
.target-audience li:before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary-color);
}

/* Curriculum Section */
.course-sections {
  margin-top: 20px;
}

.course-section {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}

.section-header {
  background-color: var(--bg-alt);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.section-title {
  margin: 0;
  font-size: 1.1rem;
}

.section-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.toggle-section {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.toggle-section:hover {
  background-color: rgba(74, 107, 175, 0.1);
}

.section-content {
  display: none;
}

.lecture-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.lecture-item:last-child {
  border-bottom: none;
}

.lecture-title {
  display: flex;
  align-items: center;
}

.lecture-title i {
  margin-left: 10px;
  color: var(--primary-color);
}

.lecture-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.preview {
  color: var(--secondary-color);
  font-weight: 600;
  cursor: pointer;
}

/* Instructor Tab */
.instructor-profile {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.instructor-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-info {
  flex: 1;
}

.instructor-title {
  color: var(--text-light);
  margin-bottom: 15px;
}

.instructor-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
}

.stat-item i {
  margin-left: 5px;
  color: var(--primary-color);
}

.instructor-social {
  display: flex;
  gap: 10px;
}

.instructor-social .social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.instructor-social .social-link:hover {
  background-color: var(--primary-light);
  color: white;
}

.instructor-bio h4 {
  margin-bottom: 15px;
}

.instructor-bio p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Reviews Tab */
.course-ratings {
  margin-top: 20px;
}

.rating-summary {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  background-color: var(--bg-alt);
  padding: 25px;
  border-radius: 10px;
}

.average-rating {
  text-align: center;
}

.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 10px;
}

.rating-stars {
  margin-bottom: 5px;
  color: #ffc107;
}

.rating-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.rating-bars {
  flex: 1;
}

.rating-bar-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-label {
  width: 70px;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 10px;
}

.rating-fill {
  height: 100%;
  background-color: #ffc107;
}

.rating-percent {
  width: 50px;
  text-align: left;
}

.review-list {
  margin-bottom: 40px;
}

.review-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.review-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.review-content {
  flex: 1;
}

.review-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.review-header h4 {
  margin: 0;
}

.review-rating {
  color: #ffc107;
}

.review-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.review-text p {
  margin: 0;
  line-height: 1.8;
}

.load-more-reviews {
  text-align: center;
}

.write-review {
  margin-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.rating-select {
  display: flex;
  gap: 5px;
  font-size: 1.5rem;
  color: #e0e0e0;
}

.rating-star {
  cursor: pointer;
  transition: color 0.3s;
}

.rating-star:hover,
.rating-star.selected {
  color: #ffc107;
}

textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: "Vazirmatn", Arial, sans-serif;
  resize: vertical;
}

/* Sidebar Widgets */
.widget {
  background-color: var(--bg-alt);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
}

.widget h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.widget h3:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  right: 0;
}

.social-share {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1.2rem;
}

.share-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.related-course-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-course-item {
  display: flex;
  gap: 15px;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.related-course-item:hover {
  background-color: white;
}

.related-course-image img {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.related-course-info {
  flex: 1;
}

.related-course-info h4 {
  margin: 0;
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--text-color);
}

.related-course-price {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Icons (using placeholder characters for simplicity) */
.icon-user::before {
  content: "👤";
}

.icon-category::before {
  content: "📁";
}

.icon-time::before {
  content: "⏱";
}

.icon-level::before {
  content: "📊";
}

.icon-update::before {
  content: "🔄";
}

.icon-check::before {
  content: "✓";
}

.icon-video::before {
  content: "🎬";
}

.icon-file::before {
  content: "📄";
}

.icon-course::before {
  content: "📚";
}

.icon-student::before {
  content: "👨‍🎓";
}

.icon-star::before {
  content: "☆";
}

.icon-star-filled::before {
  content: "★";
}

.icon-star-half::before {
  content: "★";
}

.icon-linkedin::before {
  content: "🔗";
}

.icon-github::before {
  content: "🐙";
}

.icon-twitter::before {
  content: "🐦";
}

.icon-globe::before {
  content: "🌐";
}

.icon-telegram::before {
  content: "📨";
}

.icon-whatsapp::before {
  content: "📱";
}

/* Button Styles */
.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #d55a29;
  color: white;
}

/* Page Header for other pages */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .course-header-content {
    flex-direction: column;
  }

  .content-layout {
    flex-direction: column;
  }

  .rating-summary {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .course-meta {
    flex-direction: column;
    gap: 10px;
  }

  .section-header {
    flex-wrap: wrap;
  }

  .section-meta {
    margin-top: 10px;
  }

  .instructor-profile {
    flex-direction: column;
    text-align: center;
  }

  .instructor-image {
    margin: 0 auto;
  }

  .instructor-stats {
    justify-content: center;
  }

  .instructor-social {
    justify-content: center;
  }

  .review-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .course-title-section h1 {
    font-size: 1.8rem;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .content-tabs {
    overflow-x: auto;
  }
}

