/* Course detail page */
.cd-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: calc(var(--navbar-height) + 2rem) 0 2.5rem;
}

.cd-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.cd-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.5);
}

.cd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.cd-hero-cat {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
}

.cd-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cd-hero-sub {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.cd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.cd-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.9;
}

.cd-meta-item .bi-star-fill {
  color: #fbbf24;
}

.cd-main {
  background: #f8fafc;
}

.cd-tabs .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--iq-text-muted);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
}

.cd-tabs .nav-link.active {
  background: var(--iq-blue);
  color: #fff;
}

.cd-section-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--iq-border);
  box-shadow: var(--iq-shadow);
}

.cd-section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--iq-navy);
}

.cd-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
}

.cd-text {
  color: var(--iq-text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.cd-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cd-curriculum .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
}

.cd-mod-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #eff6ff;
  color: var(--iq-blue);
  border-radius: 8px;
  font-size: 0.8rem;
  margin-right: 0.75rem;
}

.cd-topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cd-topic-list li {
  padding: 0.35rem 0;
  color: var(--iq-text-muted);
}

.cd-topic-list i {
  color: var(--iq-blue);
  margin-right: 0.5rem;
}

.cd-tool-card {
  background: #f8fafc;
  border: 1px solid var(--iq-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  height: 100%;
}

.cd-tool-icon {
  height: 40px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.cd-tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--iq-navy);
}

.cd-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cd-cert-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cd-trainer-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eff6ff;
  flex-shrink: 0;
}

.cd-trainer-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

.cd-placement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cd-placement-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  color: var(--iq-text-muted);
}

.cd-placement-list i {
  color: #10b981;
  margin-top: 0.15rem;
}

.cd-related .col-md-4 {
  min-width: 0;
}

.cd-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}

.cd-sidebar-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--iq-border);
  box-shadow: var(--iq-shadow-lg);
}

.cd-fee-block {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--iq-border);
}

.cd-fee-label {
  display: block;
  font-size: 0.85rem;
  color: var(--iq-text-muted);
}

.cd-fee-amount {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--iq-blue);
  line-height: 1.2;
}

.cd-emi {
  display: block;
  font-size: 0.85rem;
  color: var(--iq-text-muted);
  margin-top: 0.25rem;
}

.cd-highlights-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.cd-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cd-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: var(--iq-text-muted);
}

.cd-highlights li:last-child {
  border-bottom: none;
}

.cd-highlights i {
  color: var(--iq-blue);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.cd-highlights strong {
  color: var(--iq-navy);
  margin-right: 0.35rem;
}

@media (max-width: 991.98px) {
  .cd-sidebar {
    position: static;
    top: auto;
  }

  .cd-sidebar-card {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .cd-hero-meta {
    gap: 0.65rem;
    font-size: 0.82rem;
  }

  .cd-section-card {
    padding: 1.2rem;
  }

  .cd-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .cd-tabs .nav-item {
    flex: 0 0 auto;
  }
}
