:root {
  --pink:       #FF40A0;
  --pink-light: #FFB7E6;
  --yellow:     #F0FE72;
  --teal:       #60A3A6;
  --bg:         #0A0E27;
  --surface:    #1A203A;
  --border:     rgba(255, 255, 255, 0.08);
  --text-white: #FFFFFC;
  --text-muted: #8b92a9;
  --text-body:  rgba(255, 255, 255, 0.86);
  --font:       'Inter', sans-serif;
}

/* ── BASE ── */
body {
  background-color: var(--bg);
  color: var(--text-white);
  font-family: var(--font);
  margin: 0;
}

/* ── LAYOUT ── */
.page-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 48px 32px;
}
.course-back-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 48px 0;
}

.course-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.course-back-btn:hover {
  color: var(--pink);
  transform: translateX(-3px);
}

.left-col {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}

/* ── BADGES ── */
.badges {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
}

.badge {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid;
  background: transparent;
}

.badge-frosted-blue {
  color: var(--teal);
  border-color: var(--teal);
}

.badge-Dragonfruit {
  color: var(--pink);
  border-color: var(--pink);
  background: rgba(255, 64, 160, 0.1);
}

/* ── TYPOGRAPHY ── */
.course-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-white);
  line-height: 1.2;
}

.course-decription {
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── META ROW ── */
.meta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-white);
}

.rating-count {
  color: var(--text-muted);
  font-weight: 400;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── INSTRUCTOR ── */
.Instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #c97b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.Instructor-Name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-white);
}

/* ── PREVIEW IMAGE ── */
.preview-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 32px;
  object-fit: cover;
  display: block;
}

/* ── DIVIDER ── */
.horizontal-strip {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 32px;
}

/* ── CARD BOX ── */
.learn-box {
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  padding: 24px 28px;
}

.learn-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  margin-top: 0;
  color: var(--text-white);
}

/* ── LEARN GRID ── */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.learn-item {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check {
  color: var(--teal);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── CURRICULUM SECTION TITLE ── */
.section-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}

/* ── CURRICULUM CARD ── */
.learn-box-line1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 12px;
}

.course-c-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-white);
}

.lessons {
  font-size: 13px;
  color: var(--text-muted);
}

.learn-list {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0 -28px;
  padding-left: 28px;
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.learn-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-body);
  font-size: 14px;
}

.play-button {
  font-size: 16px;
  color: var(--pink);
  flex-shrink: 0;
}

/* ── REVIEWS ── */
.learn-box-line1 .review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

/* ── SIDEBAR PRICING CARD ── */
.pricing-card {
  background-color: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.pricing-top {
  padding: 28px 28px 0;
}

.price {
  font-size: 40px;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: 6px;
}

.price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── ENROLL BUTTON ── */
.btn-enroll {
  display: block;
  width: 95%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  color: var(--text-white);
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(255, 64, 160, 0.35);
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
 
}
.btn-enroll:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.enrolled-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(96, 163, 166, 0.14);
  border: 1px solid rgba(96, 163, 166, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.enroll-progress-wrap {
  width: 95%;
  margin: 14px 0 18px;
}

.enroll-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.enroll-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.enroll-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), #9cefe6);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* ── PRICING FEATURES ── */
.pricing-features {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.icon-clock {
  background: rgba(255, 64, 160, 0.15);
  color: var(--pink);
}

.icon-level {
  background: rgba(96, 163, 166, 0.15);
  color: var(--teal);
}

.icon-book {
  background: rgba(240, 254, 114, 0.15);
  color: var(--yellow);
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.feature-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.owner-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(255, 64, 160, 0.12);
  border: 1px solid rgba(255, 64, 160, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.btn-dashboard {
  display: block;
  width: 95%;
  background: var(--bg);
  color: var(--text-white);
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  margin-bottom: 28px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s;
}

.btn-dashboard:hover {
  border-color: var(--pink);
}


.owner-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}

.owner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 64, 160, 0.12);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.owner-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 8px 0;
}

.owner-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* ══════════════════════════════════════════════════════════════
   CERTIFICATE SECTION - REDESIGNED
   ══════════════════════════════════════════════════════════════ */

.cd-certificate-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, rgba(240, 254, 114, 0.08), rgba(255, 64, 160, 0.05));
  border: 1px solid rgba(240, 254, 114, 0.25);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 24px 0;
}

.cd-cert-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--yellow), rgba(240, 254, 114, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(240, 254, 114, 0.2);
}

.cd-cert-icon i {
  font-size: 26px;
  color: var(--bg);
}

.cd-cert-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 8px 0;
}

.cd-cert-info p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

/* Status Badge Styling */
.cd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cd-owner-badge {
  background: rgba(255, 64, 160, 0.12);
  border: 1px solid rgba(255, 64, 160, 0.3);
  color: var(--pink);
}

.cd-enrolled-badge {
  background: rgba(96, 163, 166, 0.12);
  border: 1px solid rgba(96, 163, 166, 0.3);
  color: var(--teal);
}

.cd-certificate-badge {
  background: rgba(240, 254, 114, 0.12);
  border: 1px solid rgba(240, 254, 114, 0.3);
  color: var(--yellow);
}

@media (max-width: 768px) {
  .cd-certificate-box {
    flex-direction: column;
    padding: 20px;
  }
  
  .cd-cert-icon {
    width: 48px;
    height: 48px;
  }
  
  .cd-cert-icon i {
    font-size: 22px;
  }
}


@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
    padding: 18px 24px 40px;
  }

  .course-back-wrap {
    padding: 24px 24px 0;
  }

  .sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 16px 16px 36px;
  }

  .course-back-wrap {
    padding: 20px 16px 0;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }
}
