/* Course Page Styles */

.course-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Course Hero */
.course-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 1.5rem;
    color: white;
}

.course-category {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.course-hero h1 {
    font-size: 2.2rem;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.course-description {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.meta-item {
    color: #94a3b8;
}

.meta-item strong {
    color: #e2e8f0;
}

.course-price {
    margin-bottom: 1.5rem;
}

.course-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
}

.course-price .price.free {
    color: #3b82f6;
}

.course-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.course-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-hero-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.placeholder-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 1rem;
    font-size: 5rem;
}

/* Course Details */
.course-details {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.course-details h2 {
    margin: 0 0 1.5rem;
    color: #1e293b;
}

.learning-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.learning-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.learning-points li::before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 1rem;
    color: white;
}

.cta-section h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.cta-section p {
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

/* Not Found */
.not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.not-found h1 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.not-found p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #e2e8f0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: white;
}

.footer-section h4 {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .course-hero {
        grid-template-columns: 1fr;
    }
    
    .course-hero-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .course-hero {
        padding: 1.5rem;
    }
    
    .course-hero h1 {
        font-size: 1.6rem;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        text-align: center;
    }
}
