/* Course Curriculum - Frontend Styles (v1.1 - Section + Description) */

.cc-curriculum-wrapper {
    direction: rtl;
    max-width: 900px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #eef0f4;
}

/* Header */
.cc-curriculum-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cc-main-title {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.4 !important;
}

.cc-stats {
    display: flex;
    gap: 20px;
}

.cc-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.cc-stat svg {
    flex-shrink: 0;
}

/* Accordion */
.cc-accordion {
    padding: 8px 0;
}

.cc-section {
    border-bottom: 1px solid #f0f2f5;
}

.cc-section:last-child {
    border-bottom: none;
}

.cc-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.cc-section-toggle:hover {
    background: #f8fafc;
}

.cc-section.is-open .cc-section-toggle {
    background: #f1f5f9;
}

.cc-section-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cc-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.cc-section.is-open .cc-section-number {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cc-section-title {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
}

.cc-section-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cc-arrow {
    display: flex;
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.cc-section.is-open .cc-arrow {
    transform: rotate(180deg);
    color: #3b82f6;
}

/* Content / Description */
.cc-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.cc-section.is-open .cc-section-content {
    max-height: 3000px;
}

.cc-section-description {
    padding: 8px 28px 24px 28px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.85;
}

.cc-section-description p {
    margin: 0 0 1em 0 !important;
}

.cc-section-description p:last-child {
    margin-bottom: 0 !important;
}

.cc-section-description ul,
.cc-section-description ol {
    margin: 0.8em 0 0.8em 1.5em !important;
    padding: 0 !important;
}

.cc-section-description li {
    margin-bottom: 0.4em;
}

.cc-section-description strong {
    color: #1e293b;
}

.cc-section-description a {
    color: #3b82f6;
    text-decoration: underline;
}

/* Empty state */
.cc-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .cc-curriculum-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cc-main-title {
        font-size: 1.25rem !important;
    }

    .cc-section-toggle {
        padding: 14px 16px;
    }

    .cc-section-number {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .cc-section-title {
        font-size: 0.95rem !important;
    }

    .cc-section-description {
        padding: 6px 16px 20px 16px;
        font-size: 0.9rem;
    }
}











