body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
}

.mobile-header {
        display: hidden !important;
    color: #f5f5f5;
}

.container {
    width: 1000px;
    display: flex;
    background: #ffffff;
    margin: 10px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.left-column {
    width: 350px;
    background: #16213E;
    color: white;
    padding: 20px;
    text-align: left;
}

.headshot {
    display: block;
    width: 325px;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 10px;
}

.personal-info {
    text-align: left;
    padding-left: 20px;
}

.skills {
    text-align: left;
    padding-left: 20px;
}

.right-column {
    width: 650px;
    background: white;
    padding: 20px;
}

h1 {
    font-size: 80px;
    line-height: 20px;
}

h2 {
    font-size: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th {
    background-color: #e94560;
}

th, td {
    padding: 8px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f1fafb;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 5px;
}

.hide {
    display: none;
}

/* Hide the full-page headshot in normal view */
.print-container {
    display: none;
}

@media print {
    /* Reset flexbox to normal layout for proper page breaks */
    body {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
    }

    /* Ensure the resume content stays on the first page */
    .container {
        width: 95%;
        display: flex;
        background: #ffffff;
        margin: 5px auto;
        box-shadow: none !important;
        page-break-after: always; /* Forces the resume to finish on Page 1 */
    }

    .left-column {
        width: 30%;
        background: #16213E;
        color: white;
        padding: 10px;
        text-align: left;
    }

    .right-column {
        width: 70%;
        background: white;
        padding: 10px;
        box-shadow: none !important;
    }

    .headshot {
        display: block;
        width: 200px;
        height: auto;
        margin: 0 auto 20px auto;
        border-radius: 10px;
    }

    .personal-info {
        text-align: left;
        padding-left: 10px;
    }

    .skills {
        text-align: left;
        padding-left: 10px;
    }

    h1 {
        font-size: 40px;
        line-height: auto;
    }

    h2 {
        font-size: 20px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    table, th, td {
        border: 1px solid #ccc;
    }

    th {
        background-color: #e94560;
    }

    th, td {
        padding: 8px;
        text-align: left;
        font-size: 0.9em;
    }

    tr:nth-child(even) {
        background-color: #f1fafb;
    }

    /* Make the full-page headshot appear on Page 2 */
    .print-container {
        display: block;
        width: 100%;
        text-align: center;
        page-break-before: always; /* Ensure headshot starts on Page 2 */
    }

    .print-headshot {
        display: block;
        width: calc(100% - 100px); /* 50px padding on both sides */
        height: auto;
        margin: 50px auto 0 auto; /* Ensure spacing from top */
    }

    .print-name {
        font-size: 60px;
        font-weight: bold;
        text-align: center;
        color: black;
        margin-top: 20px; /* Adjust spacing below the headshot */
        page-break-after: avoid; /* Prevents the name from moving to another page */
    }
}

@media screen and (max-width: 768px) {

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
}
    
.mobile-header {
    display: block;
    font-size: 50px;
    font-weight: 500;
    font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
    text-align: center;
    margin-top: 20px;
    margin-left: 10px;
    color: #000;
}

.container {
    width: 100%;
    flex-direction: column;
    box-shadow: none; /* Remove shadow on smaller screens */
    text-align: center;
}

/* Hide the desktop name on mobile */
.resume-name {
    display: none;
}

    /* Headshot appears after name */
    .headshot {
        width: auto; /* Resize image */
        height: 250px;
        display: block;
        margin: auto;
    }

    /* Ensure left-column content flows under headshot */
    .left-column {
        width: 100%;
        background: none;
        color: black;
        padding: 15px;
        text-align: center;
    }

    /* Resume details centered */
    .personal-info, .skills {
        text-align: left;
        padding-left: 10;
    }

    /* Right column content follows left-column */
    .right-column {
        width: 95%;
        padding: 5px;
        text-align: left;
    }

    /* Performance, Training, and Skills in correct order */
    .right-column h2 {
        text-align: center;
        margin-top: 20px;
    }

    table, th, td {
        font-size: 14px; /* Reduce text size */
    }

    ul {
        padding-left: 0;
        list-style-position: inside;
    }

}