/* / General reset for printing */
@media print {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Times New Roman', serif;
        font-size: 12px;
        line-height: 1.5;
        color: #000;
        margin: 0;
        padding: 0;
    }

    /* / Ensure the content fits within one page / */
    .header,
    .content {
        width: 100%;
        /* Harvard-style narrower width  */
        max-width: 7.5in;
        margin: 0 auto;
        padding: 20px;
    }

    .header {
        text-align: center;
        margin-bottom: 20px;
    }

    .header img {
        max-width: 80px;
        height: auto;
        margin-bottom: 10px;
    }

    .header h1 {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .header p {
        font-size: 12px;
        margin: 2px 0;
    }

    .section {
        margin-bottom: 15px;
    }

    .section h2 {
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 5px;
        padding-bottom: 2px;
        border-bottom: 1px solid #000;
    }

    .section p,
    .section ul {
        font-size: 12px;
        margin: 8;
        padding: 0;
    }

    .section ul {
        list-style: none;
        padding-left: 15px;
    }

    .section ul {
        margin-bottom: 5px;
    }

    .edu-entry {
        margin-bottom: 10px;
    }

    .edu-entry strong {
        font-weight: bold;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Harvard-style grid layout*/
        gap: 10px;
    }

    /* Remove unnecessary elements for printing */
    .btn-back,
    .btn-print {
        display: none;
    }

    /* Prevent page breaks inside sections  */
    .section {
        page-break-inside: avoid;
    }

    /* Ensure the entire content fits on one page  */
    html,
    body {
        height: 100%;
    }

    @page {
        size: A4;
        margin: 200m;
    }
}