* {
    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: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b46c1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #6b46c1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #6b46c1;
    color: white;
}

.btn-primary:hover {
    background: #553c9a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #6b46c1;
    border: 2px solid #6b46c1;
}

.btn-secondary:hover {
    background: #6b46c1;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    background: #6b46c1;
    color: white;
    border-color: #6b46c1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Trust Indicators */
.trust-indicators {
    padding: 4rem 0;
    background: #f8fafc;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item h3 {
    color: #6b46c1;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.trust-item p {
    color: #666;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.featured-courses {
    padding: 5rem 0;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px 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 12px 25px rgba(0,0,0,0.15);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.course-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #6b46c1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-category,
.course-difficulty {
    font-size: 0.875rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.course-category {
    background: #e0e7ff;
    color: #6b46c1;
}

.course-difficulty {
    background: #f0fdf4;
    color: #16a34a;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.course-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.course-duration {
    color: #666;
    font-size: 0.875rem;
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b46c1;
}

.section-cta {
    text-align: center;
}

/* Search and Filter */
.search-filter {
    background: #f8fafc;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.search-filter-content {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.search-input,
.filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #6b46c1;
}

.search-input {
    min-width: 300px;
}

/* Course Detail Page */
.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.course-header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.course-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.course-info .course-meta {
    margin-bottom: 1.5rem;
}

.course-info .course-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.course-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.course-stat {
    text-align: center;
}

.course-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.course-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.course-sidebar {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.course-price-display {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.course-body {
    padding: 4rem 0;
}

.course-body-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.course-main {
    background: white;
}

.course-section {
    margin-bottom: 3rem;
}

.course-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.course-section ul {
    list-style: none;
    padding: 0;
}

.course-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.course-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

.curriculum-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.lesson-title {
    font-weight: 600;
    color: #333;
}

.lesson-duration {
    font-size: 0.875rem;
    color: #666;
}

.instructor-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.instructor-bio {
    color: #666;
    line-height: 1.6;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.faq-answer {
    color: #666;
    padding-bottom: 1rem;
}

/* Content Pages */
.page-header {
    background: #f8fafc;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.page-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

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

.content-section li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6b46c1;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

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

.contact-info-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.contact-info-item h3 {
    margin-bottom: 1rem;
    color: #6b46c1;
}

.contact-info-item p {
    color: #666;
}

.contact-info-item a {
    color: #6b46c1;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b46c1;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6b46c1;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.contact-info a {
    color: #6b46c1;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .course-body-content {
        grid-template-columns: 1fr;
    }

    .search-filter-content {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .course-card {
        margin-bottom: 1rem;
    }
}

/* Focus and Accessibility */
*:focus {
    outline: 2px solid #6b46c1;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading and Animation States */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn {
        display: none;
    }
    
    .page-content,
    .course-body {
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}