/* 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;
}

/* 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;
    }
}