/* =========================================
   COURSE DETAILS STYLES
   ========================================= */

/* --- COURSE CONTENT LAYOUT --- */
.course-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 140px auto 80px;
  padding: 0 5%;
}

/* Left Column */
.course-main {
  padding-right: 20px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  margin: 0 10px;
  opacity: 0.5;
}

/* Title Area */
.course-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
  color: white;
}
.course-tag {
  display: inline-block;
  background: rgba(39, 217, 83, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.course-short-desc {
  font-size: 1.1rem;
  color: #ccd6d0;
  margin-bottom: 25px;
}

.course-meta-row {
  display: flex;
  gap: 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  align-items: center;
}
.meta-item i {
  color: #f59e0b;
  margin-right: 5px;
} /* Gold star */
.meta-item.updated i {
  color: var(--primary);
}

/* Sections General */
.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
}
.content-section h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

/* What You'll Learn */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.learn-item {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: #d1d9d4;
  align-items: flex-start;
}
.learn-item i {
  color: var(--primary);
  margin-top: 5px;
  min-width: 16px;
}

/* Curriculum Accordion */
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  text-align: left;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}
.accordion-header i {
  transition: 0.3s;
  color: var(--text-muted);
}
.accordion-header.active i {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.2);
}
.lesson-list {
  list-style: none;
  padding: 20px;
}
.lesson-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.lesson-item:last-child {
  margin-bottom: 0;
}
.lesson-title i {
  margin-right: 10px;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Instructor */
.instructor-box {
  display: flex;
  gap: 20px;
  align-items: center;
}
.instructor-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.instructor-info h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.instructor-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}
.inst-rating {
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- RIGHT STICKY SIDEBAR --- */
.course-sidebar {
  position: relative;
}
.sticky-card {
  position: sticky;
  top: 100px; /* Offset for navbar */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.card-preview {
  position: relative;
  height: 200px;
}
.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.card-body {
  padding: 30px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.current-price {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}
.old-price {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-enroll-lg {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: black;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: 0.3s;
  box-shadow: 0 0 20px var(--glow);
  animation: pulse-btn 2s infinite;
}
@keyframes pulse-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 217, 83, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(39, 217, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 217, 83, 0);
  }
}
.btn-enroll-lg:hover {
  transform: translateY(-3px);
}



.includes-list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d1d9d4;
  font-size: 0.95rem;
}
.includes-list li:last-child {
  border-bottom: none;
}
.includes-list i {
  color: var(--text-muted);
  margin-right: 10px;
  width: 20px;
}

/* --- MOBILE FIXED BOTTOM BAR --- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(24, 36, 27, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border);
  padding: 15px 20px;
  z-index: 999;
  display: none; /* Hidden on desktop */
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}
.mobile-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}
.mobile-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 5px;
  font-weight: 400;
}
.btn-enroll-mobile {
  background: var(--primary);
  color: black;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
  .course-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 120px;
  }
  .sticky-card {
    display: none;
  }
  .mobile-bottom-bar {
    display: flex;
  }
}
@media (max-width: 768px) {
  .course-header h1 {
    font-size: 1.8rem;
  }
  .content-section {
    padding: 20px;
  }
  .learn-grid {
    grid-template-columns: 1fr;
  }
}
