* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5b7dff;
    --secondary-color: #f3f4f8;
    --dark-color: #1a1a1a;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    background-color: #fff;
    padding: 1.2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-button {
    background-color: var(--dark-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #333;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e8f0ff 0%, #f3f7ff 100%);
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #4a66ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(91, 125, 255, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.epipen-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(91, 125, 255, 0.2);
    object-fit: cover;
    animation: slide-in 0.8s ease-out;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Skills Section */
.skills-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background-color: white;
    border: 2px solid #f0f0f0;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(91, 125, 255, 0.15);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

/* Icon Colors */
.icon-yellow {
    color: #FFA500;
    background-color: #FFF3E0;
}

.icon-green {
    color: #52C77E;
    background-color: #E8F5E9;
}

.icon-purple {
    color: #A855F7;
    background-color: #F3E5F5;
}

.icon-blue {
    color: #3B82F6;
    background-color: #E3F2FD;
}

.icon-red {
    color: #EF4444;
    background-color: #FFEBEE;
}

.icon-pink {
    color: #EC4899;
    background-color: #FCE4EC;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.skill-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-intro {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* What is EpiPen Section */
.what-is-epipen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(91, 125, 255, 0.1);
}

.epipen-image-box {
    display: flex;
    justify-content: center;
}

.epipen-product-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.epipen-content {
    padding: 2rem;
}

.epipen-question {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.epipen-answer {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

/* EpiPen Functions Grid */
.epipen-functions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.function-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(91, 125, 255, 0.15);
}

.function-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.function-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.6;
}

/* How to Use Section */
.how-to-use-section {
    background: linear-gradient(135deg, #5b7dff 0%, #4a66ff 100%);
    color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 4rem 0;
}

.how-to-use-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.how-to-use-section p {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.how-to-use-section .btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.how-to-use-section .btn-secondary:hover {
    background-color: #f3f4f8;
}

/* Teach/Guide Section */
.teach-section {
    padding: 4rem 2rem;
    background-color: #f5f7ff;
    min-height: 100vh;
}

.teach-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.teach-header {
    margin-bottom: 4rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.back-button:hover {
    color: #3d5bb8;
}

.teach-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.teach-intro {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
}

/* Progress Tracker */
.progress-tracker {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.progress-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.progress-left {
    display: flex;
    gap: 2rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
}

.progress-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.progress-right p {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #4a66ff);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Teaching Steps */
.teaching-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 8px 20px rgba(91, 125, 255, 0.12);
}

.step-card.completed {
    opacity: 0.7;
    border-left: 4px solid #4ade80;
}

.step-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
}

.step-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Step Color Variations */
.step-1-color {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
}

.step-2-color {
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
}

.step-3-color {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
}

.step-4-color {
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 100%);
}

.step-5-color {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
}

.step-6-color {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
}

.step-special-color {
    background: linear-gradient(135deg, #ffa726 0%, #ff9100 100%);
}

.step-critical-color {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.step-note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    margin: 0.5rem 0;
}

.step-symptoms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.symptom-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.btn-mark-complete {
    align-self: flex-start;
    padding: 0.6rem 1.5rem;
    background-color: var(--dark-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-mark-complete:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.3);
}

.btn-mark-complete.completed {
    background-color: #4ade80;
}

.special-card {
    background-color: #fffbf0;
}

/* Responsive Teaching Steps */
@media (max-width: 768px) {
    .step-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .step-image {
        order: -1;
    }

    .placeholder-image {
        width: 200px;
        height: 200px;
        font-size: 1.5rem;
    }

    .step-img {
        width: 200px;
        height: 200px;
    }

    .progress-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .progress-left {
        flex-direction: column;
        gap: 1rem;
    }

    .teach-title {
        font-size: 1.8rem;
    }
}

/* Practice Section */
.practice-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f5ff 100%);
    padding: 4rem 2rem;
    min-height: 100vh;
}

.practice-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.practice-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.practice-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.practice-intro {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.quiz-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Quiz Container */
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.quiz-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card.hidden {
    display: none;
}

.question-number {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.option {
    padding: 1rem 1.5rem;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.option:hover {
    background-color: #eeeeee;
    border-color: var(--primary-color);
}

.option.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.option:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Sorting Question Styles */
.sorting-instruction {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.sortable-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
    min-height: 300px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border: 2px solid #5b7dff;
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s ease;
    user-select: none;
}

.step-item:hover {
    box-shadow: 0 4px 12px rgba(91, 125, 255, 0.2);
    transform: translateX(4px);
}

.step-item.dragging {
    opacity: 0.5;
    background-color: #e8f0ff;
}

.step-number {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #5b7dff;
    font-weight: 700;
    min-width: 25px;
}

.step-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.sorting-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
}

/* Results Section */
.results-section {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.5s ease-out;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.results-score {
    margin: 2rem 0;
}

.results-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.results-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.results-message {
    font-size: 1.1rem;
    color: #666;
    margin: 2rem 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .practice-header {
        padding: 1.5rem;
    }

    .quiz-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quiz-card {
        padding: 1.5rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .option {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    .practice-title {
        font-size: 1.8rem;
    }

    .results-value {
        font-size: 2.5rem;
    }
}

.practice-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.practice-container p {
    color: #666;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.footer-left p {
    color: #999;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-right h4 {
    margin-bottom: 1rem;
}

.footer-right p {
    color: #999;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-right p:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .what-is-epipen {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .epipen-functions {
        grid-template-columns: 1fr;
    }

    .about-main-title {
        font-size: 2rem;
    }

    .how-to-use-section {
        padding: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
