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

.bodystyle {
    max-width: 1200px;          /* match your resume width */
    margin: 30px auto;          /* centers with breathing room */
    padding: 20px 30px;         /* inner padding */
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    border-radius: 6px;
}


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

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

.headshot {
    display: block;
    width: 225px;
    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;
}

h1 {
    font-size: 60px;
    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: 3px;
    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;
}

.sortable-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sortable-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.drag-handle {
  cursor: grab;
  user-select: none;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  border: 1px solid #ddd;
  background: #f7f7f7;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.drag-ghost { opacity: 0.6; }

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

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

@media print {

  /* Tell the browser the intended paper size */
  @page {
    size: letter;
    margin: 0;
  }
.container {
    width: 8.5in;
    height: 11in;          /* LOCK TO LETTER PAGE */
    display: flex;
}
  /* Remove layout constraints so printing is consistent */
  body {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
    

    
h1 {
    font-size: 50px;
    line-height: 20px;
}
    .headshot {
    display: block;
    width: 225px;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 10px;
}
    
  /* Page 1: resume */
  .container {
    width: 8.5in;           /* lock to letter width */
    margin: 0 auto;
    box-shadow: none !important;
    page-break-after: always;
  }

  /* Keep your column sizing reasonable for print */

.left-column {
    width: 250px;
    background: #16213E;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.right-column {
    width: calc(8.5in - 250px);
    padding: 20px;
}

  /* Page 2: full-page headshot */
  .print-container {
    display: block !important;
    page-break-before: always;

    width: 8.5in;
    height: 11in;

    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden; /* ensures full-bleed crops cleanly */
  }

  .print-headshot {
    display: block;
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;  /* use 'contain' if you do NOT want any cropping */
  }

  /* If your JPG already contains the name, hide this entirely */
  .print-name {
    display: none !important;
  }

  /* Optional: hide anything you don't want printed */
  .mobile-header { display: none !important; }
}


@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: 12px; /* Reduce text size */
    }

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

}