/* ============================================================
   COURSE DETAIL PAGE — course-detail.css
   Design: matches courses.css — same colors, same card patterns,
   same animations, same container system, same button styles
============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff; overflow-x: hidden; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.cd-container {
    max-width: 1600px; margin: 0 auto;
    padding-left: 5%; padding-right: 5%;
}

/* ============================================================
   HERO
============================================================ */
.cd-hero {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 30%, #fff7ed 60%, #eff6ff 100%);
    padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.cd-hero::before {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%; top: -100px; right: -100px;
    animation: cd-float 25s ease-in-out infinite; z-index: 0;
}
.cd-hero::after {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
    border-radius: 50%; bottom: -80px; left: -80px;
    animation: cd-float 20s ease-in-out infinite reverse; z-index: 0;
}
@keyframes cd-float {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-40px) scale(1.1); }
    66%      { transform: translate(-30px,30px) scale(0.95); }
}
.cd-hero-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(59,130,246,0.07) 1px, transparent 1px);
    background-size: 40px 40px; pointer-events: none; opacity: 0.5; z-index: 0;
}
.cd-hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start;
}

/* Breadcrumb */
.cd-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; color: #64748b; font-weight: 500;
    margin-bottom: 1.75rem; flex-wrap: wrap;
    animation: cd-fadeInUp 0.8s ease both;
}
.cd-breadcrumb a { color: #3b82f6; text-decoration: none; transition: color 0.2s; }
.cd-breadcrumb a:hover { color: #1e40af; }
.cd-breadcrumb-sep { color: #cbd5e1; font-size: 0.75rem; }

/* Badges row */
.cd-hero-badges {
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    margin-bottom: 1.5rem;
    animation: cd-fadeInUp 0.8s ease 0.1s both;
}
.cd-tier-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 800;
    padding: 0.35rem 1rem; border-radius: 100px;
    letter-spacing: 0.07em; text-transform: uppercase; border: 2px solid;
}
.cd-tier-badge--green { background: #dcfce7; color: #16a34a; border-color: #bbf7d0; }
.cd-tier-badge--blue  { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.cd-tier-badge--red   { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

.cd-cat-badge {
    font-size: 0.75rem; font-weight: 700; padding: 0.35rem 1rem;
    border-radius: 100px; background: #dbeafe; color: #1d4ed8; border: 1.5px solid #bfdbfe;
}
.cd-cat-badge--orange { background: #fed7aa; color: #c2410c; border-color: #fdba74; }
.cd-cat-badge--purple { background: #ddd6fe; color: #6d28d9; border-color: #c4b5fd; }

.cd-hot-badge {
    font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.85rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff; box-shadow: 0 2px 8px rgba(249,115,22,0.45);
}

/* Title */
.cd-hero-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 900;
    color: #0f172a; letter-spacing: -0.025em; line-height: 1.15;
    margin-bottom: 1.25rem;
    animation: cd-fadeInUp 0.8s ease 0.15s both;
}
.cd-hero-title-accent {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #f97316 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Short desc */
.cd-hero-desc {
    font-size: 1.1rem; color: #475569; line-height: 1.8;
    margin-bottom: 2rem; max-width: 680px;
    animation: cd-fadeInUp 0.8s ease 0.2s both;
}

/* Quick meta strip */
.cd-hero-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
    animation: cd-fadeInUp 0.8s ease 0.25s both;
}
.cd-hero-meta-item {
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.9rem; color: #475569; font-weight: 600;
}
.cd-hero-meta-item span:first-child { font-size: 1.1rem; }

/* Rating row */
.cd-hero-rating {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 2.25rem;
    animation: cd-fadeInUp 0.8s ease 0.3s both;
}
.cd-stars { display: flex; gap: 2px; }
.cd-star { font-size: 1.1rem; color: #f59e0b; }
.cd-star--half { opacity: 0.5; }
.cd-rating-num { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.cd-rating-count { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }

/* Hero CTA row */
.cd-hero-cta {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    animation: cd-fadeInUp 0.8s ease 0.35s both;
}
.cd-hero-cta .cd-btn-primary,
.cd-hero-cta .cd-btn-secondary {
    width: auto;
    padding: 0.7rem 1.6rem;
    font-size: 0.875rem;
}

@keyframes cd-fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STICKY ENROLL CARD (right column)
============================================================ */
.cd-enroll-card {
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #e8eef8;
    box-shadow: 0 8px 40px rgba(30,64,175,0.1), 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    position: sticky; top: 100px;
    animation: cd-fadeInUp 0.8s ease 0.4s both;
}
/* Top accent bar */
.cd-enroll-card::before {
    content: ''; display: block; height: 5px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 60%, #60a5fa 100%);
}
.cd-enroll-card[data-color="orange"]::before { background: linear-gradient(90deg, #ea580c 0%, #f97316 60%, #fbbf24 100%); }
.cd-enroll-card[data-color="purple"]::before { background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 60%, #a78bfa 100%); }

.cd-enroll-card-icon {
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; padding: 2rem 0 1rem;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.cd-enroll-body { padding: 1.5rem 1.75rem 1.75rem; }

.cd-enroll-price-row {
    display: flex; align-items: flex-end; gap: 0.75rem;
    margin-bottom: 0.4rem;
}
.cd-enroll-price-label { font-size: 0.78rem; color: #94a3b8; font-weight: 600; }
.cd-enroll-price-main { font-size: 2.4rem; font-weight: 900; color: #0f172a; letter-spacing: -0.03em; line-height: 1; }
.cd-enroll-price-solo { font-size: 0.8rem; color: #94a3b8; margin-bottom: 1.5rem; }
.cd-enroll-price-solo strong { color: #475569; }

.cd-enroll-divider { height: 1px; background: #f1f5f9; margin: 1.25rem 0; }

.cd-enroll-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; }
.cd-enroll-features li {
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 0.875rem; color: #475569; font-weight: 500;
}
.cd-enroll-features li span:first-child { font-size: 1rem; flex-shrink: 0; }

.cd-enroll-btn-wrap { display: flex; flex-direction: column; gap: 0.75rem; }

.cd-btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white; padding: 1rem 2rem; border-radius: 100px;
    text-decoration: none; font-weight: 700; font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 24px rgba(30,64,175,0.25);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: relative; overflow: hidden; border: none; cursor: pointer;
    width: 100%;
}
.cd-btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.25),transparent);
    transition: left 0.6s ease;
}
.cd-btn-primary:hover::before { left: 100%; }
.cd-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(30,64,175,0.35); color: white; text-decoration: none; }

.cd-enroll-card[data-color="orange"] .cd-btn-primary { background: linear-gradient(135deg,#ea580c,#f97316); box-shadow: 0 8px 24px rgba(249,115,22,0.3); }
.cd-enroll-card[data-color="orange"] .cd-btn-primary:hover { box-shadow: 0 14px 36px rgba(249,115,22,0.4); }
.cd-enroll-card[data-color="purple"] .cd-btn-primary { background: linear-gradient(135deg,#7c3aed,#8b5cf6); box-shadow: 0 8px 24px rgba(124,58,237,0.3); }
.cd-enroll-card[data-color="purple"] .cd-btn-primary:hover { box-shadow: 0 14px 36px rgba(124,58,237,0.4); }

.cd-btn-secondary {
    background: white; color: #1e40af; padding: 0.9rem 2rem;
    border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 0.9rem;
    border: 2px solid #1e40af; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(30,64,175,0.1); width: 100%;
}
.cd-btn-secondary:hover { background: #1e40af; color: white; transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30,64,175,0.25); text-decoration: none; }

.cd-enroll-guarantee {
    text-align: center; font-size: 0.75rem; color: #94a3b8;
    margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

/* ============================================================
   CONTENT AREA
============================================================ */
.cd-content { padding: 5rem 0; }
.cd-content-layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start;
}
.cd-main { min-width: 0; }
.cd-sidebar { position: sticky; top: 100px; }

/* Section titles */
.cd-section-title {
    font-size: 1.5rem; font-weight: 900; color: #0f172a;
    letter-spacing: -0.02em; margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2.5px solid #f1f5f9;
    display: flex; align-items: center; gap: 0.6rem;
}

/* ---- WHAT YOU'LL LEARN ---- */
.cd-learn { margin-bottom: 3.5rem; }
.cd-learn-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; }
.cd-learn-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.85rem 1rem; border-radius: 14px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 1.5px solid #e8eef8;
    font-size: 0.875rem; color: #374151; font-weight: 500;
    transition: all 0.3s ease;
}
.cd-learn-item:hover { border-color: #bfdbfe; background: #eff6ff; transform: translateX(4px); }
.cd-learn-item-check {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: white; font-weight: 800; margin-top: 1px;
}

/* ============================================================
   ABOUT THIS COURSE — rich content typography
============================================================ */
.cd-about-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.85;
}

/* Opening paragraphs */
.cd-about-content > p {
    margin-bottom: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.85;
}

/* First paragraph gets a slightly larger, more prominent treatment */
.cd-about-content > p:first-child {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.8;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #fafeff 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
}

/* H2 headings — section dividers */
.cd-about-content h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8eef8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

/* H3 headings */
.cd-about-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

/* H4 headings */
.cd-about-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

/* Bold text inside paragraphs */
.cd-about-content strong,
.cd-about-content b {
    font-weight: 700;
    color: #1e293b;
}

/* Unordered lists */
.cd-about-content ul {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cd-about-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #f8faff;
    border: 1.5px solid #e8eef8;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cd-about-content ul li:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

/* Bullet icon using ::before pseudo-element */
.cd-about-content ul li::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='white'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-color: #3b82f6;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

/* Bold labels inside list items (e.g. "Project 1 — ...") */
.cd-about-content ul li strong {
    color: #1e40af;
    font-weight: 700;
}

/* Ordered lists */
.cd-about-content ol {
    list-style: none;
    counter-reset: cd-ol;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cd-about-content ol li {
    counter-increment: cd-ol;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    background: #f8faff;
    border: 1.5px solid #e8eef8;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    transition: border-color 0.2s ease;
}

.cd-about-content ol li:hover { border-color: #bfdbfe; background: #eff6ff; }

.cd-about-content ol li::before {
    content: counter(cd-ol);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 1px;
}

/* Blockquotes */
.cd-about-content blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0 14px 14px 0;
    font-size: 0.95rem;
    color: #78350f;
    font-style: italic;
    line-height: 1.75;
}

/* Horizontal rule */
.cd-about-content hr {
    border: none;
    border-top: 2px solid #f1f5f9;
    margin: 2.5rem 0;
}

/* Inline code */
.cd-about-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    background: #f1f5f9;
    color: #1e40af;
    padding: 0.15em 0.45em;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Links inside content */
.cd-about-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #bfdbfe;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.cd-about-content a:hover {
    color: #1e40af;
    text-decoration-color: #1e40af;
}

/* Last element spacing cleanup */
.cd-about-content > *:last-child { margin-bottom: 0; }

/* ---- CURRICULUM ---- */
.cd-curriculum { margin-bottom: 3.5rem; }
.cd-module {
    border: 1.5px solid #e8eef8; border-radius: 16px;
    overflow: hidden; margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}
.cd-module:hover { border-color: #bfdbfe; }
.cd-module-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; background: #f8faff;
    cursor: pointer; transition: background 0.25s ease;
    gap: 1rem;
}
.cd-module-header:hover { background: #eff6ff; }
.cd-module-header-left { display: flex; align-items: center; gap: 0.85rem; flex: 1; min-width: 0; }
.cd-module-num {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1.5px solid #bfdbfe;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 800; color: #1d4ed8;
}
.cd-module-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.cd-module-meta { font-size: 0.75rem; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.cd-module-arrow {
    font-size: 0.7rem; color: #94a3b8; flex-shrink: 0;
    transition: transform 0.3s ease;
}
.cd-module.open .cd-module-arrow { transform: rotate(180deg); }
.cd-module.open .cd-module-header { background: #eff6ff; }

.cd-module-lessons { display: none; border-top: 1.5px solid #e8eef8; }
.cd-module.open .cd-module-lessons { display: block; }
.cd-lesson {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1.25rem; gap: 1rem;
    border-bottom: 1px solid #f8faff; transition: background 0.2s ease;
}
.cd-lesson:last-child { border-bottom: none; }
.cd-lesson:hover { background: #f8faff; }
.cd-lesson-left { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.cd-lesson-icon { font-size: 0.9rem; flex-shrink: 0; color: #64748b; }
.cd-lesson-name { font-size: 0.855rem; color: #374151; font-weight: 500; }
.cd-lesson-duration { font-size: 0.75rem; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.cd-lesson-free {
    font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.55rem;
    border-radius: 100px; background: #dcfce7; color: #16a34a;
    border: 1px solid #bbf7d0; white-space: nowrap; flex-shrink: 0;
}

/* ---- REQUIREMENTS ---- */
.cd-requirements { margin-bottom: 3.5rem; }
.cd-req-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.cd-req-list li {
    display: flex; align-items: flex-start; gap: 0.65rem;
    font-size: 0.9rem; color: #475569; padding: 0.6rem 0;
    border-bottom: 1px solid #f8faff;
}
.cd-req-list li:last-child { border-bottom: none; }
.cd-req-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    margin-top: 7px;
}

/* ---- INSTRUCTOR ---- */
.cd-instructor { margin-bottom: 3.5rem; }
.cd-instructor-card {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 2px solid #e8eef8; border-radius: 24px; padding: 2rem;
    display: flex; gap: 2rem; align-items: flex-start;
    transition: all 0.3s ease;
}
.cd-instructor-card:hover { border-color: #bfdbfe; box-shadow: 0 8px 32px rgba(30,64,175,0.08); }
.cd-instructor-avatar {
    width: 90px; height: 90px; border-radius: 20px; flex-shrink: 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; border: 3px solid #bfdbfe;
    overflow: hidden;
}
.cd-instructor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cd-instructor-info { flex: 1; min-width: 0; }
.cd-instructor-name { font-size: 1.15rem; font-weight: 900; color: #0f172a; margin-bottom: 0.3rem; }
.cd-instructor-title { font-size: 0.85rem; color: #3b82f6; font-weight: 600; margin-bottom: 0.75rem; }
.cd-instructor-stats {
    display: flex; gap: 1.5rem; margin-bottom: 0.9rem; flex-wrap: wrap;
}
.cd-instructor-stat { font-size: 0.8rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }
.cd-instructor-bio { font-size: 0.875rem; color: #475569; line-height: 1.75; }

/* ---- REVIEWS ---- */
.cd-reviews { margin-bottom: 3.5rem; }
.cd-reviews-summary {
    display: flex; gap: 2.5rem; align-items: center;
    padding: 2rem; border-radius: 20px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 2px solid #e8eef8; margin-bottom: 2rem;
    flex-wrap: wrap;
}
.cd-reviews-score { text-align: center; }
.cd-reviews-big-num { font-size: 4rem; font-weight: 900; color: #0f172a; line-height: 1; }
.cd-reviews-stars-big { display: flex; gap: 3px; justify-content: center; margin: 0.3rem 0; }
.cd-reviews-stars-big span { font-size: 1.3rem; color: #f59e0b; }
.cd-reviews-total { font-size: 0.8rem; color: #94a3b8; }
.cd-reviews-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 0.5rem; }
.cd-bar-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; }
.cd-bar-label { white-space: nowrap; color: #64748b; font-weight: 600; width: 45px; text-align: right; }
.cd-bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 100px; overflow: hidden; }
.cd-bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #f59e0b, #fbbf24); transition: width 1s ease; }
.cd-bar-pct { color: #94a3b8; width: 32px; }

.cd-review-list { display: flex; flex-direction: column; gap: 1.25rem; }
.cd-review-item {
    padding: 1.5rem; border-radius: 18px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 1.5px solid #e8eef8; transition: all 0.3s ease;
}
.cd-review-item:hover { border-color: #bfdbfe; box-shadow: 0 4px 16px rgba(30,64,175,0.06); }
.cd-review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.cd-review-avatar {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 2px solid #bfdbfe;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; color: #1d4ed8;
}
.cd-review-meta { flex: 1; }
.cd-review-name { font-size: 0.9rem; font-weight: 700; color: #0f172a; }
.cd-review-date { font-size: 0.75rem; color: #94a3b8; }
.cd-review-stars { display: flex; gap: 2px; }
.cd-review-stars span { font-size: 0.85rem; color: #f59e0b; }
.cd-review-text { font-size: 0.875rem; color: #475569; line-height: 1.75; }

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.cd-sidebar-widget {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid #f1f5f9; border-radius: 24px; padding: 1.75rem;
    margin-bottom: 1.5rem; transition: all 0.3s ease;
}
.cd-sidebar-widget:hover { border-color: #bfdbfe; box-shadow: 0 8px 28px rgba(30,64,175,0.07); }
.cd-widget-title {
    font-size: 0.95rem; font-weight: 800; color: #0f172a;
    margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}

/* Related courses */
.cd-related-item {
    display: flex; gap: 0.85rem; padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9; text-decoration: none;
    transition: all 0.25s ease; align-items: flex-start;
}
.cd-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.cd-related-item:hover { padding-left: 4px; }
.cd-related-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1.5px solid #bfdbfe;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; transition: transform 0.25s ease;
}
.cd-related-item:hover .cd-related-icon { transform: rotate(-8deg) scale(1.1); }
.cd-related-info { flex: 1; min-width: 0; }
.cd-related-name { font-size: 0.835rem; font-weight: 700; color: #0f172a; line-height: 1.35; margin-bottom: 0.25rem; transition: color 0.2s; }
.cd-related-item:hover .cd-related-name { color: #1d4ed8; }
.cd-related-price { font-size: 0.78rem; color: #3b82f6; font-weight: 700; }

/* Share widget */
.cd-share-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cd-share-btn {
    flex: 1; min-width: 80px; padding: 0.6rem 0.8rem;
    border-radius: 100px; border: 2px solid #e2e8f0;
    background: white; font-size: 0.78rem; font-weight: 600;
    color: #475569; cursor: pointer; transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center; gap: 0.35rem;
    font-family: inherit;
}
.cd-share-btn:hover { border-color: #3b82f6; color: #1e40af; background: #eff6ff; }

/* ============================================================
   STICKY BOTTOM BAR (mobile)
============================================================ */
.cd-sticky-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-top: 2px solid #e8eef8;
    padding: 1rem 5%; gap: 1rem; align-items: center;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
}
.cd-sticky-bar-price { flex-shrink: 0; }
.cd-sticky-bar-price-label { font-size: 0.7rem; color: #94a3b8; font-weight: 600; }
.cd-sticky-bar-price-num { font-size: 1.5rem; font-weight: 900; color: #0f172a; line-height: 1; }
.cd-sticky-bar-btn {
    flex: 1; background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white; padding: 0.9rem 1.5rem; border-radius: 100px;
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    text-align: center; transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(30,64,175,0.28);
}
.cd-sticky-bar-btn:hover { color: white; text-decoration: none; transform: translateY(-2px); }

/* ============================================================
   CTA STRIP
============================================================ */
.cd-cta-strip {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fef3f2 50%, #fff7ed 100%);
    position: relative; overflow: hidden;
}
.cd-cta-strip::before {
    content: ''; position: absolute; top: -150px; right: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.cd-cta-inner {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 5rem 4rem; border-radius: 32px; text-align: center;
    box-shadow: 0 24px 72px rgba(0,0,0,0.07), 0 8px 24px rgba(0,0,0,0.04);
    border: 2px solid #f1f5f9; position: relative; z-index: 1;
    max-width: 900px; margin: 0 auto;
}
.cd-cta-title {
    font-size: clamp(1.8rem,3vw,3rem); font-weight: 900; color: #0f172a;
    letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.2;
}
.cd-cta-title span {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cd-cta-text { font-size: 1.1rem; color: #64748b; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8; }
.cd-cta-btns { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.cd-cta-btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white; padding: 1rem 2.25rem; border-radius: 100px;
    text-decoration: none; font-weight: 700; font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 24px rgba(30,64,175,0.25);
    display: inline-flex; align-items: center; gap: 0.5rem;
    position: relative; overflow: hidden;
}
.cd-cta-btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.25),transparent);
    transition: left 0.6s ease;
}
.cd-cta-btn-primary:hover::before { left: 100%; }
.cd-cta-btn-primary:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,64,175,0.35); color: white; text-decoration: none; }
.cd-cta-btn-secondary {
    background: white; color: #1e40af; padding: 1rem 2.25rem;
    border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 0.95rem;
    border: 2px solid #1e40af; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(30,64,175,0.1);
}
.cd-cta-btn-secondary:hover { background: #1e40af; color: white; transform: translateY(-4px); box-shadow: 0 12px 32px rgba(30,64,175,0.25); text-decoration: none; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
    .cd-hero-inner,
    .cd-content-layout { grid-template-columns: 1fr; }
    .cd-enroll-card { position: static; }
    .cd-sidebar { position: static; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
    .cd-sticky-bar { display: flex; }
}
@media (max-width: 900px) {
    .cd-learn-grid { grid-template-columns: 1fr; }
    .cd-instructor-card { flex-direction: column; gap: 1.25rem; }
    .cd-instructor-avatar { width: 70px; height: 70px; }
    .cd-sidebar { grid-template-columns: 1fr; }
    .cd-about-content ul li,
    .cd-about-content ol li { padding: 0.65rem 0.85rem; }
}
@media (max-width: 768px) {
    .cd-hero { padding: 3rem 0; }
    .cd-reviews-summary { flex-direction: column; gap: 1.5rem; }
    .cd-cta-inner { padding: 3rem 1.75rem; }
    .cd-cta-btns { flex-direction: column; }
    .cd-cta-btn-primary, .cd-cta-btn-secondary { width: 100%; justify-content: center; }
    .cd-hero-cta { flex-direction: column; }
    .cd-btn-primary, .cd-btn-secondary { width: 100%; justify-content: center; }
    .cd-about-content > p:first-child { padding: 1rem 1.1rem; font-size: 1rem; }
}
@media (hover: none) and (pointer: coarse) {
    .cd-btn-primary, .cd-btn-secondary { -webkit-tap-highlight-color: transparent; min-height: 48px; }
}
/* ============================================================
   ENROLL MODAL
============================================================ */
.cd-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: none; align-items: center; justify-content: center;
    padding: 2rem;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(10px);
}
.cd-modal.active { display: flex; }
.cd-modal__content {
    background: white; border-radius: 28px;
    max-width: 520px; width: 100%; padding: 3rem;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
    animation: cd-modal-in 0.35s cubic-bezier(0.4,0,0.2,1);
    max-height: 90vh; overflow-y: auto;
}
@keyframes cd-modal-in {
    from { opacity:0; transform:translateY(-32px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.cd-modal__close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 40px; height: 40px; border-radius: 50%;
    background: #f1f5f9; border: none; color: #64748b;
    font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; line-height: 1;
}
.cd-modal__close:hover { background: #ef4444; color: white; transform: rotate(90deg); }
.cd-modal__icon  { font-size: 3.5rem; text-align: center; display: block; margin-bottom: 1rem; }
.cd-modal__title {
    font-size: 1.9rem; font-weight: 900; color: #0f172a;
    text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.cd-modal__sub {
    font-size: 0.95rem; color: #64748b; text-align: center;
    line-height: 1.75; margin-bottom: 1.75rem;
}
.cd-modal__field { margin-bottom: 1.1rem; }
.cd-modal__label {
    display: block; font-weight: 700; color: #374151;
    margin-bottom: 0.45rem; font-size: 0.875rem;
}
.cd-modal__input {
    width: 100%; padding: 0.9rem 1.2rem;
    border: 2px solid #e2e8f0; border-radius: 14px;
    font-size: 1rem; font-family: inherit;
    transition: all 0.3s ease; outline: none;
}
.cd-modal__input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.cd-modal__note {
    background: #eff6ff; border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0; padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.875rem; color: #1e40af; line-height: 1.6;
}
.cd-modal__submit {
    width: 100%; padding: 1.1rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white; border: none; border-radius: 14px;
    font-weight: 800; font-size: 1.05rem; cursor: pointer;
    transition: all 0.35s ease;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: inherit; box-shadow: 0 8px 24px rgba(30,64,175,0.3);
}
.cd-modal__submit:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(30,64,175,0.4); }
.cd-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 560px) {
    .cd-modal__content { padding: 2rem 1.5rem; border-radius: 20px; }
    .cd-modal__title   { font-size: 1.6rem; }
}
button.cd-cta-btn-primary {
    border: none;
    cursor: pointer;
    font-family: inherit;
}
/* ============================================================
   RELATED COURSES — Enhanced Cards
============================================================ */
.cd-related-widget { padding: 1.5rem !important; }

.cd-related-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 2px solid #e8eef8;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.cd-related-card:last-child { margin-bottom: 0; }
.cd-related-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cd-related-card:hover::before { opacity: 1; }
.cd-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(30,64,175,0.13);
    text-decoration: none;
}

/* Top row */
.cd-related-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
}
.cd-related-card__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    border: 2px solid #bfdbfe;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
    transition: transform 0.3s ease;
}
.cd-related-card:hover .cd-related-card__icon {
    transform: rotate(-8deg) scale(1.1);
}
.cd-related-card__tier {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Title */
.cd-related-card__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    transition: color 0.2s ease;
}
.cd-related-card:hover .cd-related-card__title { color: #1d4ed8; }

/* Meta */
.cd-related-card__meta {
    display: flex;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.cd-related-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1.5px solid #f1f5f9;
}
.cd-related-card__price {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}
.cd-related-card__price strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}
.cd-related-card__btn {
    font-size: 0.72rem;
    font-weight: 800;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30,64,175,0.2);
}
.cd-related-card:hover .cd-related-card__btn {
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(30,64,175,0.3);
}
/* ── COMPREHENSIVE MOBILE RESPONSIVE ADDITIONS ── */
@media (max-width: 480px) {
    .cd-hero, .cd-hero--course { padding: 2.5rem 0 2rem; }
    .cd-hero__title { font-size: 1.5rem; line-height: 1.3; }
    .cd-hero__tagline { font-size: 0.9rem; }
    .cd-hero__actions { flex-direction: column; gap: 0.75rem; }
    .cd-btn, .cd-cta-btn { width: 100%; justify-content: center; min-height: 48px; }
    .cd-hero__trust { flex-direction: column; gap: 0.6rem; text-align: center; }
    .cd-curriculum-module { padding: 1rem 1.2rem; }
    .cd-module-header { font-size: 0.95rem; }
    .cd-lesson-item { padding: 0.6rem 0.8rem; font-size: 0.88rem; }
    .cd-pricing-grid { grid-template-columns: 1fr; }
    .cd-pricing-card--popular { transform: scale(1); }
    .cd-faq-question { padding: 1rem 1.2rem; font-size: 0.95rem; }
    .cd-section__title { font-size: 1.3rem; }
    .cd-hero__stats { gap: 0.6rem; }
    .cd-stat { padding: 0.7rem 0.8rem; }
    .cd-stat__num { font-size: 1.3rem; }
    .cd-stat__label { font-size: 0.7rem; }
}

@media (max-width: 360px) {
    .cd-hero__title { font-size: 1.3rem; }
}
