
        .course-header {
            background: linear-gradient(135deg, <?= htmlspecialchars($course['bg_color_hex'] ?? '#6c63ff'); ?>, #3a34a0);
            color: white;
            padding: 100px 0 60px;
            position: relative;
            overflow: hidden;
        }
        .course-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="white"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="white"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="white"/></svg>');
            background-size: 100% 100px;
            background-position: top;
            background-repeat: no-repeat;
            opacity: 0.5;
            background-color: #6c63ff ;
        }
        .meta-badge {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            color: white;
            padding: 8px 16px;
            border-radius: 50px;
            font-weight: 600;
            border: 1px solid rgba(255,255,255,0.3);
        }
        .skill-tag {
            background: #e9ecef;
            padding: 8px 20px;
            border-radius: 50px;
            margin: 0 10px 10px 0;
            font-size: 0.9rem;
            display: inline-block;
            border: 1px solid #dee2e6;

               background: #6c63ff;
            color: white;
  
        }
     
        .project-card {
            background: #f8f9fa;
            border-radius: 20px;
            padding: 40px;
            border: 1px solid #e9ecef;
        }
        .course-series-item {
            padding: 20px;
            margin-bottom: 15px;
            position: relative;
            border-radius: 15px;
            background: white;
            border: 1px solid #edf2f7;
            transition: all 0.3s;
        }
        .course-series-item:hover {
            transform: translateX(10px);
            border-color: #6c63ff;
        }
        .curriculum-dot {
            position: absolute;
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #6c63ff;
            border: 3px solid white;
            box-shadow: 0 0 0 2px #6c63ff;
        }
        .duration-badge {
            background: #6c63ff;
            color: white;
            padding: 5px 15px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .pricing-card {
            position: sticky;
            top: 30px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        }
        .cert-card-dynamic {
            background-size: cover;
            background-position: center;
            color: white !important;
            border-radius: 15px;
            padding: 40px 20px;
        }
        .discount-tag {
            background: #ff4757;
            color: white;
            padding: 5px 15px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 800;
            margin-left: 10px;
            vertical-align: middle;
        }
     
        .star-rating-input input {
            display: none;
        }
        .star-rating-input label {
            color: #ccc;
            cursor: pointer;
            font-size: 25px;
            padding: 0 5px;
            transition: all 0.2s;
        }
        .star-rating-input input:checked ~ label,
        .star-rating-input label:hover,
        .star-rating-input label:hover ~ label {
            color: #ffbc00;
        }
        .discussion-item {
            border-bottom: 1px solid #edf2f7;
            padding: 24px 0;
            transition: all 0.3s;
        }
        .discussion-item:last-child {
            border-bottom: none;
        }
        .discussion-item:hover {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 24px 15px;
            margin: 0 -15px;
        }
   
        .content-body {
            flex-grow: 1;
        }
        .user-name {
            font-weight: 700;
            color: #1a202c;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .timestamp {
            font-size: 0.8rem;
            color: #a0aec0;
        }
        .comment-text {
            color: #4a5568;
            line-height: 1.6;
            margin: 8px 0;
            font-size: 0.95rem;
        }
        .action-link {
            font-size: 0.85rem;
            color: #718096;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
            cursor: pointer;
            border: none;
            background: none;
            padding: 0;
        }
        .action-link:hover {
            color: #6c63ff;
        }
        .action-link.delete:hover {
            color: #e53e3e;
        }
        .status-pending {
            background: #fffaf0;
            color: #975a16;
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 700;
            text-transform: uppercase;
            border: 1px solid #fbd38d;
        }
        .replies-wrapper {
            margin-left: 60px;
            border-left: 2px solid #edf2f7;
            padding-left: 20px;
            margin-top: 16px;
        }
        .reply-form-container {
            display: none;
            margin-top: 12px;
        }
        .active-reply-form {
            display: block;
        }
        .free-price-text {
            color: #2ecc71;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 2.5rem;
        }
        .btn-purple {
            background-color: #6c63ff;
            border-color: #6c63ff;
            color: white;
            transition: all 0.3s;
        }
        .btn-purple:hover {
            background-color: #5b4ec3;
            border-color: #5b4ec3;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
        }
        .fw-800 {
            font-weight: 800 !important;
        }
        .sticky-sidebar {
            position: sticky;
            top: 20px;
        }
        @media (max-width: 992px) {
            .course-header {
                padding: 80px 0 40px;
            }
            .sticky-sidebar {
                position: static;
                margin-bottom: 30px;
            }
        }
.bg-purple.text-white.rounded-circle.p-2 {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.p-4.rounded-4.text-center.mb-4.cert-card-dynamic {
    height: 30vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
  .star-rating-input {
            display: inline-flex;
            flex-direction: row-reverse;
            gap: 5px;
        }
        .star-rating-input input {
            display: none;
        }
        .star-rating-input label {
            font-size: 1.8rem;
            color: #ccc;
            cursor: pointer;
            transition: color 0.2s;
        }
        .star-rating-input input:checked ~ label,
        .star-rating-input label:hover,
        .star-rating-input label:hover ~ label {
            color: #ffbc00;
        }