
:root {
  --edu-cd-primary: #547EBF;
  --edu-cd-primary-hover: #43679d;
  --edu-cd-primary-light: rgba(84, 126, 191, 0.15);
  --edu-cd-bg-dark: #070b14;
  --edu-cd-card-bg: rgba(15, 23, 42, 0.75);
  --edu-cd-card-border: rgba(51, 65, 85, 0.7);
  --edu-cd-text-main: #f8fafc;
  --edu-cd-text-muted: #94a3b8;
  --edu-cd-text-dim: #64748b;
  --edu-cd-accent-cyan: #06b6d4;
  --edu-cd-accent-emerald: #10b981;
  --edu-cd-accent-amber: #f59e0b;
  --edu-cd-accent-rose: #f43f5e;
}

/* Page Layout Wrapper */
.edu-cd-wrapper {
  min-height: 100vh;
  background-color: var(--edu-cd-bg-dark);
  color: var(--edu-cd-text-main);
  padding: 2.5rem 0 5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* System Alert Banner */
.edu-cd-alert-info {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #a5f3fc;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.1);
}

/* Top Navigation Bar */
.edu-cd-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.edu-cd-back-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--edu-cd-card-border);
  color: var(--edu-cd-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.edu-cd-back-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border-color: var(--edu-cd-primary);
  transform: translateX(-2px);
}

.edu-cd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--edu-cd-text-dim);
}

.edu-cd-breadcrumb .separator {
  color: var(--edu-cd-text-dim);
}

.edu-cd-breadcrumb .current {
  color: #B2C9E9;
  font-weight: 600;
}

/* Content Cards */
.edu-cd-card {
  background: var(--edu-cd-card-bg);
  border: 1px solid var(--edu-cd-card-border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  transition: border-color 0.25s ease;
}

.edu-cd-card:hover {
  border-color: rgba(84, 126, 191, 0.4);
}

/* Course Banner Card */
.edu-cd-banner-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--edu-cd-card-border);
  background: #020617;
  margin-bottom: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.edu-cd-banner-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.edu-cd-banner-card:hover .edu-cd-banner-img {
  transform: scale(1.03);
}

