/* General Reset & Body Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #212529;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content Wrapper for centering and max-width */
.content-wrapper {
    max-width: 840px;
    margin: 2.5rem auto;
    padding: 2rem 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #343a40;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 {
    font-size: 2.75rem;
    border-bottom: 3px solid #dee2e6;
    padding-bottom: 0.6rem;
    margin-top: 0;
}

h2 {
    font-size: 2.25rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.75rem;
}

/* Paragraphs and Links */
p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Lists - keeping original numbering from Google Docs */
ul, ol {
    padding-left: 25px;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.6rem;
}

/* Utility to override inline styles from Google Docs */
p, span, li, h1, h2, h3, h4, h5, h6, a {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    background: transparent !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 0;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.85rem;
    }
}
