/* Course Manager Styles */

/* Course Grid Layout */
.course-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.course-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.course-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.course-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Course Card Styles */
.course-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
}

.course-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-content h3 a:hover {
    color: #0073aa;
}

.course-price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.course-duration {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.course-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-link {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.course-link:hover {
    background: #005a87;
    color: #fff;
}

/* Course Page Layout */
.course-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.course-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.course-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.course-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.course-layout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.course-main-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

/* Course Header */
.course-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.course-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.course-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.course-author {
    font-weight: 500;
}

.course-category-meta {
    color: #0073aa;
}

.course-last-updated {
    font-size: 13px;
    color: #999;
}

/* Curriculum Section */
.course-curriculum-section {
    margin-bottom: 30px;
}

.curriculum-notice {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1976d2;
    font-size: 14px;
}

.curriculum-icon {
    font-size: 16px;
}

/* Semester Styles */
.course-semesters {
    margin-top: 20px;
}

.semester-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
}

.semester-header {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    border-bottom: 1px solid #eee;
}

.semester-header:hover {
    background: #e9ecef;
}

.semester-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.semester-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.semester-item.active .semester-toggle {
    transform: rotate(45deg);
    background: #0073aa;
    color: #fff;
}

.semester-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.semester-item.active .semester-content {
    padding: 25px;
    max-height: 1000px;
}

.semester-content h1,
.semester-content h2,
.semester-content h3,
.semester-content h4,
.semester-content h5,
.semester-content h6 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
}

.semester-content h1:first-child,
.semester-content h2:first-child,
.semester-content h3:first-child,
.semester-content h4:first-child,
.semester-content h5:first-child,
.semester-content h6:first-child {
    margin-top: 0;
}

.semester-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.semester-content ul,
.semester-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.semester-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.semester-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

/* Course Description */
.course-description-section {
    margin-bottom: 40px;
}

.course-content-text {
    line-height: 1.8;
    color: #444;
}

.course-content-text h2 {
    color: #333;
    font-size: 24px;
    margin: 30px 0 15px 0;
}

.course-content-text p {
    margin-bottom: 15px;
}

/* Prerequisites */
.course-prerequisites-section {
    margin-bottom: 40px;
}

.course-prerequisites-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.course-prerequisites-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

/* Instructor Section */
.course-instructor-section {
    margin-bottom: 40px;
}

.course-instructor-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.instructor-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.instructor-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.instructor-name {
    font-size: 18px;
    color: #0073aa;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.instructor-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.stat-icon {
    font-size: 16px;
}

/* FAQ Section */
.course-faq-section {
    margin-bottom: 40px;
}

.course-faq-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Comments Section */
.course-comments-section {
    margin-bottom: 40px;
}

.course-comments-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Related Courses */
.course-related-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-course-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.related-course-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-course-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-course-content {
    padding: 15px;
}

.related-course-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.related-course-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.related-course-title a:hover {
    color: #0073aa;
}

.related-course-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.related-course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.related-course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    font-size: 14px;
}

.related-course-price {
    font-size: 16px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.related-course-price.free {
    color: #4caf50;
}

.related-course-button {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.related-course-button:hover {
    background: #e0e0e0;
}

/* Sidebar Styles */
.course-featured-image {
    margin-bottom: 20px;
}

.course-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.course-enrollment-box {
    text-align: center;
}

.course-price-display {
    margin-bottom: 20px;
}

.price-amount {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
}

.price-amount.free {
    color: #4caf50;
}

.course-details-list {
    margin-bottom: 25px;
    text-align: left;
}

.course-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.course-detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 16px;
    width: 20px;
}

.detail-label {
    color: #666;
    min-width: 60px;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.course-enroll-button {
    width: 100%;
    background: #4c63d2;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 15px;
}

.course-enroll-button:hover {
    background: #3d4fd8;
}

.course-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.course-share:hover {
    color: #0073aa;
}

.share-icon {
    font-size: 16px;
}

.course-contact-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.course-contact-form h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .course-layout-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .course-page-wrapper {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .course-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-sidebar {
        order: -1;
        position: static;
    }
    
    .course-title {
        font-size: 24px;
    }
    
    .related-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-card {
        flex-direction: column;
        text-align: center;
    }
    
    .instructor-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .course-page-wrapper {
        padding: 10px;
    }
    
    .course-main-content,
    .course-sidebar {
        padding: 20px;
    }
    
    .course-title {
        font-size: 20px;
    }
    
    .course-breadcrumb {
        font-size: 12px;
    }
}

/* Single Course Styles */
.course-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.course-header {
    margin-bottom: 40px;
}

.course-featured-image {
    margin-bottom: 30px;
}

.course-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.course-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.course-categories {
    margin-bottom: 20px;
}

.course-category {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
}

.course-meta-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-meta-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.course-price-value {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.course-content-section {
    line-height: 1.8;
}

.course-content-section h2 {
    color: #333;
    font-size: 28px;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.course-content-section h2:first-child {
    margin-top: 0;
}

.course-content-text,
.course-prerequisites-content {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* FAQ Styles */
.course-faq-items {
    margin-top: 20px;
}

.course-faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.course-faq-question {
    background: #f9f9f9;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.course-faq-question:hover {
    background: #f0f0f0;
}

.course-faq-toggle {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    transition: transform 0.3s ease;
}

.course-faq-item.active .course-faq-toggle {
    transform: rotate(45deg);
}

.course-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.course-faq-item.active .course-faq-answer {
    padding: 20px;
    max-height: 500px;
}

.course-contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .course-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .course-grid[data-columns="3"],
    .course-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-grid {
        gap: 20px;
    }
    
    .course-single-container {
        padding: 20px 15px;
    }
    
    .course-title {
        font-size: 28px;
    }
    
    .course-meta-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .course-featured-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .course-grid[data-columns="2"],
    .course-grid[data-columns="3"],
    .course-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .course-title {
        font-size: 24px;
    }
    
    .course-content-section h2 {
        font-size: 22px;
    }
}