/* Base Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffbe0b;
    --dark-color: #2d3748;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --link-color: #3182ce;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #e05a5a;
    color: white;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover {
    background-color: #3dbdb5;
    color: white;
}

.module-btn {
    background-color: var(--dark-color);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.module-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--dark-color);
}

/* Navigation */
#main-nav ul {
    display: flex;
}

#main-nav li {
    margin-left: 1.5rem;
    position: relative;
}

#main-nav a {
    color: var(--dark-color);
    font-weight: 500;
}

#main-nav a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    min-width: 200px;
    display: none;
    z-index: 10;
}

.dropdown-menu li {
    margin: 0 !important;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    display: block;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Mobile Menu Toggle */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Course Overview Section */
.course-overview {
    padding: 4rem 0;
    background-color: white;
}

.course-overview h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.course-overview > .container > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.overview-card h3 {
    margin-bottom: 1rem;
}

.overview-card ul, .overview-card ol {
    padding-left: 1.5rem;
}

.overview-card li {
    margin-bottom: 0.5rem;
}

/* Modules Preview Section */
.modules-preview {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.modules-preview h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.module-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.module-card h3 {
    margin-bottom: 0.5rem;
}

.module-card p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: #e2e8f0;
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Supporting Materials Section */
.supporting-materials {
    padding: 4rem 0;
    background-color: white;
}

.supporting-materials h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.supporting-materials > .container > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

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

.material-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    display: block;
    color: var(--text-color);
}

.material-card:hover {
    transform: translateY(-5px);
    color: var(--text-color);
}

.material-card .icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.material-card h3 {
    margin-bottom: 0.5rem;
}

.material-card p {
    margin-bottom: 0;
}

/* Get Started Section */
.get-started {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.get-started h2 {
    color: white;
    margin-bottom: 1rem;
}

.get-started p {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.get-started .btn {
    background-color: white;
    color: var(--primary-color);
}

.get-started .btn:hover {
    background-color: var(--dark-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #a0aec0;
}

.footer-links h3, .footer-resources h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul, .footer-resources ul {
    list-style: none;
}

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

.footer-links a, .footer-resources a {
    color: #a0aec0;
    transition: var(--transition);
}

.footer-links a:hover, .footer-resources a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Module Content Styles */
.module-content {
    padding: 3rem 0;
}

.module-header {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.module-header h1 {
    color: white;
}

.module-header .emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.module-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

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

.module-section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.step {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step ol, .step ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.step li {
    margin-bottom: 0.5rem;
}

.analogy, .pro-tip, .fun-fact {
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.analogy h3, .pro-tip h3, .fun-fact h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.quiz {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.quiz h3 {
    margin-bottom: 1.5rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.quiz-options {
    list-style-type: none;
    padding-left: 0;
}

.quiz-options li {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-options li:hover {
    background-color: #e2e8f0;
}

.quiz-answer {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e6fffa;
    border-left: 4px solid var(--success-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    display: none;
}

.quiz-answer.show {
    display: block;
}

.next-steps {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.next-steps h3 {
    margin-bottom: 1rem;
}

.next-steps ol {
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
}

/* Supporting Materials Content Styles */
.material-content {
    padding: 3rem 0;
}

.material-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.material-header h1 {
    color: white;
}

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

.material-section h2 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.glossary-item, .faq-item {
    margin-bottom: 2rem;
}

.glossary-item h3, .faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.badge {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.badge h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.badge p {
    text-align: center;
}

.code-block {
    background-color: #2d3748;
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', Courier, monospace;
}

.code-block pre {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    #menu-toggle {
        display: block;
    }
    
    #nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--box-shadow);
        display: none;
    }
    
    #nav-links.show {
        display: block;
    }
    
    #main-nav li {
        margin: 0;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .module-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .module-navigation .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .overview-card, .module-card, .material-card, .step, .analogy, .pro-tip, .fun-fact, .quiz, .next-steps {
        padding: 1.5rem;
    }
    
    .module-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: -10px;
        left: -10px;
    }
}
