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

:root {
    --primary-color: #2c5f7c;
    --secondary-color: #4a9ebb;
    --accent-color: #e67e22;
    --success-color: #27ae60;
    --warning-color: #c0392b;
    --text-dark: #2c3e50;
    --text-medium: #546e7a;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

nav h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
    max-height: 500px;
    object-fit: cover;
}

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

.alt-bg {
    background-color: var(--bg-light);
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.content-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.content-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.milestone-stage {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.stage-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.stage-header h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
}

.milestones-list {
    display: grid;
    gap: 1.5rem;
}

.milestone-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.milestone-item:hover {
    background: #e8f4f8;
    transform: translateX(8px);
}

.milestone-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.milestone-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.milestone-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

.strategies-container {
    display: grid;
    gap: 3rem;
}

.strategy-stage h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-color);
    font-weight: 700;
}

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.strategy-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.strategy-card h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.strategy-card p {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.definition-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.definition-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.definition-box p {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.examples-section h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 700;
}

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

.example-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--secondary-color);
}

.example-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.example-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

.teaching-strategies h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 700;
}

.teaching-card {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.teaching-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.card-content h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-content p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.resource-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.resource-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.resource-card ul {
    list-style-position: inside;
    color: var(--text-medium);
}

.resource-card li {
    margin-bottom: 1rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid var(--warning-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.warning-box h3 {
    color: var(--warning-color);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.warning-box h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.warning-box p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

.warning-box ul {
    list-style-position: inside;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.warning-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-weight: 500;
}

.crisis-resources {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--warning-color);
}

.crisis-resources h4 {
    color: var(--warning-color);
    margin-top: 0;
}

.crisis-resources p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.references-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.reference-item {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    padding-left: 2rem;
    text-indent: -2rem;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-top: 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .stage-header {
        flex-direction: column;
        text-align: center;
    }

    .stage-header img {
        width: 100px;
        height: 100px;
    }

    .milestone-item {
        flex-direction: column;
        text-align: center;
    }

    .teaching-card {
        flex-direction: column;
        text-align: center;
    }

    .card-number {
        margin: 0 auto;
    }

    .content-grid,
    .examples-grid,
    .family-resources-grid {
        grid-template-columns: 1fr;
    }
}

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

    .content-section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .content-card,
    .milestone-stage,
    .strategy-card,
    .teaching-card,
    .resource-card {
        padding: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}
