body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.header {
    text-align: center;
    padding: 30px;
    background: #00509e;
    color: white;
}
.header h1 {
    margin: 0;
    font-size: 2.5em;
}
.header p {
    font-size: 1.2em;
}
.section {
    margin: 30px 0;
    padding: 20px;
    border-left: 6px solid #00509e;
    background: #eef2f7;
}
h2 {
    color: #00509e;
    font-size: 1.8em;
    margin-bottom: 10px;
}
p {
    font-size: 1.1em;
    line-height: 1.6;
}
ul {
    padding-left: 25px;
}
li {
    font-size: 1.1em;
    margin-bottom: 8px;
}
.level {
    padding: 15px;
    margin: 20px 0;
    background: white;
    border: 2px solid #00509e;
    border-radius: 8px;
}
.level h3 {
    color: #00509e;
    font-size: 1.5em;
    margin-bottom: 5px;
}
.footer {
    text-align: center;
    padding: 20px;
    background: #00509e;
    color: white;
    margin-top: 30px;
    font-size: 1.2em;
}
@media print {
    .level {
        page-break-inside: avoid; /* Prevents breaking inside the level div */
    }
    .section {
        page-break-before: auto; /* Adjusts page breaks before sections */
        page-break-after: auto;
        page-break-inside: avoid; /* Ensures sections don't split between pages */
    }
    .footer {
        page-break-before: always; /* Ensures footer starts on a new page */
    }
    body {
        -webkit-print-color-adjust: exact; /* Ensures colors are printed */
        print-color-adjust: exact;
    }   
    .header {
        background-color: #00509e !important; /* Force blue header in print */
        color: white !important; /* Ensure text stays visible */
        -webkit-print-color-adjust: exact;
    }
    .footer {
        background-color: #00509e !important;
        color: white !important;
    }
    .container {
        box-shadow: none !important; /* Removes shadow when printing */
    }
}