:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4bb543;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
}

.logo p {
    font-size: 0.8rem;
    color: var(--gray);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    list-style: none;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-menu a:hover {
    background-color: var(--light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Features Section */
.features {
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Courses Preview */
.courses-preview {
    padding: 80px 0;
    background-color: var(--light);
}

.courses-preview h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary);
    text-align: center;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-image {
    height: 180px;
    background-color: var(--accent);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.course-content p {
    margin-bottom: 20px;
    color: var(--gray);
}

/* Blog Preview */
.blog-preview {
    padding: 80px 0;
}

.blog-preview h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary);
    text-align: center;
}

.blog-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-card h3 a {
    text-decoration: none;
    color: var(--secondary);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    margin-bottom: 15px;
    color: var(--gray);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--light);
    text-align: center;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.testimonial {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.author {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.control-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.control-btn:hover {
    background: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero, .features, .courses-preview, .blog-preview, .testimonials {
        padding: 50px 0;
    }
}

/* Additional styles for the new pages */

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Page Content Layout */
.page-content {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.content-text h2 {
    color: var(--secondary);
    margin: 30px 0 15px;
}

.content-text h2:first-child {
    margin-top: 0;
}

/* Team Section */
.team-section {
    margin-top: 60px;
}

.team-section h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Stats Section */
.stats-section {
    margin-top: 60px;
    text-align: center;
}

.stats-section h2 {
    color: var(--secondary);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

/* Course Pages */
.course-hero {
    padding: 80px 0;
}

.course-hero-content {
    max-width: 800px;
}

.course-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.course-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Course Details */
.course-details {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.learning-objectives {
    margin: 30px 0;
}

.objective {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.objective h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.curriculum {
    margin: 30px 0;
}

.module {
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.module h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.module ul {
    list-style-type: none;
    padding-left: 0;
}

.module li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    padding-left: 25px;
}

.module li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.module li:last-child {
    border-bottom: none;
}

/* Course Sidebar */
.course-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card, .instructor-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.sidebar-card h3, .instructor-card h3 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
}

.feature-list li:last-child {
    border-bottom: none;
}

.instructor-info {
    text-align: center;
}

.instructor-info h4 {
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Writing Systems */
.writing-systems {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.system {
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    text-align: center;
}

.system h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.example {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    font-family: monospace;
    font-weight: 600;
}

/* Course Testimonials */
.course-testimonials {
    padding: 60px 0;
    background: var(--light);
}

.course-testimonials h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.student {
    font-weight: 600;
    color: var(--primary);
}

/* Blog Layout */
.blog-content {
    padding: 60px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.featured-article {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.category {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.article-excerpt {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.article-content h3 {
    color: var(--secondary);
    margin: 30px 0 15px;
}

.article-tips {
    background: var(--light);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.article-tips h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.article-tips ul {
    list-style-type: none;
    padding-left: 0;
}

.article-tips li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.article-tips li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: var(--primary);
    font-weight: bold;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.comment-form {
    margin-bottom: 40px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
}

.comment {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.comment-author {
    font-weight: 600;
    color: var(--secondary);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
}

/* Blog Sidebar */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.popular-articles, .categories {
    list-style: none;
    padding: 0;
}

.popular-articles li, .categories li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.popular-articles li:last-child, .categories li:last-child {
    border-bottom: none;
}

.popular-articles a, .categories a {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
}

.popular-articles a:hover, .categories a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
}

/* Contact Page */
.contact-content {
    padding: 60px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-section h2 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact-form-section > p {
    margin-bottom: 30px;
    color: var(--gray);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.success-message {
    background: var(--success);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.success-message h3 {
    margin-bottom: 15px;
}

.success-message a {
    color: white;
    text-decoration: underline;
}

/* Contact Info */
.contact-method {
    margin-bottom: 30px;
}

.contact-method h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.office-hours {
    background: var(--light);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.office-hours h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.faq-section h2 {
    color: var(--secondary);
    margin-bottom: 25px;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--light-gray);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .content-grid,
    .details-grid,
    .blog-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-meta {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
    }
    
    .course-hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .page-hero, .course-details, .blog-content, .contact-content {
        padding: 40px 0;
    }
}