/* --- Google Fonts Import (Add this at the very top of your CSS file) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Segoe+UI:wght@400;600;700&display=swap');


/* --- General Styles --- */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8fcf8; /* Very light green/off-white background */
    /* display: flex; */
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh; /* Ensure it takes full viewport height */
}

.container {
    width: 21cm; /* A4 width for printing */
    min-height: 29.7cm; /* A4 height for printing */
    padding: 2cm; /* Standard A4 margins */
    box-sizing: border-box; /* Include padding in width/height */
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow for online view */
    margin: 20px 0; /* Margin for online view */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes header to top, footer to bottom */
}

/* --- Green Color Palette (based on organic/natural tones) --- */
:root {
    --primary-green: #4CAF50;   /* A standard vibrant green, similar to many organic logos */
    --light-green: #8BC34A;     /* A slightly lighter, more olive-green */
    --dark-green: #388E3C;      /* A deeper, forest green */
    --text-color: #333;
    --heading-color: #2e7d32;   /* A darker green for headings */
    --accent-color: #FBC02D;    /* A subtle warm accent for contrast (e.g., tips) */
}

/* --- Headings --- */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 0.8em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--primary-green);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: var(--primary-green);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    border-left: 5px solid var(--light-green);
    padding-left: 10px;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: var(--dark-green);
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

/* --- Paragraphs and Text --- */
p {
    margin-bottom: 1em;
    font-size: 0.95em;
}

strong {
    color: var(--dark-green);
    font-weight: 600;
}

em {
    font-style: italic;
    color: #666;
}

/* --- Lists --- */
ul, ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

ul li {
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

/* Custom bullet for list items for a touch of organic feel */
ul li::before {
    content: '🌿 '; /* Green leaf emoji */
    color: var(--primary-green);
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
}

/* --- Tables (for C:N Ratios, Problems/Solutions, etc.) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9em;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

table th {
    background-color: var(--light-green);
    color: #ffffff;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9fdf9; /* Very light green stripe */
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for images */
}

/* --- Callout Boxes / Infoboxes --- */
/* Assuming Infoboxes are rendered as blockquotes or specific divs */
blockquote {
    background-color: #e8f5e9; /* Lightest green for info boxes */
    border-left: 6px solid var(--primary-green);
    margin: 1.5em 0;
    padding: 15px;
    border-radius: 5px;
    font-style: normal;
    color: var(--dark-green);
}

blockquote p {
    margin: 0;
    font-size: 0.95em;
}

/* --- Footer / Contact Information --- */
.contact-info {
    text-align: center;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px dashed #ccc;
    font-size: 0.85em;
    color: #555;
}

/* --- Print Specific Styles --- */
@page {
    size: A4;
    margin: 2cm;
}

@media print {
    body {
        background-color: #fff;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        min-height: auto; /* Allow content to flow naturally on one page if possible */
        box-shadow: none;
        margin: 0;
        padding: 0; /* Reset padding for print margins defined in @page */
    }

    /* Adjust font sizes for print readability if needed */
    h1 { font-size: 2em; }
    h2 { font-size: 1.4em; }
    h3 { font-size: 1.1em; }
    p, ul li, ol li, table { font-size: 0.9em; }

    /* Ensure images don't break page flow */
    img {
        max-width: 90%;
        page-break-inside: avoid;
    }

    /* Avoid breaking sections across pages where possible */
    h1, h2, h3, table, ul, ol, blockquote {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    .contact-info {
        page-break-before: auto;
    }
}