.edu-cd-banner-fallback {
  height: 280px;
  background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.edu-cd-fallback-icon {
  font-size: 3.5rem;
  color: var(--edu-cd-primary);
}

.edu-cd-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.edu-cd-banner-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-cd-badge-category {
  background: rgba(15, 23, 42, 0.9);
  color: #B2C9E9;
  border: 1px solid rgba(84, 126, 191, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.edu-cd-badge-level {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.edu-cd-badge-level.beginner {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.edu-cd-badge-level.intermediate {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.edu-cd-badge-level.advanced {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.edu-cd-badge-duration {
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  border: 1px solid var(--edu-cd-card-border);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

/* Course Title & Header Section */
.edu-cd-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}

.edu-cd-wishlist-btn {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--edu-cd-card-border);
  color: var(--edu-cd-text-muted);
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.edu-cd-wishlist-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--edu-cd-accent-rose);
  color: var(--edu-cd-accent-rose);
  transform: scale(1.06);
}

.edu-cd-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 0.875rem;
  color: var(--edu-cd-text-muted);
}

.edu-cd-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-cd-meta-item .label {
  color: var(--edu-cd-text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.edu-cd-meta-item .value {
  color: #B2C9E9;
  font-weight: 600;
}

.edu-cd-meta-item .badge-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.edu-cd-meta-item .badge-pill.beginner {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.edu-cd-meta-item .badge-pill.intermediate {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.edu-cd-meta-item .badge-pill.advanced {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Section Headers */
.edu-cd-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.edu-cd-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--edu-cd-primary-light);
  border: 1px solid rgba(84, 126, 191, 0.3);
  color: var(--edu-cd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.edu-cd-section-icon.bg-cyan {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--edu-cd-accent-cyan);
}

.edu-cd-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.edu-cd-section-subtitle {
  font-size: 0.8rem;
  color: var(--edu-cd-text-dim);
  margin: 0.2rem 0 0;
}

/* Description Content Styling */
.edu-cd-description-content {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.edu-cd-description-content h4, 
.edu-cd-description-content h3 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.edu-cd-description-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.edu-cd-description-content li {
  margin-bottom: 0.5rem;
}

/* Curriculum Accordion */
.edu-cd-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-cd-accordion-item {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--edu-cd-card-border);
  border-radius: 18px !important;
  overflow: hidden;
  transition: all 0.2s ease;
}

.edu-cd-accordion-item:hover {
  border-color: rgba(84, 126, 191, 0.4);
}

.edu-cd-accordion-btn {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.edu-cd-accordion-btn::after {
  filter: invert(1) brightness(0.8);
  background-size: 1.1rem;
}

.edu-cd-module-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.edu-cd-module-index {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(84, 126, 191, 0.2);
  color: #B2C9E9;
  border: 1px solid rgba(84, 126, 191, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.edu-cd-module-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.edu-cd-module-subtext {
  font-size: 0.75rem;
  color: var(--edu-cd-text-dim);
  font-weight: 500;
}

.edu-cd-module-badge {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--edu-cd-card-border);
  color: #B2C9E9;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  margin-right: 0.5rem;
}

.edu-cd-accordion-body {
  background: rgba(15, 23, 42, 0.3);
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  padding: 1.25rem 1.5rem 1.5rem;
}

.edu-cd-module-desc {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--edu-cd-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.edu-cd-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-cd-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.4);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.edu-cd-lesson-row:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(84, 126, 191, 0.3);
}

.edu-cd-lesson-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(51, 65, 85, 0.4);
  color: var(--edu-cd-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.edu-cd-lesson-icon.preview {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.edu-cd-lesson-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
}

.edu-cd-preview-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.edu-cd-lesson-duration {
  font-size: 0.75rem;
  color: var(--edu-cd-text-dim);
  font-family: monospace;
}

.edu-cd-curriculum-empty {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #a5f3fc;
  padding: 1.25rem;
  border-radius: 16px;
  font-size: 0.9rem;
}

/* Sidebar Sticky Card */
.edu-cd-sidebar-card {
  position: sticky;
  top: 1.5rem;
  background: var(--edu-cd-card-bg);
  border: 1px solid var(--edu-cd-card-border);
  border-radius: 24px;
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.edu-cd-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.edu-cd-sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.edu-cd-sidebar-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #B2C9E9;
  background: rgba(84, 126, 191, 0.2);
  border: 1px solid rgba(84, 126, 191, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Price Box */
.edu-cd-price-box {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--edu-cd-card-border);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.edu-cd-price-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--edu-cd-text-dim);
  display: block;
  margin-bottom: 0.4rem;
}

.edu-cd-price-current {
  font-size: 1.85rem;
  font-weight: 900;
  color: #B2C9E9;
  letter-spacing: -0.02em;
}

.edu-cd-price-original {
  font-size: 1rem;
  color: var(--edu-cd-text-dim);
  text-decoration: line-through;
}

.edu-cd-price-discount {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.edu-cd-price-free {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--edu-cd-accent-emerald);
}

.edu-cd-price-free-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.edu-cd-price-subtext {
  font-size: 0.75rem;
  color: var(--edu-cd-text-muted);
  display: block;
  margin-top: 0.35rem;
}

/* Specs List */
.edu-cd-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.edu-cd-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.edu-cd-spec-row .spec-label {
  color: var(--edu-cd-text-muted);
}

.edu-cd-spec-row .spec-value {
  color: #ffffff;
  font-weight: 700;
}

/* Instructor Box */
.edu-cd-instructor-box {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--edu-cd-card-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.edu-cd-instructor-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--edu-cd-text-dim);
  display: block;
  margin-bottom: 0.5rem;
}

.edu-cd-instructor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--edu-cd-primary), var(--edu-cd-accent-cyan));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.edu-cd-instructor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.edu-cd-instructor-role {
  font-size: 0.75rem;
  color: var(--edu-cd-text-muted);
}

/* Share Box */
.edu-cd-share-box {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--edu-cd-card-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.edu-cd-share-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--edu-cd-text-dim);
  display: block;
  margin-bottom: 0.75rem;
}

.edu-cd-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.edu-cd-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--edu-cd-card-border);
  color: var(--edu-cd-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.edu-cd-share-btn:hover {
  background: rgba(84, 126, 191, 0.25);
  border-color: rgba(178, 201, 233, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.edu-cd-share-btn:active {
  transform: translateY(0);
}

.edu-cd-share-btn-copy {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.edu-cd-share-btn-copy:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

/* Button & Action Logic */
.edu-cd-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-cd-btn {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

.edu-cd-btn-primary {
  background: var(--edu-cd-primary);
  color: #ffffff;
}

.edu-cd-btn-primary:hover {
  background: var(--edu-cd-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(84, 126, 191, 0.4);
  color: #ffffff;
}

.edu-cd-btn-success {
  background: #059669;
  color: #ffffff;
}

.edu-cd-btn-success:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.edu-cd-btn-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.edu-cd-btn-info {
  background: #0891b2;
  color: #ffffff;
}

.edu-cd-btn-info:hover {
  background: #0e7490;
  transform: translateY(-2px);
  color: #ffffff;
}

.edu-cd-action-note {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .edu-cd-title {
    font-size: 1.6rem;
  }
  
  .edu-cd-banner-img {
    height: 240px;
  }
  
  .edu-cd-card {
    padding: 1.5rem;
  }
}
