/* Base Reset and Typography (From Child Safety Style) */
body { 
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    line-height: 1.6; 
    color: #111; 
    margin: 0; 
    padding: 0; /* Reset padding because Nav is fixed */
    background: #fff; 
    padding-top: 80px; /* Push content down so it's not hidden behind the fixed nav */
}

/* Container Layout */
.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 24px; 
}

/* Fixed Navigation Bar */
nav { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav .nav-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    padding: 0 24px;
    overflow-x: auto; /* Allows scrolling on very small screens */
}

nav a {
    display: block;
    padding: 20px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

nav a:hover {
    color: #0066cc;
    text-decoration: none;
}

nav a.active { 
    color: #0066cc; 
    border-bottom: 3px solid #0066cc;
}

/* Headings */
h1 { 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    color: #111;
}

h2 { 
    font-size: 1.2rem; 
    margin-top: 1.5rem; 
    margin-bottom: 0.5rem; 
    font-weight: 600;
}

h3 {
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

/* Text Elements */
p { margin: 0.5rem 0; }
ul { margin: 0.5rem 0 0.5rem 1.25rem; }
li { margin: 0.25rem 0; }

/* Links in text */
.content-link { color: #0066cc; text-decoration: none; }
.content-link:hover { text-decoration: underline; }

/* Forms (Inputs & Buttons) */
input[type="email"], textarea { 
    display: block; 
    width: 100%; 
    max-width: 400px; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #ccc; 
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

button { 
    display: inline-block; 
    padding: 12px 24px; 
    background-color: #0066cc; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    font-size: 1rem; 
    cursor: pointer;
    font-weight: 500;
}

button:hover {
    background-color: #0052a3;
}

/* Footer & CTA */
.cta { 
    margin-top: 2rem; 
    padding: 20px; 
    background: #f6f8fb; 
    border-radius: 8px; 
}

footer { 
    margin-top: 3rem; 
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.85rem; 
    color: #666; 
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container { padding: 16px; }
    h1 { font-size: 1.5rem; }
    nav a { padding: 15px 10px; font-size: 0.85rem; }
}