/* Course Companion LMS Frontend Styles */

/* Universal content styling - Higher specificity to override Divi */
body .entry-content p,
body .post-content p,
body .page-content p,
body article p,
body main p,
.et-l .et-l__body .entry-content p,
.et-l .et-l__body .post-content p,
.et-l .et-l__body .page-content p,
.et-l .et-l__body article p,
.et-l .et-l__body main p {
    margin: 0 0 20px 0 !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

body .entry-content h1,
body .post-content h1,
body .page-content h1,
body article h1,
body main h1,
.et-l .et-l__body .entry-content h1,
.et-l .et-l__body .post-content h1,
.et-l .et-l__body .page-content h1,
.et-l .et-l__body article h1,
.et-l .et-l__body main h1 {
    font-size: 2.2em !important;
    margin: 0 0 25px 0 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

body .entry-content h2,
body .post-content h2,
body .page-content h2,
body article h2,
body main h2,
.et-l .et-l__body .entry-content h2,
.et-l .et-l__body .post-content h2,
.et-l .et-l__body .page-content h2,
.et-l .et-l__body article h2,
.et-l .et-l__body main h2 {
    font-size: 1.8em !important;
    margin: 35px 0 20px 0 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

body .entry-content h3,
body .post-content h3,
body .page-content h3,
body article h3,
body main h3,
.et-l .et-l__body .entry-content h3,
.et-l .et-l__body .post-content h3,
.et-l .et-l__body .page-content h3,
.et-l .et-l__body article h3,
.et-l .et-l__body main h3 {
    font-size: 1.4em !important;
    margin: 30px 0 15px 0 !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
}

body .entry-content h4,
body .post-content h4,
body .page-content h4,
body article h4,
body main h4,
.et-l .et-l__body .entry-content h4,
.et-l .et-l__body .post-content h4,
.et-l .et-l__body .page-content h4,
.et-l .et-l__body article h4,
.et-l .et-l__body main h4 {
    font-size: 1.2em !important;
    margin: 25px 0 12px 0 !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
}

body .entry-content ul,
body .post-content ul,
body .page-content ul,
body article ul,
body main ul,
.et-l .et-l__body .entry-content ul,
.et-l .et-l__body .post-content ul,
.et-l .et-l__body .page-content ul,
.et-l .et-l__body article ul,
.et-l .et-l__body main ul,
body .entry-content ol,
body .post-content ol,
body .page-content ol,
body article ol,
body main ol,
.et-l .et-l__body .entry-content ol,
.et-l .et-l__body .post-content ol,
.et-l .et-l__body .page-content ol,
.et-l .et-l__body article ol,
.et-l .et-l__body main ol {
    margin: 0 0 20px 0 !important;
    padding-left: 25px !important;
}

body .entry-content li,
body .post-content li,
body .page-content li,
body article li,
body main li,
.et-l .et-l__body .entry-content li,
.et-l .et-l__body .post-content li,
.et-l .et-l__body .page-content li,
.et-l .et-l__body article li,
.et-l .et-l__body main li {
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
}

/* Dashboard */
.cc-lms-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cc-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.cc-dashboard-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.cc-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cc-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cc-stat-icon {
    font-size: 2.5em;
}

.cc-stat-content h3 {
    font-size: 2em;
    margin: 0 0 5px 0;
    color: #2271b1;
}

.cc-stat-content p {
    margin: 0;
    color: #666;
}

.cc-dashboard-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.cc-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cc-course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.cc-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cc-course-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.cc-default-thumbnail {
    background: #2EA3F2;
}

.cc-course-info {
    padding: 20px;
}

.cc-course-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.difficulty-beginner {
    background: #d4edda;
    color: #155724;
}

.difficulty-intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty-advanced {
    background: #f8d7da;
    color: #721c24;
}

.cc-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.cc-progress-fill {
    height: 100%;
    background: #2EA3F2;
    transition: width 0.3s;
}

.cc-progress-text {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.cc-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cc-btn-primary {
    background: #2271b1;
    color: #fff;
}

.cc-btn-primary:hover {
    background: #135e96;
}

.cc-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.cc-btn-secondary:hover {
    background: #545b62;
}

.cc-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.cc-btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.cc-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.cc-empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

/* Lesson Player */
.cc-lesson-player {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.cc-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.cc-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
}

.cc-lesson-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cc-avatar-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cc-avatar-player {
    text-align: center;
}

.cc-avatar-player img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.cc-lesson-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
}

body .cc-lesson-content h1,
.et-l .et-l__body .cc-lesson-content h1 {
    font-size: 2.2em !important;
    margin: 0 0 25px 0 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

body .cc-lesson-content h2,
.et-l .et-l__body .cc-lesson-content h2 {
    font-size: 1.8em !important;
    margin: 35px 0 20px 0 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

body .cc-lesson-content h3,
.et-l .et-l__body .cc-lesson-content h3 {
    font-size: 1.4em !important;
    margin: 30px 0 15px 0 !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
}

body .cc-lesson-content h4,
.et-l .et-l__body .cc-lesson-content h4 {
    font-size: 1.2em !important;
    margin: 25px 0 12px 0 !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
}

body .cc-lesson-content p,
.et-l .et-l__body .cc-lesson-content p {
    margin: 0 0 20px 0 !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

/* Learning Objectives Section */
.cc-learning-objectives {
    background: #CCC;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

/* Lesson Illustrations */
.lesson-illustration {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cc-lesson-content .lesson-illustration {
    max-width: 100% !important;
    height: auto !important;
}

/* Lesson Video Wrapper - Responsive YouTube Embeds */
.lesson-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.cc-lesson-content .lesson-video-wrapper {
    max-width: 100% !important;
}

.cc-learning-objectives h2,
.cc-learning-objectives h3,
.cc-learning-objectives h4 {
    color: #fff !important;
    margin-top: 0 !important;
}

.cc-learning-objectives p,
.cc-learning-objectives ul,
.cc-learning-objectives li {
    color: #e0e0e0 !important;
}

/* More specific content styling */
.cc-lesson-content > p:first-child {
    margin-top: 0;
}

.cc-lesson-content > p:last-child {
    margin-bottom: 0;
}

/* Ensure all paragraphs have spacing */
.cc-lesson-content p + p {
    margin-top: 20px;
}

/* Strong and emphasis */
.cc-lesson-content strong,
.cc-lesson-content b {
    font-weight: 600;
    color: #2c3e50;
}

.cc-lesson-content em,
.cc-lesson-content i {
    font-style: italic;
}

/* Code blocks */
.cc-lesson-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.cc-lesson-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.cc-lesson-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    color: #333;
}

/* Tables */
.cc-lesson-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cc-lesson-content th,
.cc-lesson-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.cc-lesson-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.cc-lesson-content tr:last-child td {
    border-bottom: none;
}

/* Images */
.cc-lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Links */
.cc-lesson-content a {
    color: #2EA3F2;
    text-decoration: none;
    font-weight: 500;
}

.cc-lesson-content a:hover {
    text-decoration: underline;
    color: #1e8bc3;
}

.cc-lesson-content ul,
.cc-lesson-content ol {
    margin: 0 0 20px 0;
    padding-left: 25px;
}

.cc-lesson-content li {
    margin-bottom: 10px;
    line-height: 1.7;
	color: #000 !important;
}

.cc-lesson-content blockquote {
    margin: 25px 0;
    padding: 15px 20px;
    border-left: 4px solid #2EA3F2;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.cc-lesson-content hr {
    margin: 35px 0;
    border: none;
    border-top: 2px solid #e9ecef;
}

.cc-lesson-resources {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.cc-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cc-resource-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.cc-video-embed iframe {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cc-ai-assistant {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cc-assistant-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.cc-chat-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 90%;
}

.cc-user-message {
    background: #e3f2fd;
    margin-left: auto;
}

.cc-assistant-message {
    background: #f5f5f5;
}

.cc-chat-input {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.cc-chat-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    resize: vertical;
}

.cc-course-outline h3 {
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.cc-outline-module {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cc-outline-module.active {
    background: #f8f9fa;
}

.cc-outline-module h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.cc-outline-lessons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-outline-lessons li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.cc-outline-lessons li.current {
    font-weight: 600;
    color: #2271b1;
}

.cc-outline-lessons li.completed {
    color: #28a745;
}

.cc-outline-lessons li a {
    text-decoration: none;
    color: inherit;
}

/* Assessment */
.cc-assessment-page {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

.cc-assessment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cc-info-item {
    text-align: center;
}

.cc-info-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.cc-info-value {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    color: #2271b1;
}

.cc-question {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cc-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cc-question-number {
    background: #2271b1;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cc-question-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cc-answer-option {
    display: block;
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cc-answer-option:hover {
    border-color: #2271b1;
    background: #f8f9fa;
}

.cc-answer-option input[type="radio"] {
    margin-right: 10px;
}

.cc-text-input,
.cc-textarea-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
}

.cc-results-summary {
    text-align: center;
    padding: 40px;
}

.cc-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 2.5em;
    font-weight: 700;
}

.cc-score-circle.passed {
    background: #d4edda;
    color: #155724;
}

.cc-score-circle.failed {
    background: #f8d7da;
    color: #721c24;
}

/* Course Catalog */
.cc-lms-catalog {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cc-catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.cc-filter-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.cc-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cc-search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
}

.cc-filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-filter-options select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

/* Course Overview Page */
.cc-course-overview {
    background: #f5f7fa;
    min-height: 100vh;
}

.cc-course-hero {
    background: #2EA3F2;
    color: #fff;
    padding: 60px 20px;
}

.cc-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.cc-hero-text h1 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.cc-course-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cc-course-meta-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.cc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95em;
    opacity: 0.9;
}

.cc-hero-actions {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cc-progress-info {
    margin-bottom: 20px;
}

.cc-progress-info p {
    margin: 10px 0 0 0;
    font-size: 0.95em;
}

.cc-completed-badge {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid rgba(40, 167, 69, 0.4);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
}

.cc-course-content {
    max-width: 1200px;
    margin: -40px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Course content typography - Higher specificity */
body .cc-course-content h1,
.et-l .et-l__body .cc-course-content h1 {
    font-size: 2.2em !important;
    margin: 0 0 25px 0 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

body .cc-course-content h2,
.et-l .et-l__body .cc-course-content h2 {
    font-size: 1.8em !important;
    margin: 35px 0 20px 0 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

body .cc-course-content h3,
.et-l .et-l__body .cc-course-content h3 {
    font-size: 1.4em !important;
    margin: 30px 0 15px 0 !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
}

body .cc-course-content h4,
.et-l .et-l__body .cc-course-content h4 {
    font-size: 1.2em !important;
    margin: 25px 0 12px 0 !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
}

body .cc-course-content p,
.et-l .et-l__body .cc-course-content p {
    margin: 0 0 20px 0 !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

/* More specific course content styling */
.cc-course-content > p:first-child {
    margin-top: 0;
}

.cc-course-content > p:last-child {
    margin-bottom: 0;
}

/* Ensure all paragraphs have spacing */
.cc-course-content p + p {
    margin-top: 20px;
}

/* Strong and emphasis */
.cc-course-content strong,
.cc-course-content b {
    font-weight: 600;
    color: #2c3e50;
}

.cc-course-content em,
.cc-course-content i {
    font-style: italic;
}

/* Code blocks */
.cc-course-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.cc-course-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.cc-course-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
    color: #333;
}

/* Tables */
.cc-course-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cc-course-content th,
.cc-course-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.cc-course-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.cc-course-content tr:last-child td {
    border-bottom: none;
}

/* Images */
.cc-course-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Links */
.cc-course-content a {
    color: #2EA3F2;
    text-decoration: none;
    font-weight: 500;
}

.cc-course-content a:hover {
    text-decoration: underline;
    color: #1e8bc3;
}

.cc-course-content ul,
.cc-course-content ol {
    margin: 0 0 20px 0;
    padding-left: 25px;
}

.cc-course-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.cc-course-content blockquote {
    margin: 25px 0;
    padding: 15px 20px;
    border-left: 4px solid #2EA3F2;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.cc-course-content hr {
    margin: 35px 0;
    border: none;
    border-top: 2px solid #e9ecef;
}

.cc-course-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cc-objectives-section,
.cc-curriculum-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cc-objectives-section h2,
.cc-curriculum-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.6em;
    color: #2c3e50;
}

.cc-objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.cc-objectives-list li {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cc-objectives-list .dashicons {
    color: #28a745;
    font-size: 20px;
    margin-top: 2px;
}

.cc-modules-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cc-module-item {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.cc-module-item:hover {
    border-color: #2EA3F2;
    box-shadow: 0 4px 12px rgba(46, 163, 242, 0.15);
}

.cc-module-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cc-module-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-module-number {
    background: #2EA3F2;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cc-module-duration {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

.cc-module-description {
    padding: 0 25px 15px;
    color: #6c757d;
    line-height: 1.6;
    margin: 10px 0 0 0;
    background: #fff;
}

.cc-lessons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

.cc-lesson-item {
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
}

.cc-lesson-item:hover {
    background: #f8f9fa;
}

.cc-lesson-item.completed {
    opacity: 0.7;
}

.cc-lesson-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-lesson-item.completed .cc-lesson-icon {
    background: #28a745;
}

.cc-lesson-item.completed .cc-lesson-icon .dashicons {
    color: #fff;
}

.cc-lesson-title {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.cc-lesson-duration {
    color: #6c757d;
    font-size: 0.9em;
}

.cc-course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cc-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cc-sidebar-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.cc-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-details-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-details-list li:last-child {
    border-bottom: none;
}

.cc-details-list strong {
    color: #495057;
    font-weight: 600;
}

.cc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-tag {
    background: #e9ecef;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.cc-course-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #6c757d;
}

.cc-course-actions {
    margin-top: 15px;
}

.cc-results-count {
    color: #6c757d;
    margin-bottom: 25px;
}

.cc-course-price {
    background: rgba(255, 255, 255, 0.25);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.cc-price-label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 8px;
    opacity: 0.9;
}

.cc-price-amount {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
}

.cc-payment-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-payment-selection p {
    margin: 0 0 10px 0;
    text-align: center;
    color: #fff;
}

.cc-payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2EA3F2 !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cc-payment-btn:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cc-payment-btn .dashicons {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cc-hero-content {
        grid-template-columns: 1fr;
    }
    
    .cc-hero-actions {
        max-width: 500px;
    }
    
    .cc-course-content {
        grid-template-columns: 1fr;
    }
    
    .cc-course-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cc-dashboard-content,
    .cc-lesson-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .cc-course-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-sidebar {
        order: -1;
    }
    
    .cc-hero-text h1 {
        font-size: 1.8em;
    }
    
    .cc-objectives-list {
        grid-template-columns: 1fr;
    }
    
    .cc-module-header {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
}
