* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background: white;
    color: #333;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #663399;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #663399;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #663399;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    background: #663399;
    color: white;
}

.nav-links a.primary {
    background: #663399;
    color: white;
    border: 1px solid #663399;
}

.nav-links a.primary:hover {
    background: #764ba2;
    border-color: #764ba2;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
}

main .content-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.courses {
    margin-top: 3rem;
    background: #f5f5f5;
    padding: 3rem 2rem;
    border-radius: 10px;
}

.courses h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #663399;
    font-weight: bold;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card-content {
    padding: 1.5rem;
}

.course-card h3 {
    color: #663399;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.course-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.course-card-buttons {
    display: flex;
    gap: 1rem;
}

.btn-enroll {
    display: inline-block;
    background: #4285F4;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-enroll:hover {
    background: #357ae8;
}

.btn-learn-more {
    display: inline-block;
    background: white;
    color: #4285F4;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #4285F4;
}

.btn-learn-more:hover {
    background: #f0f4ff;
}

.course-link {
    display: inline-block;
    margin-top: 1rem;
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.course-link:hover {
    color: #357ae8;
}

/* Course Page Styles */
.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.course-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    background: #4285F4;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.3s;
    margin: 1rem 0;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #357ae8;
    transform: scale(1.05);
}

.content-section {
    margin: 3rem 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #663399;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #663399;
    font-weight: bold;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin: 3rem 0;
}

.cta-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 1rem;
}

.faq-section {
    margin: 3rem 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-section h2 {
    color: #663399;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #663399;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .course-header h1 {
        font-size: 1.8rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card-buttons {
        flex-direction: column;
    }
    
    .btn-enroll,
    .btn-learn-more {
        width: 100%;
        text-align: center;
    }
}
